|
|
@ -17,42 +17,67 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-button size="small" type="primary " |
|
|
|
@click="handleSearch">查询</el-button> |
|
|
|
</el-form> |
|
|
|
<el-button type="primary" @click="xinzneg" >查看</el-button> |
|
|
|
<el-button type="primary" @click="bianji" >回访记录</el-button> |
|
|
|
|
|
|
|
<!-- <el-button type="primary" @click="xinzneg" >查看</el-button> |
|
|
|
<el-button type="primary" @click="bianji" >回访记录</el-button> --> |
|
|
|
|
|
|
|
<el-table class="m-table-item" :data="tableData" style="width: 100%"> |
|
|
|
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column> |
|
|
|
<el-table-column label="填写时间" prop="createdTime" header-align="center" align="center" type="index" |
|
|
|
width="100"></el-table-column> |
|
|
|
<el-table-column label="姓名" prop="reporterName" header-align="center" align="center" type="index" |
|
|
|
width="50"></el-table-column> |
|
|
|
<el-table-column label="联系电话" prop="reporterMobile" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="回访方式" prop="followUpWay" header-align="center" align="center" type="index" |
|
|
|
width="100"></el-table-column> |
|
|
|
<el-table-column label="文化设施" prop="evaCulturalFacility" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="体育设施" prop="evaSportsFacility" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="生态环境" prop="evaEcologicalEnv" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="社会治安" prop="evaSocialSecurity" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="社会救助" prop="evaSocialAssistance" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="老有所养" prop="evaOldPeopleProvide" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="基础教育" prop="evaBasicEducation" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="病有所医" prop="evaMedical" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="回访状态" prop="followUpStatus" header-align="center" align="center" type="index" |
|
|
|
width="80"></el-table-column> |
|
|
|
<el-table-column label="姓名" prop="reporterName" header-align="center" align="center" width="80" show-overflow-tooltip> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="联系电话" prop="reporterMobile" header-align="center" align="center" |
|
|
|
width="120"></el-table-column> |
|
|
|
<el-table-column label="回访方式" prop="followUpWay" header-align="center" align="center" |
|
|
|
width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{scope.row.followUpWay?scope.row.followUpWay =='1'?'电话回访':scope.row.followUpWay == '2'?'上门回访':'':''}} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="文化设施" prop="evaCulturalFacility" header-align="center" align="center" width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ satisfactionCategory(scope.row, 'evaCulturalFacility') }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="体育设施" prop="evaSportsFacility" header-align="center" align="center" width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ satisfactionCategory(scope.row, 'evaSportsFacility') }} |
|
|
|
</template></el-table-column> |
|
|
|
<el-table-column label="生态环境" prop="evaEcologicalEnv" header-align="center" align="center" width="80"> <template |
|
|
|
slot-scope="scope"> |
|
|
|
{{ satisfactionCategory(scope.row, 'evaEcologicalEnv') }} |
|
|
|
</template> </el-table-column> |
|
|
|
<el-table-column label="社会治安" prop="evaSocialSecurity" header-align="center" align="center" width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ satisfactionCategory(scope.row, 'evaSocialSecurity') }} |
|
|
|
</template> </el-table-column> |
|
|
|
<el-table-column label="社会救助" prop="evaSocialAssistance" header-align="center" align="center" width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ satisfactionCategory(scope.row, 'evaSocialAssistance') }} |
|
|
|
</template> </el-table-column> |
|
|
|
<el-table-column label="老有所养" prop="evaOldPeopleProvide" header-align="center" align="center" width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ satisfactionCategory(scope.row, 'evaOldPeopleProvide') }} |
|
|
|
</template> </el-table-column> |
|
|
|
<el-table-column label="基础教育" prop="evaBasicEducation" header-align="center" align="center" width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ satisfactionCategory(scope.row, 'evaBasicEducation') }} |
|
|
|
</template> </el-table-column> |
|
|
|
<el-table-column label="病有所医" prop="evaMedical" header-align="center" align="center" width="80"> <template |
|
|
|
slot-scope="scope"> |
|
|
|
{{ satisfactionCategory(scope.row, 'evaMedical') }} |
|
|
|
</template> </el-table-column> |
|
|
|
<el-table-column label="回访状态" prop="followUpStatus" header-align="center" align="center" show-overflow-tooltip width="80"> <template |
|
|
|
slot-scope="scope" > |
|
|
|
{{ scope.row.followUpStatus!= null?scope.row.followUpStatus == -1 ?'不接受回访':scope.row.followUpStatus == 1 ?'已回访':'接受回访/未回访':'--' }} |
|
|
|
</template> </el-table-column> |
|
|
|
<el-table-column fixed="right" label="操作" align="center" width="220"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button @click="handleDetail(scope.row)" type="text" size="small">查看</el-button> |
|
|
|
<el-button @click="handleEdit(scope.row)" type="text" size="small">回访记录</el-button> |
|
|
|
<el-button @click="handelFollowUpList(scope.row)" type="text" size="small">回访记录</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@ -86,23 +111,29 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
//创建前 |
|
|
|
created() {}, |
|
|
|
created() { }, |
|
|
|
async mounted() { |
|
|
|
await this.getDicts() |
|
|
|
await this.getTableData() |
|
|
|
if (this.satisfactionCategoryStr) { |
|
|
|
this.formData.satisfactionCategory = this.satisfactionCategoryStr |
|
|
|
this.formData.inspRecordId = this.inspRecordId |
|
|
|
console.log(this.formData.satisfactionCategory); |
|
|
|
this.formData.satisfactionLevel = this.seriesName |
|
|
|
} |
|
|
|
await this.getDicts() |
|
|
|
await this.getTableData() |
|
|
|
}, |
|
|
|
//方法 |
|
|
|
methods: { |
|
|
|
xinzneg(){ |
|
|
|
this.$emit('handelDetail',true) |
|
|
|
handleDetail(row) { |
|
|
|
this.$emit('handelDetail', row.id) |
|
|
|
}, |
|
|
|
handelFollowUpList() { |
|
|
|
this.$emit('handelFollowUpList', true) |
|
|
|
}, |
|
|
|
bianji(){ |
|
|
|
this.$emit('handelFollowUpList',true) |
|
|
|
satisfactionCategory(row, name) { |
|
|
|
if (row[name]) { |
|
|
|
let text = this.dicts.satisfaction_level.find(item => item.value === row[name]).label |
|
|
|
return text |
|
|
|
} |
|
|
|
}, |
|
|
|
async getDicts() { |
|
|
|
try { |
|
|
@ -138,22 +169,23 @@ export default { |
|
|
|
this.pageNo = val; |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
handleSearch(){ |
|
|
|
this.getTableData() |
|
|
|
}, |
|
|
|
async getTableData() { |
|
|
|
console.log(this.formData); |
|
|
|
var params = { |
|
|
|
...this.formData, |
|
|
|
pageNo: this.pageNo, |
|
|
|
pageSize: this.pageSize, |
|
|
|
}; |
|
|
|
console.log(params); |
|
|
|
let url = '/governance/satisfaction/communitySelfInsp/inspResult/list' |
|
|
|
const { data, code, msg } = await requestGet(url, params) |
|
|
|
if (code == 0) { |
|
|
|
this.tableData = data.data; |
|
|
|
this.total = data.total; |
|
|
|
} else { |
|
|
|
console.log(err); |
|
|
|
} |
|
|
|
let params = { |
|
|
|
...this.formData, |
|
|
|
pageNo: this.pageNo, |
|
|
|
pageSize: this.pageSize, |
|
|
|
}; |
|
|
|
let url = '/governance/satisfaction/communitySelfInsp/inspResult/list' |
|
|
|
const { data, code, msg } = await requestGet(url, params) |
|
|
|
if (code == 0) { |
|
|
|
this.tableData = data.list; |
|
|
|
this.total = data.total; |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
//子组件注册 |
|
|
@ -165,7 +197,15 @@ export default { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
period:{ |
|
|
|
period: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
inspRecordId: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
seriesName: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
} |
|
|
|