刘恒 2 tahun lalu
induk
melakukan
f66c758c40

+ 2 - 1
src/components/tree/allTree.vue

@@ -64,6 +64,7 @@ export default {
       this.autoExpandParent = false;
     },
     setExpandKys(item) {
+      console.log(item);
       this.$nextTick(() => {
         // this.$refs.tree.expandedKeys = ["99D17"];
         // this.$refs.tree.defaultExpandedKeys = ["99D17"];
@@ -72,7 +73,7 @@ export default {
         // this.checkList = ["99D17"];
         this.$API.sysManage
           .getUserItem({
-            userId: item.userId,
+            userId: item.id,
           })
           .then((res) => {
             if (res.data.code === 200) {

+ 1 - 1
src/pages/personnelManage/channel/order.vue

@@ -22,7 +22,7 @@
             <dl>
               <dt><img src="../../../assets/img/order.png" alt="" /></dt>
               <dd>
-                <span>订单数</span>
+                <span>订单数</span>
                 <span>{{ BigOrder.orderNumber || 0 }}</span>
               </dd>
             </dl>

+ 1 - 1
src/pages/quote/quote.vue

@@ -22,7 +22,7 @@
             <dl>
               <dt><img src="../../assets/img/order.png" alt="" /></dt>
               <dd>
-                <span>订单数</span>
+                <span>订单数</span>
                 <span>{{ BigOrder.orderNumber || 0 }}</span>
               </dd>
             </dl>

+ 6 - 5
src/pages/sys/permissionsAuth.vue

@@ -42,7 +42,7 @@ import tree from "@/components/tree/allTree.vue";
 const columns = [
   {
     title: "员工工号",
-    dataIndex: "userId",
+    dataIndex: "id",
     //
   },
 
@@ -163,6 +163,7 @@ export default {
       this.title = "数据权限配置";
       this.visible = true;
       this.dataForm = { ...item.record };
+      console.log(item.record);
       this.$nextTick(() => {
         this.$refs.tree.setExpandKys(item.record);
         // this.defaultCheckList = [""];
@@ -183,7 +184,7 @@ export default {
     getList() {
       this.loading = true;
       this.$API.sysManage
-        .getUserList({
+        .getDeptList({
           pageNum: this.pagination.current,
           pageSize: this.pagination.defaultPageSize,
           name: this.searchName,
@@ -194,10 +195,10 @@ export default {
           if (res.data.code === 200) {
             this.loading = false;
 
-            this.tableList = [...res.data.data.records];
+            this.tableList = [...res.data.data.content];
             // this.pagination.current = res.data.data.pageNum;
             // this.pagination.defaultPageSize = res.data.data.pageSize;
-            this.pagination.total = res.data.data.total;
+            this.pagination.total = res.data.data.totalSize;
           }
         });
     },
@@ -212,7 +213,7 @@ export default {
       //   console.log(this.dataForm, this.checkList);
       this.$API.sysManage
         .UserSetDeptAuth({
-          userId: this.dataForm.userId,
+          userId: this.dataForm.id,
           deptIds: this.checkList,
         })
         .then((res) => {