Browse Source

方法

shibei_master
dai 3 years ago
parent
commit
d01aa78e74
  1. 32
      src/views/modules/shequzhili/xiangmu/cpts/project-info.vue

32
src/views/modules/shequzhili/xiangmu/cpts/project-info.vue

@ -2,7 +2,7 @@
<div class="">
<div class="g-page" v-show="pageType == 'info'">
<div class="g-left">
<el-card>
<el-card style="overflow: auto">
<h3>项目详情</h3>
<div class="m-info">
@ -59,7 +59,7 @@
</div>
</fold-text>
<el-popover
<el-popover v-if="projectInfo.projectStatus=='pending'"
placement="bottom"
width="400"
height="400"
@ -99,7 +99,7 @@
</div>
</fold-text>
<el-popover
<el-popover v-if="projectInfo.projectStatus=='pending'"
placement="bottom"
width="400"
height="400"
@ -159,6 +159,7 @@
</div>
</el-card>
<el-card
style="overflow: auto"
v-if="type == 'edit' && projectInfo.projectStatus == 'pending'"
>
<h3>处理</h3>
@ -359,7 +360,8 @@
<div class="g-right">
<el-card
class="m-card"
style="max-height: 90vh; overflow: auto"
:style="styleFullHeight"
style="overflow: auto"
v-if="projectProcess.length > 0"
>
<h3>处理进展</h3>
@ -383,6 +385,11 @@
<div class="detail-value">{{ item.departmentName }}</div>
</div>
<div class="detail" v-if="item.assistanceUnitName">
<div class="detail-field">协办单位</div>
<div class="detail-value">{{ item.assistanceUnitName }}</div>
</div>
<div
class="detail"
v-if="item.processName != '转项目' && item.publicReply"
@ -646,6 +653,18 @@ export default {
return obj;
},
styleFullHeight() {
return {
maxHeight: "calc(100vh - 120px)",
};
},
styleHalfHeight() {
return {
maxHeight: "calc((100vh - 140px) / 2)",
};
},
},
watch: {
@ -928,7 +947,6 @@ export default {
async getApiData() {
await this.getProjectInfo();
this.getProjectCate();
this.getCateOptions();
this.getProjectProcess();
},
@ -1099,7 +1117,10 @@ export default {
if (code === 0) {
this.projectCate = data.categoryList;
this.projectTag = data.tagList;
if (this.projectInfo.projectStatus == "pending") {
this.getCateOptions();
this.getTagOptions();
}
} else {
this.$message.error(msg);
}
@ -1176,6 +1197,7 @@ export default {
customized: data.customized,
defaulted: data.defaulted,
};
this.selectedTagData = this.projectTag.map((item) => item.id);
} else {
this.$message.error(msg);
}

Loading…
Cancel
Save