tangning 1 年之前
父節點
當前提交
47a17a6172
共有 1 個文件被更改,包括 11 次插入5 次删除
  1. 11 5
      src/views/productOperation/modal/detailModal.vue

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

@@ -184,7 +184,10 @@
                 {
                   field: 'isEmpower',
                   componentProps: {
-                    options: setOption(),
+                    options: isEdit.value?[
+                      { label: '查看权限', value: 0, disabled: true },
+                      { label: '编辑权限', value: 1, disabled: true },
+                    ]:setOption(),
                   },
                 },
               ]);
@@ -354,9 +357,9 @@
         let setData = {
           ...checkAuthOther,
           ...data,
-          isEmpower: [0], //[data.canAuthLook ? 0 : '', data.canEditLook ? 1 : ''],
+          isEmpower: data.qxType?[0]:[0,1], //[data.canAuthLook ? 0 : '', data.canEditLook ? 1 : ''],
         };
-        console.log(setData, 'setData')
+        console.log(setData, 'setData', data.qxType)
         let lookEndTime = checkAuthOther.lookEndTime
           ? checkAuthOther.lookEndTime
           : dayjs().format('YYYY-MM-DD HH:mm:ss');
@@ -381,7 +384,10 @@
             field: 'isEmpower',
             ifShow: false,
             componentProps: {
-              options: setOption(),
+              options: isEdit.value?[
+                { label: '查看权限', value: 0, disabled: true },
+                { label: '编辑权限', value: 1, disabled: true },
+              ]:setOption(),
             },
           },
           {
@@ -394,7 +400,7 @@
             field: 'editAuth',
             defaultValue: 1,
             componentProps: {
-              options: (fileFlow.qxType || setData.editAuth)
+              options: fileFlow.qxType
                 ? getOptionList('editAuth', setData.editAuth)
                 : [
                     { label: '不限时编辑', value: 1 },