|
@@ -782,8 +782,9 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//团组下拉框
|
|
//团组下拉框
|
|
- GetGroupAllList() {
|
|
|
|
- var url = "/api/Resource/GetGroupAllList"
|
|
|
|
|
|
+ OfficialActivitiesGroupNameList() {
|
|
|
|
+ this.fullscreenLoading=true;
|
|
|
|
+ var url = "/api/Resource/OfficialActivitiesGroupNameList"
|
|
var that = this
|
|
var that = this
|
|
this.$axios({
|
|
this.$axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
@@ -792,28 +793,48 @@ export default {
|
|
Authorization: 'Bearer ' + this.token
|
|
Authorization: 'Bearer ' + this.token
|
|
},
|
|
},
|
|
data: {
|
|
data: {
|
|
- diid: that.DiId
|
|
|
|
|
|
+ portType: 3,
|
|
|
|
+ pageIndex: 1,
|
|
|
|
+ pageSize: 10000,
|
|
|
|
+ groupName: '',
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- let datainfo=res.data.data;
|
|
|
|
- that.currencyarr=datainfo.currencyData;
|
|
|
|
- // that.restaurants = res.data.data.translatorData;
|
|
|
|
- that.restaurants= datainfo.translatorData.map((terminal) => {
|
|
|
|
- return {
|
|
|
|
- id:terminal.id,
|
|
|
|
- value:terminal.name,
|
|
|
|
- area:terminal.area,
|
|
|
|
- sex:terminal.sex,
|
|
|
|
- tel:terminal.tel,
|
|
|
|
- email:terminal.email,
|
|
|
|
- wechatNo:terminal.wechatNo,
|
|
|
|
- otherSocialAccounts:terminal.otherSocialAccounts,
|
|
|
|
- language:terminal.language,
|
|
|
|
- price:terminal.price,
|
|
|
|
- currency:terminal.currency,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
|
|
+ that.delegationInfoList = res.data.data;
|
|
|
|
+ for (let index = 0; index < that.delegationInfoList.length; index++) {
|
|
|
|
+ if (that.delegationInfoList[index].id == parseInt(that.DiId)) {
|
|
|
|
+ that.delegationInfo = that.delegationInfoList[index];
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ that.OfficialActivitiesInitDatabase();
|
|
|
|
+ }else{
|
|
|
|
+ that.fullscreenLoading=false;
|
|
|
|
+ }
|
|
|
|
+ }).catch(function (error) {
|
|
|
|
+ that.fullscreenLoading=false;
|
|
|
|
+ that.$message.error("网络错误,请稍后重试");
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ //基础数据初始化
|
|
|
|
+ OfficialActivitiesInitDatabase() {
|
|
|
|
+ var url = "/api/Resource/OfficialActivitiesInitDatabase"
|
|
|
|
+ var that = this
|
|
|
|
+ this.$axios({
|
|
|
|
+ method: 'post',
|
|
|
|
+ url: url,
|
|
|
|
+ headers: {
|
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
|
+ },
|
|
|
|
+ data: {
|
|
|
|
+ portType: 3,
|
|
|
|
+ pageIndex: 1,
|
|
|
|
+ pageSize: 10000,
|
|
|
|
+ groupName: '',
|
|
|
|
+ }
|
|
|
|
+ }).then(function (res) {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ that.currencyarr=res.data.data.currencyData;
|
|
that.deleFile = res.data.data.deleFile;
|
|
that.deleFile = res.data.data.deleFile;
|
|
that.deleFile.forEach(function (item) {
|
|
that.deleFile.forEach(function (item) {
|
|
if (item.kind == 1) {
|
|
if (item.kind == 1) {
|
|
@@ -837,10 +858,6 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- that.delegationInfoList = res.data.data.delegation;
|
|
|
|
that.OfficialFormList = res.data.data.setData;
|
|
that.OfficialFormList = res.data.data.setData;
|
|
that.dataSourceList = res.data.data.dataSource;
|
|
that.dataSourceList = res.data.data.dataSource;
|
|
if (that.OfficialFormList.length != 0) {
|
|
if (that.OfficialFormList.length != 0) {
|
|
@@ -848,13 +865,128 @@ export default {
|
|
that.OpOfficialActivitiesDto.officialForm = that.OfficialFormList[0].id
|
|
that.OpOfficialActivitiesDto.officialForm = that.OfficialFormList[0].id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- for (let index = 0; index < that.delegationInfoList.length; index++) {
|
|
|
|
- if (that.delegationInfoList[index].id == parseInt(that.DiId)) {
|
|
|
|
|
|
+ that.OfficialActivitiesTranslatorList();
|
|
|
|
+ }else{
|
|
|
|
+ that.$message.error("网络错误,请稍后重试");
|
|
|
|
+ }
|
|
|
|
+ }).catch(function (error) {
|
|
|
|
+ that.$message.error("网络错误,请稍后重试");
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ //翻译人员
|
|
|
|
+ OfficialActivitiesTranslatorList() {
|
|
|
|
+ var url = "/api/Resource/OfficialActivitiesTranslatorList"
|
|
|
|
+ var that = this
|
|
|
|
+ this.$axios({
|
|
|
|
+ method: 'post',
|
|
|
|
+ url: url,
|
|
|
|
+ headers: {
|
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
|
+ },
|
|
|
|
+ data: {
|
|
|
|
+ portType: 3,
|
|
|
|
+ pageIndex: 1,
|
|
|
|
+ pageSize: 10000,
|
|
|
|
+ groupName: '',
|
|
|
|
+ }
|
|
|
|
+ }).then(function (res) {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ that.restaurants= res.data.data.map((terminal) => {
|
|
|
|
+ return {
|
|
|
|
+ id:terminal.id,
|
|
|
|
+ value:terminal.name,
|
|
|
|
+ area:terminal.area,
|
|
|
|
+ sex:terminal.sex,
|
|
|
|
+ tel:terminal.tel,
|
|
|
|
+ email:terminal.email,
|
|
|
|
+ wechatNo:terminal.wechatNo,
|
|
|
|
+ otherSocialAccounts:terminal.otherSocialAccounts,
|
|
|
|
+ language:terminal.language,
|
|
|
|
+ price:terminal.price,
|
|
|
|
+ currency:terminal.currency,
|
|
|
|
+ };
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ that.$message.error("网络错误,请稍后重试");
|
|
|
|
+ }
|
|
|
|
+ }).catch(function (error) {
|
|
|
|
+ that.$message.error("网络错误,请稍后重试");
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ //团组下拉框
|
|
|
|
+ GetGroupAllList() {
|
|
|
|
+ var url = "/api/Resource/GetGroupAllList"
|
|
|
|
+ var that = this
|
|
|
|
+ this.$axios({
|
|
|
|
+ method: 'post',
|
|
|
|
+ url: url,
|
|
|
|
+ headers: {
|
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
|
+ },
|
|
|
|
+ data: {
|
|
|
|
+ diid: that.DiId
|
|
|
|
+ }
|
|
|
|
+ }).then(function (res) {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ // let datainfo=res.data.data;
|
|
|
|
+ // that.currencyarr=datainfo.currencyData;
|
|
|
|
+ // that.restaurants = res.data.data.translatorData;
|
|
|
|
+ // that.restaurants= datainfo.translatorData.map((terminal) => {
|
|
|
|
+ // return {
|
|
|
|
+ // id:terminal.id,
|
|
|
|
+ // value:terminal.name,
|
|
|
|
+ // area:terminal.area,
|
|
|
|
+ // sex:terminal.sex,
|
|
|
|
+ // tel:terminal.tel,
|
|
|
|
+ // email:terminal.email,
|
|
|
|
+ // wechatNo:terminal.wechatNo,
|
|
|
|
+ // otherSocialAccounts:terminal.otherSocialAccounts,
|
|
|
|
+ // language:terminal.language,
|
|
|
|
+ // price:terminal.price,
|
|
|
|
+ // currency:terminal.currency,
|
|
|
|
+ // };
|
|
|
|
+ // });
|
|
|
|
+ // that.deleFile = res.data.data.deleFile;
|
|
|
|
+ // that.deleFile.forEach(function (item) {
|
|
|
|
+ // if (item.kind == 1) {
|
|
|
|
+ // that.uploadFiles1.push({
|
|
|
|
+ // name: item.fileName,
|
|
|
|
+ // url: 'http://localhost:5256/Office/GrpFile/商邀相关文件/',
|
|
|
|
+ // id: item.id
|
|
|
|
+ // });
|
|
|
|
+ // } else if (item.kind == 2) {
|
|
|
|
+ // that.uploadFiles2.push({
|
|
|
|
+ // name: item.fileName,
|
|
|
|
+ // url: 'http://localhost:5256/Office/GrpFile/商邀相关文件/',
|
|
|
|
+ // id: item.id
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // else if (item.kind == 3) {
|
|
|
|
+ // that.uploadFiles3.push({
|
|
|
|
+ // name: item.fileName,
|
|
|
|
+ // url: 'http://localhost:5256/Office/GrpFile/商邀相关文件/',
|
|
|
|
+ // id: item.id
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
|
|
- that.delegationInfo = that.delegationInfoList[index];
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // that.delegationInfoList = res.data.data.delegation;
|
|
|
|
+ // that.OfficialFormList = res.data.data.setData;
|
|
|
|
+ // that.dataSourceList = res.data.data.dataSource;
|
|
|
|
+ // if (that.OfficialFormList.length != 0) {
|
|
|
|
+ // if(that.id!=that.id){
|
|
|
|
+ // that.OpOfficialActivitiesDto.officialForm = that.OfficialFormList[0].id
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // for (let index = 0; index < that.delegationInfoList.length; index++) {
|
|
|
|
+ // if (that.delegationInfoList[index].id == parseInt(that.DiId)) {
|
|
|
|
+
|
|
|
|
+ // that.delegationInfo = that.delegationInfoList[index];
|
|
|
|
+ // break;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
}).catch(function (error) {
|
|
}).catch(function (error) {
|
|
// that.$message.error("网络错误,请稍后重试");
|
|
// that.$message.error("网络错误,请稍后重试");
|
|
@@ -1371,108 +1503,6 @@ export default {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
that.$message.success(res.data.msg);
|
|
that.$message.success(res.data.msg);
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
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Urls.length;i++){
|
|
that.fileList.push({'name':res.data.data.fileUrls[i].split('/')[7],'url':res.data.data.fileUrls[i]})
|
|
that.fileList.push({'name':res.data.data.fileUrls[i].split('/')[7],'url':res.data.data.fileUrls[i]})
|
|
@@ -1536,7 +1566,8 @@ export default {
|
|
this.headers3.DiId = this.DiId
|
|
this.headers3.DiId = this.DiId
|
|
this.headers3.CreateUserId = this.userId
|
|
this.headers3.CreateUserId = this.userId
|
|
|
|
|
|
- this.GetGroupAllList();
|
|
|
|
|
|
+ // this.GetGroupAllList();
|
|
|
|
+ this.OfficialActivitiesGroupNameList();
|
|
|
|
|
|
if (this.DiId == null && this.DiId == undefined && this.DiId == 0) {
|
|
if (this.DiId == null && this.DiId == undefined && this.DiId == 0) {
|
|
this.DiId = '';
|
|
this.DiId = '';
|