政策申办统计导入

This commit is contained in:
liuye
2022-04-25 11:57:02 +08:00
parent 3ce7f47a6b
commit ac99e83459
3 changed files with 63 additions and 37 deletions

View File

@@ -32,7 +32,7 @@
<div class="content">
<ai-search-bar>
<template #right>
<el-input size="small" placeholder="请输入标题" v-model="search.con" clearable @change="page.current=1,getTableData()"/>
<el-input size="small" placeholder="请输入标题" v-model="search.title" clearable @change="page.current=1,getTableData()"/>
</template>
</ai-search-bar>
<ai-search-bar>
@@ -44,7 +44,7 @@
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@getList="getTableData" :col-configs="colConfigs" :dict="dict"
@selection-change="v=>ids=v.map(e=>e.id)">
<el-table-column slot="options" label="操作" fixed="right" align="center">
<el-table-column slot="options" label="操作" fixed="right" align="center" width='150px'>
<template slot-scope="{row}">
<el-button type="text" @click="showDetail(row.id)">编辑</el-button>
<el-button type="text" @click="handleDelete(row.id)">删除</el-button>
@@ -93,16 +93,16 @@ export default {
},
data() {
return {
search: {name: ""},
search: {title: ""},
page: {current: 1, size: 10, total: 0},
newPage: {current: 1, size: 10, total: 0},
tableData: [],
colConfigs: [
{label: "标题", prop: "name", align: "center"},
{label: "地区", prop: "sex", dict: 'sex', align: "center"},
{label: "浏览次数", prop: "age", align: "center"},
{label: "发布人", prop: "nation", align: "center", dict: "fpNation"},
{label: "发布时间", prop: "education", align: "center", dict: "fpEducation"},
{label: "标题", prop: "title", align: "center"},
{label: "地区", prop: "areaName", align: "center", width: '150px'},
{label: "浏览次数", prop: "viewCount", align: "center", width: '100px'},
{label: "发布人", prop: "createUserName", align: "center", width: '100px'},
{label: "发布时间", prop: "createTime", align: "center", width: '100px'},
{slot: "options"}
],
colConfigsNew: [
@@ -113,9 +113,6 @@ export default {
dialog: false,
form: {},
rules: {
// type0: [{required: true, message: "请输入板块名称", trigger: "change"}],
// type1: [{required: true, message: "请输入模块名称", trigger: "change"}],
// type2: [{required: true, message: "请输入分类名称", trigger: "change"}],
categoryName: '',
showIndex: [{required: true, message: "请输入排序", trigger: "change"}],
},
@@ -132,7 +129,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/app/apppreventionreturntopoverty/list", null, {
this.instance.post("/app/apppublicityinfo/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -145,8 +142,8 @@ export default {
this.$router.push({query: {id: id, parentId: this.typeList[this.typeIndex].id}, hash: "#add"})
},
handleDelete(ids) {
this.$confirm("是否删除监测对象").then(() => {
this.instance.post("/app/apppreventionreturntopoverty/delete", null, {
this.$confirm("是否删除该条宣传资讯信息").then(() => {
this.instance.post("/app/apppublicityinfo/delete", null, {
params: {ids: ids?.toString()}
}).then(res => {
if (res?.code == 0) {