Compare commits
1 Commits
feasure-li
...
master
| Author | SHA1 | Date |
|---|---|---|
|
|
565a5b143b |
|
|
@ -229,8 +229,8 @@ export default {
|
||||||
{ type: 'jm2g', name: '卷膜2关' },
|
{ type: 'jm2g', name: '卷膜2关' },
|
||||||
{ type: 'jm3k', name: '卷膜3开' },
|
{ type: 'jm3k', name: '卷膜3开' },
|
||||||
{ type: 'jm3g', name: '卷膜3关' },
|
{ type: 'jm3g', name: '卷膜3关' },
|
||||||
{ type: 'jlg', name: '卷帘关' },
|
{ type: 'jlk', name: '卷帘开' },
|
||||||
{ type: 'jlk', name: '卷帘开' }
|
{ type: 'jlg', name: '卷帘关' }
|
||||||
],
|
],
|
||||||
// 卡片状态
|
// 卡片状态
|
||||||
show: {
|
show: {
|
||||||
|
|
@ -294,6 +294,7 @@ export default {
|
||||||
if (this.status[kKey] === 1) this.status[gKey] = 0;
|
if (this.status[kKey] === 1) this.status[gKey] = 0;
|
||||||
if (this.status[gKey] === 1) this.status[kKey] = 0;
|
if (this.status[gKey] === 1) this.status[kKey] = 0;
|
||||||
});
|
});
|
||||||
|
console.info(this.status)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getAgriList();
|
this.getAgriList();
|
||||||
|
|
@ -479,6 +480,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 卡片点击事件(实际项目中调用接口修改状态) 功能标识
|
// 卡片点击事件(实际项目中调用接口修改状态) 功能标识
|
||||||
handleCardClick(status, type) {
|
handleCardClick(status, type) {
|
||||||
|
console.info(status,type)
|
||||||
const funcMsg = "该功能用来开启或暂停设备,按钮亮为开启,按钮暗为暂停设备"
|
const funcMsg = "该功能用来开启或暂停设备,按钮亮为开启,按钮暗为暂停设备"
|
||||||
if ((store.getters && store.getters.name !== 'admin')
|
if ((store.getters && store.getters.name !== 'admin')
|
||||||
&& this.$auth.hasRole("test")) {
|
&& this.$auth.hasRole("test")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue