修改样式 和 优化一些 功能

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{ .content{
width: 1200px; width: 1200px;
height: 100%; height: 100%;
margin: auto; position: fixed;
position: relative; top:0;
left:50%;
margin-left:-600px;
} }
.hr{ .hr{
width: 100%; width: 100%;

View File

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

View File

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

View File

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

View File

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

View File

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