From 78f26b76c47cf0e2b9d32022bcb96d9cedf04e75 Mon Sep 17 00:00:00 2001
From: sj <1304317391@qq.com>
Date: Thu, 13 Oct 2022 14:58:34 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BC=98=E6=83=A0=E5=88=B8?=
=?UTF-8?q?=E6=97=B6=E9=97=B4=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/bxg/activity/coupon/form.vue | 12 +++++++++---
src/views/bxg/activity/coupon/index.vue | 4 ++--
src/views/bxg/shop/storeBrand/index.vue | 16 ++++++++++++----
src/views/bxg/shop/yxStoreHotList/index.vue | 17 +----------------
4 files changed, 24 insertions(+), 25 deletions(-)
diff --git a/src/views/bxg/activity/coupon/form.vue b/src/views/bxg/activity/coupon/form.vue
index e61ccdc..641de04 100644
--- a/src/views/bxg/activity/coupon/form.vue
+++ b/src/views/bxg/activity/coupon/form.vue
@@ -24,8 +24,9 @@
@@ -33,6 +34,7 @@
@@ -93,6 +95,9 @@ export default {
}
},
methods: {
+ change(val){
+ console.log(val)
+ },
getGoods(p) {
var ids = []
p.forEach((item,index) => {
@@ -106,10 +111,9 @@ export default {
cancel() {
this.resetForm()
},
- doSubmit() {
+ doSubmit() {
this.loading = true
if (this.isAdd) {
- // console.log(typeof(this.form.useStartTime),this.form.useStartTime);
this.doAdd()
} else this.doEdit()
},
@@ -162,6 +166,8 @@ export default {
couponPrice: 0,
useMinPrice: 0,
// couponTime: 1,
+ useStartTime:'',
+ useEndTime:'',
sort: 0,
status: 1,
type: 0,
diff --git a/src/views/bxg/activity/coupon/index.vue b/src/views/bxg/activity/coupon/index.vue
index ac20dee..8dcbc01 100644
--- a/src/views/bxg/activity/coupon/index.vue
+++ b/src/views/bxg/activity/coupon/index.vue
@@ -167,8 +167,8 @@ export default {
integral: data.integral,
couponPrice: data.couponPrice,
useMinPrice: data.useMinPrice,
- useStartTime:new Date(data.useStartTime),
- useEndTime:new Date(data.useEndTime),
+ useStartTime:data.useStartTime,
+ useEndTime:data.useEndTime,
// couponTime: data.couponTime,
sort: data.sort,
status: data.status,
diff --git a/src/views/bxg/shop/storeBrand/index.vue b/src/views/bxg/shop/storeBrand/index.vue
index fc21c6f..9fe15ac 100644
--- a/src/views/bxg/shop/storeBrand/index.vue
+++ b/src/views/bxg/shop/storeBrand/index.vue
@@ -27,6 +27,9 @@
+
+
+
显示
@@ -91,7 +94,7 @@ import MaterialList from "@/components/material";
// crud交由presenter持有
const defaultCrud = CRUD({ title: '品牌', url: '/bxg/api/yxStoreBrand', sort: 'id,desc', crudMethod: { ...crudYxStoreBrand }})
-const defaultForm = { id: null, brandName: null, sort: null, pic: null, isShow: null, createTime: null, updateTime: null, isDel: null, tenantId: null }
+const defaultForm = { id: null, brandName: null, sort: null, pic: null,backgroundImage:null,isShow: null, createTime: null, updateTime: null, isDel: null, tenantId: null }
export default {
name: 'YxStoreBrand',
components: { pagination, crudOperation, rrOperation, udOperation ,MaterialList},
@@ -99,6 +102,7 @@ export default {
data() {
return {
picArr: [],
+ picArr1: [],
permission: {
add: ['admin', 'yxStoreBrand:add'],
edit: ['admin', 'yxStoreBrand:edit'],
@@ -112,8 +116,10 @@ export default {
},
watch: {
picArr: function(val) {
- console.log();
this.form.pic = val.join(',')
+ },
+ picArr1: function(val) {
+ this.form.backgroundImage = val.join(',')
}
},
methods: {
@@ -123,11 +129,13 @@ export default {
}, // 新增与编辑前做的操作
[CRUD.HOOK.afterToCU](crud, form) {
this.picArr = []
- this
-
+ this.picArr1= []
if (form.pic && form.id) {
this.picArr = form.pic.split(',')
}
+ if (form.backgroundImage && form.id) {
+ this.picArr1 = form.backgroundImage.split(',')
+ }
},
}
}
diff --git a/src/views/bxg/shop/yxStoreHotList/index.vue b/src/views/bxg/shop/yxStoreHotList/index.vue
index 7439aa1..e25ef37 100644
--- a/src/views/bxg/shop/yxStoreHotList/index.vue
+++ b/src/views/bxg/shop/yxStoreHotList/index.vue
@@ -19,7 +19,7 @@
clearable
@change="cascaderChange($event)"
v-model="productList"
- placeholder="试试搜索:眼镜"
+ placeholder="多选,按选择顺序排序"
:options="cateList"
ref="quitCascader"
filterable>
@@ -144,20 +144,6 @@ export default {
this.getInfo();
},
methods: {
- //需要使显示循序变为点击顺序
- // cascaderChange(val) {
- // this.oldProductList= val;
- // //如果只选了一个不需要判断,正常显示
- // if (val.length<=1){
- // // this.oldProductList=[]
- // }else {
- // // productList=this.getCascader(val,this.$refs.cascader.getCheckedNodes());
- // // this.label = productList.label; //回显的数据
- // console.log('val',val, this.oldProductList,)
- // this.productList=[];
- // // console.log('1111',val)
- // }
- // },
cascaderChange(val) {
this.productList=[]
let productList=[]
@@ -165,7 +151,6 @@ export default {
this.productList = productList //回显的数据
this.oldProductList=productList;
this.form.productList=JSON.stringify(this.productList.map(item=>item[1]));
- this.$refs.quitCascader.inputValue="你想要框内显示的值"
},
getCascader(newVal,oldVal) {
let productList = []