参考列禁用
This commit is contained in:
@@ -650,8 +650,10 @@
|
||||
let num = 0
|
||||
this.content = []
|
||||
jsonHead.forEach((res, index) => {
|
||||
console.log(res)
|
||||
// 配置列
|
||||
if (res.type) {
|
||||
console.log('配置')
|
||||
this.columns.push({
|
||||
dataIndex: res.db_field_name,
|
||||
align: 'center',
|
||||
@@ -835,7 +837,12 @@
|
||||
Object.keys(Obj).forEach((item) => {
|
||||
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||
Obj[item].list.forEach((itemLi) => {
|
||||
itemLi.isLock = 1
|
||||
console.log(item)
|
||||
if(this.currentPersonRole == 'homo' && item == 'referencesCol'){
|
||||
itemLi.isLock = 0
|
||||
}else{
|
||||
itemLi.isLock = 1
|
||||
}
|
||||
if (itemLi.type === 'pull_more') {
|
||||
itemLi.dataValue = !itemLi.dataValue ? [] : itemLi.dataValue.split(',')
|
||||
}
|
||||
|
||||
@@ -352,7 +352,8 @@
|
||||
:title="$t('Referenceparametercolumn')"
|
||||
width="850px"
|
||||
:footer="null">
|
||||
<parameter-column v-if='parametercolumn' @areaVisible='drawerhandleCancel'
|
||||
<parameter-column v-if='parametercolumn' @drawerhandleCancel='drawerhandleCancel'
|
||||
@GetgetTableList='GetgetTableList'
|
||||
:templateTitle='templatetitle'
|
||||
:selectedRowKeyS='selectedRowKeys' :rowId='rowId' :version='version' :url='url'
|
||||
:projectId='this.$route.query.parentId ? this.$route.query.parentId : this.$route.query.id'>
|
||||
@@ -1599,6 +1600,7 @@
|
||||
}
|
||||
},
|
||||
drawerhandleCancel(val) {
|
||||
console.log(11131)
|
||||
this.parametercolumn = false
|
||||
},
|
||||
// 强制撤回
|
||||
|
||||
@@ -312,7 +312,7 @@
|
||||
this.newVisible = false
|
||||
this.$emit('drawerhandleCancel', false)
|
||||
this.$emit('GetgetTableList')
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.$message.success(res.message)
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user