lsun 协议管理-树结构修改
This commit is contained in:
parent
19f85a82a5
commit
80f6434927
|
|
@ -29,6 +29,7 @@
|
|||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
|
|
@ -164,6 +165,7 @@
|
|||
@change="uniteChange"
|
||||
placeholder="请选择租赁单位"
|
||||
style="width: 100%;"
|
||||
:disabled="isEdit"
|
||||
></el-cascader>
|
||||
</el-form-item>
|
||||
|
||||
|
|
@ -195,6 +197,7 @@
|
|||
@change="projectChange"
|
||||
placeholder="请选择租赁工程"
|
||||
style="width: 100%;"
|
||||
:disabled="isEdit"
|
||||
></el-cascader>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="租赁工程" prop="proId">
|
||||
|
|
@ -536,6 +539,8 @@ export default {
|
|||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + '/file/upload'
|
||||
},
|
||||
|
||||
isEdit: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -757,6 +762,7 @@ export default {
|
|||
this.businessLicenseFileList = [];
|
||||
this.showHouse = true
|
||||
this.showConfirmButton = true
|
||||
this.isEdit = false;
|
||||
this.title = '新增'
|
||||
},
|
||||
|
||||
|
|
@ -767,21 +773,26 @@ export default {
|
|||
this.businessLicenseListTemp = [];
|
||||
this.businessLicenseFileList = [];
|
||||
var id = row.agreementId;
|
||||
|
||||
getAgreementDetail(id).then((response) => {
|
||||
this.form = response.data;
|
||||
|
||||
|
||||
this.maForm.unitId = response.data.unitId;
|
||||
this.maForm.projectId = response.data.projectId;
|
||||
|
||||
this.unitId = this.treeParentsById(this.uniteList, this.maForm.unitId);
|
||||
this.projectId = this.treeParentsById(
|
||||
this.projectList,
|
||||
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) {
|
||||
this.businessLicenseListTemp = response.data.bmFileInfos;
|
||||
this.businessLicenseListTemp.forEach(item => {
|
||||
|
|
@ -864,6 +875,7 @@ export default {
|
|||
} else {
|
||||
this.businessLicenseListTemp = [];
|
||||
}
|
||||
this.isEdit = false;
|
||||
this.showHouse = true
|
||||
this.showConfirmButton = false
|
||||
this.title = '查询'
|
||||
|
|
|
|||
Loading…
Reference in New Issue