| | |
| | | |
| | | <a-form layout="inline" v-has="'isCanDragAndResize'"> |
| | | <a-form-item label="功能开关"> |
| | | <a-switch checked-children="开" un-checked-children="关" v-model="isSwitchChecked" |
| | | <a-switch checked-children="开" un-checked-children="关" v-model="isSwitchChecked" @change="handleSwitchChange" |
| | | :disabled="isHasResizeOrDragDevice"/> |
| | | </a-form-item> |
| | | |
| | |
| | | // 通过车间Id调用接口获取设备信息列表 |
| | | getDeviceListByApi() { |
| | | const that = this |
| | | signageApi.getDeviceListInWorkshopSignagePageApi(that.currentProductionId).then((res) => { |
| | | if (res.success && res.result && res.result.length > 0) that.deviceList = res.result |
| | | }) |
| | | signageApi.getDeviceListInWorkshopSignagePageApi(that.currentProductionId) |
| | | .then((res) => { |
| | | if (res.success && res.result && res.result.length > 0) that.deviceList = res.result |
| | | }) |
| | | }, |
| | | |
| | | handleSwitchChange(checked) { |
| | | console.log('checked--------', checked) |
| | | this.$emit('handleTimeIntervalForShortOpen', checked) |
| | | }, |
| | | |
| | | /** |