|
@@ -242,6 +242,17 @@
|
|
></el-switch>
|
|
></el-switch>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="接收微信通知">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <el-switch
|
|
|
|
+ v-model="row.wechatNoticeEnabled"
|
|
|
|
+ @change="enabledTo(row,'wechatNotice','')"
|
|
|
|
+ active-color="#13ce66"
|
|
|
|
+ inactive-color="#ff4949"
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ ></el-switch>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="openId" label="微信openid" width="180"></el-table-column>
|
|
<el-table-column prop="openId" label="微信openid" width="180"></el-table-column>
|
|
<el-table-column label="操作" width="300" fixed="right">
|
|
<el-table-column label="操作" width="300" fixed="right">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
@@ -786,6 +797,14 @@ export default {
|
|
},
|
|
},
|
|
enabledTo(row, type, value) {
|
|
enabledTo(row, type, value) {
|
|
var self = this;
|
|
var self = this;
|
|
|
|
+
|
|
|
|
+ if(type=="wechatNotice"){
|
|
|
|
+ var formData = new FormData();
|
|
|
|
+ formData.append("id", row.id);
|
|
|
|
+
|
|
|
|
+ personInfoApi.enabledWechatNotice(formData);
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
this.$confirm("该操作会对设备上的信息进行操作,请确认?", "提示", {
|
|
this.$confirm("该操作会对设备上的信息进行操作,请确认?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
@@ -804,14 +823,16 @@ export default {
|
|
personInfoApi.enabledApp(formData);
|
|
personInfoApi.enabledApp(formData);
|
|
} else if ("guest" == type) {
|
|
} else if ("guest" == type) {
|
|
personInfoApi.enabledGuest(formData);
|
|
personInfoApi.enabledGuest(formData);
|
|
|
|
+ }else if ("wechatNotice" == type) {
|
|
|
|
+ personInfoApi.enabledWechatNotice(formData);
|
|
}
|
|
}
|
|
|
|
|
|
//关闭开关,是自动同步到服务器
|
|
//关闭开关,是自动同步到服务器
|
|
//打开开关需要手动同步服务器
|
|
//打开开关需要手动同步服务器
|
|
- if (!value) {
|
|
|
|
- //如果是打开开关,则修改状态
|
|
|
|
- row.faceBound = false;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!value) {
|
|
|
|
+ // //如果是打开开关,则修改状态
|
|
|
|
+ // row.faceBound = false;
|
|
|
|
+ // }
|
|
|
|
|
|
self.disabled = true;
|
|
self.disabled = true;
|
|
|
|
|
|
@@ -834,6 +855,7 @@ export default {
|
|
row.faceEnabled = true;
|
|
row.faceEnabled = true;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ }
|
|
},
|
|
},
|
|
uploadData(record) {
|
|
uploadData(record) {
|
|
//同步人脸数据
|
|
//同步人脸数据
|