master
lion 3 years ago
parent 20ffa10530
commit 3fbe2d532d

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

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

@ -193,7 +193,11 @@
</template>
</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"
@on-current-change="merchantSelect" />
<Page :current="merchantIndex" :total="merchantTotal" simple
@ -338,7 +342,8 @@
key: 'state',
sortable: true
}
],
],
merchantKeyword:"",
merchantIndex: 1,
merchantTotal: 0,
}
@ -407,10 +412,14 @@
async getMerchants() {
const res = await merchantIndex({
page_size: 10,
page: this.merchantIndex
page: this.merchantIndex,
keyword:this.merchantKeyword
})
this.merchantTotal = res.total
this.merchants = res.data
},
searchMerchants(){
this.getMerchants()
},
merchantPageChange(e) {
this.merchantIndex = e
@ -491,7 +500,7 @@
if (this.type === 'editor'||this.type === 'copy') {
this.getDetail()
}
} else {
// this.$refs['tinymce'].setContent(' ')
this.$refs['dialog'].reset()
@ -513,7 +522,16 @@
::v-deep .el-input-number .el-input__inner {
text-align: left !important;
}
}
}
.searchMerchants{
display: flex;
justify-content: space-between;
margin-bottom:16px;
.el-input{
width:80%
}
}
</style>
<style>

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

Loading…
Cancel
Save