Forráskód Böngészése

增加用户姓名隐藏选项

vothin 2 éve
szülő
commit
6ac6c39954

+ 3 - 1
languages/en.js

@@ -789,7 +789,9 @@ module.exports = {
     boardShowEmptyBed: 'The board shows empty beds',
     nursingColorRgb: 'Nursing door light color',
     twoColorDoorLightValid: 'Two-color door lights are supported or not',
-    support: 'Support two-color door lights'
+    support: 'Support two-color door lights',
+    customerNameHidden: 'Enable user name hiding',
+    hidden: 'Turn on user name hide'
   },
   role: {
     roleName: 'Role name',

+ 3 - 1
languages/zh-CN.js

@@ -790,7 +790,9 @@ module.exports = {
     boardShowEmptyBed: '看板显示空床',
     nursingColorRgb: '护理门灯颜色',
     twoColorDoorLightValid: '是否支持双色门灯',
-    support: '支持双色门灯'
+    support: '支持双色门灯',
+    customerNameHidden: '是否开启用户名隐藏',
+    hidden: '开启用户名隐藏'
   },
   role: {
     roleName: '角色名称',

+ 7 - 3
src/views/ncs-device/components/deviceManager.vue

@@ -912,7 +912,6 @@ export default {
     handleEdit(params) {
       this.getRoles({ page_size: 200, page_no: 1, fixedCondition: ' shop_id = -1', sort: ' role_id', dir: 'desc' })
       this.getDevices(params.part_id)
-      this.getSosDeviceSetting(params.id)
       this.deviceTypeChangeToFrameTypeChange(params.device_type)
       this.hasRoleId = params.device_type === DEVICE_TYPE.NURSE_WATCH
       this.hasAudioId = params.device_type === DEVICE_TYPE.SIMULATE_BED_DEVICE ||
@@ -920,9 +919,14 @@ export default {
                         params.device_type === DEVICE_TYPE.SIMULATE_EMERGENCY_BUTTON ||
                         params.device_type === DEVICE_TYPE.SIMULATE_DOOR_LIGHT
       this.isVitalSigns = params.device_type === DEVICE_TYPE.VITAL_SIGNS_DEVICE
-      this.hasSosDeviceSettings = params.device_type === DEVICE_TYPE.ALARM_BODY_INDUCTIVE ||
+
+      if (params.device_type === DEVICE_TYPE.ALARM_BODY_INDUCTIVE ||
           params.device_type === DEVICE_TYPE.DOOR_LOCK ||
-          params.device_type === DEVICE_TYPE.ALARM_RESTRAINT_BAND
+          params.device_type === DEVICE_TYPE.ALARM_RESTRAINT_BAND) {
+        this.hasSosDeviceSettings = true
+        this.getSosDeviceSetting(params.id)
+      }
+
       this.isLedDevice = params.device_type === DEVICE_TYPE.LED_SCREEN
       this.deviceModel = {
         ...params

+ 7 - 0
src/views/ncs-orginazition/components/partInfoEdit.vue

@@ -306,6 +306,12 @@
                 <el-checkbox v-model="formmodel.two_color_door_light_valid" :true-label="1" :false-label="0">{{ this.$t('partInfo.support') }}</el-checkbox>
               </el-form-item>
             </el-col>
+
+            <el-col :span="8">
+              <el-form-item :label="this.$t('partInfo.customerNameHidden')" prop="customer_name_hidden">
+                <el-checkbox v-model="formmodel.customer_name_hidden" :true-label="1" :false-label="0">{{ this.$t('partInfo.hidden') }}</el-checkbox>
+              </el-form-item>
+            </el-col>
           </el-row>
 
 
@@ -624,6 +630,7 @@ export default {
                 customize_role_call_third: 0,
                 customize_role_call_fourth: 0,
                 customize_role_call_fifth: 0,
+                customer_name_hidden: 0,
                 auto_accept: 0,
                 door_nurse_title: '呼叫护士',
                 door_nurse_valid: 1,