feat: There is no way the, bug #51959
This commit is contained in:
+37
-8
@@ -571,10 +571,17 @@
|
|||||||
<el-input
|
<el-input
|
||||||
:config="field"
|
:config="field"
|
||||||
clearable
|
clearable
|
||||||
|
:title="sarBussionessStandEO[field.attrField]"
|
||||||
v-model="sarBussionessStandEO[field.attrField]"
|
v-model="sarBussionessStandEO[field.attrField]"
|
||||||
:disabled="formdisableflag" placeholder="选择起草部门"
|
:disabled="formdisableflag" placeholder="选择起草部门">
|
||||||
@click.native="choiceQCDW('QCDWId', '起草部门', sarBussionessStandEO.QCDWId)">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
style="position:absolute;top: 10px;right: 0;"
|
||||||
|
@click="choiceQCDW('QCDWId', '起草部门', sarBussionessStandEO.QCDW)"
|
||||||
|
class="common-button-primary">手动查找
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
<!--起草人QCRBUSS-->
|
<!--起草人QCRBUSS-->
|
||||||
@@ -585,7 +592,7 @@
|
|||||||
class="add-form-item"
|
class="add-form-item"
|
||||||
>
|
>
|
||||||
<template slot="label">起草人</template>
|
<template slot="label">起草人</template>
|
||||||
<el-input v-model="sarBussionessStandEO[field.attrField]" placeholder="选择起草人" @click.native="choiceQCR('QCRBUSS', '选择起草人', sarBussionessStandEO[field.attrField])">
|
<el-input v-model="sarBussionessStandEO[field.attrField]" :title="sarBussionessStandEO[field.attrField]" placeholder="选择起草人" @click.native="choiceQCR('QCRBUSS', '选择起草人', sarBussionessStandEO[field.attrField])">
|
||||||
</el-input>
|
</el-input>
|
||||||
<!-- <el-input-->
|
<!-- <el-input-->
|
||||||
<!-- :key="field.attrField"-->
|
<!-- :key="field.attrField"-->
|
||||||
@@ -3532,9 +3539,20 @@ export default {
|
|||||||
// $('#deptBtn').click()
|
// $('#deptBtn').click()
|
||||||
$('#deptBtn2').click()
|
$('#deptBtn2').click()
|
||||||
},
|
},
|
||||||
choiceQCR(type, title, id) {
|
choiceQCR(type, title, nameId) {
|
||||||
this.nodeList = []
|
this.nodeList2 = []
|
||||||
this.nodeList.push(id)
|
if (nameId) {
|
||||||
|
let nameId1 = nameId.split(',')
|
||||||
|
let idList = []
|
||||||
|
nameId1.forEach(item => {
|
||||||
|
let a, b
|
||||||
|
a = item.substring(item.indexOf('(') +1)
|
||||||
|
b = a.substring(0, a.lastIndexOf(')'))
|
||||||
|
idList.push(b)
|
||||||
|
})
|
||||||
|
idList = idList.join(',')
|
||||||
|
this.nodeList2.push(idList)
|
||||||
|
}
|
||||||
this.userType = type
|
this.userType = type
|
||||||
this.drawerTitle = title
|
this.drawerTitle = title
|
||||||
this.modalShowRoleFlag = true
|
this.modalShowRoleFlag = true
|
||||||
@@ -3565,7 +3583,9 @@ export default {
|
|||||||
},
|
},
|
||||||
choiceQCDW(type, title, id) {
|
choiceQCDW(type, title, id) {
|
||||||
this.nodeListZRBM = []
|
this.nodeListZRBM = []
|
||||||
this.nodeListZRBM.push(id)
|
if(this.sarBussionessStandEO.QCDWID && this.sarBussionessStandEO.QCDWID.length > 0){
|
||||||
|
this.nodeListZRBM = this.sarBussionessStandEO.QCDWID.split(',')
|
||||||
|
}
|
||||||
this.drawerTitle = title
|
this.drawerTitle = title
|
||||||
this.modalshowflagZRBM = true
|
this.modalshowflagZRBM = true
|
||||||
},
|
},
|
||||||
@@ -3586,7 +3606,16 @@ export default {
|
|||||||
this.sarBussionessSearch.QCDW = nameList
|
this.sarBussionessSearch.QCDW = nameList
|
||||||
}
|
}
|
||||||
this.$set(this.sarBussionessStandEO, 'QCDWId', idList)
|
this.$set(this.sarBussionessStandEO, 'QCDWId', idList)
|
||||||
this.$set(this.sarBussionessStandEO, 'QCDW', nameList)
|
let tNameList = (this.sarBussionessStandEO.QCDW === null || this.sarBussionessStandEO.QCDW === '') ? nameList : this.sarBussionessStandEO.QCDW+','+nameList
|
||||||
|
const arr=new Set()
|
||||||
|
let permission = tNameList.split(",");
|
||||||
|
permission.forEach((item, index) => {
|
||||||
|
arr.add(item)
|
||||||
|
})
|
||||||
|
|
||||||
|
let nameNew=Array.from(arr).join(',')
|
||||||
|
this.$set(this.sarBussionessStandEO, 'QCDW', nameNew)
|
||||||
|
|
||||||
if (this.sarBussionessStandEO.QCRBUSS) {
|
if (this.sarBussionessStandEO.QCRBUSS) {
|
||||||
this.$refs.sarBussionessStandForm.validateField('QCDW')
|
this.$refs.sarBussionessStandForm.validateField('QCDW')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user