|
|
@@ -1,7 +1,7 @@ |
|
|
|
<!-- |
|
|
|
* @Author: your name |
|
|
|
* @Date: 2021-12-07 15:14:51 |
|
|
|
* @LastEditTime: 2021-12-08 11:25:34 |
|
|
|
* @LastEditTime: 2021-12-08 14:27:16 |
|
|
|
* @LastEditors: Please set LastEditors |
|
|
|
* @Description: 自动报警分类 |
|
|
|
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\off-limits-main\off-limits-type\newIndex.vue |
|
|
@@ -17,7 +17,7 @@ |
|
|
|
<el-form :model="currentAddType" ref="currentAddType"> |
|
|
|
<el-form-item label="类型" prop="kindId"> |
|
|
|
<el-radio v-model="currentAddType.kindId" label="1">关键字</el-radio> |
|
|
|
<el-radio v-model="currentAddType.kindId" label="2">地点</el-radio> |
|
|
|
<el-radio v-model="currentAddType.kindId" label="2">固定地点</el-radio> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item |
|
|
|
label="类别" |
|
|
@@ -119,7 +119,7 @@ export default { |
|
|
|
title: "操作", |
|
|
|
actions: [ |
|
|
|
{ fnName: "update", title: "修改", type: "primary" }, |
|
|
|
{ fnName: "delete", title: "删除", type: "error" }, |
|
|
|
//{ fnName: "delete", title: "删除", type: "error" }, |
|
|
|
], |
|
|
|
}, |
|
|
|
], |
|
|
@@ -162,7 +162,7 @@ export default { |
|
|
|
var data = { |
|
|
|
categoryId: "", //分类ID。(不为空:编辑操作;为空:新增操作) |
|
|
|
categoryName: this.currentAddType.typeLabel, //分类名称 |
|
|
|
//kindId:1, //parseInt(this.currentAddType.kindId), |
|
|
|
kindId:parseInt(this.currentAddType.kindId), |
|
|
|
status: true, |
|
|
|
}; |
|
|
|
|
|
|
@@ -179,7 +179,7 @@ export default { |
|
|
|
var data = { |
|
|
|
categoryId: this.currentAddType.categoryId, //分类ID。(不为空:编辑操作;为空:新增操作) |
|
|
|
categoryName: this.currentAddType.typeLabel, //分类名称 |
|
|
|
//kindId:1, //parseInt(this.currentAddType.kindId), |
|
|
|
kindId:parseInt(this.currentAddType.kindId), |
|
|
|
status: true, |
|
|
|
}; |
|
|
|
|
|
|
@@ -210,9 +210,9 @@ export default { |
|
|
|
this.total=res.count; |
|
|
|
this.list.forEach((x) => { |
|
|
|
if (x.kindId === 2) { |
|
|
|
x.kindIdName = "关键字"; |
|
|
|
x.kindIdName = "固定地点"; |
|
|
|
} else { |
|
|
|
x.kindIdName = "地址"; |
|
|
|
x.kindIdName = "关键字"; |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|