|
@@ -799,6 +799,8 @@
|
|
|
<el-option v-if="item.type === deviceButtonType.SOS" v-for="(keyItem, keyIndex) in deviceButtonSosTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
|
|
|
<el-option v-else-if="item.type === deviceButtonType.VOICE" v-for="(keyItem, keyIndex) in deviceButtonVoiceTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
|
|
|
<el-option v-else-if="item.type === deviceButtonType.EVENT" v-for="(keyItem, keyIndex) in deviceButtonEventTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
|
|
|
+ <el-option v-else-if="item.type === deviceButtonType.REINFORCE" v-for="(keyItem, keyIndex) in deviceButtonReinforceTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
|
|
|
+ <el-option v-else-if="item.type === deviceButtonType.NURSING" v-for="(keyItem, keyIndex) in deviceButtonNursingTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
|
|
|
</el-select>
|
|
|
</el-col>
|
|
|
<el-col :span="3" style="margin: auto">
|
|
@@ -857,21 +859,19 @@
|
|
|
<script>
|
|
|
// 系统设置
|
|
|
import * as API_Part from '@/api/ncs_partInfo'
|
|
|
-import { saveListByCustomer } from '@/api/ncs_customer'
|
|
|
+import {saveListByCustomer} from '@/api/ncs_customer'
|
|
|
import Storage from '@/utils/storage'
|
|
|
-import {bindDeviceTransAudio, init485Device, initData, initDeviceList} from '@/api/initialize'
|
|
|
+import {bindDeviceTransAudio, init485Device, initDeviceList} from '@/api/initialize'
|
|
|
import * as API_Clerk from '@/api/ncs_clerk'
|
|
|
import * as API_SystemConfig from '@/api/ncs_systemconfig'
|
|
|
import * as API_Device from '@/api/ncs_device'
|
|
|
import * as API_Excel from "@/api/ncs_excel";
|
|
|
-import moment from 'moment'
|
|
|
+import moment from 'moment'
|
|
|
import {SERIAL_TYPE} from "@/utils/enum/SerialTypeEnum";
|
|
|
-import {DEVICE_TYPE} from "@/utils/enum/DeviceTypeEnum";
|
|
|
import {SERIAL_KEY_TYPE} from "@/utils/enum/SerialKeyTypeEnum";
|
|
|
import {DEVICE_BUTTON_TYPE} from "@/utils/enum/DeviceButtonTypeEnum";
|
|
|
-import i18n from "@/utils/i18n";
|
|
|
import * as API_event from "@/api/ncs_event";
|
|
|
-import {getEventListByPartId} from "@/api/ncs_event";
|
|
|
+
|
|
|
const serverUrl = domain.serverUrl
|
|
|
const DeviceUrl = domain.DeviceUrl
|
|
|
export default {
|
|
@@ -923,7 +923,18 @@ export default {
|
|
|
deviceButtonType: DEVICE_BUTTON_TYPE,
|
|
|
deviceButtonSosTransfer: [{ key : this.$t('tcpType.SOS'), value : 'SOS'}],
|
|
|
deviceButtonEventTransfer: [],
|
|
|
- deviceButtonVoiceTransfer: []
|
|
|
+ deviceButtonVoiceTransfer: [],
|
|
|
+ deviceButtonReinforceTransfer: [{ key : this.$t('tcpType.REINFORCE'), value : 'REINFORCE'}],
|
|
|
+ deviceButtonNursingTransfer: [
|
|
|
+ { key : this.$t('zy20240611.MINUTE10'), value : 10 },
|
|
|
+ { key : this.$t('zy20240611.MINUTE15'), value : 15 },
|
|
|
+ { key : this.$t('zy20240611.MINUTE20'), value : 20 },
|
|
|
+ { key : this.$t('zy20240611.MINUTE30'), value : 30 },
|
|
|
+ { key : this.$t('zy20240611.MINUTE45'), value : 45 },
|
|
|
+ { key : this.$t('zy20240611.MINUTE60'), value : 60 },
|
|
|
+ { key : this.$t('zy20240611.MINUTE90'), value : 90 },
|
|
|
+ { key : this.$t('zy20240611.MINUTE120'), value : 120 }
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
async mounted() {
|
|
@@ -1276,7 +1287,8 @@ export default {
|
|
|
},
|
|
|
isDeviceButtonDisabled(option, currentIndex) {
|
|
|
const selectedArr = this.deviceButtonParamsTemp.map(item => item.key)
|
|
|
- selectedArr.splice(currentIndex, 1)
|
|
|
+ console.log(selectedArr)
|
|
|
+ // selectedArr.splice(currentIndex, 1)
|
|
|
return selectedArr.includes(option.value)
|
|
|
},
|
|
|
paramsTempToStr(paramsTemp) {
|