|
@@ -302,6 +302,37 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.QueryOfficialActivitiesByDiId();
|
|
this.QueryOfficialActivitiesByDiId();
|
|
|
},
|
|
},
|
|
|
|
|
+ //导出
|
|
|
|
|
+ ExportOfficialActivitiesInfo(val){
|
|
|
|
|
+ var url = "/api/Resource/ExportOfficialActivitiesInfo"
|
|
|
|
|
+ var that = this
|
|
|
|
|
+ this.$axios({
|
|
|
|
|
+ method: 'post',
|
|
|
|
|
+ url: url,
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
|
|
+ },
|
|
|
|
|
+ data: {
|
|
|
|
|
+ startTime: that.datetime(val[0]),
|
|
|
|
|
+ endTime: that.datetime(val[1]),
|
|
|
|
|
+ groupId: that.DiId,
|
|
|
|
|
+ state:-1
|
|
|
|
|
+ }
|
|
|
|
|
+ }).then(function (res) {
|
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
|
+ window.open(res.data.data);
|
|
|
|
|
+ that.dialogFormVisible = false;
|
|
|
|
|
+ that.$message({
|
|
|
|
|
+ message: res.data.msg,
|
|
|
|
|
+ type: 'success'
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(function (error) {
|
|
|
|
|
+ that.$message.error(error);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
//团组信息绑定
|
|
//团组信息绑定
|
|
|
QueryOfficialActivitiesByDiId() {
|
|
QueryOfficialActivitiesByDiId() {
|
|
|
this.tableData = [];
|
|
this.tableData = [];
|
|
@@ -351,8 +382,11 @@ export default {
|
|
|
this.dialogFormVisible = true;
|
|
this.dialogFormVisible = true;
|
|
|
},
|
|
},
|
|
|
Confirmexport() {
|
|
Confirmexport() {
|
|
|
- console.log(this.datetime(this.valuedate[0]));
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if(this.valuedate==''||this.valuedate==null||this.valuedate==undefined){
|
|
|
|
|
+ this.$message.error('请选择日期范围!');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.ExportOfficialActivitiesInfo(this.valuedate);
|
|
|
},
|
|
},
|
|
|
del(index, row) {
|
|
del(index, row) {
|
|
|
this.$confirm('此操作将删除该数据, 是否继续?', '提示', {
|
|
this.$confirm('此操作将删除该数据, 是否继续?', '提示', {
|