认证参数列表添加配置调取接口控制权限

This commit is contained in:
zyx.net
2022-07-02 10:04:31 +08:00
parent 3ba874dfe8
commit f78eab8764
2 changed files with 16 additions and 4 deletions
@@ -198,7 +198,8 @@
conAdd: 'params/config/addBatch', conAdd: 'params/config/addBatch',
conList: 'params/config/list', conList: 'params/config/list',
changeExtension: 'params/manifest/changeExtension', changeExtension: 'params/manifest/changeExtension',
verifyConfig: 'params/manifest/verifyConfig' verifyConfig: 'params/manifest/verifyConfig',
configurelist:'params/manifest/getConfigFlag',
}, },
loading: false, loading: false,
dataSource: [], dataSource: [],
@@ -214,6 +215,7 @@
version: 0, version: 0,
itemId: '', // 配置id itemId: '', // 配置id
itemRow: {}, // 配置一行数据 itemRow: {}, // 配置一行数据
configFlag:'',
historicalVisible: false, historicalVisible: false,
historicalRow: {}, // 历史版本得数据 historicalRow: {}, // 历史版本得数据
drawerVisible: false, drawerVisible: false,
@@ -272,9 +274,17 @@
}, },
// 配置 // 配置
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.$refs.configureRef.addModel(item.id,this.configFlag)
}, },
handleCancel(val) { handleCancel(val) {
this.areaVisible = val this.areaVisible = val
@@ -155,6 +155,7 @@
projectNameList: [], projectNameList: [],
title: '', title: '',
stateOne: '', stateOne: '',
configFlag:'',
contentList: [], contentList: [],
paramsConfigEOList: [ paramsConfigEOList: [
{ {
@@ -185,10 +186,11 @@
} }
}) })
}, },
addModel(id) { addModel(id,configFlag) {
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)
}, },
@@ -217,7 +219,7 @@
}) })
}, },
addConfiguration(item) { addConfiguration(item) {
if (this.itemRow.configFlag) { if (this.configFlag) {
this.paramsConfigEOList.splice(item.displaySeq + 1, 0, { this.paramsConfigEOList.splice(item.displaySeq + 1, 0, {
id: '', id: '',
configName: '', // 配置名称 configName: '', // 配置名称