瀏覽代碼

修改会员管理编辑

wangwei 3 年之前
父節點
當前提交
98477b819b

+ 2 - 2
src/views/department/department/customCom/member/customCom/CustomInput.vue

@@ -58,7 +58,7 @@
           } else {
             state.value = props.value;
           }
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (state.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;
@@ -72,7 +72,7 @@
       watch(
         () => props.type,
         () => {
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (props.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;

+ 2 - 2
src/views/event/activity/customCom/member/customCom/CustomInput.vue

@@ -58,7 +58,7 @@
           } else {
             state.value = props.value;
           }
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (state.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;
@@ -72,7 +72,7 @@
       watch(
         () => props.type,
         () => {
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (props.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;

+ 2 - 2
src/views/event/meeting/customCom/member/customCom/CustomInput.vue

@@ -58,7 +58,7 @@
           } else {
             state.value = props.value;
           }
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (state.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;
@@ -72,7 +72,7 @@
       watch(
         () => props.type,
         () => {
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (props.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;

+ 2 - 2
src/views/member/member/customCom/CustomInput.vue

@@ -59,7 +59,7 @@
           } else {
             state.value = props.value;
           }
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (state.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;
@@ -73,7 +73,7 @@
       watch(
         () => props.type,
         () => {
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (props.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;

+ 0 - 1
src/views/member/member/index.vue

@@ -159,7 +159,6 @@
         popupData.title = '编辑';
         await getUser({ id: record.id }).then((res) => {
           const data = res.row;
-          console.log(`edit----data0`, data);
           openPopup(true, data);
         });
       }

+ 0 - 1
src/views/member/member/popup.vue

@@ -75,7 +75,6 @@
             },
           ]);
         }
-        console.log(`edit data1`, data);
         setFieldsValue(data);
       });
 

+ 0 - 2
src/views/money/bill/customCom/CustomInput.vue

@@ -111,8 +111,6 @@
       });
 
       function onCheckChange(evt) {
-        console.log(`evt`, evt);
-        console.log(`evt.target.checked`, evt.target.checked);
         const checked = evt.target.checked;
         if (checked) {
           state.disabled = true;

+ 2 - 2
src/views/money/bill/customCom/member/customCom/CustomInput.vue

@@ -58,7 +58,7 @@
           } else {
             state.value = props.value;
           }
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (state.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;
@@ -72,7 +72,7 @@
       watch(
         () => props.type,
         () => {
-          if (state.value !== '' && typeof props.value === 'string') {
+          if (props.value && typeof props.value === 'string') {
             state.disabled = true;
           } else {
             state.disabled = false;