修改样式 和 优化一些 功能

master
夜良king 2022-02-16 09:25:01 +08:00
parent aee67ec317
commit c4037a346d
6 changed files with 42 additions and 14 deletions

View File

@ -53,8 +53,10 @@ export default {
.content{
width: 1200px;
height: 100%;
margin: auto;
position: relative;
position: fixed;
top:0;
left:50%;
margin-left:-600px;
}
.hr{
width: 100%;

View File

@ -7,7 +7,7 @@
<Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px" />
</Form-item>
<Form-item label="审核状态" prop="applyStatus">
<Select v-model="searchForm.memberName" clearable style="width: 200px">
<Select v-model="searchForm.applyStatus" clearable style="width: 200px">
<Option value="APPLY">申请中</Option>
<Option value="VIA_AUDITING">审核通过(提现成功)</Option>
<Option value="FAIL_AUDITING">审核拒绝</Option>

View File

@ -5,14 +5,14 @@
ref="searchForm"
:model="searchForm"
inline
:label-width="70"
:label-width="75"
class="search-form mb_10"
>
<Form-item label="活动名称" prop="couponName">
<Form-item label="优惠券名称" prop="couponName">
<Input
type="text"
v-model="searchForm.couponName"
placeholder="请输入活动名称"
placeholder="请输入优惠券名称"
clearable
style="width: 200px"
/>
@ -349,6 +349,7 @@ export default {
getPlatformCouponList(this.searchForm).then((res) => {
this.loading = false;
if (res.success) {
console.log(res)
this.data = res.result.records;
this.total = res.result.total;
}

View File

@ -219,6 +219,7 @@ export default {
getFullDiscountList(this.searchForm).then((res) => {
this.loading = false;
if (res.success) {
console.log(res)
this.data = res.result.records;
this.total = res.result.total;
}

View File

@ -256,8 +256,8 @@ export const lowGoods = params => {
};
// 获取商品单位列表
export const getGoodsUnitList = () => {
return getRequest(`/goods/goodsUnit`);
export const getGoodsUnitList = params => {
return getRequest(`/goods/goodsUnit`,params);
};
//根据分类id获取关联品牌
export const getCategoryBrandListDataSeller = (category_id, params) => {

View File

@ -67,12 +67,14 @@
prop="goodsUnit"
>
<Select v-model="baseInfoForm.goodsUnit" style="width: 100px">
<Scroll :on-reach-bottom="handleReachBottom" >
<Option
v-for="(unit, i) in goodsUnitList"
:key="i"
:value="unit"
>{{ unit }}
v-for="(item, index) in goodsUnitList"
:key="index"
:value="item"
>{{ item }}
</Option>
</Scroll>
</Select>
</FormItem>
<FormItem
@ -694,6 +696,7 @@ export default {
};
return {
regular,
total:0,
accessToken: "", //token
goodsParams: "",
categoryId: "", // id
@ -778,6 +781,10 @@ export default {
value: [regular.REQUIRED, regular.VARCHAR60],
templateId: [regular.REQUIRED],
},
params:{
pageNumber:1,
pageSize:10
},
skuInfoRules: {},
/** 品牌列表 */
brandList: [],
@ -956,12 +963,23 @@ export default {
this.brandList = response;
}
);
},
//
handleReachBottom(){
setTimeout(() => {
if (this.params.pageNumber * this.params.pageSize <= this.total) {
this.params.pageNumber++;
this.GET_GoodsUnit();
}
}, 1000);
},
//
GET_GoodsUnit() {
API_GOODS.getGoodsUnitList().then((res) => {
API_GOODS.getGoodsUnitList(this.params).then((res) => {
if (res.success) {
this.goodsUnitList = res.result.records.map((i) => i.name);
console.log(res)
this.goodsUnitList.push(...res.result.records.map((i) => i.name));
this.total = res.result.total;
}
});
},
@ -1688,3 +1706,9 @@ export default {
width: 100%;
}
</style>
<style>
.ivu-select .ivu-select-dropdown{
overflow: hidden !important;
}
</style>