重点工程优化

main
zhaoyu 2023-12-15 15:50:40 +08:00
parent 89cbc27c62
commit e6b0c53c36
2 changed files with 15 additions and 7 deletions

View File

@ -32,7 +32,7 @@
<el-row>
<el-col :span="8">
<el-form-item label="施工相关方">
<el-select v-model="UNITS_ID" placeholder="请选择施工相关方" style="width: 100%">
<el-select v-model="UNITS_ID" filterable placeholder="请选择施工相关方" style="width: 100%">
<el-option
v-for="item in unitsList"
:key="item.UNITS_ID"
@ -492,9 +492,12 @@ export default {
//
return new Promise((resolve) => {
requestFN(
'/corpDepartment/listTreeManageAndCorp1',
'/department/listTreeCorpInfo',
{
CORPINFO_ID: this.CORPINFO_ID
}
).then((data) => {
this.treeDeptOptions = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
// this.treeDeptOptions = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
this.treeDataInspectDept = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
resolve()
}).catch((e) => {

View File

@ -49,7 +49,7 @@
<el-row>
<el-col :span="8">
<el-form-item label="施工相关方">
<el-select v-model="UNITS_ID" placeholder="请选择施工相关方" style="width: 100%">
<el-select v-model="UNITS_ID" filterable placeholder="请选择施工相关方" style="width: 100%">
<el-option
v-for="item in unitsList"
:key="item.UNITS_ID"
@ -174,6 +174,7 @@ export default {
directives: { waves },
data() {
return {
CORPINFO_ID: '',
listLoading: true,
listQuery: {
page: 1,
@ -212,6 +213,7 @@ export default {
}
},
created() {
this.CORPINFO_ID = this.$parent.CORPINFO_ID
this.getList()
this.getUnitsList()
this.getCorpList()
@ -243,9 +245,12 @@ export default {
//
return new Promise((resolve) => {
requestFN(
'/corpDepartment/listTreeManageAndCorp1',
'department/listTreeCorpInfo',
{
CORPINFO_ID: this.CORPINFO_ID
}
).then((data) => {
this.treeDeptOptions = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
// this.treeDeptOptions = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
this.treeDataInspectDept = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
resolve()
}).catch((e) => {
@ -305,7 +310,7 @@ export default {
COMPETENT_DEPT_ID: this.COMPETENT_DEPT_ID,
GROUP_UNIT: this.GROUP_UNIT,
CORP_NAME: this.CORP_NAME,
CORPINFO_ID: this.$parent.CORPINFO_ID
CORPINFO_ID: this.CORPINFO_ID
}
).then((data) => {
this.listLoading = false