修改禅道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
@@ -10,7 +10,7 @@
<a-checkbox :value="item.id" class="checkbox-left"></a-checkbox> <a-checkbox :value="item.id" class="checkbox-left"></a-checkbox>
<div class="text-text-right" <div class="text-text-right"
:class="{ 'null-input':item.checked }"> :class="{ 'null-input':item.checked }">
<div class="text-header"> <div class="text-header" @click="titleClick(item)">
<a-tooltip placement="topLeft" :mouseEnterDelay="0.5"> <a-tooltip placement="topLeft" :mouseEnterDelay="0.5">
<template slot="title"> <template slot="title">
<span v-html="item.module_type"></span> <span v-html="item.module_type"></span>
@@ -22,19 +22,19 @@
<span v-html="item.serial_number"></span> <span v-html="item.serial_number"></span>
</template> </template>
<span style="cursor: pointer" <span style="cursor: pointer"
@click="titleClick(item)" v-html="item.serial_number"></span> v-html="item.serial_number"></span>
</a-tooltip> </a-tooltip>
<a-tooltip placement="topLeft" :mouseEnterDelay="0.5"> <a-tooltip placement="topLeft" :mouseEnterDelay="0.5">
<template slot="title"> <template slot="title">
<span v-html="item.title"></span> <span v-html="item.title"></span>
</template> </template>
<span style="cursor: pointer" v-html="item.title" @click="titleClick(item)"></span> <span style="cursor: pointer" v-html="item.title"></span>
</a-tooltip> </a-tooltip>
<a-tooltip placement="topLeft" :mouseEnterDelay="0.5"> <a-tooltip placement="topLeft" :mouseEnterDelay="0.5">
<template slot="title"> <template slot="title">
<span v-html="item.file_name"></span> <span v-html="item.file_name"></span>
</template> </template>
<span style="cursor: pointer" v-html="item.file_name" @click="titleClick(item)"></span> <span style="cursor: pointer" v-html="item.file_name"></span>
</a-tooltip> </a-tooltip>
</div> </div>
<a-tooltip placement="topLeft" v-if="!queryParam.selectValue" :mouseEnterDelay="0.5"> <a-tooltip placement="topLeft" v-if="!queryParam.selectValue" :mouseEnterDelay="0.5">
@@ -274,17 +274,10 @@
}, },
// 配置 // 配置
configure(item) { configure(item) {
console.log(item)
this.itemId = item.id 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.itemRow = item
this.$refs.configureRef.addModel(item.id,this.configFlag) this.$refs.configureRef.addModel(item.id)
}, },
handleCancel(val) { handleCancel(val) {
this.areaVisible = val this.areaVisible = val
@@ -175,6 +175,7 @@
}, },
mounted() { mounted() {
}, },
methods: { methods: {
getNameList() { getNameList() {
@@ -186,13 +187,19 @@
} }
}) })
}, },
addModel(id,configFlag) { addModel(id) {
this.paramsConfigEOList = [] this.paramsConfigEOList = []
this.visible = true this.visible = true
this.title = this.$t('MaintainConfigureInfo') this.title = this.$t('MaintainConfigureInfo')
this.configFlag = configFlag
this.formInline = {} this.formInline = {}
this.getconList(id) 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) { getconList(id) {
getAction(`${this.url.conList}?paramsManifestId=${id}`, {}).then((res) => { getAction(`${this.url.conList}?paramsManifestId=${id}`, {}).then((res) => {
@@ -219,7 +226,8 @@
}) })
}, },
addConfiguration(item) { addConfiguration(item) {
if (this.configFlag) { console.log(this.configFlag)
if (this.configFlag == true) {
this.paramsConfigEOList.splice(item.displaySeq + 1, 0, { this.paramsConfigEOList.splice(item.displaySeq + 1, 0, {
id: '', id: '',
configName: '', // 配置名称 configName: '', // 配置名称