Selaa lähdekoodia

0312文件共享文件下载添加地区id

liuhj 1 kuukausi sitten
vanhempi
commit
49aa3ac731
1 muutettua tiedostoa jossa 41 lisäystä ja 7 poistoa
  1. 41 7
      src/components/OP/SharedFile.vue

+ 41 - 7
src/components/OP/SharedFile.vue

@@ -13,7 +13,7 @@
                 </div>
                 </div>
                 <div v-if="filetype == 1412" class="sharedsile-Groups-li">
                 <div v-if="filetype == 1412" class="sharedsile-Groups-li">
                     <label>团组名称:</label>
                     <label>团组名称:</label>
-                    <el-select  size="small" @change="QuerySharedFile" v-model="diIdselect" clearable filterable placeholder="团组选择"
+                    <el-select  size="small" @change="QuerySharedFilegroup" v-model="diIdselect" clearable filterable placeholder="团组选择"
                         style="width: 300px;">
                         style="width: 300px;">
                         <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
                         <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
                             :value="item.id">
                             :value="item.id">
@@ -120,7 +120,7 @@
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-download">
                 <div class="sharedsile-table-tb tb-download">
-                    <el-button size="small" @click="eptschedule(1, 1005)" type="primary">下载</el-button>
+                    <el-button size="small" @click="eptschedule(1, filesidarrs[0])" type="primary">下载</el-button>
                 </div>
                 </div>
             </div>
             </div>
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
@@ -128,7 +128,7 @@
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-download">
                 <div class="sharedsile-table-tb tb-download">
-                    <el-button size="small" @click="eptschedule(1, 1006)" type="primary">下载</el-button>
+                    <el-button size="small" @click="eptschedule(1, filesidarrs[1])" type="primary">下载</el-button>
                 </div>
                 </div>
             </div>
             </div>
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
@@ -136,7 +136,7 @@
                 <div class="sharedsile-table-tb tb-type">EXCEL</div>
                 <div class="sharedsile-table-tb tb-type">EXCEL</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-download">
                 <div class="sharedsile-table-tb tb-download">
-                    <el-button size="small" @click="eptschedule(1, 1007)" type="primary">下载</el-button>
+                    <el-button size="small" @click="eptschedule(1, filesidarrs[2])" type="primary">下载</el-button>
                 </div>
                 </div>
             </div>
             </div>
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
@@ -144,7 +144,7 @@
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-download">
                 <div class="sharedsile-table-tb tb-download">
-                    <el-button size="small" @click="eptschedule(1, 1066)" type="primary">下载</el-button>
+                    <el-button size="small" @click="eptschedule(1, filesidarrs[3])" type="primary">下载</el-button>
                 </div>
                 </div>
             </div>
             </div>
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
@@ -152,7 +152,7 @@
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-download">
                 <div class="sharedsile-table-tb tb-download">
-                    <el-button size="small" @click="eptschedule(2, 1008)" type="primary">下载</el-button>
+                    <el-button size="small" @click="eptschedule(2, filesidarrs[4])" type="primary">下载</el-button>
                 </div>
                 </div>
             </div>
             </div>
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
             <div v-if="!isMarketingDepartment" class="sharedsile-table-tr">
@@ -160,7 +160,7 @@
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-type">WORD</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-Language">中文</div>
                 <div class="sharedsile-table-tb tb-download">
                 <div class="sharedsile-table-tb tb-download">
-                    <el-button size="small" @click="eptschedule(2, 1009)" type="primary">下载</el-button>
+                    <el-button size="small" @click="eptschedule(2, filesidarrs[5])" type="primary">下载</el-button>
                 </div>
                 </div>
             </div>
             </div>
         </div>
         </div>
@@ -199,6 +199,7 @@ export default {
             isMarketingDepartment:false,
             isMarketingDepartment:false,
             fileName:'',
             fileName:'',
             shdatetime:[],
             shdatetime:[],
+            filesidarrs:[],
         }
         }
     },
     },
     methods: {
     methods: {
@@ -227,6 +228,7 @@ export default {
                     that.filetypelist = res.data.data.dropDownType;
                     that.filetypelist = res.data.data.dropDownType;
                     that.filetype = that.filetypelist[0].id;
                     that.filetype = that.filetypelist[0].id;
                     that.isMarketingDepartment=res.data.data.isMarketingDepartment;
                     that.isMarketingDepartment=res.data.data.isMarketingDepartment;
+                    that.EnterExitCostFileOwner(that.delegationInfoList[0].provinceId);
                     that.QuerySharedFile();
                     that.QuerySharedFile();
                 } else {
                 } else {
                     that.$message.error(res.data.msg);
                     that.$message.error(res.data.msg);
@@ -238,6 +240,29 @@ export default {
             
             
             this.QuerySharedFile();
             this.QuerySharedFile();
         },
         },
+        //获取文件id
+        EnterExitCostFileOwner(val) {
+            var url = "/api/Groups/EnterExitCostFileOwner/"+val
+            var that = this
+            this.$axios({
+                method: 'get',
+                url: url,
+            }).then(function (res) {
+                var filesidarr=[];
+                if (res.data.code == 200) {
+                    var files=res.data.data;
+                    for(let i=0;i<files.wordTypeData.length;i++){
+                        filesidarr.push(files.wordTypeData[i].id)
+                    }
+                    for(let j=0;j<files.excelTypeData.length;j++){
+                        filesidarr.push(files.excelTypeData[j].id)
+                    }
+                    that.filesidarrs=filesidarr;
+                }else {
+                    that.$message.error(res.data.msg);
+                }
+            })
+        },
         //页面加载
         //页面加载
         padeload() {
         padeload() {
             var url = "/api/Business/PostGroupNameScreen"
             var url = "/api/Business/PostGroupNameScreen"
@@ -265,6 +290,15 @@ export default {
                 }
                 }
             })
             })
         },
         },
+        QuerySharedFilegroup(val){
+            console.log(val);
+            var obj = {}
+            obj = this.delegationInfoList.find(function (i) {
+                return i.id === val
+            });
+            this.EnterExitCostFileOwner(obj.provinceId);
+            this.QuerySharedFile();
+        },
         //文件列表
         //文件列表
         QuerySharedFile() {
         QuerySharedFile() {
             if (this.shdatetime==null) {
             if (this.shdatetime==null) {