Browse Source

Merge branch 'bugfix-status' into develop

master
2183691628 2 years ago
parent
commit
bfc640bdde
5 changed files with 19 additions and 18 deletions
  1. +3
    -2
      README.md
  2. +3
    -3
      src/utils/checkout-status-to-num.js
  3. +2
    -2
      src/views/off-limits-manage/alarm-recognition/index.vue
  4. +5
    -5
      src/views/off-limits-manage/common-exception/index.vue
  5. +6
    -6
      src/views/off-limits-manage/user-exception/index.vue

+ 3
- 2
README.md View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2021-11-29 11:14:13 * @Date: 2021-11-29 11:14:13
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-23 10:23:10
* @LastEditTime: 2021-12-23 11:34:51
* @FilePath: \GpsCardAdmin\README.md * @FilePath: \GpsCardAdmin\README.md
* @description: * @description:
--> -->
@@ -118,4 +118,5 @@ IMPROVEMENT
`2021年12月23日` `2021年12月23日`
IMPROVEMENT IMPROVEMENT
- 优化 用户例外和告警查询的搜索条件 - 优化 用户例外和告警查询的搜索条件
- 修复 用户例外弹窗标题显示错误的问题
- 修复 用户例外弹窗标题显示错误的问题
- 修改 用户和通用例外状态选择显示

+ 3
- 3
src/utils/checkout-status-to-num.js View File

@@ -1,16 +1,16 @@
/* /*
* @Date: 2021-12-07 10:45:23 * @Date: 2021-12-07 10:45:23
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-22 17:47:00
* @LastEditTime: 2021-12-23 11:23:00
* @FilePath: \GpsCardAdmin\src\utils\checkout-status-to-num.js * @FilePath: \GpsCardAdmin\src\utils\checkout-status-to-num.js
* @description: 将接口里面的kindId转化为文字 * @description: 将接口里面的kindId转化为文字
*/ */
exports.install = function (Vue, options) { exports.install = function (Vue, options) {
Vue.prototype.checkoutStatusToNum = function (value) { Vue.prototype.checkoutStatusToNum = function (value) {
if (value === true) { if (value === true) {
return 2
} else if (value === false) {
return 1 return 1
} else if (value === false) {
return 0
} }
} }
} }

+ 2
- 2
src/views/off-limits-manage/alarm-recognition/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2021-11-30 09:44:24 * @Date: 2021-11-30 09:44:24
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-14 09:24:43
* @LastEditTime: 2021-12-23 11:21:28
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\alarm-recognition\index.vue * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\alarm-recognition\index.vue
* @description: * @description:
--> -->
@@ -102,7 +102,7 @@
</el-form-item> </el-form-item>
<!-- 状态 --> <!-- 状态 -->
<el-form-item label="状态" prop="status" required> <el-form-item label="状态" prop="status" required>
<el-switch v-model="form.status" active-text="打开" inactive-text="关闭"></el-switch>
<el-switch v-model="form.status" active-text="启用" inactive-text="关闭"></el-switch>
</el-form-item> </el-form-item>
<!-- 创建时间 --> <!-- 创建时间 -->
<el-form-item label="创建时间" prop="timestamp" v-show="false"> <el-form-item label="创建时间" prop="timestamp" v-show="false">


+ 5
- 5
src/views/off-limits-manage/common-exception/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2021-11-30 09:44:24 * @Date: 2021-11-30 09:44:24
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-22 18:19:16
* @LastEditTime: 2021-12-23 11:24:24
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\common-exception\index.vue * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\common-exception\index.vue
* @description: * @description:
--> -->
@@ -104,7 +104,7 @@
</el-form-item> </el-form-item>
<!-- 状态 --> <!-- 状态 -->
<el-form-item label="状态" prop="status" required> <el-form-item label="状态" prop="status" required>
<el-switch v-model="form.status" active-text="例外" inactive-text="启用"></el-switch>
<el-switch v-model="form.status" active-text="启用" inactive-text="关闭"></el-switch>
<!-- <el-radio-group v-model="form.status" size="medium"> <!-- <el-radio-group v-model="form.status" size="medium">
<el-radio border :label="0">未启用</el-radio> <el-radio border :label="0">未启用</el-radio>
<el-radio border :label="1">黑名单</el-radio> <el-radio border :label="1">黑名单</el-radio>
@@ -206,7 +206,7 @@ export default {
content: "", content: "",
createTime: "", createTime: "",
categoryId: "", categoryId: "",
status: false
status: true
}; };
}, },
// 添加 // 添加
@@ -266,7 +266,7 @@ export default {
this.form.model = row.categoryId; this.form.model = row.categoryId;
this.form.id = row.id; this.form.id = row.id;
this.form.content = row.content; this.form.content = row.content;
this.form.status = row.status === '启用' ? false : true;
this.form.status = row.status === '启用' ? true : false;
}, },
update(formName) { update(formName) {
console.log("update"); console.log("update");
@@ -345,7 +345,7 @@ export default {
createTime: m.createTime, createTime: m.createTime,
kindId: m.kindId, kindId: m.kindId,
categoryId: m.categoryId, categoryId: m.categoryId,
status: m.status === 1 ? '启用' : '例外',
status: m.status === 0 ? '关闭' : '启用',
id: m.id id: m.id
}; };
}); });


+ 6
- 6
src/views/off-limits-manage/user-exception/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2021-11-30 09:44:24 * @Date: 2021-11-30 09:44:24
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-23 10:25:04
* @LastEditTime: 2021-12-23 11:29:20
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\user-exception\index.vue * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\user-exception\index.vue
* @description: * @description:
--> -->
@@ -81,7 +81,7 @@
</el-form-item> </el-form-item>
<!-- 状态 --> <!-- 状态 -->
<el-form-item label="状态" prop="status" required> <el-form-item label="状态" prop="status" required>
<el-switch v-model="form.status" active-text="例外" inactive-text="启用"></el-switch>
<el-switch v-model="form.status" active-text="启用" inactive-text="关闭"></el-switch>
<!-- <el-radio-group v-model="form.status" size="medium"> <!-- <el-radio-group v-model="form.status" size="medium">
<el-radio border :label="0">未启用</el-radio> <el-radio border :label="0">未启用</el-radio>
<el-radio border :label="1">黑名单</el-radio> <el-radio border :label="1">黑名单</el-radio>
@@ -210,7 +210,7 @@ export default {
content: "", content: "",
createTime: "", createTime: "",
categoryId: "", categoryId: "",
status: false
status: true
}; };
}, },
// 增加 // 增加
@@ -266,7 +266,7 @@ export default {
this.dialogTitle = "修改用户例外"; this.dialogTitle = "修改用户例外";
this.form = Object.assign({}, row); // copy obj this.form = Object.assign({}, row); // copy obj
this.form.createTime = new Date(this.form.createTime); this.form.createTime = new Date(this.form.createTime);
this.form.status = row.status === '启用' ? false : true;
this.form.status = row.status === '启用' ? true : false;
}, },
update(formName) { update(formName) {
let reqBody = { let reqBody = {
@@ -335,7 +335,7 @@ export default {
console.log("row", row); console.log("row", row);
this.dialogTrans = true; this.dialogTrans = true;
this.content = row.content; this.content = row.content;
this.form.status = row.status === '启用' ? 1 : 2;
this.form.status = row.status === '启用' ? 1 : 0;
}, },
// 确定转通用例外 // 确定转通用例外
onTransConfirm() { onTransConfirm() {
@@ -386,7 +386,7 @@ export default {
glat: m.glat, glat: m.glat,
glng: m.glng, glng: m.glng,
keyId: m.keyId, keyId: m.keyId,
status: m.status === 1 ? '启用' : '例外'
status: m.status === 0 ? '关闭' : '启用'
}; };
}); });
this.total = res.count; this.total = res.count;


Loading…
Cancel
Save