tangning 4 дней назад
Родитель
Сommit
2e9aa3343f
2 измененных файлов с 13 добавлено и 6 удалено
  1. 5 4
      src/views/draw/list.vue
  2. 8 2
      src/views/productOperation/modal/PowersModal.vue

+ 5 - 4
src/views/draw/list.vue

@@ -1,11 +1,11 @@
 <template>
   <div class="scren">
     <PageWrapper contentBackground>
-      <template #footer>
+      <!-- <template #footer>
         <a-tabs v-model:activeKey="tableType" @change="changeTable">
           <Tabs.TabPane :key="0" tab="方位图" :disabled="loading" />
           <Tabs.TabPane :key="1" tab="平面图" :disabled="loading" /> </a-tabs
-      ></template>
+      ></template> -->
       <div class="desc-wrap-BasicTable">
         <BasicTable v-show="tableType" @register="registerTable">
           <template #toolbar>
@@ -100,7 +100,8 @@
                 },
                 {
                   label: '编辑',
-                  ifShow: getTypeCheckPerm('tabulation-edit'),
+                  ifShow: getTypeCheckPerm('tabulation-edit') && record.oldData != 1,
+
                   onClick: handlegotoEdit.bind(null, record),
                 },
                 {
@@ -187,7 +188,7 @@
       const permissionStore = usePermissionStore();
       const { getCheckPerm } = permissionStore;
       const loading = ref(false);
-      const tableType = ref<number>(0); //0看看 、1看见、2深时
+      const tableType = ref<number>(1); 
       const columns: BasicColumn[] = [
         {
           title: '标题',

+ 8 - 2
src/views/productOperation/modal/PowersModal.vue

@@ -46,6 +46,7 @@
           />
         </template>
       </BasicTable>
+      <Checkbox style="margin-left: 17px" v-if="!(caseId||fusionId)" v-model:checked="supAuthRef" size="small">上级单位平台管理员可见</Checkbox>
       <detailModal @register="registerDetail" @update="reload" />
       <ryNoSceneModal @register="registerryNoModal" @update="reload" />
     </div>
@@ -60,6 +61,7 @@
   import { useModal } from '/@/components/Modal';
   import { useI18n } from '/@/hooks/web/useI18n';
   import detailModal from './detailModal.vue';
+  import { Checkbox } from 'ant-design-vue';
   import ryNoSceneModal from './ryNoSceneModal.vue';
   import { usePermissionStore } from '/@/store/modules/permission';
   import { getAuthList, getAuthType, setAuthType, delAuth } from '/@/api/operate';
@@ -68,7 +70,7 @@
   import dayjs from 'dayjs';
   const { t } = useI18n();
   export default defineComponent({
-    components: { BasicModal, ryNoSceneModal, BasicForm, BasicTable, TableAction, detailModal },
+    components: { Checkbox, BasicModal, ryNoSceneModal, BasicForm, BasicTable, TableAction, detailModal },
     props: {
       userData: { type: Object },
     },
@@ -76,6 +78,7 @@
     setup(props, { emit }) {
       const modelRef = ref({});
       const tableRef = ref(null);
+      const supAuthRef = ref(true);
 
       const numRef = ref(null);
       const caseId = ref(null);
@@ -221,8 +224,9 @@
         fusionId.value = data.fusionId;
         caseId.value = data.caseId;
         resetFields();
-        const { authType } = await getAuthType({ num: numRef.value,  sourceType: sourceType.value });
+        const { authType, supAuth } = await getAuthType({ num: numRef.value,  sourceType: sourceType.value });
         fileFlow.showList = authType ? false : true;
+        supAuthRef.value = supAuth;
         type.value = authType;
         setFieldsValue({
           type: data.sceneName,
@@ -258,6 +262,7 @@
             caseId: caseId.value,
             ...params,
             lookAuth: params.authType,
+            supAuth: supAuthRef.value,
             sourceType: sourceType.value,
           });
           console.log('res', res);
@@ -311,6 +316,7 @@
         addPowes,
         reload,
         userName,
+        supAuthRef,
         caseId,
         fusionId,
         tableRef,