tangning 1 gadu atpakaļ
vecāks
revīzija
ef57df1088
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      src/views/productOperation/modal/detailModal.vue

+ 5 - 3
src/views/productOperation/modal/detailModal.vue

@@ -317,14 +317,14 @@
           ...data,
           isEmpower: [0], //[data.canAuthLook ? 0 : '', data.canEditLook ? 1 : ''],
         };
+        console.log('setData', setData);
         isEdit.value = true;
         if (data) {
           title.value = data.id ? '编辑授权' : '新增授权';
           modelRef.value = data.id ? true : false;
           setFieldsValue({
-            ...data,
-            lookAuth: setData.lookAuth,
-            isEmpower: [0],
+            ...setData,
+            editAuth: 0,
           });
         } else {
           title.value = '新增客户';
@@ -355,6 +355,7 @@
             field: 'editEndTime',
             ifShow: data.editAuth == 2,
             componentProps: {
+              disabled: checkAuthOther.editEndTime,
               disabledDate: (current) => {
                 if (checkAuthOther.editEndTime) {
                   return (
@@ -372,6 +373,7 @@
             field: 'lookEndTime',
             ifShow: setData.lookAuth == 2,
             componentProps: {
+              disabled: checkAuthOther.lookEndTime,
               disabledDate: (current) => {
                 if (checkAuthOther.lookEndTime) {
                   return (