产品更改序号

master
lion 3 years ago
parent 275d4552ec
commit 8c7a9272e3

@ -1,166 +1,170 @@
<template> <template>
<div> <div>
<Modal :width="80" :value.sync="isShow" :fullscreen='isFullScreen' @on-visible-change="$emit('update:isShow',$event)" <Modal :width="80" :value.sync="isShow" :fullscreen='isFullScreen'
> @on-visible-change="$emit('update:isShow',$event)">
<div class="ivu-modal-header ivu-modal-header-wrap"> <div class="ivu-modal-header ivu-modal-header-wrap">
<div v-solt:header> <template v-solt:header>
{{name+'订单列表'}} {{name+'订单列表'}}
<a class="ivu-modal-screen" @click="isFullScreen=!isFullScreen"><i :class="isFullScreen?'el-icon-aim':'el-icon-full-screen'"></i></a> <a class="ivu-modal-screen" @click="isFullScreen=!isFullScreen"><i
</div> :class="isFullScreen?'el-icon-aim':'el-icon-full-screen'"></i></a>
</div> </template>
</div>
<Button class="select" type="primary" style="margin-bottom: 10px;" @click="downloadExel"></Button>
<xy-table id="print" :is-page="false" :list="list" :table-item="table" :height="300"> <Button class="select" type="primary" style="margin-bottom: 10px;" @click="downloadExel"></Button>
<template v-slot:btns> <xy-table id="print" :is-page="false" :list="list" :table-item="table" :height="300">
<div></div> <template v-slot:btns>
</template> <div></div>
</xy-table> </template>
</Modal> </xy-table>
</div> </Modal>
</template> </div>
</template>
<script>
import {show} from "@/api/activity" <script>
import {
show
} from "@/api/activity"
import { import {
download download
} from '@/utils/downloadRequest' } from '@/utils/downloadRequest'
export default { export default {
props:{ props: {
id:Number, id: Number,
name:String, name: String,
isShow:{ isShow: {
type:Boolean, type: Boolean,
default:false default: false
} }
}, },
data() { data() {
return { return {
isFullScreen:false, isFullScreen: false,
list:[], list: [],
table:[ table: [{
{ prop: "name",
prop: "name", label: "姓名",
label: "姓名", width: 120
width: 120 },
}, {
{ prop: "wechat_nickname",
prop: "wechat_nickname", label: "微信昵称",
label: "微信昵称", width: 120
width: 120 },
}, {
{ label: "头像",
label: "头像", width: 80,
width: 80, prop: "members.avatar",
prop:"members.avatar", customFn: (row) => {
customFn: (row) => { return ( <div style = {
return ( < div style = { {
{ display: 'flex',
display: 'flex', alignItems: 'center',
alignItems: 'center', justifyContent: 'center'
justifyContent: 'center' }
} } > <el-avatar src = {
} > <el-avatar src = { row.members?.avatar
row.members?.avatar } > </el-avatar></div> )
} > </el-avatar></div > ) }
} },
},
{
{ prop: "phone",
prop: "phone", label: "联系电话",
label: "联系电话", width: 120
width: 120 },
}, {
{ prop: "area",
prop: "area", label: "区域",
label: "区域", width: 120
width: 120 },
}, {
{ prop: "address",
prop: "address", label: "地址",
label: "地址", width: 120
width: 120 },
}, {
{ prop: "budget_date",
prop: "budget_date", label: "预产期",
label: "预产期", // width: 120
// width: 120 },
}, {
{ prop: "hospital",
prop: "hospital", label: "建卡医院",
label: "建卡医院", width: 120
width: 120 },
}, {
{ prop: "spread_member_name",
prop: "spread_member_name", label: "推广渠道",
label: "推广渠道", width: 120
width: 120 },
}, {
{ prop: "spread_member_phone",
prop: "spread_member_phone", label: "推广人号码",
label: "推广人号码", width: 120
width: 120 },
}, {
{ prop: "used_time_name",
prop: "used_time_name", label: "是否核销",
label: "是否核销", width: 120
width: 120 },
},
],
], }
} },
}, methods: {
methods: { closeshowChange() {},
closeshowChange(){}, fullScreen() {},
fullScreen(){}, async getOrder() {
async getOrder(){ await show({
await show({ id: this.id
id:this.id }).then(res => {
}).then(res=>{ for (var k of res.apply) {
for(var k of res.apply){ k.wechat_nickname = k.members ? k.members.wechat_nickname : ""
k.wechat_nickname = k.members?k.members.wechat_nickname:"" k.used_time_name = k.used_time ? '已核销' : '待核销'
k.used_time_name = k.used_time ? '已核销':'待核销' k.spread_member_name = k.spread_member ? k.spread_member.name : ''
k.spread_member_name = k.spread_member?k.spread_member.name:'' k.spread_member_phone = k.spread_member ? k.spread_member.phone : ''
k.spread_member_phone = k.spread_member?k.spread_member.phone:'' }
} this.list = res.apply
this.list = res.apply })
})
},
}, downloadExel() {
downloadExel(){ // this.$Print('#print')
// this.$Print('#print') this.$Export.excel({
this.$Export.excel({ title: this.name,
title: this.name, columns: this.table,
columns: this.table, data: this.list
data: this.list });
}); // download(
// download( // '/api/admin/active/show',
// '/api/admin/active/show', // 'get', {
// 'get', { // id:this.id
// id:this.id // },
// }, // this.name+'.xlsx')
// this.name+'.xlsx') }
} },
}, watch: {
watch:{ isShow(newVal) {
isShow(newVal){ if (newVal) {
if(newVal){ this.getOrder()
this.getOrder() }
} }
} }
}
}
} </script>
</script>
<style scoped lang="scss">
<style scoped lang="scss"> .ivu-modal-header-wrap {
.ivu-modal-header-wrap{ margin-bottom: 10px;
margin-bottom:10px; padding-top: 0;
padding-top: 0;
.ivu-modal-screen{ .ivu-modal-screen {
top:16px; top: 16px;
} }
} }
.ivu-modal-close{
top:7px .ivu-modal-close {
} top: 7px
}
</style> </style>

@ -235,7 +235,8 @@
return { return {
id: '', id: '',
isShow: false, isShow: false,
type: 'add', type: 'add',
sortnumberNew:'',
action: `${process.env.VUE_APP_BASE_API}api/admin/upload-file`, action: `${process.env.VUE_APP_BASE_API}api/admin/upload-file`,
pickerOptions: { pickerOptions: {
shortcuts: [{ shortcuts: [{
@ -376,7 +377,8 @@
time: [res?.start_time, res?.end_time], time: [res?.start_time, res?.end_time],
sortnumber: res?.sortnumber, sortnumber: res?.sortnumber,
content: res?.content content: res?.content
} }
console.log("form",this.form)
// this.$refs['tinymce'].setContent(this.form.content || ' ') // this.$refs['tinymce'].setContent(this.form.content || ' ')
}, },
@ -440,7 +442,13 @@
// }else{ // }else{
// return str // return str
// } // }
// }, // },
async updateSortNumber(){
await this.getDetail()
this.form.sortnumber = this.sortnumberNew
await this.submit()
},
submit() { submit() {
if (this.type === 'add'||this.type === 'copy') { if (this.type === 'add'||this.type === 'copy') {
store({ store({
@ -471,7 +479,8 @@
}) })
return return
} }
if (this.type === 'editor') { if (this.type === 'editor') {
// return
save({ save({
id: this.id, id: this.id,
name: this.form.name, name: this.form.name,
@ -495,7 +504,8 @@
Message({ Message({
type: 'success', type: 'success',
message: '编辑商品成功' message: '编辑商品成功'
}) })
this.sortnumberNew = ""
this.isShow = false this.isShow = false
this.$emit('refresh') this.$emit('refresh')
}) })

@ -1,365 +1,409 @@
<template> <template>
<div style="padding: 0 20px"> <div style="padding: 0 20px">
<div ref="lxHeader"> <div ref="lxHeader">
<lx-header icon="md-apps" text="产品与服务管理" style="margin-bottom: 10px; border: 0px; margin-top: 15px"> <lx-header icon="md-apps" text="产品与服务管理" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
<div slot="content"></div> <div slot="content"></div>
<slot> <slot>
<div style="display: flex"> <div style="display: flex">
<Input v-model="select.name" style="width: 200px;margin-right: 10px;" placeholder="产品名称搜索" /> <Input v-model="select.name" style="width: 200px;margin-right: 10px;" placeholder="产品名称搜索" />
<xy-selectors @search="getProducts"> <xy-selectors @search="getProducts">
<template> <template>
<div class="select-content-item"> <div class="select-content-item">
<div class="select-content-item-label">所属商户</div> <div class="select-content-item-label">所属商户</div>
<div> <div>
<Select clearable v-model="select.merchantId" style="width: 140px;" placeholder="所属商户">--> <Select clearable v-model="select.merchantId" style="width: 140px;" placeholder="所属商户">-->
<Scroll :on-reach-bottom="loadMoreMerchant"> <Scroll :on-reach-bottom="loadMoreMerchant">
<Option v-for="item in merchants" :value="item.id" :key="item.id"> <Option v-for="item in merchants" :value="item.id" :key="item.id">
{{item.name}} {{item.name}}
</Option> </Option>
</Scroll> </Scroll>
</Select> </Select>
</div> </div>
</div> </div>
<div class="select-content-item"> <div class="select-content-item">
<div class="select-content-item-label"> <div class="select-content-item-label">
状态 状态
</div> </div>
<div> <div>
<el-radio v-model="select.state" label="inactive"></el-radio> <el-radio v-model="select.state" label="inactive"></el-radio>
<el-radio v-model="select.state" label="active"></el-radio> <el-radio v-model="select.state" label="active"></el-radio>
<el-radio v-model="select.state" label=""></el-radio> <el-radio v-model="select.state" label=""></el-radio>
</div> </div>
</div> </div>
<div class="select-content-item"> <div class="select-content-item">
<div class="select-content-item-label"> <div class="select-content-item-label">
类别 类别
</div> </div>
<div> <div>
<el-cascader <el-cascader clearable placeholder="类别选择" style="width: 170px;" size="small" :options="types"
clearable :show-all-levels="false" :props="{value:'id',label:'title',expandTrigger:'hover'}"
placeholder="类别选择" @change="e => select.productTypeId = e.at(-1)">
style="width: 170px;" size="small" </el-cascader>
:options="types" :show-all-levels="false" </div>
:props="{value:'id',label:'title',expandTrigger:'hover'}" </div>
@change="e => select.productTypeId = e.at(-1)"> </template>
</el-cascader> </xy-selectors>
</div> <Button type="primary" @click="searchProducts"></Button>
</div> <Button type="primary" @click="$refs['addProduct'].isShow = true,$refs['addProduct'].type = 'add'"
</template> style="margin-left: 10px;">新增</Button>
</xy-selectors> </div>
<Button type="primary" @click="searchProducts"></Button> <!-- <div class="selector">-->
<Button type="primary" @click="$refs['addProduct'].isShow = true,$refs['addProduct'].type = 'add'" style="margin-left: 10px;">新增</Button> <!-- <div class="selector-item">-->
</div> <!-- <div class="selector-item__label">产品名称</div>-->
<!-- <div class="selector">--> <!-- <Input v-model="select.name" style="width: 200px;" placeholder="产品名称搜索" />-->
<!-- <div class="selector-item">--> <!-- </div>-->
<!-- <div class="selector-item__label">产品名称</div>--> <!-- <div class="selector-item">-->
<!-- <Input v-model="select.name" style="width: 200px;" placeholder="产品名称搜索" />--> <!-- <div class="selector-item__label">所属商户</div>-->
<!-- </div>--> <!-- <Select clearable v-model="select.merchantId" style="width: 140px;" placeholder="所属商户">-->
<!-- <div class="selector-item">--> <!-- <Scroll :on-reach-bottom="loadMoreMerchant">-->
<!-- <div class="selector-item__label">所属商户</div>--> <!-- <Option v-for="item in merchants" :value="item.id" :key="item.id">-->
<!-- <Select clearable v-model="select.merchantId" style="width: 140px;" placeholder="所属商户">--> <!-- {{item.name}}-->
<!-- <Scroll :on-reach-bottom="loadMoreMerchant">--> <!-- </Option>-->
<!-- <Option v-for="item in merchants" :value="item.id" :key="item.id">--> <!-- </Scroll>-->
<!-- {{item.name}}--> <!-- </Select>-->
<!-- </Option>--> <!-- </div>-->
<!-- </Scroll>--> <!-- <div class="selector-item">-->
<!-- </Select>--> <!-- <div class="selector-item__label">状态选择</div>-->
<!-- </div>--> <!-- <Select clearable style="width: 130px;" clearable placeholder="状态选择" v-model="select.state">-->
<!-- <div class="selector-item">--> <!-- <Option v-for="item in [{value:'active',label:'已上架'},{label:'已下架',value:'inactive'}]" :value="item.value">{{item.label}}</Option>-->
<!-- <div class="selector-item__label">状态选择</div>--> <!-- </Select>-->
<!-- <Select clearable style="width: 130px;" clearable placeholder="状态选择" v-model="select.state">--> <!-- </div>-->
<!-- <Option v-for="item in [{value:'active',label:'已上架'},{label:'已下架',value:'inactive'}]" :value="item.value">{{item.label}}</Option>--> <!-- <div class="selector-item">-->
<!-- </Select>--> <!-- <div class="selector-item__label">类别选择</div>-->
<!-- </div>--> <!-- <el-cascader-->
<!-- <div class="selector-item">--> <!-- clearable-->
<!-- <div class="selector-item__label">类别选择</div>--> <!-- placeholder="类别选择"-->
<!-- <el-cascader--> <!-- style="width: 170px;"-->
<!-- clearable--> <!-- size="small"-->
<!-- placeholder="类别选择"--> <!-- :options="types"-->
<!-- style="width: 170px;"--> <!-- :show-all-levels="false"-->
<!-- size="small"--> <!-- :props="{value:'id',label:'title',expandTrigger:'hover'}"-->
<!-- :options="types"--> <!-- @change="e => select.productTypeId = e.at(-1)">-->
<!-- :show-all-levels="false"--> <!-- </el-cascader>-->
<!-- :props="{value:'id',label:'title',expandTrigger:'hover'}"--> <!-- </div>-->
<!-- @change="e => select.productTypeId = e.at(-1)">--> <!-- <div class="selector-item">-->
<!-- </el-cascader>--> <!-- <Button type="primary" @click="getProducts"></Button>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="selector-item">--> <!-- <div class="selector-item">-->
<!-- <Button type="primary" @click="getProducts"></Button>--> <!-- <Button type="primary" @click="$refs['addProduct'].isShow = true,$refs['addProduct'].type = 'add'">新增</Button>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="selector-item">--> <!-- </div>-->
<!-- <Button type="primary" @click="$refs['addProduct'].isShow = true,$refs['addProduct'].type = 'add'">新增</Button>--> </slot>
<!-- </div>--> </lx-header>
<!-- </div>--> </div>
</slot>
</lx-header> <xy-table :total="total" :list="list" :table-item="table" @pageSizeChange="pageSizeChange"
</div> @pageIndexChange="pageChange">
<template v-slot:btns>
<xy-table :total="total" :list="list" :table-item="table" @pageSizeChange="pageSizeChange" @pageIndexChange="pageChange"> <el-table-column fixed="right" label="操作" width="300" header-align="center">
<template v-slot:btns> <template slot-scope="scope">
<el-table-column fixed="right" label="操作" width="300" header-align="center"> <Button type="primary" size="small" @click="editorShow(scope.row.id,'editor')"></Button>
<template slot-scope="scope"> <Button type="primary" size="small" style="margin-left: 10px;"
<Button type="primary" size="small" @click="editorShow(scope.row.id,'editor')"></Button> @click="editorShow(scope.row.id,'copy')">复制新增</Button>
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorShow(scope.row.id,'copy')"></Button> <Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteProduct(scope.row)">
<Poptip <Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
transfer </Poptip>
confirm <el-switch style="margin-left: 10px;" :value="scope.row.state_name == '已上架' ? true : false"
title="确认要删除吗?" active-color="#BF617C" inactive-color="#E5E5E5"
@on-ok="deleteProduct(scope.row)"> :active-text="scope.row.state_name == '已上架' ? '已上架' : '已下架'" @change="stateChange(scope.row)">
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button> </el-switch>
</Poptip> </template>
<el-switch </el-table-column>
style="margin-left: 10px;" </template>
:value="scope.row.state_name == '已上架' ? true : false" </xy-table>
active-color="#BF617C"
inactive-color="#E5E5E5"
:active-text="scope.row.state_name == '已上架' ? '已上架' : '已下架'" <addProduct ref="addProduct" :types="types" @refresh="getProducts"></addProduct>
@change="stateChange(scope.row)"> </div>
</el-switch> </template>
</template>
</el-table-column> <script>
</template> import {
</xy-table> index as typeIndex
} from '@/api/type'
import {
<addProduct ref="addProduct" :types="types" @refresh="getProducts"></addProduct> index,
</div> toggleActive,
</template> destroy
} from '@/api/product'
<script> import {
import {index as typeIndex} from '@/api/type' index as merchantIndex
import {index,toggleActive,destroy} from '@/api/product' } from "@/api/merchant"
import {index as merchantIndex} from "@/api/merchant"
import addProduct from '@/views/productService/components/addProduct'
import addProduct from '@/views/productService/components/addProduct' import {
import { Message } from 'element-ui' Message
export default { } from 'element-ui'
components:{ export default {
addProduct components: {
}, addProduct
data() { },
return { data() {
select:{ return {
pageIndex:1, select: {
pageSize:10, pageIndex: 1,
name:'', pageSize: 10,
merchantId:'', name: '',
productTypeId:'', merchantId: '',
state:'' productTypeId: '',
}, state: ''
},
total:0,
list:[], total: 0,
table:[ list: [],
{ table: [{
prop:'name', prop: 'name',
label:'名称', label: '名称',
width:260, width: 260,
align:'left', align: 'left',
fixed:'left' fixed: 'left'
}, },
{ {
prop:'product_type.name', prop: 'product_type.name',
label:'类别', label: '类别',
width: 180 width: 180
}, },
{ {
prop:'merchant.username', prop: 'merchant.username',
label:"所属商家", label: "所属商家",
width: 280 width: 280
}, },
{ {
prop: "price", prop: "price",
label:"单价", label: "单价",
width: 160, width: 160,
align:'right' align: 'right'
}, },
{ {
prop:"fee", prop: "fee",
label:"平台佣金", label: "平台佣金",
width: 160, width: 160,
align:'right' align: 'right'
}, },
{ {
prop:'sharing', prop: 'sharing',
label: '分享金', label: '分享金',
width: 160, width: 160,
align:'right' align: 'right'
}, },
{ {
prop:'start_time', prop: 'start_time',
label:'上架时间', label: '上架时间',
width: 220 width: 220
}, },
{ {
prop: 'end_time', prop: 'end_time',
label:"下架时间", label: "下架时间",
width: 220 width: 220
}, },
{ {
prop:'sortnumber', prop: 'sortnumber',
label:'同级排序', label: '同级排序',
width: 130 width: 130,
}, customFn: (row) => {
{ return ( <input class = 'sortinput el-input__inner'
prop: 'state_name', type='number'
label: '状态', on = {
customFn:(row)=>{ {
if(row.state_name == '已上架'){ ["keyup"]: (e) => (this.updateSort(e, row.id, row))
return (<div style="color: green">{row.state_name}</div>) }
}else{ }
return (<div style="color: red">{row.state_name}</div>) value = {
} row.sortnumber
} }> </input>
} )
], }
},
types:[],// {
merchants:[],// prop: 'state_name',
merchantSelect:{ label: '状态',
pageIndex:1, customFn: (row) => {
pageSize:10 if (row.state_name == '已上架') {
} return ( <div style = "color: green" > {
} row.state_name
}, } </div>)
methods: { }
pageSizeChange(e){ else {
this.select.pageSize=e; return ( <div style = "color: red" > {
this.searchProducts(); row.state_name
}, } </div>)
}
searchProducts(){ }
}
this.select.pageIndex = 1 ],
this.getProducts()
}, types: [], //
pageChange(e){ merchants: [], //
this.select.pageIndex = e merchantSelect: {
this.getProducts() pageIndex: 1,
}, pageSize: 10
}
stateChange(row){ }
toggleActive({id:row.id}).then(res => { },
row.state_name = row.state_name == '已上架' ? '已下架' : '已上架' methods: {
}) pageSizeChange(e) {
}, this.select.pageSize = e;
deleteProduct(row){ this.searchProducts();
destroy({id:row.id}).then(res => { },
Message({ updateSort(e, id, row, type) {
type:'success', if (e.keyCode === 13) {
message:'删除成功' if(e.target.value==row.sortnumber){
}) return
this.getProducts() }
}) this.$confirm('是否确认更改排序?', '提示', {
}, confirmButtonText: '确定',
editorShow(id,type){ cancelButtonText: '取消',
this.$refs['addProduct'].type = type; type: 'warning'
this.$refs['addProduct'].id = id; }).then(() => {
this.$refs['addProduct'].isShow = true; this.$refs['addProduct'].type = 'editor';
}, this.$refs['addProduct'].id = id;
this.$refs['addProduct'].sortnumberNew = e.target.value
async getProducts(){ this.$refs['addProduct'].updateSortNumber()
const res = await index({ }).catch(() => {
page_size:this.select.pageSize, e.target.value = row.sortnumber
page:this.select.pageIndex, });
name:this.select.name, }
merchant_id:this.select.merchantId, },
product_type_id:this.select.productTypeId, searchProducts() {
state:this.select.state
}) this.select.pageIndex = 1
this.total = res.total this.getProducts()
this.list = res.rows },
}, pageChange(e) {
this.select.pageIndex = e
async getTypes(){ this.getProducts()
const res = await typeIndex() },
let hasChild = (array) => {
array.map(item => { stateChange(row) {
if(item.children.length > 0){ toggleActive({
hasChild(item.children) id: row.id
}else{ }).then(res => {
item.children = '' row.state_name = row.state_name == '已上架' ? '已下架' : '已上架'
} })
}) },
} deleteProduct(row) {
hasChild(res) destroy({
this.types = res id: row.id
}, }).then(res => {
async getMerchant(){ Message({
const res = await merchantIndex({ type: 'success',
page:this.merchantSelect.pageIndex, message: '删除成功'
page_size:this.merchantSelect.pageSize })
},false) this.getProducts()
if(res.data.length == 0){ })
this.$Message.info({ },
content:'没有更多商户了', editorShow(id, type) {
duration:1 this.$refs['addProduct'].type = type;
}) this.$refs['addProduct'].id = id;
this.merchantSelect.pageIndex -- this.$refs['addProduct'].isShow = true;
} },
this.merchants.push(...res.data)
}, async getProducts() {
loadMoreMerchant(){ const res = await index({
this.merchantSelect.pageIndex++ page_size: this.select.pageSize,
this.getMerchant() page: this.select.pageIndex,
} name: this.select.name,
}, merchant_id: this.select.merchantId,
mounted() { product_type_id: this.select.productTypeId,
this.getTypes() state: this.select.state
this.getMerchant() })
this.getProducts() this.total = res.total
} this.list = res.rows
} },
</script>
async getTypes() {
<style scoped lang="scss"> const res = await typeIndex()
.select-content-item{ let hasChild = (array) => {
display: flex; array.map(item => {
align-items: center; if (item.children.length > 0) {
hasChild(item.children)
margin-bottom: 10px; } else {
&-label{ item.children = ''
width: 110px; }
})
padding: 0 20px; }
} hasChild(res)
} this.types = res
.selector{ },
display: flex; async getMerchant() {
flex-wrap: wrap; const res = await merchantIndex({
align-items: center; page: this.merchantSelect.pageIndex,
align-content: center; page_size: this.merchantSelect.pageSize
&-item{ }, false)
display: flex; if (res.data.length == 0) {
align-items: center; this.$Message.info({
content: '没有更多商户了',
margin-top: 6px; duration: 1
margin-right: 10px; })
this.merchantSelect.pageIndex--
&__label{ }
word-break: keep-all; this.merchants.push(...res.data)
} },
} loadMoreMerchant() {
} this.merchantSelect.pageIndex++
this.getMerchant()
::v-deep .ivu-select-dropdown{ }
} },
::v-deep .ivu-scroll-container{ mounted() {
height: 180px !important; this.getTypes()
&::after{ this.getMerchant()
content: '加载更多..'; this.getProducts()
text-align: center; }
font-size: 10px; }
color: rgb(160,160,160); </script>
background: #fff;
zoom: 0.8; <style scoped lang="scss">
.select-content-item {
position: absolute; display: flex;
left: 0; align-items: center;
right: 0;
bottom: 0; margin-bottom: 10px;
}
} &-label {
width: 110px;
padding: 0 20px;
}
}
.selector {
display: flex;
flex-wrap: wrap;
align-items: center;
align-content: center;
&-item {
display: flex;
align-items: center;
margin-top: 6px;
margin-right: 10px;
&__label {
word-break: keep-all;
}
}
}
::v-deep .ivu-select-dropdown {}
::v-deep .ivu-scroll-container {
height: 180px !important;
&::after {
content: '加载更多..';
text-align: center;
font-size: 10px;
color: rgb(160, 160, 160);
background: #fff;
zoom: 0.8;
position: absolute;
left: 0;
right: 0;
bottom: 0;
}
}
</style> </style>

Loading…
Cancel
Save