tangning 1 년 전
부모
커밋
ebf51084af
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/productOperation/cameraScene.vue
  2. 3 1
      src/views/productOperation/modal/detailModal.vue

+ 1 - 1
src/views/productOperation/cameraScene.vue

@@ -40,7 +40,7 @@
               },
               {
                 label: '权限',
-                disabled: !record.isAuth,
+                disabled: !(record.status == 1 || record.status == -2) && !record.isAuth,
                 ifShow: getTypeCheckPerm('scenes-powers'),
                 onClick: handlePowers.bind(null, record),
               },

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

@@ -309,6 +309,7 @@
       onMounted(() => {});
       let addListFunc = () => {};
       const [register, { closeModal }] = useModalInner(async (data) => {
+        editTime.value = '';
         onSearch('');
         let checkAuthOther = await checkAuthOtherApi({ num: data.num });
         let setData = {
@@ -322,6 +323,7 @@
           modelRef.value = data.id ? true : false;
           setFieldsValue({
             ...data,
+            lookAuth: setData.lookAuth,
             isEmpower: [0],
           });
         } else {
@@ -368,7 +370,7 @@
           },
           {
             field: 'lookEndTime',
-            ifShow: data.lookAuth == 2,
+            ifShow: setData.lookAuth == 2,
             componentProps: {
               disabledDate: (current) => {
                 if (checkAuthOther.lookEndTime) {