master
lion 3 years ago
parent 20ffa10530
commit 3fbe2d532d

@ -590,7 +590,7 @@ export default {
phone_number:this.form.phoneNumber, phone_number:this.form.phoneNumber,
group:this.form.group, group:this.form.group,
start_member_sum:this.form.startMemberSum, start_member_sum:this.form.startMemberSum,
member_sum:this.form.member_sum, member_sum:this.form.memberSum,
content:this.form.content, content:this.form.content,
great_services:this.form.greatServices, great_services:this.form.greatServices,
// money:this.form.money, // money:this.form.money,

@ -63,15 +63,25 @@ export default {
width: 120 width: 120
}, },
{ {
prop: "address", prop: "area",
label: "区域", label: "区域",
width: 120 width: 120
}, },
{
prop: "address",
label: "地址",
width: 120
},
{ {
prop: "budget_date", prop: "budget_date",
label: "预产期", label: "预产期",
// width: 120 // width: 120
} },
{
prop: "hospital",
label: "建卡医院",
width: 120
},
], ],
} }
}, },

@ -194,6 +194,10 @@
</xy-dialog> </xy-dialog>
<Modal v-model="isShowMerchantSelect" title="所属商户选择"> <Modal v-model="isShowMerchantSelect" title="所属商户选择">
<div class="searchMerchants">
<el-input type="text" v-model="merchantKeyword" placeholder="请输入关键词查找商户"></el-input>
<el-button type="primary" @click="searchMerchants"></el-button>
</div>
<Table size="small" highlight-row ref="currentRowTable" :columns="merchantTable" :data="merchants" <Table size="small" highlight-row ref="currentRowTable" :columns="merchantTable" :data="merchants"
@on-current-change="merchantSelect" /> @on-current-change="merchantSelect" />
<Page :current="merchantIndex" :total="merchantTotal" simple <Page :current="merchantIndex" :total="merchantTotal" simple
@ -339,6 +343,7 @@
sortable: true sortable: true
} }
], ],
merchantKeyword:"",
merchantIndex: 1, merchantIndex: 1,
merchantTotal: 0, merchantTotal: 0,
} }
@ -407,11 +412,15 @@
async getMerchants() { async getMerchants() {
const res = await merchantIndex({ const res = await merchantIndex({
page_size: 10, page_size: 10,
page: this.merchantIndex page: this.merchantIndex,
keyword:this.merchantKeyword
}) })
this.merchantTotal = res.total this.merchantTotal = res.total
this.merchants = res.data this.merchants = res.data
}, },
searchMerchants(){
this.getMerchants()
},
merchantPageChange(e) { merchantPageChange(e) {
this.merchantIndex = e this.merchantIndex = e
this.getMerchants() this.getMerchants()
@ -514,6 +523,15 @@
text-align: left !important; text-align: left !important;
} }
} }
.searchMerchants{
display: flex;
justify-content: space-between;
margin-bottom:16px;
.el-input{
width:80%
}
}
</style> </style>
<style> <style>

@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: '/admin/', publicPath: '/admin/',
outputDir: '/Users/liuxiangyu/Work/yunyubang/yunyubang-service/public/admin', outputDir: '/Users/mac/Documents/朗业/2022/y-孕育邦/后端代码/yunyubang/public/admin',
assetsDir: 'static', assetsDir: 'static',
css: { css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项 loaderOptions: { // 向 CSS 相关的 loader 传递选项

Loading…
Cancel
Save