|
@@ -23,10 +23,9 @@
|
|
<span>{{ row.checkTitle }}</span>
|
|
<span>{{ row.checkTitle }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
- <el-table-column prop="timeSpan" label="频率" header-align="center" align="center" width="120">
|
|
|
|
|
|
+ <el-table-column prop="timeSpan" label="检查频率" header-align="center" align="center" width="120">
|
|
<template v-slot="{row}">
|
|
<template v-slot="{row}">
|
|
- <span style="color: #20f704">{{ row.cycleTitle }}</span>
|
|
|
|
|
|
+ <span style="color: #20f704">{{ row.checkCount }}次/{{ row.checkCycleUnit|checkCycleUnit }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
@@ -101,7 +100,11 @@ export default {
|
|
Pagination,
|
|
Pagination,
|
|
CheckDef
|
|
CheckDef
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ filters: {
|
|
|
|
+ checkCycleUnit(val) {
|
|
|
|
+ return ['非周期', '每日', '每周', '每月', '每年'][val]
|
|
|
|
+ }
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
dataList: [],
|
|
dataList: [],
|
|
@@ -110,7 +113,8 @@ export default {
|
|
conditions: {
|
|
conditions: {
|
|
page: 1,
|
|
page: 1,
|
|
limit: 10,
|
|
limit: 10,
|
|
- checkTitle: ''
|
|
|
|
|
|
+ checkTitle: '',
|
|
|
|
+ goafName: ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -118,6 +122,10 @@ export default {
|
|
this.getData()
|
|
this.getData()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ loadData({ goafName }) {
|
|
|
|
+ this.conditions.goafName = goafName
|
|
|
|
+ this.getData()
|
|
|
|
+ },
|
|
// Get Data From Server
|
|
// Get Data From Server
|
|
getData() {
|
|
getData() {
|
|
this.listLoading = true
|
|
this.listLoading = true
|
|
@@ -143,13 +151,13 @@ export default {
|
|
|
|
|
|
// 删除
|
|
// 删除
|
|
handleDelete(data) {
|
|
handleDelete(data) {
|
|
- const { riskPointId, checkTitle, checkDefId } = data
|
|
|
|
- this.$confirm(`此操作将删除该数据${checkTitle}, 是否继续?`, '提示', {
|
|
|
|
|
|
+ const { checkTitle, checkDefId } = data
|
|
|
|
+ this.$confirm(`此操作将删除该数据【${checkTitle}】, 是否继续?`, '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- deleteCheckDefById(riskPointId, checkDefId).then((resp) => {
|
|
|
|
|
|
+ deleteCheckDefById(checkDefId).then((resp) => {
|
|
const { code, msg } = resp
|
|
const { code, msg } = resp
|
|
if (code === 0) {
|
|
if (code === 0) {
|
|
this.getData()
|
|
this.getData()
|
|
@@ -175,8 +183,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.$message.error(msg)
|
|
this.$message.error(msg)
|
|
}
|
|
}
|
|
- }).catch((error) => {
|
|
|
|
- console.log(error)
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|