|
|
@ -48,6 +48,11 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="填写人" prop="realName" /> |
|
|
|
<el-table-column label="组织/部门/网格" prop="orgName" /> |
|
|
|
<el-table-column label="来源" prop="clientType" /> |
|
|
|
<!-- <el-table-column label="填写时间" prop="createdTime" /> --> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
v-for="col in otherCustomColumns" |
|
|
|
:key="col" :label="projectItemColumns[col]" |
|
|
@ -66,9 +71,9 @@ |
|
|
|
{{ scope.row[col] }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<!-- :render-header="renderHeader" --> |
|
|
|
<el-table-column |
|
|
|
:render-header="renderHeader" |
|
|
|
|
|
|
|
fixed="right" |
|
|
|
width="50" |
|
|
|
> |
|
|
@ -90,7 +95,7 @@ |
|
|
|
<div> |
|
|
|
<div v-for="item in projectItemList" :key="item.id"> |
|
|
|
<h4>{{ item.label }}</h4> |
|
|
|
<result-item :field-item-id="item.formItemId" :project-item-data="item" |
|
|
|
<result-item :field-item-id="Number(item.formItemId)" :project-item-data="item" |
|
|
|
:result-data="activeResultRow" |
|
|
|
/> |
|
|
|
<el-divider /> |
|
|
@ -213,7 +218,8 @@ export default { |
|
|
|
this.queryProjectResult() |
|
|
|
this.queryProjectItems() |
|
|
|
this.queryProject() |
|
|
|
}, methods: { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
renderHeader() { |
|
|
|
return ( |
|
|
|
<i class="el-icon-setting" style="color:currentColor" |
|
|
@ -225,7 +231,7 @@ export default { |
|
|
|
this.detailDrawer = true |
|
|
|
}, |
|
|
|
queryProject() { |
|
|
|
this.$api.get(`/user/project/${this.projectKey}`).then(res => { |
|
|
|
this.$api.get(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/${this.projectKey}`).then(res => { |
|
|
|
this.projectData = res.data |
|
|
|
}) |
|
|
|
}, |
|
|
@ -238,7 +244,7 @@ export default { |
|
|
|
this.queryProjectResult() |
|
|
|
}, |
|
|
|
queryProjectResult() { |
|
|
|
this.$api.get('/user/project/result/page', {params: this.queryConditions}).then(res => { |
|
|
|
this.$api.get(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/result/page`, {params: this.queryConditions}).then(res => { |
|
|
|
let {records, total, size} = res.data |
|
|
|
this.projectResultList = records |
|
|
|
this.total = total |
|
|
@ -280,7 +286,7 @@ export default { |
|
|
|
this.$message.error('无附件,无法导出') |
|
|
|
return |
|
|
|
} |
|
|
|
this.$api.get('/user/project/result/download/file', { |
|
|
|
this.$api.get(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/result/download/file`, { |
|
|
|
params: this.queryConditions |
|
|
|
}).then(res => { |
|
|
|
this.$process({ |
|
|
@ -294,7 +300,7 @@ export default { |
|
|
|
this.$message.error('无表单有效反馈结果,无法导出') |
|
|
|
return |
|
|
|
} |
|
|
|
this.$api.get('user/project/result/export', { |
|
|
|
this.$api.get(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/result/export`, { |
|
|
|
params: this.queryConditions, |
|
|
|
responseType: 'blob' |
|
|
|
}).then(res => { |
|
|
@ -310,7 +316,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
queryProjectItems() { |
|
|
|
this.$api.get('/user/project/item/list', {params: {key: this.projectKey, displayType: false}}).then(res => { |
|
|
|
this.$api.get(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/item/list`, {params: {key: this.projectKey, displayType: false}}).then(res => { |
|
|
|
if (res.data) { |
|
|
|
res.data.map(item => { |
|
|
|
_.set(this.projectItemColumns, `field${item.formItemId}`, item.label) |
|
|
|