Ver Fonte

部分新功能,右侧菜单可点击,以及页面回来会刷新

cz há 1 ano atrás
pai
commit
f7e773f824

+ 7 - 1
src/components/headerBar/header-bar.vue

@@ -207,7 +207,7 @@
 
             <div class="collect" id="collect">
               <div v-for="(menu, index) in commonsRouterList" :key="menu.menuId" class="item">
-                <span>{{menu.menuName}}</span>
+                <span class="menu-name" @click="commonsBannerToRouter(menu)">{{menu.menuName}}</span>
                 <span style="cursor:pointer;position:relative;top:2px;" @click="editMenu(menu)">
                   <el-icon color="#46A6FF" :size="16">
                     <CircleClose />
@@ -987,6 +987,12 @@ const showSearchStyle = (name) => {
         line-height: 30px;
         // padding: 2px 5px;
         // border: 1px solid #eee;
+        .menu-name {
+          cursor: pointer;
+          &:hover {
+            color: #0084ff;
+          }
+        }
       }
     }
   }

+ 12 - 0
src/views/EHSD/procurement/purchasedEHSD/index.vue

@@ -44,6 +44,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
 import PurchasePDF from "@/components/PDF/purchasePDF.vue";
 // import PurchasePDFOne from "@/components/PDF/purchasePDFOne.vue";
 // import PurchasePDFOneNew from "@/components/PDF/purchasePDFOneNew.vue";
+import $bus from "@/bus/index.js";
 
 const route = useRoute();
 const { proxy } = getCurrentInstance();
@@ -402,6 +403,17 @@ const PdfDom = ref(null);
 const exportExcel = () => {
   PdfDom.value.exportExcel();
 };
+
+onMounted(() => {
+  $bus.on("refreshTableData", () => {
+    getList();
+  });
+});
+
+onBeforeUnmount(() => {
+  // 取消订阅特定事件
+  $bus.off("refreshTableData");
+});
 </script>
 
 <style lang="scss" scoped>

+ 12 - 1
src/views/EHSD/saleContract/contractEHSD/index.vue

@@ -245,7 +245,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
 import ContractDetails from "@/components/contractCom/contractDetails.vue";
 import ContractPDFOne from "@/components/PDF/contractPDFOne.vue";
 import ContractPDFOneNew from "@/components/PDF/contractPDFOneNew.vue";
-
+import $bus from "@/bus/index.js";
 const route = useRoute();
 
 const contractTag = computed(
@@ -1403,6 +1403,17 @@ const productData = ref([]);
 const onShowProductData = (item) => {
   productData.value = item.contractProductList;
 };
+
+onMounted(() => {
+  $bus.on("refreshTableData", () => {
+    getList();
+  });
+});
+
+onBeforeUnmount(() => {
+  // 取消订阅特定事件
+  $bus.off("refreshTableData");
+});
 </script>
 
 <style lang="scss" scoped>

+ 11 - 6
src/views/JST/AppSecret/index.vue

@@ -63,38 +63,43 @@ const config = computed(() => {
       attrs: {
         label: "应用名称",
         prop: "companyName",
+        "min-width": 150,
       },
     },
     {
       attrs: {
         label: "AppKey",
         prop: "appKey",
+        width: 300,
       },
     },
     {
       attrs: {
         label: "AppSecret",
         prop: "appSecret",
+        width: 300,
       },
     },
     {
       attrs: {
         label: "accessToken",
         prop: "accessToken",
+        width: 300,
       },
     },
     {
       attrs: {
         label: "refreshToken",
         prop: "refreshToken",
+        width: 300,
       },
     },
-    {
-      attrs: {
-        label: "备注",
-        prop: "remark",
-      },
-    },
+    // {
+    //   attrs: {
+    //     label: "备注",
+    //     prop: "remark",
+    //   },
+    // },
     {
       attrs: {
         label: "操作",

+ 1 - 0
src/views/process/processApproval/index.vue

@@ -538,6 +538,7 @@ const skipPage = () => {
       name: pageObj[route.query.flowKey],
     });
   }
+  $bus.emit("refreshTableData");
 };
 let queryData = reactive({
   data: {},

+ 12 - 0
src/views/purchaseManage/purchaseManage/subscribe/index.vue

@@ -103,6 +103,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
 import byTable from "@/components/byTable/index";
 import byForm from "@/components/byForm/index";
 import { getToken } from "@/utils/auth";
+import $bus from "@/bus/index.js";
 
 const { proxy } = getCurrentInstance();
 const materialUnit = computed(
@@ -463,6 +464,17 @@ const handleClose = (index) => {
 };
 
 getList();
+
+onMounted(() => {
+  $bus.on("refreshTableData", () => {
+    getList();
+  });
+});
+
+onBeforeUnmount(() => {
+  // 取消订阅特定事件
+  $bus.off("refreshTableData");
+});
 </script>
   
 <style lang="scss" scoped>