diff --git a/jwtech-admin-page/src/views/projectAndEnterpriseBindingMange/enterpriseBinding/index.vue b/jwtech-admin-page/src/views/projectAndEnterpriseBindingMange/enterpriseBinding/index.vue index c9b86ee8..36e43022 100644 --- a/jwtech-admin-page/src/views/projectAndEnterpriseBindingMange/enterpriseBinding/index.vue +++ b/jwtech-admin-page/src/views/projectAndEnterpriseBindingMange/enterpriseBinding/index.vue @@ -16,10 +16,10 @@ :inline="true" v-show="showSearch" > - + + + + + + + { - this.constructionNatureOptions = response.data; - }); - this.getDicts("major_project").then((response) => { - // console.log("4444444444444444", response.data); - this.zd_projectTypeOptions = response.data; - }); - this.getDicts("general_project").then((response) => { - // console.log("5555555555555", response.data); - this.ms_projectTypeOptions = response.data; + this.getDicts("qualification_type").then((response) => { + this.enterpriseTypeOptions = response.data; }); this.getTreeData(); @@ -381,26 +398,12 @@ export default { this.loading = false; }); }, - // 建设性质字典 - constructionNatureFormat(row, column) { + // 资质类别字典翻译 + enterpriseTypeFormat(row, column) { return this.selectDictLabel( - this.constructionNatureOptions, - row.constructionNature - ); - }, - // 项目类型字典翻译 - projectTypeFormat(row, column) { - if (row.isMajor == "zd") { - return this.selectDictLabel( - this.zd_projectTypeOptions, - row.projectType - ); - } else if (row.isMajor == "ms") { - return this.selectDictLabel( - this.ms_projectTypeOptions, - row.projectType - ); - } + this.enterpriseTypeOptions, + row.enterpriseType + ).replace("资质", ""); }, // 取消按钮 cancel() { @@ -457,9 +460,9 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.proNos = selection.map((item) => item.proNo); + this.ids = selection.map((item) => item.id); this.multiple = !selection.length; - console.log(1111, this.proNos); + console.log(1111, this.ids); }, /** 新增按钮操作 */ @@ -469,14 +472,13 @@ export default { // }); // this.open = true; // this.title = "绑定项目"; - let proNos = row.proNo ? [row.proNo] : this.proNos; - // this.form.proNo = proNos; - this.submitForm(proNos); + let ids = row.id ? [row.id] : this.ids; + this.submitForm(ids); }, - submitForm(proNos) { + submitForm(ids) { // this.$refs["form"].validate((valid) => { // if (valid) { - legalLinkEnterprise(proNos).then((res) => { + legalLinkEnterprise(ids).then((res) => { if (res.code === 200) { this.msgSuccess("绑定成功"); // this.open = false;