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