cuijian
2023-11-16 e0cd695c11734348e1e01304bdff0696768c1fda
src/views/mdc/base/modules/deviceManager/DeviceModel.vue
@@ -19,7 +19,7 @@
        <a-row :gutter="24">
          <a-col :span="12">
            <a-form-item label="设备编码" :labelCol="labelCol" :wrapperCol="wrapperCol">
            <a-form-item label="统一编码" :labelCol="labelCol" :wrapperCol="wrapperCol">
              <a-input-search :readOnly="true" v-decorator="['equipmentId', validatorRules.equipmentId]"
                              @search="deviceSearch" enter-button/>
            </a-form-item>
@@ -246,11 +246,19 @@
            }
            obj.then((res) => {
              if (res.success) {
                that.$message.success("添加成功")
                // that.$message.success("添加成功")
                that.$notification.warning({
                  message:'消息',
                  description:"添加成功"
                });
                // that.$message.success(res.message)
                that.$emit('ok', res.result)
              } else {
                that.$message.warning(res.message)
                // that.$message.warning(res.message)
                that.$notification.warning({
                  message:'消息',
                  description:res.message
                });
              }
            }).finally(() => {
              that.confirmLoading = false