区域导入导出

This commit is contained in:
weicw
2021-08-25 23:31:05 +08:00
parent fd90065205
commit f68ca5f61d
20 changed files with 1734 additions and 2026 deletions

View File

@@ -7,6 +7,12 @@
<!-- 搜索表单 -->
<a-form layout="inline" :model="where" :labelCol="{ offset: 1}">
<a-form-item label="区域等级:">
<a-select v-model:value="where.regionLevel" allowClear placeholder="未选择">
<a-select-option :value="'市级'">市级</a-select-option>
<a-select-option :value="'县级'">县级</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="审核状态:">
<a-select v-model:value="where.checked" allowClear placeholder="未选择">
<a-select-option :value="1">已审核</a-select-option>
@@ -97,6 +103,7 @@
CheckOutlined,
EditOutlined
} from '@ant-design/icons-vue';
import { Modal } from 'ant-design-vue';
import {
pageBillUrl,
// saveZoneNoiseBill,
@@ -137,6 +144,11 @@
},
},
{
title: '区域等级',
dataIndex: 'regionLevel',
sorter: true,
},
{
title: '条目',
dataIndex: 'recordSize',
@@ -166,11 +178,6 @@
customRender: ({
text
}) => this.$util.toDateString(text)
},
{
title: '创建人',
dataIndex: 'username',
sorter: true
},
{
title: '审核状态',
@@ -180,6 +187,12 @@
customRender: 'checked',
},
},
{
title: '创建人',
dataIndex: 'username',
sorter: true,
},
// {
// title: '更新时间',
@@ -248,9 +261,15 @@
}).then(res => {
if (res.data.code == 0) {
record.checked = checked
this.$message.success(res.data.msg);
Modal.success({
title: "提示",
content: checked?"审核成功":"撤回成功"
});
} else {
this.$message.error(res.data.msg);
Modal.error({
title: "提示",
content: res.data.msg
});
}
}).catch((e) => {
this.$message.error(e.message);