魏志佳 пре 4 година
родитељ
комит
e9eb09cb7a
2 измењених фајлова са 30 додато и 23 уклоњено
  1. 28 21
      src/views/modules/LaunchHousekeeper/LaunchHousekeeperList.vue
  2. 2 2
      vue.config.js

+ 28 - 21
src/views/modules/LaunchHousekeeper/LaunchHousekeeperList.vue

@@ -4,26 +4,32 @@
             <span class="OptinItem topOpt">
                 <!-- <Treeselect :appId.sync="accountID" :multiple="false" request="2,4" reqUrl='/ctop/projectMember/getProjectAccountByUserId' ref="treeSelect" style="margin-bottom:8px " /> -->
 
-                <a-tree-select
-                    v-model="accountIds"
-                    show-search
+                <!-- <a-tree-select
+                    v-model="accountIds"                   
+                    multiple
+                    tree-checkable
                     style="width: 600px;height:30px"
                     :dropdownMatchSelectWidth='true'
                     :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"              
-                    tree-checkable
-                    searchPlaceholder='请输入账户关键字搜索'
                     :show-checked-strategy="SHOW_PARENT"
                     placeholder="请选择项目和账户或搜索账户关键字"
                     treeNodeFilterProp="title"
                     :allowClear="true"
-                    @change="treeChange"
-                                       
-                    :maxTagCount='1'    
-                    :tree-data="treeData"
-                    :filterOption='filterOption'
-                >
+                    :maxTagCount='1'   
+                    @change="treeChange"                                                        
+                    :tree-data="treeData"                   
+                /> -->
               
-                </a-tree-select>
+                <a-tree-select
+                    v-model="accountIds"
+                    style="width: 600px;height:30px"
+                    :tree-data="treeData"
+                    tree-checkable
+                    :dropdownMatchSelectWidth='true'
+                    :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" 
+                    :show-checked-strategy="SHOW_PARENT"
+                    search-placeholder="Please select"
+                />
             </span>
             <span class="OptinItem">
                 <a-select  style="width: 120px" v-model="statusValue" @change="statusChange" placeholder="请选择状态">
@@ -164,8 +170,9 @@
 <script>
 import moment from 'moment';
 import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
-const SHOW_PARENT = TreeSelect.SHOW_PARENT;
 import { TreeSelect } from 'ant-design-vue';
+const SHOW_PARENT = TreeSelect.SHOW_PARENT;
+
 import qs from 'qs'
 const columns = [
   {
@@ -405,19 +412,19 @@ export default {
         },
         
         
-        filterOption(input, option){
-        console.log(input, option)
-        return (
-            option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
-            );
-        },
+        // filterOption(input, option){
+        // console.log(input, option)
+        // return (
+        //     option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+        //     );
+        // },
     
         //请求项目和账户内容
         accountHttp(){
             this.treeData=[];
             this.accountIds=[];
             getAction('/ctop/projectMember/getProjectAccountByUserId?mediaType=1', {}).then(res => {
-            if(res.success){
+                if(res.success){
                     // console.log(res);
                     if(res.result){
                         res.result.forEach((element,index) => {
@@ -443,7 +450,7 @@ export default {
                         // console.log(this.treeData)
                         
                     }
-            }
+                }
             })
         },
 

+ 2 - 2
vue.config.js

@@ -66,10 +66,10 @@ module.exports = {
         // target: 'http://192.168.0.230:8088', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.51:8080', //请求本地 需要jeecg-boot后台项目  毕洁泉
 
-        target: 'http://192.168.1.74:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        // target: 'http://192.168.1.74:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.170:8088', //请求本地 需要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后台项目