|
@@ -121,17 +121,7 @@
|
|
|
<div class="sharedsile-table-tb tb-type">WORD</div>
|
|
|
<div class="sharedsile-table-tb tb-Language">中文</div>
|
|
|
<div class="sharedsile-table-tb tb-download">
|
|
|
- <el-button size="small" @click="eptschedule(1, item.id)" type="primary">下载</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <div v-for="(items,indexs) in filesidarrss" :key="indexs" class="sharedsile-table-tr">
|
|
|
- <div class="sharedsile-table-tb tb-name">{{ items.name }}</div>
|
|
|
- <div class="sharedsile-table-tb tb-type">WORD</div>
|
|
|
- <div class="sharedsile-table-tb tb-Language">中文</div>
|
|
|
- <div class="sharedsile-table-tb tb-download">
|
|
|
- <el-button size="small" @click="eptschedule(2, items.id)" type="primary">下载</el-button>
|
|
|
- </div>
|
|
|
+ <el-button size="small" @click="eptschedule(item.filetype, item.id)" type="primary">下载</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -220,7 +210,7 @@ export default {
|
|
|
fileName:'',
|
|
|
shdatetime:[],
|
|
|
filesidarrs:[],
|
|
|
- filesidarrss:[],
|
|
|
+ grouptodiid:0
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -245,11 +235,20 @@ export default {
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
that.delegationInfoList = res.data.data.dropDownGroupList;
|
|
|
- that.diIdselect = that.delegationInfoList[0].id;
|
|
|
that.filetypelist = res.data.data.dropDownType;
|
|
|
that.filetype = that.filetypelist[0].id;
|
|
|
that.isMarketingDepartment=res.data.data.isMarketingDepartment;
|
|
|
- that.EnterExitCostFileOwner(that.delegationInfoList[0].provinceId);
|
|
|
+ if (that.grouptodiid!==that.grouptodiid) {
|
|
|
+ that.diIdselect = that.delegationInfoList[0].id;
|
|
|
+ that.EnterExitCostFileOwner(that.delegationInfoList[0].provinceId);
|
|
|
+ }else{
|
|
|
+ that.diIdselect = that.grouptodiid;
|
|
|
+ var objs = {}
|
|
|
+ objs = that.delegationInfoList.find(function (i) {
|
|
|
+ return i.id === that.grouptodiid
|
|
|
+ });
|
|
|
+ that.EnterExitCostFileOwner(objs.provinceId);
|
|
|
+ }
|
|
|
that.QuerySharedFile();
|
|
|
} else {
|
|
|
that.$message.error(res.data.msg);
|
|
@@ -274,13 +273,14 @@ export default {
|
|
|
if (res.data.code == 200) {
|
|
|
var files=res.data.data;
|
|
|
for(let i=0;i<files.wordTypeData.length;i++){
|
|
|
- filesidarr.push(files.wordTypeData[i])
|
|
|
+ files.wordTypeData[i].filetype=1
|
|
|
+ filesidarr.push(files.wordTypeData[i]);
|
|
|
}
|
|
|
for(let j=0;j<files.excelTypeData.length;j++){
|
|
|
- filesidarrs.push(files.excelTypeData[j])
|
|
|
+ files.excelTypeData[j].filetype=2
|
|
|
+ filesidarr.push(files.excelTypeData[j])
|
|
|
}
|
|
|
that.filesidarrs=filesidarr;
|
|
|
- that.filesidarrss=filesidarrs;
|
|
|
|
|
|
}else {
|
|
|
that.$message.error(res.data.msg);
|
|
@@ -315,7 +315,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
QuerySharedFilegroup(val){
|
|
|
- console.log(val);
|
|
|
var obj = {}
|
|
|
obj = this.delegationInfoList.find(function (i) {
|
|
|
return i.id === val
|
|
@@ -623,6 +622,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.grouptodiid = Number(this.$route.query.diId);
|
|
|
this.token = JSON.parse(localStorage.getItem('userinif')).token;
|
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId
|
|
|
this.pageId = Number(localStorage.getItem('indexs').split('-')[1]);//页面id
|