空气统计,声字典年份打底

This commit is contained in:
weicw
2021-09-25 14:22:40 +08:00
parent 3a1da0013e
commit ad3b1fc7e6
17 changed files with 1017 additions and 38 deletions

View File

@@ -3,7 +3,7 @@
<a-card :bordered="false">
<a-modal
v-model:visible="showEdit"
:title="form.id !== undefined ? '修改' : '添加'"
:title="form.airAqiRelateInfoDictId !== undefined ? '修改' : '添加'"
:confirm-loading="loading"
:width="500"
:body-style="{ paddingBottom: '8px' }"
@@ -22,6 +22,9 @@
<a-form-item label="空气质量指数级别" name="iaqiLevel">
<a-input v-model:value="form.iaqiLevel" placeholder="请输入指标名称" allow-clear />
</a-form-item>
<a-form-item label="空气质量指数表示颜色" name="iaqiRepresentsColor">
<a-input v-model:value="form.iaqiRepresentsColor" placeholder="空气质量指数表示颜色" allow-clear />
</a-form-item>
<a-form-item label="对健康影响情况" name="impactHealth">
<a-input v-model:value="form.impactHealth" placeholder="请输入对健康影响情况" allow-clear />
</a-form-item>
@@ -42,7 +45,7 @@
<ele-pro-table
v-model:selection="selectionList"
ref="table"
row-key="id"
row-key="airAqiRelateInfoDictId"
:datasource="url"
:columns="columns"
:where="where"
@@ -123,7 +126,12 @@ export default {
{
title: "空气质量指数类别",
dataIndex: "iaqiCategory",
}, {
},
{
title: "空气质量指数表示颜色",
dataIndex: "iaqiRepresentsColor",
},
{
title: "空气质量指数级别",
dataIndex: "iaqiLevel",
},
@@ -214,7 +222,7 @@ export default {
// }
const hide = this.$message.loading('请求中..', 0);
const form = this.form;
if (form.id) {
if (form.airAqiRelateInfoDictId) {
updateAqiRelate(form)
.then((res) => {
if (res.data.code == 0) {
@@ -253,7 +261,7 @@ export default {
/* 删除单个 */
remove(row) {
const hide = this.$message.loading('请求中..', 0);
removeAqiRelate(row.id).then((res) => {
removeAqiRelate(row.airAqiRelateInfoDictId).then((res) => {
hide();
if (res.data.code === 0) {
this.$message.success(res.data.msg);
@@ -269,7 +277,7 @@ export default {
/* 批量删除 */
removeBatch() {
const hide = this.$message.loading('请求中..', 0);
const ids = this.selectionList.map((item) => item.id);
const ids = this.selectionList.map((item) => item.airAqiRelateInfoDictId);
removeBatchAqiRelate(ids).then((res) => {
if (res.data.code === 0) {
this.$message.success(res.data.msg);