Explorar o código

bug-6761 提示文案兼容

tianxinyu hai 4 meses
pai
achega
9b2b72c45e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/component/device/deviceDialog.vue

+ 1 - 1
src/views/component/device/deviceDialog.vue

@@ -1508,7 +1508,7 @@ export default {
       })
       })
       const { data = [] } = result.variables || {}
       const { data = [] } = result.variables || {}
       if (data[0].num > 0) {
       if (data[0].num > 0) {
-        throw new Error(`系统当前已经存在此原设备编号,请更换另一个编号!`)
+        throw new Error(`系统当前已经存在此${(this.hideSysDeviceNo || this.changeDeviceLabel)  ? '设备编号' : '原设备编号'},请更换另一个编号!`)
       }
       }
 
 
       const exFactoryTime = this.form.chuChangRiQi
       const exFactoryTime = this.form.chuChangRiQi