diff --git a/ruoyi-ui/src/views/market/whole/index.vue b/ruoyi-ui/src/views/market/whole/index.vue
index ba1832f..ce1f8a4 100644
--- a/ruoyi-ui/src/views/market/whole/index.vue
+++ b/ruoyi-ui/src/views/market/whole/index.vue
@@ -218,12 +218,6 @@
icon="el-icon-mouse"
@click="handleOpen(scope.row)"
>后台
- 导出
@@ -386,33 +380,12 @@
取 消
-
-
-
-
-
-
-
-
-
-
diff --git a/ruoyi-ui/src/views/statistics/shop/index.vue b/ruoyi-ui/src/views/statistics/shop/index.vue
index 51af4c7..6f19a6b 100644
--- a/ruoyi-ui/src/views/statistics/shop/index.vue
+++ b/ruoyi-ui/src/views/statistics/shop/index.vue
@@ -198,6 +198,12 @@
icon="el-icon-mouse"
@click="handleOpen(scope.row)"
>设置
+ 导出
@@ -339,6 +345,28 @@
取 消
+
+
+
+
+
+
+
+
+
+
+
@@ -365,6 +393,12 @@ export default {
showSearch: true,
// 总条数
total: 0,
+ open1: false,
+ queryParams1: {
+ id: undefined,
+ expStartTime: undefined,
+ expEndTime: undefined
+ },
// 店铺表格数据
storeList: [],
// 弹出层标题
@@ -423,6 +457,9 @@ export default {
timeRange: [
{ required: true, message: "运营时间不能为空", trigger: "blur" }
],
+ timeRange1: [
+ { required: true, message: "时间不能为空", trigger: "blur" }
+ ],
quota: [
{ required: true, message: "限额不能为空", trigger: "blur" }
]
@@ -503,6 +540,15 @@ export default {
this.open = false;
this.reset();
},
+ cancel1() {
+ this.open1 = false;
+ this.reset1();
+ },
+ reset1() {
+ this.timeRange1 = ['',''];
+ this.form1= {};
+ this.resetForm("form1");
+ },
// 取消按钮(数据权限)
cancelDataScope() {
this.openDataScope = false;
@@ -562,6 +608,28 @@ export default {
// this.open = true;
// this.title = "添加角色";
},
+ export1(row) {
+ this.form1.id = row.id;
+ this.open1 = true;
+ },
+ submitExport: function() {
+ if(this.timeRange1==undefined || this.timeRange1.length == 0){
+ this.$modal.msgSuccess("请填写时段!");
+ return
+ }
+ this.form1.exportStartTime = this.timeRange1[0]
+ this.form1.exportEndTime = this.timeRange1[1]
+ this.$refs["form1"].validate(valid => {
+ if (valid) {
+ this.queryParams1.expStartTime = this.form1.exportStartTime;
+ this.queryParams1.expEndTime = this.form1.exportEndTime;
+ this.queryParams1.id = this.form1.id;
+ this.handleExport(this.queryParams1);
+
+ this.cancel1();
+ }
+ });
+ },
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
@@ -619,10 +687,10 @@ export default {
});
},
/** 导出按钮操作 */
- handleExport() {
+ handleExport(data) {
this.download('business/store/export', {
- ...this.queryParams
- }, `role_${new Date().getTime()}.xlsx`)
+ ...this.queryParams1
+ }, `export_${new Date().getTime()}.xlsx`)
}
}
};