This commit is contained in:
zhutianqi
2021-12-17 16:01:26 +08:00
parent 07c8850852
commit 9805f424ea
4 changed files with 64 additions and 27 deletions
+2 -1
View File
@@ -26,8 +26,9 @@
icon-class="icon-tree"
:check-strictly="true"
:current-node-key="nodeKeyId"
node-key="id"
node-key="name"
:filter-node-method="filterNode"
:default-checked-keys="nodeList"
highlight-current
:auto-expand-parent="true"
show-checkbox
@@ -686,6 +686,7 @@
this.plForm.complianceState = ''
this.plForm.newData = ''
this.plForm.onlineData = ''
this.plForm.applyArctic = ''
this.modalshowflag = true
} else {
this.$message.warning('请选择要编辑的数据')
@@ -5497,8 +5497,6 @@ export default {
this.sarStandardsInfoEO['ZRGCS'] = nameList;
},
choiceZRBM(type, title, id) {
this.nodeListZRBM = []
this.nodeListZRBM.push(id)
this.drawerTitle = title
@@ -258,30 +258,40 @@
</el-form-item>
<el-form-item label="起草责任单位" style="width: 100%; margin-right:10px" class="add-form-item" prop="unit" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<div style="display: flex;justify-content: space-between;align-items: center;">
<el-tooltip v-if="addForm.unit" class="item" effect="dark" :content="addForm.unit" placement="top-start">
<el-input
:disabled="DrawerType === 'see'"
clearable
v-model="addForm.unit"
placeholder="选择或输入起草单位">
</el-input>
</el-tooltip>
<div v-else>
<el-input
:disabled="DrawerType === 'see'"
clearable
v-model="addForm.unit"
placeholder="选择或输入起草单位">
</el-input>
</div>
<div>
<el-button
:disabled="DrawerType === 'see'"
size="mini"
type="primary"
@click="QCDWClick"
class="common-button-primary">手动查找</el-button>
</div>
<el-input
:key="addForm.unit"
:config="addForm"
clearable
v-model="addForm.unit"
placeholder="选择起草责任单位"
@click.native="choiceZRBM(addForm.unit)">
</el-input>
<!-- <el-tooltip v-if="addForm.unit" class="item" effect="dark" :content="addForm.unit" placement="top-start">-->
<!-- <el-input-->
<!-- :disabled="DrawerType === 'see'"-->
<!-- clearable-->
<!-- v-model="addForm.unit"-->
<!-- placeholder="选择或输入起草单位">-->
<!-- </el-input>-->
<!-- </el-tooltip>-->
<!-- <div v-else>-->
<!-- <el-input-->
<!-- :disabled="DrawerType === 'see'"-->
<!-- clearable-->
<!-- v-model="addForm.unit"-->
<!-- placeholder="选择或输入起草单位">-->
<!-- </el-input>-->
<!-- </div>-->
<!-- <div>-->
<!-- <el-button-->
<!-- :disabled="DrawerType === 'see'"-->
<!-- size="mini"-->
<!-- type="primary"-->
<!-- @click="QCDWClick"-->
<!-- class="common-button-primary">手动查找</el-button>-->
<!-- </div>-->
</div>
</el-form-item>
</el-form>
@@ -340,6 +350,12 @@
</el-button>
</div>
</el-dialog>
<Mechanism-tree
is-title="选择起草责任部门"
:is-visible.sync="modalshowflagZRBM"
:nodeList="nodeListZRBM"
@checkedRole="drawerCheckZRBM"
/>
</div>
</div>
</template>
@@ -350,6 +366,9 @@
components: {},
data() {
return {
modalshowflagZRBM: false,
nodeListZRBM: [],
QCDWmodal: false,
QCDWValue: [],
QCDWList: [],
@@ -425,6 +444,24 @@
props: {},
watch: {},
methods: {
drawerCheckZRBM (data) {
let list = ''
for (let a = 0; a < data.length; a++) {
if (list.length > 0) {
list += ','
list += data[a].name
} else {
list = data[a].name
}
}
this.addForm.unit = list
this.modalshowflagZRBM = false
},
choiceZRBM(id) {
this.nodeListZRBM = []
this.nodeListZRBM = id.split(',')
this.modalshowflagZRBM = true
},
QCDWOK () {
let arr1 = []
if (this.addForm.unit) {