opt:策略管理包结构修改2

This commit is contained in:
zhangzq
2025-06-26 13:58:24 +08:00
parent de643e472c
commit 7b9ad26e11
16 changed files with 117 additions and 28 deletions

View File

@@ -0,0 +1,22 @@
import request from '@/utils/request'
export function get(code) {
const params = {
code
}
return request({
url: 'api/dict/getStatusEnum',
method: 'get',
params
})
}
export function tableEnum(params) {
return request({
url: 'api/dict/getTableEnum',
method: 'get',
params
})
}
export default { get, tableEnum }

View File

@@ -50,7 +50,7 @@
style="width: 200px"
>
<el-option
v-for="item in classTypeList"
v-for="item in tableEnum.st_ivt_sectattr"
:key="item.id"
:label="item.label"
:value="item.value"
@@ -106,6 +106,8 @@ import CRUD, { form, crud } from '@crud/crud'
export default {
name: 'AddDialog',
tableEnums: ['st_ivt_sectattr#sect_name#sect_code'],
mixins: [form(defaultForm), crud()],
props: {
dialogShow: {
@@ -116,13 +118,6 @@ export default {
type: Object
}
},
watch: {
dialogShow: {
handler(newValue, oldValue) {
this.dialogVisible = newValue
}
}
},
data() {
return {
dialogVisible: false,
@@ -155,6 +150,13 @@ export default {
}
}
},
watch: {
dialogShow: {
handler(newValue, oldValue) {
this.dialogVisible = newValue
}
}
},
methods: {
handleClose(done) {
this.$confirm('确认关闭?')