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

Loading…
Cancel
Save