From d5efa1b1cdbab10b034357ae3e7b65c21754a123 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期六, 11 二月 2023 11:47:01 +0800
Subject: [PATCH] 样式管理界面修改,数据上传添加附件

---
 src/views/datamanage/dataController.vue |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/views/datamanage/dataController.vue b/src/views/datamanage/dataController.vue
index 7e07958..e8a9134 100644
--- a/src/views/datamanage/dataController.vue
+++ b/src/views/datamanage/dataController.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="contentBox">
-    
+
     <div
       class="box"
       ref="box"
@@ -41,7 +41,7 @@
 </template>
 
 <script>
-import { selectMenuRecursive, queryMenuTree } from '../../api/api';
+import { selectMenuRecursive, queryMenuTree, sign_insertOpLog } from '../../api/api';
 import customElMenu from '../../components/customElMenu.vue';
 import dataUpdata from '@/views/datamanage/dataUpdata.vue'; //鏁版嵁绠$悊-鏁版嵁涓婁紶
 import catalogueManage from '@/views/datamanage/catalogueManage.vue'; //鏁版嵁绠$悊-鐩綍绠$悊
@@ -158,14 +158,14 @@
             return value.type == 1;
           });
           this.menuList = this.treeData(menuList);
-
+          this.m1 = this.menuList[0].cnName;
           this.setViewController(this.menuList[0]);
-          
+
           const hanleselectindex = sessionStorage.getItem('hanleselectindex')
           if (hanleselectindex) {
-            this.$nextTick(function (){
+            this.$nextTick(function () {
               this.handleselecttwo(JSON.parse(hanleselectindex).url, JSON.parse(hanleselectindex))
-              this.setViewController(JSON.parse(hanleselectindex))     
+              this.setViewController(JSON.parse(hanleselectindex))
             })
           }
         } else {
@@ -182,10 +182,18 @@
       if (res.children != null) {
         this.setViewController(res.children[0]);
       } else {
+        this.signInsertOpLog(this.m1, res.cnName)
         this.$store.state.currentPerms = res.perms;
         this.setMenuFlag = res.url;
         this.activeIndex = res.url;
       }
+    },
+    async signInsertOpLog(m1, m2) {
+      var obj = {
+        m1: m1,
+        m2: m2,
+      }
+      const data = await sign_insertOpLog(obj);
     },
     treeData(source) {
       let cloneData = JSON.parse(JSON.stringify(source)); // 瀵规簮鏁版嵁娣卞害鍏嬮殕
@@ -207,6 +215,7 @@
 
     handleselect(index, indexPath, e) {
       const a = JSON.stringify(e.$attrs.perms)
+      this.signInsertOpLog(this.m1, e.$attrs.perms.cnName)
       sessionStorage.setItem('hanleselectindex', a)
       var data = e.$attrs.perms;
       this.$store.state.currentPerms = data.perms;

--
Gitblit v1.9.3