From 656666aab893219d7d8d1a626b278a58d304ec37 Mon Sep 17 00:00:00 2001
From: luochenyi <541660090@qq.com>
Date: Mon, 14 Mar 2022 16:14:06 +0800
Subject: [PATCH] 1
---
src/components/searchForm/index.vue | 15 ++--
.../Activity/_activityManage/index.vue | 75 +++++++++++++------
.../Operation/Activity/_organizers/index.vue | 13 ++--
src/views/Operation/Announcement/index.vue | 13 ++--
src/views/Operation/BBS/_topic/index.vue | 13 ++--
.../_inspectionExecute/index.vue | 13 ++--
.../_inspectionPlan/index.vue | 13 ++--
.../_inspectionPoint/index.vue | 18 ++---
.../_inspectionRoute/index.vue | 13 ++--
src/views/Operation/News/_newsItem/index.vue | 13 ++--
.../Operation/News/_newsManage/index.vue | 13 ++--
.../Payment/ChargeStandardBind/index.vue | 13 ++--
.../Payment/ChargeStandardManage/index.vue | 13 ++--
.../Payment/PrepayManage/depend/preList.vue | 11 +--
src/views/Payment/PrepayManage/index.vue | 11 +--
src/views/Shop/GoodsManage/_brand/index.vue | 13 ++--
.../Shop/GoodsManage/_goodsList/index.vue | 13 ++--
.../Shop/GoodsManage/_jcookList/index.vue | 13 ++--
src/views/Shop/StoreManage/index.vue | 13 ++--
src/views/Shop/SupplierManage/index.vue | 13 ++--
20 files changed, 167 insertions(+), 158 deletions(-)
diff --git a/src/components/searchForm/index.vue b/src/components/searchForm/index.vue
index 48acf33..05db067 100644
--- a/src/components/searchForm/index.vue
+++ b/src/components/searchForm/index.vue
@@ -21,7 +21,7 @@
>{{ option.name }}
-
+
查询
@@ -62,18 +62,17 @@ export default {
},
methods: {
getSearch() {
- console.log(this.form);
this.$emit('getSearch', this.form)
},
resetForm() {
this.$refs.ruleForm.resetFields();
- this.$emit('getSearch', this.form)
+ this.$emit('getSearch', this.form,'clear')
},
- changeTime(data,start,end){
- this.$emit('changeTime', data,start,end)
- this.form[start] = data[0]
- this.form[end] = data[1]
- }
+ // changeTime(data,start,end){
+ // this.$emit('changeTime', data,start,end)
+ // this.form[start] = data[0]
+ // this.form[end] = data[1]
+ // }
},
};
diff --git a/src/views/Operation/Activity/_activityManage/index.vue b/src/views/Operation/Activity/_activityManage/index.vue
index c00e01c..26dfb81 100644
--- a/src/views/Operation/Activity/_activityManage/index.vue
+++ b/src/views/Operation/Activity/_activityManage/index.vue
@@ -1,7 +1,7 @@
活动管理
-
+
新增活动
@@ -39,7 +39,8 @@
@@ -64,7 +65,11 @@
@addClose="addClose"
:editId="editId"
>
-
+
@@ -76,16 +81,16 @@ import detailForm from "./depend/detail.vue";
export default {
components: {
addForm,
- detailForm
+ detailForm,
},
data() {
return {
drawer: {
show: false,
- detail:false
+ detail: false,
},
editId: null,
- detailId:null,
+ detailId: null,
tableData: [],
searchForm: {
activityAddress: undefined,
@@ -110,27 +115,53 @@ export default {
this.getData();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
+ search(data,type) {
+ if(type ==='clear'){
+ this.searchForm = {
+ activityAddress: undefined,
+ organizerName: undefined,
+ activityContact: undefined,
+ activityTel: undefined,
+ title: undefined,
+ status: undefined,
+ registrationStartTime: undefined,
+ registrationEndTime: undefined,
+ activityStartTime: undefined,
+ activityEndTime: undefined,
+ }
+ }else{
+ let obj = {}
+ for(let k in data) {
+ if(Array.isArray(data[k])) {
+ console.log(data[k]);
+ let start = k + 'StartTime'
+ obj[start] = data[k][0]
+ let end = k + 'EndTime'
+ obj[end] = data[k][1]
+ }else{
+ obj[k] = data[k]
+ }
+ }
+ console.log(obj);
+ this.searchForm = obj;
}
+ this.getData()
+ },
+ async getData() {
let res = await activityList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
- ...this.searchForm
+ ...this.searchForm,
});
this.tableData = res.data.rows;
this.pagination.total = res.data.total;
- this.selectedRowKeys=[]
- },
- changeTime(data,start,end){
- console.log(start);
- this.searchForm[start] = data[0]
- this.searchForm[end] = data[1]
- console.log(this.searchForm);
+ this.selectedRowKeys = [];
},
+ // changeTime(data,start,end){
+ // this.searchForm[start] = data[0]
+ // this.searchForm[end] = data[1]
+ // console.log(this.searchForm);
+ // },
edit(id) {
this.editId = id;
this.drawer.show = true;
@@ -177,14 +208,14 @@ export default {
success() {
this.getData();
},
- detail(id){
+ detail(id) {
this.drawer.detail = true;
this.detailId = id;
},
- detailClose(){
+ detailClose() {
this.detailId = null;
this.drawer.detail = false;
- }
+ },
},
computed: {
hasSelected() {
diff --git a/src/views/Operation/Activity/_organizers/index.vue b/src/views/Operation/Activity/_organizers/index.vue
index a6d6544..e742ee1 100644
--- a/src/views/Operation/Activity/_organizers/index.vue
+++ b/src/views/Operation/Activity/_organizers/index.vue
@@ -1,7 +1,7 @@
活动主办方
-
+
新增主办方
@@ -85,12 +85,11 @@ export default {
this.getData();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
+ async getData() {
let res = await organizerList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
diff --git a/src/views/Operation/Announcement/index.vue b/src/views/Operation/Announcement/index.vue
index aeb3241..b0a0361 100644
--- a/src/views/Operation/Announcement/index.vue
+++ b/src/views/Operation/Announcement/index.vue
@@ -1,7 +1,7 @@
公告
-
+
新增公告
@@ -83,12 +83,11 @@ export default {
this.getData();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
+ async getData() {
let res = await announcementList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
diff --git a/src/views/Operation/BBS/_topic/index.vue b/src/views/Operation/BBS/_topic/index.vue
index 9e4741e..d0fd72d 100644
--- a/src/views/Operation/BBS/_topic/index.vue
+++ b/src/views/Operation/BBS/_topic/index.vue
@@ -1,7 +1,7 @@
社区话题
-
+
新增话题
@@ -99,12 +99,7 @@ export default {
this.getData();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ async getData() {
let res = await topicList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
@@ -113,6 +108,10 @@ export default {
this.tableData = res.data.rows;
this.pagination.total = res.data.total;
},
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
edit(id) {
this.editId = id;
this.drawer.show = true;
diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/index.vue b/src/views/Operation/InspectionManage/_inspectionExecute/index.vue
index 3fbe6e7..8e0c154 100644
--- a/src/views/Operation/InspectionManage/_inspectionExecute/index.vue
+++ b/src/views/Operation/InspectionManage/_inspectionExecute/index.vue
@@ -3,7 +3,7 @@
巡检记录
巡检计划
-
+
新增计划
@@ -93,12 +93,7 @@ export default {
let res = await routeSelect()
this.formItem[3].option = res.data
},
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ async getData() {
let res = await planList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
@@ -108,6 +103,10 @@ export default {
this.pagination.total = res.data.total;
this.selectedRowKeys = []
},
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
changeTime(data, start, end) {
console.log(start);
this.searchForm[start] = data[0];
diff --git a/src/views/Operation/InspectionManage/_inspectionPoint/index.vue b/src/views/Operation/InspectionManage/_inspectionPoint/index.vue
index beaacc0..f740260 100644
--- a/src/views/Operation/InspectionManage/_inspectionPoint/index.vue
+++ b/src/views/Operation/InspectionManage/_inspectionPoint/index.vue
@@ -3,8 +3,7 @@
巡检点
新增巡更点
巡检路线
-
+
新增路线
@@ -81,12 +81,7 @@ export default {
this.getData();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ async getData() {
let res = await routeList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
@@ -96,6 +91,10 @@ export default {
this.pagination.total = res.data.total;
this.selectedRowKeys = []
},
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
edit(id) {
this.editId = id;
this.drawer.show = true;
diff --git a/src/views/Operation/News/_newsItem/index.vue b/src/views/Operation/News/_newsItem/index.vue
index 6b0fcb9..b47c434 100644
--- a/src/views/Operation/News/_newsItem/index.vue
+++ b/src/views/Operation/News/_newsItem/index.vue
@@ -1,7 +1,7 @@
资讯分类
-
+
新增分类
@@ -82,12 +82,7 @@ export default {
this.getData();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ async getData() {
let res = await newsItemList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
@@ -97,6 +92,10 @@ export default {
this.pagination.total = res.data.total;
this.selectedRowKeys=[]
},
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
edit(data) {
this.editData = data;
this.drawer.show = true;
diff --git a/src/views/Operation/News/_newsManage/index.vue b/src/views/Operation/News/_newsManage/index.vue
index 93b6ce6..cd4a4a2 100644
--- a/src/views/Operation/News/_newsManage/index.vue
+++ b/src/views/Operation/News/_newsManage/index.vue
@@ -1,7 +1,7 @@
资讯管理
-
+
新增资讯
@@ -95,12 +95,7 @@ export default {
this.getItem();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ async getData() {
let res = await newsList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
@@ -110,6 +105,10 @@ export default {
this.pagination.total = res.data.total;
this.selectedRowKeys=[]
},
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
async getItem(){
let res = await itemSelect()
this.formItem[0].option = res.data
diff --git a/src/views/Payment/ChargeStandardBind/index.vue b/src/views/Payment/ChargeStandardBind/index.vue
index 3d2c996..4f25013 100644
--- a/src/views/Payment/ChargeStandardBind/index.vue
+++ b/src/views/Payment/ChargeStandardBind/index.vue
@@ -71,7 +71,7 @@
-
+
添加费用
预缴管理
-
+
品牌管理
-
+
新增品牌
@@ -108,12 +108,11 @@ export default {
this.getData();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
+ async getData() {
let res = await brandList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
diff --git a/src/views/Shop/GoodsManage/_goodsList/index.vue b/src/views/Shop/GoodsManage/_goodsList/index.vue
index 01ac510..3932827 100644
--- a/src/views/Shop/GoodsManage/_goodsList/index.vue
+++ b/src/views/Shop/GoodsManage/_goodsList/index.vue
@@ -3,7 +3,7 @@
商品管理
-
+
jcook商品库
-
+
店铺管理
-
+
新增店铺
@@ -108,12 +108,11 @@ export default {
this.getData();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
+ async getData() {
let res = await shopList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,
diff --git a/src/views/Shop/SupplierManage/index.vue b/src/views/Shop/SupplierManage/index.vue
index 799a580..4ce116d 100644
--- a/src/views/Shop/SupplierManage/index.vue
+++ b/src/views/Shop/SupplierManage/index.vue
@@ -1,7 +1,7 @@
供应商管理
-
+
新增供应商
@@ -108,12 +108,11 @@ export default {
this.getData();
},
methods: {
- async getData(data) {
- if (data !== undefined) {
- console.log(data);
- this.searchForm = data;
- console.log(this.searchForm);
- }
+ search(data){
+ this.searchForm = data;
+ this.getData()
+ },
+ async getData() {
let res = await vendorList({
pageNum: this.pagination.current,
size: this.pagination.pageSize,