lsun 协议管理-树结构修改

This commit is contained in:
lSun 2024-11-19 13:38:57 +08:00
parent 19f85a82a5
commit 80f6434927
1 changed files with 16 additions and 4 deletions

View File

@ -29,6 +29,7 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -164,6 +165,7 @@
@change="uniteChange" @change="uniteChange"
placeholder="请选择租赁单位" placeholder="请选择租赁单位"
style="width: 100%;" style="width: 100%;"
:disabled="isEdit"
></el-cascader> ></el-cascader>
</el-form-item> </el-form-item>
@ -195,6 +197,7 @@
@change="projectChange" @change="projectChange"
placeholder="请选择租赁工程" placeholder="请选择租赁工程"
style="width: 100%;" style="width: 100%;"
:disabled="isEdit"
></el-cascader> ></el-cascader>
</el-form-item> </el-form-item>
<!-- <el-form-item label="租赁工程" prop="proId"> <!-- <el-form-item label="租赁工程" prop="proId">
@ -536,6 +539,8 @@ export default {
// //
url: process.env.VUE_APP_BASE_API + '/file/upload' url: process.env.VUE_APP_BASE_API + '/file/upload'
}, },
isEdit: false,
}; };
}, },
computed: { computed: {
@ -757,6 +762,7 @@ export default {
this.businessLicenseFileList = []; this.businessLicenseFileList = [];
this.showHouse = true this.showHouse = true
this.showConfirmButton = true this.showConfirmButton = true
this.isEdit = false;
this.title = '新增' this.title = '新增'
}, },
@ -767,21 +773,26 @@ export default {
this.businessLicenseListTemp = []; this.businessLicenseListTemp = [];
this.businessLicenseFileList = []; this.businessLicenseFileList = [];
var id = row.agreementId; var id = row.agreementId;
getAgreementDetail(id).then((response) => { getAgreementDetail(id).then((response) => {
this.form = response.data; this.form = response.data;
this.maForm.unitId = response.data.unitId; this.maForm.unitId = response.data.unitId;
this.maForm.projectId = response.data.projectId; this.maForm.projectId = response.data.projectId;
this.unitId = this.treeParentsById(this.uniteList, this.maForm.unitId); this.unitId = this.treeParentsById(this.uniteList, this.maForm.unitId);
this.projectId = this.treeParentsById( this.projectId = this.treeParentsById(
this.projectList, this.projectList,
this.maForm.projectId this.maForm.projectId
); );
var taskId = this.form.taskId
console.log(taskId)
if(taskId){
this.isEdit = true;
}else{
this.isEdit = false;
}
console.log(this.isEdit)
console.log(this.maForm)
if (response.data.bmFileInfos != null) { if (response.data.bmFileInfos != null) {
this.businessLicenseListTemp = response.data.bmFileInfos; this.businessLicenseListTemp = response.data.bmFileInfos;
this.businessLicenseListTemp.forEach(item => { this.businessLicenseListTemp.forEach(item => {
@ -864,6 +875,7 @@ export default {
} else { } else {
this.businessLicenseListTemp = []; this.businessLicenseListTemp = [];
} }
this.isEdit = false;
this.showHouse = true this.showHouse = true
this.showConfirmButton = false this.showConfirmButton = false
this.title = '查询' this.title = '查询'