|
@@ -66,7 +66,7 @@ export default {
|
|
rules: {},
|
|
rules: {},
|
|
isOnlyTime: false,
|
|
isOnlyTime: false,
|
|
// addCustom: '',
|
|
// addCustom: '',
|
|
- hospital_id: this.$store.getters.partId
|
|
|
|
|
|
+ shop_id: this.$store.getters.partId
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async mounted() {
|
|
async mounted() {
|
|
@@ -79,48 +79,48 @@ export default {
|
|
text = this.formmodel.addCustom
|
|
text = this.formmodel.addCustom
|
|
}
|
|
}
|
|
const params = {}
|
|
const params = {}
|
|
- params.hospital_id = this.hospital_id
|
|
|
|
|
|
+ params.shop_id = this.shop_id
|
|
params.text = text
|
|
params.text = text
|
|
- API_Led.updateDefaultProgramHospitalId(params).then(r => {
|
|
|
|
|
|
+ API_Led.updateDefaultProgramShopId(params).then(r => {
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
})
|
|
})
|
|
},
|
|
},
|
|
powerOn() {
|
|
powerOn() {
|
|
const params = {}
|
|
const params = {}
|
|
- params.hospital_id = this.hospital_id
|
|
|
|
|
|
+ params.shop_id = this.shop_id
|
|
params.on_off = 0
|
|
params.on_off = 0
|
|
- API_Led.powerOnOffByHospitalId(params).then(r => {
|
|
|
|
|
|
+ API_Led.powerOnOffByShopId(params).then(r => {
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
})
|
|
})
|
|
},
|
|
},
|
|
powerOff() {
|
|
powerOff() {
|
|
const params = {}
|
|
const params = {}
|
|
- params.hospital_id = this.hospital_id
|
|
|
|
|
|
+ params.shop_id = this.shop_id
|
|
params.on_off = 1
|
|
params.on_off = 1
|
|
- API_Led.powerOnOffByHospitalId(params).then(r => {
|
|
|
|
|
|
+ API_Led.powerOnOffByShopId(params).then(r => {
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
})
|
|
})
|
|
},
|
|
},
|
|
powerRestart() {
|
|
powerRestart() {
|
|
const params = {}
|
|
const params = {}
|
|
- params.hospital_id = this.hospital_id
|
|
|
|
|
|
+ params.shop_id = this.shop_id
|
|
params.on_off = 2
|
|
params.on_off = 2
|
|
- API_Led.powerOnOffByHospitalId(params).then(r => {
|
|
|
|
|
|
+ API_Led.powerOnOffByShopId(params).then(r => {
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
})
|
|
})
|
|
},
|
|
},
|
|
timing() {
|
|
timing() {
|
|
const params = {}
|
|
const params = {}
|
|
- params.hospital_id = this.hospital_id
|
|
|
|
|
|
+ params.shop_id = this.shop_id
|
|
API_Led.timing(params).then(r => {
|
|
API_Led.timing(params).then(r => {
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
})
|
|
})
|
|
},
|
|
},
|
|
deleteAllPrograms() {
|
|
deleteAllPrograms() {
|
|
const params = {}
|
|
const params = {}
|
|
- params.hospital_id = this.hospital_id
|
|
|
|
|
|
+ params.shop_id = this.shop_id
|
|
params.text = null
|
|
params.text = null
|
|
- API_Led.removeAllProgramByHospitalId(params).then(r => {
|
|
|
|
|
|
+ API_Led.removeAllProgramByShopId(params).then(r => {
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
this.$message.success(this.$t('action.saveSuccess'))
|
|
})
|
|
})
|
|
}
|
|
}
|