南昌市物联网技防平台-前端
tangzy
2021-03-11 ffb067cfe1a7207ae86ca73967da5226ef88ae4c
实时报警添加警情状态
2 files modified
41 ■■■■■ changed files
src/views/realTimePolice/real.vue 25 ●●●●● patch | view | raw | blame | history
src/views/realTimePolice/realHistory.vue 16 ●●●●● patch | view | raw | blame | history
src/views/realTimePolice/real.vue
@@ -60,6 +60,12 @@
          }}
        </el-tag>
      </template>
      <template slot-scope="{ row }" slot="cid">
        <el-tag>{{
            row.cid == "1" ? "事件发生" : row.cid == "3" ? "是" : "事件恢复"
          }}
        </el-tag>
      </template>
      <template slot-scope="{ type, size, row }" slot="menu">
        <el-button
@@ -496,7 +502,24 @@
              span: 3,
              labelWidth: "0",
              className: "cityClass3"
            }
            },
            {
              label: "警情状态",
              searchSpan: 3,
              prop: "cid",
              slot: true,
              type: "select",
              dicData: [
                {
                  label: "事件发生",
                  value: '1'
                },
                {
                  label: "事件恢复",
                  value: '3'
                }
              ],
            },
          ]
        },
        data: [],
src/views/realTimePolice/realHistory.vue
@@ -198,6 +198,22 @@
              labelWidth: '0',
              className: 'cityClass3'
            },
            {
              label: "警情状态",
              searchSpan: 3,
              prop: "cid",
              type: "select",
              dicData: [
                {
                  label: "事件发生",
                  value: '1'
                },
                {
                  label: "事件恢复",
                  value: '3'
                }
              ],
            },
          ]
        },