监管端消防安全统计新增是否标点

pet_li_6.6
limingyu 2024-05-09 15:17:33 +08:00
parent 0fdb05467c
commit b9a46864b5
1 changed files with 28 additions and 2 deletions

View File

@ -13,6 +13,13 @@
<el-input v-model="FIRE_POINT_CODE" placeholder="请输入关键字"/> <el-input v-model="FIRE_POINT_CODE" placeholder="请输入关键字"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4">
<el-form-item label="是否标点" label-width="110px">
<el-select v-model="IS_PUNCTUATION" clearable placeholder="请选择" style="width: 100%;">
<el-option v-for="item in punctuationStatusList" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label-width="10px"> <el-form-item label-width="10px">
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery"> <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
@ -47,6 +54,12 @@
<el-table-column prop="DEVICE_COUNT" label="点位下消防器材数"/> <el-table-column prop="DEVICE_COUNT" label="点位下消防器材数"/>
<el-table-column prop="DEPARTMENT_NAME" label="负责部门"/> <el-table-column prop="DEPARTMENT_NAME" label="负责部门"/>
<el-table-column prop="USERNAME" label="负责人"/> <el-table-column prop="USERNAME" label="负责人"/>
<el-table-column prop="ISPUNCTUATION" label="是否标点">
<template slot-scope="{row}">
<el-tag v-if="row.ISPUNCTUATION == 0" type="success"></el-tag>
<el-tag v-else type="danger"></el-tag>
</template>
</el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button <el-button
@ -146,7 +159,18 @@ export default {
value: 'id', value: 'id',
children: 'nodes', children: 'nodes',
label: 'name' label: 'name'
},
punctuationStatusList: [
{
value: 0,
label: '是'
},
{
value: 1,
label: '否'
} }
],
IS_PUNCTUATION: ''
} }
}, },
watch: { watch: {
@ -195,7 +219,8 @@ export default {
{ {
FIRE_POINT_NAME: this.FIRE_POINT_NAME, FIRE_POINT_NAME: this.FIRE_POINT_NAME,
FIRE_POINT_CODE: this.FIRE_POINT_CODE, FIRE_POINT_CODE: this.FIRE_POINT_CODE,
CORPINFO_ID: this.getInfo().CORPINFO_ID CORPINFO_ID: this.getInfo().CORPINFO_ID,
IS_PUNCTUATION: this.IS_PUNCTUATION
} }
).then((data) => { ).then((data) => {
this.listLoading = false this.listLoading = false
@ -207,6 +232,7 @@ export default {
}, goKeyReset() { }, goKeyReset() {
this.FIRE_POINT_NAME = '' this.FIRE_POINT_NAME = ''
this.FIRE_POINT_CODE = '' this.FIRE_POINT_CODE = ''
this.IS_PUNCTUATION = ''
this.getList() this.getList()
}, },
getDict() { getDict() {