|
|
@ -105,13 +105,13 @@ |
|
|
|
|
|
|
|
<div class="m-table"> |
|
|
|
<div class="div_btn"> |
|
|
|
<el-button type="primary" size="small" @click="handleAdd" |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
icon="el-icon-plus" |
|
|
|
size="small" |
|
|
|
@click="handleAdd" |
|
|
|
>新增政策</el-button |
|
|
|
> |
|
|
|
|
|
|
|
<!-- <el-button @click="handleExport" |
|
|
|
class="diy-button--reset" |
|
|
|
size="small">导出</el-button> --> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-table |
|
|
@ -121,50 +121,58 @@ |
|
|
|
class="m-table-item" |
|
|
|
style="width: 100%" |
|
|
|
:height="maxTableHeight" |
|
|
|
@select-all="selectAll" |
|
|
|
@selection-change="handelSelection" |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
label="序号" |
|
|
|
type="selection" |
|
|
|
fixed="left" |
|
|
|
type="index" |
|
|
|
align="center" |
|
|
|
width="50" |
|
|
|
/> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="policyLevelName" |
|
|
|
label="政策级别" |
|
|
|
width="100" |
|
|
|
align="center" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="title" |
|
|
|
align="center" |
|
|
|
min-width="150" |
|
|
|
label="政策标题" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
></el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="policyLevelName" |
|
|
|
label="政策级别" |
|
|
|
width="100" |
|
|
|
align="center" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ |
|
|
|
scope.row.policyLevel == 0 |
|
|
|
? "市级" |
|
|
|
: scope.row.policyLevel == 1 |
|
|
|
? "区级" |
|
|
|
: "街道级" |
|
|
|
}} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="content" |
|
|
|
prop="resiSearchTagName" |
|
|
|
align="center" |
|
|
|
min-width="250" |
|
|
|
label="政策内容" |
|
|
|
label="符合政策人员标签" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="serviceTimeStart" |
|
|
|
prop="createdTime" |
|
|
|
align="center" |
|
|
|
width="300" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
label="政策时间" |
|
|
|
label="政策发布时间" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.startDate }}-{{ scope.row.endDate }}</span> |
|
|
|
<span>{{ scope.row.createdTime.substr(0, 10) }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
@ -184,32 +192,20 @@ |
|
|
|
|
|
|
|
<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 @click="handleDetail(scope.row)" type="text" size="small" |
|
|
|
>详情</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
@click="handleEdit(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
<el-button @click="handleEdit(scope.row)" type="text" size="small" |
|
|
|
>编辑</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
@click="handleCopy(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
<el-button @click="handleCopy(scope.row)" type="text" size="small" |
|
|
|
>复制</el-button |
|
|
|
> |
|
|
|
<!-- <el-button @click="handlePersonList(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--edit">人员名单</el-button> --> |
|
|
|
<el-button |
|
|
|
@click="handleDel(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
<el-button @click="handleDel(scope.row)" type="text" size="small" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
@ -290,7 +286,11 @@ export default { |
|
|
|
tableLoading: false, |
|
|
|
user: {}, |
|
|
|
agencyId: "", |
|
|
|
policyLevelArray: [], //政策级别下拉 |
|
|
|
policyLevelArray: [ |
|
|
|
{ value: "0", label: "市级" }, |
|
|
|
{ value: "1", label: "区级" }, |
|
|
|
{ value: "2", label: "街道级" }, |
|
|
|
], //政策级别下拉 |
|
|
|
tableData: [], |
|
|
|
|
|
|
|
statusArray: [ |
|
|
@ -323,6 +323,8 @@ export default { |
|
|
|
|
|
|
|
showPersonList: false, |
|
|
|
ruleList: [], |
|
|
|
|
|
|
|
selection:[] |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -338,7 +340,6 @@ export default { |
|
|
|
console.log(this.$store.state); |
|
|
|
this.user = this.$store.state.user; |
|
|
|
this.agencyId = this.user.agencyId; |
|
|
|
this.getDictOptions(); |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -382,22 +383,6 @@ export default { |
|
|
|
// this.showPersonList = true; |
|
|
|
// }, |
|
|
|
async getDictOptions() { |
|
|
|
// 政策级别下拉 |
|
|
|
this.$http |
|
|
|
.post("/sys/dict/data/dictlist", { |
|
|
|
dictType: "policy_level", |
|
|
|
}) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg); |
|
|
|
} else { |
|
|
|
this.policyLevelArray = res.data; |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
return this.$message.error("网络错误"); |
|
|
|
}); |
|
|
|
|
|
|
|
// 政策分类下拉(其实是获取的共性服务分类) |
|
|
|
this.$http |
|
|
|
.get("/governance/commonServiceType/selectList/0") |
|
|
@ -472,10 +457,20 @@ export default { |
|
|
|
this.$message.error("操作失败!"); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
selectAll(selection) { |
|
|
|
this.selection = selection; |
|
|
|
if (selection.length > 0) { |
|
|
|
this.selAllFlag = true; |
|
|
|
} else { |
|
|
|
this.selAllFlag = false; |
|
|
|
} |
|
|
|
}, |
|
|
|
handelSelection(row){ |
|
|
|
this.selection = row |
|
|
|
}, |
|
|
|
async getTableData() { |
|
|
|
this.tableLoading = true; |
|
|
|
const url = "/governance/policy/list"; |
|
|
|
const url = "/governance/policy/policyList"; |
|
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icServiceProject/service/recordList"; |
|
|
|
const { pageSize, pageNo, formData } = this; |
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
|