jiayufei 4 år sedan
förälder
incheckning
85ded0d8a2

+ 4 - 5
src/views/modules/crowd-control/components/tree-select/tree-select.vue

@@ -230,11 +230,14 @@ export default {
             }
         },
         onCheck(checkedKeys) {
+            console.log(checkedKeys, 'checkedKeys-checkedKeys');
             this.checkedKeys = checkedKeys;
             this.nodes(this.treeData, checkedKeys);
+            console.log(this.selectRightData, 'this.selectRightData');
             this.applyTypeOption = this.Es6duplicate([...this.selectRightData], 'key');
+            console.log(this.applyTypeOption, 'this.applyTypeOption');
             const changeSelectData = this.applyTypeOption.map(item => item.key);
-            this.checkedKeys = changeSelectData;
+            // this.checkedKeys = changeSelectData;
             if (this.applyTypeOption.length > 100) {
                 const lastOptionKey = this.applyTypeOption[99].key;
                 const lastIndex = changeSelectData.findIndex(item => item === lastOptionKey);
@@ -244,10 +247,6 @@ export default {
             this.$emit('applyType', this.applyTypeOption);
         },
         nodes(data, checkedKeys) {
-            if (!checkedKeys.length) {
-                this.selectRightData = new Set();
-                return;
-            }
             data.forEach(item => {
                 if (item.children) {
                     this.nodes(item.children, checkedKeys);

+ 2 - 2
src/views/modules/crowd-control/crowd-control-service.js

@@ -7,7 +7,7 @@ class AppMarketService {
     constructor() {}
 
     // 相关账户的table列表
-    setAcountColumns(data) {
+    setAcountColumns() {
         return [
             {
                 title: '账户名称',
@@ -15,7 +15,7 @@ class AppMarketService {
                 width: '30%'
             },
             {
-                title: '所属账户',
+                title: '所属项目',
                 dataIndex: 'projectName',
                 width: '30%'
             },

+ 2 - 2
vue.config.js

@@ -80,13 +80,13 @@ module.exports = {
         // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
-         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目
         // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目 
         // target:'http://118.24.244.213:8804',
-      //  target:'http://139.186.165.84:8806', //测试
+       target:'http://139.186.165.84:8806', //测试
 
         ws: false,