This commit is contained in:
zxx 2024-03-28 17:06:02 +08:00
commit cbefad6d00
24 changed files with 115 additions and 46 deletions

View File

@ -169,9 +169,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -171,9 +171,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -207,9 +207,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -189,9 +189,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -183,9 +183,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -183,9 +183,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -264,9 +264,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
this.lastFormDataJson = JSON.stringify(this.pageOptions.formOptions.data);

View File

@ -183,9 +183,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -295,9 +295,11 @@ export default {
} else {
console.log( this.addModeItems)
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -342,9 +342,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -242,9 +242,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -217,9 +217,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -183,9 +183,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -242,9 +242,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -273,9 +273,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -148,9 +148,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -151,9 +151,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -148,9 +148,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -168,9 +168,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -181,9 +181,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -1,5 +1,5 @@
<template>
<basic-page-edit :desc="desc" :dataId="getDataId()" :options="pageOptions"></basic-page-edit>
<basic-page-edit :dataId="getDataId()" :options="pageOptions"></basic-page-edit>
</template>
<script>
@ -199,9 +199,11 @@ export default {
this.$forceUpdate()
} else {
// id
this.addModeItems.forEach(item => {
if(this.addModeItems){
this.addModeItems.forEach(item => {
this.pageOptions.formOptions.items.push(item);
})
})
}
}
},

View File

@ -0,0 +1,5 @@
<template>
<div>
1
</div>
</template>

View File

@ -76,6 +76,9 @@
<template #op="{ row }">
<div class="oplinks">
<a @click.stop="pageDetail(row)" title="详情">
<a-icon type="file"/>
</a>
<a @click.stop="pageEdit(row)" title="编辑">
<a-icon type="edit" />
</a>
@ -272,7 +275,7 @@ export default {
// =============================== Start ===============================
{ title: '操作', slots: { default: 'op' }, width: 120, fixed: 'right' }
{title: '操作', slots: {default: 'op'}, width: 150, fixed: 'right'}
]
}
@ -371,7 +374,14 @@ export default {
this.$openPage("/TrainNumber/TrainNumberCreate"); //
}
},
//
pageDetail(row) {
if (!row) { //
this.$mk.msg("请选择行"); //
return; //
}
this.$openPage("/TrainNumber/TrainNumberDetail/" + row[this.keyName]); //
},
//
pageEdit(row) {
if (!row) { //
@ -412,7 +422,7 @@ export default {
}
});
},
//
onSearch() {
this.$refs.xGrid.commitProxy('query') //

View File

@ -65,6 +65,18 @@ const TrainNumberRouterMap = {
permission: ["TrainNumber", "TrainNumber-All", "Train-Number-Update"],
}
},
TrainNumberDetail: {
name: '车次详情',
icon: 'idcard',
path: '/TrainNumber/TrainNumberDetail/:id',
meta: {
invisible: true, // 不在菜单中显示
},
component: () => import('@/pages/Middle/transport/TrainNumber/TrainNumber/Detail'),
authority: {
permission: ["TrainNumber", "TrainNumber-All", "Train-Number-Update"],
}
},
}
export default TrainNumberRouterMap