From bc0de4533221f17a65124f4812cad6290c2a8c93 Mon Sep 17 00:00:00 2001
From: lancer <1905818361@qq.com>
Date: Wed, 10 Nov 2021 11:25:49 +0800
Subject: [PATCH 1/2] init
---
src/api/modules/api.js | 8 ++++
src/views/Equipment/index.vue | 79 +++++++++++++++++++----------------
src/views/Equipment/state.vue | 10 ++---
vue.config.js | 2 +-
4 files changed, 57 insertions(+), 42 deletions(-)
diff --git a/src/api/modules/api.js b/src/api/modules/api.js
index 0d0ead5..c0d5e37 100644
--- a/src/api/modules/api.js
+++ b/src/api/modules/api.js
@@ -572,6 +572,14 @@ export function equipmentAdd(data) {
data
})
}
+// 验收设备
+export function equipmentAcceptance(data) {
+ return request({
+ url: 'autoSR/zk/equipment/acceptance',
+ method:'post',
+ data
+ })
+}
// 归还设备
export function equipmentUnbind(data) {
return request({
diff --git a/src/views/Equipment/index.vue b/src/views/Equipment/index.vue
index 7366c6e..95ae9a3 100644
--- a/src/views/Equipment/index.vue
+++ b/src/views/Equipment/index.vue
@@ -367,37 +367,38 @@
归还
- 转写方式
- 自动转写
验收
恢复正常
- 绑定
- 删除
@@ -1199,23 +1200,31 @@ export default {
});
},
//验收
- acceptance() {
+ acceptance(row) {
this.$confirm("确认验收吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
- this.$message({
- type: "success",
- message: "验收成功!",
- });
+ this.$api.api
+ .equipmentAcceptance({
+ imeis: row.imei,
+ })
+ .then((res) => {
+ this.$message({
+ type: "success",
+ message: "验收成功!",
+ });
+ this.equipmentManagement();
+ });
})
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消验收",
- });
+ .catch((err) => {
+ // this.$message({
+ // type: "info",
+ // message: "已取消验收",
+ // });
+ console.log(err);
});
},
// 自动转写开关
@@ -1244,10 +1253,10 @@ export default {
});
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消",
- });
+ // this.$message({
+ // type: "info",
+ // message: "已取消",
+ // });
});
},
// 转写开关
@@ -1278,10 +1287,10 @@ export default {
});
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消",
- });
+ // this.$message({
+ // type: "info",
+ // message: "已取消",
+ // });
});
},
//归还
@@ -1305,10 +1314,10 @@ export default {
});
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消归还",
- });
+ // this.$message({
+ // type: "info",
+ // message: "已取消归还",
+ // });
});
},
//删除
@@ -1332,10 +1341,10 @@ export default {
});
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消删除",
- });
+ // this.$message({
+ // type: "info",
+ // message: "已取消删除",
+ // });
});
},
handleSizeChange(val) {
diff --git a/src/views/Equipment/state.vue b/src/views/Equipment/state.vue
index 037d8fd..184d33e 100644
--- a/src/views/Equipment/state.vue
+++ b/src/views/Equipment/state.vue
@@ -280,7 +280,7 @@
align="center"
>
- {{ row.simAudioUploadStatus ? "上传中" : "无上传" }}
+ {{ row.simAudioUploadStatus=='true' ? "上传中" : "无上传" }}
@@ -330,11 +330,9 @@
{{
- row.lightStatus == 1
- ? "正常关机"
- : row.lightStatus == 1
- ? "低电关机"
- : "异常关机"
+ row.offStatus == 1
+ ? "正常关机": row.offStatus == 2
+ ? "低电关机":row.offStatus == 3? "异常关机":''
}}
diff --git a/vue.config.js b/vue.config.js
index 87daeff..5a08e91 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -7,7 +7,7 @@ const url = 'http://39.97.167.65:9999' //测试
// const url = 'http://192.168.31.169:9999' //长龙
// const url = 'http://192.168.31.134:9999' //嘉豪
// const url = 'http://192.168.31.100:9999' //王笑
-// const url = 'http://jrcd6b.natappfree.cc' //王笑
+// const url = 'http://yuuapd.natappfree.cc' //王笑
const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']
From c4e6334d135bf2f78958a1ed0924a4f0d248b2a2 Mon Sep 17 00:00:00 2001
From: lancer <1905818361@qq.com>
Date: Wed, 10 Nov 2021 17:55:14 +0800
Subject: [PATCH 2/2] init
---
src/api/modules/api.js | 8 +
src/page/index/top/index.vue | 4 +-
src/views/Customer/AgentManagement.vue | 4 +-
src/views/Customer/CompanyRecord.vue | 8 +-
src/views/Equipment/state.vue | 10 +-
src/views/admin/app/index.vue | 300 +++++++++++++++++++++++++
src/views/admin/user/index.vue | 46 ++--
src/views/building/index.vue | 13 +-
vue.config.js | 4 +-
9 files changed, 365 insertions(+), 32 deletions(-)
create mode 100644 src/views/admin/app/index.vue
diff --git a/src/api/modules/api.js b/src/api/modules/api.js
index c0d5e37..8c5a569 100644
--- a/src/api/modules/api.js
+++ b/src/api/modules/api.js
@@ -968,3 +968,11 @@ export function receptionStatistics(query) {
params:query
})
}
+// 小程序菜单管理
+export function apiTree(query) {
+ return request({
+ url: 'admin/menu/apiTree',
+ method:'get',
+ params:query
+ })
+}
diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue
index 95140a9..7704e2a 100644
--- a/src/page/index/top/index.vue
+++ b/src/page/index/top/index.vue
@@ -118,9 +118,9 @@
首页
-
+
界面设置
diff --git a/src/views/Customer/AgentManagement.vue b/src/views/Customer/AgentManagement.vue
index 6d62f19..df37abf 100644
--- a/src/views/Customer/AgentManagement.vue
+++ b/src/views/Customer/AgentManagement.vue
@@ -123,8 +123,8 @@
width="150"
align="center">
- 在服务期内({{scope.row.residueTime}})
- 过期({{scope.row.residueTime}})
+ 在服务期内({{scope.row.residueTime*1>=0?scope.row.residueTime:scope.row.residueTime*-1}})
+ 过期({{scope.row.residueTime*1>=0?scope.row.residueTime:scope.row.residueTime*-1}})
禁用
diff --git a/src/views/Customer/CompanyRecord.vue b/src/views/Customer/CompanyRecord.vue
index fad475a..eef7db3 100644
--- a/src/views/Customer/CompanyRecord.vue
+++ b/src/views/Customer/CompanyRecord.vue
@@ -4,10 +4,10 @@
-
代理商名称:
+
公司名称:
@@ -49,13 +49,13 @@
align="center"
>
-
-
+ -->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/user/index.vue b/src/views/admin/user/index.vue
index 98907ff..8d7ed80 100644
--- a/src/views/admin/user/index.vue
+++ b/src/views/admin/user/index.vue
@@ -314,7 +314,7 @@
>编辑
-
-
+
+
@@ -489,7 +489,7 @@
-
+
-
+
是
否
@@ -555,7 +555,7 @@
-
+
-
+
-
使用状态:
+
服务状态:
-
-
+
-
- {{ row.serviceStatus == 0 ? "在服务期内" : "已过期" }}
+
+
+ 在服务期内({{scope.row.residueTime*1>=0?scope.row.residueTime:scope.row.residueTime*-1}})
+ 过期({{scope.row.residueTime*1>=0?scope.row.residueTime:scope.row.residueTime*-1}})
+ 禁用
diff --git a/vue.config.js b/vue.config.js
index 1b7d06c..b363f24 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -5,9 +5,9 @@
// const url = 'http://pigx-gateway'
// const url = 'http://39.97.167.65:9999' //测试
// const url = 'http://192.168.31.169:9999' //长龙
-const url = 'http://192.168.31.134:9999' //嘉豪
+// const url = 'http://192.168.31.134:9999' //嘉豪
// const url = 'http://192.168.31.100:9999' //王笑
-// const url = 'http://yuuapd.natappfree.cc' //王笑
+const url = 'http://yuuapd.natappfree.cc' //王笑
const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']