2 次代码提交 bc6cd29aeb ... 68b0916932

作者 SHA1 备注 提交日期
  lxh 68b0916932 Merge branch 'master' of http://39.97.59.228:8013/hrx/mky-vent-base 3 天之前
  lxh 52b08e0186 摄像头配置取消校验-提交 3 天之前

+ 5 - 5
src/views/vent/comment/EditRowTable.vue

@@ -165,8 +165,8 @@
       async function handleSave(record: EditRecordRow) {
         // 校验
         msg.loading({ content: '正在保存...', duration: 0, key: 'saving' });
-        const valid = await record.onValid?.();
-        if (valid) {
+        // const valid = await record.onValid?.();
+        // if (valid) {
           try {
             //TODO 此处将数据提交给服务器保存
             emit('saveOrUpdate', Object.assign(record, record.editValueRefs), reload);
@@ -180,9 +180,9 @@
           } catch (error) {
             msg.error({ content: '保存失败', key: 'saving' });
           }
-        } else {
-          msg.error({ content: '请填写正确的数据', key: 'saving' });
-        }
+        // } else {
+        //   msg.error({ content: '请填写正确的数据', key: 'saving' });
+        // }
         nextTick(() => {
           refresh.value = true;
           clearSelectedRowKeys();

+ 0 - 3
src/views/vent/deviceManager/comment/cameraTabel/camera.data.ts

@@ -137,7 +137,6 @@ export const columns = [
     width: 70,
     dataIndex: 'port',
     editRow: true,
-    editRule: true,
     editComponent: 'InputNumber',
     textAlign: 'center',
   },
@@ -153,7 +152,6 @@ export const columns = [
     dataIndex: 'password',
     width: 70,
     editRow: true,
-    editRule: true,
     textAlign: 'center',
   },
   {
@@ -161,7 +159,6 @@ export const columns = [
     dataIndex: 'label',
     width: 70,
     editRow: true,
-    editRule: true,
     editComponent: 'Select',
     textAlign: 'center',
     editComponentProps: {