|
@@ -15,7 +15,7 @@
|
|
<div class="group4 flex-col"></div>
|
|
<div class="group4 flex-col"></div>
|
|
<div class="operBox">
|
|
<div class="operBox">
|
|
<!-- 重启炉头 -->
|
|
<!-- 重启炉头 -->
|
|
- <div class="operItem" @click="restartFurnace()">
|
|
|
|
|
|
+ <div v-if="controlList.includes('C1')" class="operItem" @click="restartFurnace()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/restart.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/restart.png" />
|
|
</div>
|
|
</div>
|
|
@@ -24,7 +24,7 @@
|
|
<div v-else class="operText">{{ $t("device.restart") }}</div>
|
|
<div v-else class="operText">{{ $t("device.restart") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 睡眠 -->
|
|
<!-- 睡眠 -->
|
|
- <div class="operItem" @click="sleepEquipmentFun()">
|
|
|
|
|
|
+ <div v-if="controlList.includes('C2')" class="operItem" @click="sleepEquipmentFun()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img v-if="sleepIcon === '0'" class="operImg" src="../../assets/device/operIcon/awake.png" />
|
|
<img v-if="sleepIcon === '0'" class="operImg" src="../../assets/device/operIcon/awake.png" />
|
|
<img v-else class="operImg" src="../../assets/device/operIcon/offSleep.png" />
|
|
<img v-else class="operImg" src="../../assets/device/operIcon/offSleep.png" />
|
|
@@ -32,7 +32,7 @@
|
|
<div class="operText">{{ sleepTitle }}</div>
|
|
<div class="operText">{{ sleepTitle }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 开启炉头/设备 -->
|
|
<!-- 开启炉头/设备 -->
|
|
- <div class="operItem" @click="openOffFurnace(1)">
|
|
|
|
|
|
+ <div v-if="controlList.includes('C3') && device.machineType != '2'" class="operItem" @click="openOffFurnace(1)">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/onOff.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/onOff.png" />
|
|
</div>
|
|
</div>
|
|
@@ -41,7 +41,7 @@
|
|
<div v-else class="operText">{{ $t("device.openDevice") }}</div>
|
|
<div v-else class="operText">{{ $t("device.openDevice") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 关闭炉头/设备 -->
|
|
<!-- 关闭炉头/设备 -->
|
|
- <div class="operItem" @click="openOffFurnace(0)">
|
|
|
|
|
|
+ <div v-if="controlList.includes('C4')" class="operItem" @click="openOffFurnace(0)">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/onOff.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/onOff.png" />
|
|
</div>
|
|
</div>
|
|
@@ -50,28 +50,32 @@
|
|
<div v-else class="operText">{{ $t("device.closeDevice") }}</div>
|
|
<div v-else class="operText">{{ $t("device.closeDevice") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 雪糕机制冷模式 -->
|
|
<!-- 雪糕机制冷模式 -->
|
|
- <div v-if="device.machineType == '2'" class="operItem" @click="updateWorkingMode(0)">
|
|
|
|
|
|
+ <div v-if="device.machineType == '2' && controlList.includes('C24')" class="operItem"
|
|
|
|
+ @click="updateWorkingMode(0)">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/refrigeration.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/refrigeration.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.refrigeration") }}</div>
|
|
<div class="operText">{{ $t("device.refrigeration") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 雪糕机搅拌模式 -->
|
|
<!-- 雪糕机搅拌模式 -->
|
|
- <div v-if="device.machineType == '2'" class="operItem" @click="updateWorkingMode(1)">
|
|
|
|
|
|
+ <div v-if="device.machineType == '2' && controlList.includes('C25')" class="operItem"
|
|
|
|
+ @click="updateWorkingMode(1)">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/stir.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/stir.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.stir") }}</div>
|
|
<div class="operText">{{ $t("device.stir") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 雪糕机保鲜模式 -->
|
|
<!-- 雪糕机保鲜模式 -->
|
|
- <div v-if="device.machineType == '2'" class="operItem" @click="updateWorkingMode(2)">
|
|
|
|
|
|
+ <div v-if="device.machineType == '2' && controlList.includes('C26')" class="operItem"
|
|
|
|
+ @click="updateWorkingMode(2)">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/keepFresh.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/keepFresh.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.keepFresh") }}</div>
|
|
<div class="operText">{{ $t("device.keepFresh") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 雪糕机解冻模式 -->
|
|
<!-- 雪糕机解冻模式 -->
|
|
- <div v-if="device.machineType == '2'" class="operItem" @click="updateWorkingMode(3)">
|
|
|
|
|
|
+ <div v-if="device.machineType == '2' && controlList.includes('C27')" class="operItem"
|
|
|
|
+ @click="updateWorkingMode(3)">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/thaw.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/thaw.png" />
|
|
</div>
|
|
</div>
|
|
@@ -88,14 +92,14 @@
|
|
</div> -->
|
|
</div> -->
|
|
|
|
|
|
<!-- 远程开门 -->
|
|
<!-- 远程开门 -->
|
|
- <div class="operItem" @click="openDoorFun()">
|
|
|
|
|
|
+ <div v-if="controlList.includes('C5')" class="operItem" @click="openDoorFun()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/openDoor.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/openDoor.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.remoteDoorOpening") }}</div>
|
|
<div class="operText">{{ $t("device.remoteDoorOpening") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 远程做糖 -->
|
|
<!-- 远程做糖 -->
|
|
- <div class="operItem" @click="doSugar()">
|
|
|
|
|
|
+ <div v-if="controlList.includes('C6')" class="operItem" @click="doSugar()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/doSugar.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/doSugar.png" />
|
|
</div>
|
|
</div>
|
|
@@ -104,14 +108,14 @@
|
|
<div v-else class="operText">{{ $t("device.remoteProduction") }}</div>
|
|
<div v-else class="operText">{{ $t("device.remoteProduction") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 定时开关 -->
|
|
<!-- 定时开关 -->
|
|
- <div class="operItem" @click="alarmClock()" v-if="device.equimentType != 'SI320'">
|
|
|
|
|
|
+ <div v-if="controlList.includes('C7') && device.equimentType != 'SI320'" class="operItem" @click="alarmClock()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/alarmClock.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/alarmClock.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.timeSwitch") }}</div>
|
|
<div class="operText">{{ $t("device.timeSwitch") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 音量调节 -->
|
|
<!-- 音量调节 -->
|
|
- <div class="operItem" @click="modulation()">
|
|
|
|
|
|
+ <div v-if="controlList.includes('C8')" class="operItem" @click="modulation()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/modulation.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/modulation.png" />
|
|
</div>
|
|
</div>
|
|
@@ -123,34 +127,36 @@
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.equipmentRecharge") }}</div>
|
|
<div class="operText">{{ $t("device.equipmentRecharge") }}</div>
|
|
</div> -->
|
|
</div> -->
|
|
- <div class="operItem" @click="paramSetPush()" v-if="device.equimentType != 'SI320' && device.machineType != '2'">
|
|
|
|
|
|
+ <div v-if="device.equimentType != 'SI320' && device.machineType != '2' && controlList.includes('C9')"
|
|
|
|
+ class="operItem" @click="paramSetPush()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/paramsSet.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/paramsSet.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.parameterSetting") }}</div>
|
|
<div class="operText">{{ $t("device.parameterSetting") }}</div>
|
|
</div>
|
|
</div>
|
|
- <div v-if="user.ifForeign == '0'" class="operItem" @click="saveProportionPush()">
|
|
|
|
|
|
+ <div v-if=" user.ifForeign == '0' && controlList.includes('C10') " class="operItem" @click="saveProportionPush()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/saveProportion.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/saveProportion.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.addDistributor") }}</div>
|
|
<div class="operText">{{ $t("device.addDistributor") }}</div>
|
|
</div>
|
|
</div>
|
|
- <div v-if="isRole('M17')" class="operItem" @click="tuojiEquipmentFun()">
|
|
|
|
|
|
+ <div v-if=" controlList.includes('C19') " class="operItem" @click="tuojiEquipmentFun()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/tuoji.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/tuoji.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.sysOffline") }}</div>
|
|
<div class="operText">{{ $t("device.sysOffline") }}</div>
|
|
</div>
|
|
</div>
|
|
- <div class="operItem" @click="modifyPriceClk()">
|
|
|
|
|
|
+ <div v-if=" controlList.includes('C11') " class="operItem" @click="modifyPriceClk()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/editPrice.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/editPrice.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.modifyPrice") }}</div>
|
|
<div class="operText">{{ $t("device.modifyPrice") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 物料监控 -->
|
|
<!-- 物料监控 -->
|
|
- <div class="operItem" @click="materialMonitorClk()" v-if="device.equimentType != 'SI320'">
|
|
|
|
|
|
+ <div v-if=" device.equimentType != 'SI320' && controlList.includes('C12') " class="operItem"
|
|
|
|
+ @click="materialMonitorClk()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
- <img v-if="materialIcon === '0'" class="operImg" src="../../assets/device/operIcon/materialMonitor.png" />
|
|
|
|
|
|
+ <img v-if=" materialIcon === '0' " class="operImg" src="../../assets/device/operIcon/materialMonitor.png" />
|
|
<img v-else class="operImg" src="../../assets/device/operIcon/materialMonitorOff.png" />
|
|
<img v-else class="operImg" src="../../assets/device/operIcon/materialMonitorOff.png" />
|
|
<!-- <img class="operImg" src="../../assets/device/operIcon/materialMonitor.png" /> -->
|
|
<!-- <img class="operImg" src="../../assets/device/operIcon/materialMonitor.png" /> -->
|
|
</div>
|
|
</div>
|
|
@@ -158,57 +164,58 @@
|
|
<div class="operText">{{ materialTitle }}</div>
|
|
<div class="operText">{{ materialTitle }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 屏蔽/展示商品 -->
|
|
<!-- 屏蔽/展示商品 -->
|
|
- <div class="operItem" @click="showGoodsClk()" v-if="device.equimentType != 'SI320'">
|
|
|
|
|
|
+ <div v-if=" device.equimentType != 'SI320' && controlList.includes('C13') " class="operItem"
|
|
|
|
+ @click="showGoodsClk()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/showGoods.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/showGoods.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.showGoods") }}</div>
|
|
<div class="operText">{{ $t("device.showGoods") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- DIY花型 -->
|
|
<!-- DIY花型 -->
|
|
- <div class="operItem" v-if="device.equimentType == 'MG320' || device.equimentType == 'MG330'"
|
|
|
|
- @click="diyFlowerClk()">
|
|
|
|
|
|
+ <div v-if=" (device.equimentType == 'MG320' || device.equimentType == 'MG330') && controlList.includes('C15') "
|
|
|
|
+ class="operItem" @click="diyFlowerClk()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/diyFlower.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/diyFlower.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.diyFlower") }}</div>
|
|
<div class="operText">{{ $t("device.diyFlower") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 修改机器密码 -->
|
|
<!-- 修改机器密码 -->
|
|
- <div v-if="user.type < 3" class="operItem" @click="changePasswordClk()">
|
|
|
|
|
|
+ <div v-if=" controlList.includes('C14') " class="operItem" @click="changePasswordClk()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/password.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/password.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.changePassword") }}</div>
|
|
<div class="operText">{{ $t("device.changePassword") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 删除设备 -->
|
|
<!-- 删除设备 -->
|
|
- <div v-if="user.type < 2" class="operItem" @click="deleteDevice()">
|
|
|
|
|
|
+ <div v-if=" controlList.includes('C21') " class="operItem" @click="deleteDevice()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/deletedevice.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/deletedevice.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.deleteDevice") }}</div>
|
|
<div class="operText">{{ $t("device.deleteDevice") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 日志功能 -->
|
|
<!-- 日志功能 -->
|
|
- <div v-if="user.type < 2" class="operItem" @click="viewLogs()">
|
|
|
|
|
|
+ <div v-if=" controlList.includes('C20') " class="operItem" @click="viewLogs()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/viewLogs.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/viewLogs.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.viewLogs") }}</div>
|
|
<div class="operText">{{ $t("device.viewLogs") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 定制logo -->
|
|
<!-- 定制logo -->
|
|
- <div v-if="user.type < 2" class="operItem" @click="customLogo()">
|
|
|
|
|
|
+ <div v-if=" controlList.includes('C22') " class="operItem" @click="customLogo()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/customLogo.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/customLogo.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.customLogo.customLogo") }}</div>
|
|
<div class="operText">{{ $t("device.customLogo.customLogo") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 远程锁机 -->
|
|
<!-- 远程锁机 -->
|
|
- <div v-if="user.type < 1" class="operItem" @click="lockDevice()">
|
|
|
|
|
|
+ <div v-if=" controlList.includes('C23') " class="operItem" @click="lockDevice()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/lock.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/lock.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.lockDevice") }}</div>
|
|
<div class="operText">{{ $t("device.lockDevice") }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 远程重启触摸屏 -->
|
|
<!-- 远程重启触摸屏 -->
|
|
- <div class="operItem" @click="restartAndroid()">
|
|
|
|
|
|
+ <div v-if=" controlList.includes('C16') " class="operItem" @click="restartAndroid()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/restartAndroid.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/restartAndroid.png" />
|
|
</div>
|
|
</div>
|
|
@@ -222,14 +229,16 @@
|
|
<div class="operText">{{ $t("device.viewPositioning") }}</div>
|
|
<div class="operText">{{ $t("device.viewPositioning") }}</div>
|
|
</div> -->
|
|
</div> -->
|
|
<!-- 设备清洗提醒 -->
|
|
<!-- 设备清洗提醒 -->
|
|
- <div class="operItem" v-if="device.machineType === '0' || device.machineType === null" @click="alramCleanClk()">
|
|
|
|
|
|
+ <div class="operItem"
|
|
|
|
+ v-if=" (device.machineType === '0' || device.machineType === null) && controlList.includes('C17') "
|
|
|
|
+ @click="alramCleanClk()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/alramClean.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/alramClean.png" />
|
|
</div>
|
|
</div>
|
|
<div class="operText">{{ $t("device.alramClean") }}</div>
|
|
<div class="operText">{{ $t("device.alramClean") }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="operItem"
|
|
<div class="operItem"
|
|
- v-if="(device.machineType === '0' || device.machineType === null) && (user.ifForeign == 1 || user.type == 0)"
|
|
|
|
|
|
+ v-if=" (device.machineType === '0' || device.machineType === null) && (user.ifForeign == 1 || user.type == 0) && controlList.includes('C18') "
|
|
@click="returnCoinClk()">
|
|
@click="returnCoinClk()">
|
|
<div class="operIcon">
|
|
<div class="operIcon">
|
|
<img class="operImg" src="../../assets/device/operIcon/coin.png" />
|
|
<img class="operImg" src="../../assets/device/operIcon/coin.png" />
|
|
@@ -239,13 +248,13 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</van-dialog>
|
|
</van-dialog>
|
|
- <van-dialog v-model:show="operCheckShow" :title="$t('device.operationConfirmation')" :showConfirmButton="false"
|
|
|
|
- :showCancelButton="false">
|
|
|
|
|
|
+ <van-dialog v-model:show=" operCheckShow " :title=" $t('device.operationConfirmation') " :showConfirmButton=" false "
|
|
|
|
+ :showCancelButton=" false ">
|
|
<div class="operCheckBox">
|
|
<div class="operCheckBox">
|
|
<div class="block5 flex-col"></div>
|
|
<div class="block5 flex-col"></div>
|
|
<span class="word10">{{
|
|
<span class="word10">{{
|
|
- $t("device.pleaseConfirmAgainWhetherToOperate")
|
|
|
|
- }}</span>
|
|
|
|
|
|
+ $t("device.pleaseConfirmAgainWhetherToOperate")
|
|
|
|
+ }}</span>
|
|
<div class="block6 flex-row justify-between">
|
|
<div class="block6 flex-row justify-between">
|
|
<div class="mod7 flex-col" @click="operCheckClear()">
|
|
<div class="mod7 flex-col" @click="operCheckClear()">
|
|
<span class="info5">{{ $t("device.IllThinkAboutItAgain") }}</span>
|
|
<span class="info5">{{ $t("device.IllThinkAboutItAgain") }}</span>
|
|
@@ -279,6 +288,7 @@ import { useRouter } from "vue-router";
|
|
import { useI18n } from "vue-i18n";
|
|
import { useI18n } from "vue-i18n";
|
|
import { getLoginUser, styleUrl } from "@/common/js/utils";
|
|
import { getLoginUser, styleUrl } from "@/common/js/utils";
|
|
|
|
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
emits: ['operfinish'],
|
|
emits: ['operfinish'],
|
|
setup(props, { emit }) {
|
|
setup(props, { emit }) {
|
|
@@ -337,6 +347,8 @@ export default {
|
|
const materialIcon = ref('0');
|
|
const materialIcon = ref('0');
|
|
// 工作模式
|
|
// 工作模式
|
|
const workMode = ref(null);
|
|
const workMode = ref(null);
|
|
|
|
+ // 操作权限
|
|
|
|
+ const controlList = ref([]);
|
|
|
|
|
|
// 初始化页面获取列表
|
|
// 初始化页面获取列表
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
@@ -344,7 +356,9 @@ export default {
|
|
styleUrl('deviceOper');
|
|
styleUrl('deviceOper');
|
|
});
|
|
});
|
|
// 当前弹窗父组件触发
|
|
// 当前弹窗父组件触发
|
|
- const showOper = (e) => {
|
|
|
|
|
|
+ const showOper = (e, value) => {
|
|
|
|
+ controlList.value = value;
|
|
|
|
+ console.log('controlList', controlList.value);
|
|
device.value = e;
|
|
device.value = e;
|
|
show.value = true;
|
|
show.value = true;
|
|
// isSleep=true,机器处于睡眠状态,按钮是关闭睡眠
|
|
// isSleep=true,机器处于睡眠状态,按钮是关闭睡眠
|
|
@@ -414,7 +428,7 @@ export default {
|
|
};
|
|
};
|
|
// 远程做糖
|
|
// 远程做糖
|
|
const doSugar = () => {
|
|
const doSugar = () => {
|
|
- router.push({ path: "doSugar", query: { deviceId: device.value.id, machineType: device.value.machineType } });
|
|
|
|
|
|
+ router.push({ path: "doSugar", query: { deviceId: device.value.id, machineType: device.value.machineType, } });
|
|
};
|
|
};
|
|
// 定时开关
|
|
// 定时开关
|
|
const alarmClock = () => {
|
|
const alarmClock = () => {
|
|
@@ -645,6 +659,8 @@ export default {
|
|
return user.menuCodeList.filter((type) => key === type).length > 0;
|
|
return user.menuCodeList.filter((type) => key === type).length > 0;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
return {
|
|
return {
|
|
user,
|
|
user,
|
|
device,
|
|
device,
|
|
@@ -684,6 +700,7 @@ export default {
|
|
materialIcon,
|
|
materialIcon,
|
|
materialMonitorClk,
|
|
materialMonitorClk,
|
|
updateWorkingMode,
|
|
updateWorkingMode,
|
|
|
|
+ controlList,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
components: {},
|
|
components: {},
|