修改禅道bug

This commit is contained in:
zyx.net
2022-07-02 11:12:23 +08:00
parent b37d28de24
commit 4ae082a15f
3 changed files with 17 additions and 16 deletions
@@ -274,17 +274,10 @@
},
// 配置
configure(item) {
console.log(item)
this.itemId = item.id
getAction(this.url.configurelist, { paramsManifestId: this.itemId }).then((res) => {
if (res.success) {
this.configFlag = res.result
} else {
this.$message.warning(res.message)
}
})
this.itemRow = item
this.$refs.configureRef.addModel(item.id,this.configFlag)
this.$refs.configureRef.addModel(item.id)
},
handleCancel(val) {
this.areaVisible = val
@@ -175,6 +175,7 @@
},
mounted() {
},
methods: {
getNameList() {
@@ -186,13 +187,19 @@
}
})
},
addModel(id,configFlag) {
addModel(id) {
this.paramsConfigEOList = []
this.visible = true
this.title = this.$t('MaintainConfigureInfo')
this.configFlag = configFlag
this.formInline = {}
this.getconList(id)
getAction(this.url.configurelist, { paramsManifestId: this.itemRow.id }).then((res) => {
if (res.success) {
this.configFlag = res.result
} else {
this.$message.warning(res.message)
}
})
},
getconList(id) {
getAction(`${this.url.conList}?paramsManifestId=${id}`, {}).then((res) => {
@@ -219,7 +226,8 @@
})
},
addConfiguration(item) {
if (this.configFlag) {
console.log(this.configFlag)
if (this.configFlag == true) {
this.paramsConfigEOList.splice(item.displaySeq + 1, 0, {
id: '',
configName: '', // 配置名称