空气统计,声字典年份打底
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user