luochenyi 3 years ago
parent a711dccad7
commit 656666aab8

@ -21,7 +21,7 @@
>{{ option.name }}</a-select-option >{{ option.name }}</a-select-option
> >
</a-select> </a-select>
<a-range-picker v-else-if="item.type === 'time'" v-model="form[item.prop]" value-format="YYYY/MM/DD HH:mm:ss" @change="changeTime($event,item.start,item.end)" /> <a-range-picker v-else-if="item.type === 'time'" v-model="form[item.prop]" value-format="YYYY/MM/DD HH:mm:ss" />
</a-form-model-item> </a-form-model-item>
</a-form-model> </a-form-model>
<div class="btn-box"><a-button type="primary" @click="getSearch"> </a-button> <div class="btn-box"><a-button type="primary" @click="getSearch"> </a-button>
@ -62,18 +62,17 @@ export default {
}, },
methods: { methods: {
getSearch() { getSearch() {
console.log(this.form);
this.$emit('getSearch', this.form) this.$emit('getSearch', this.form)
}, },
resetForm() { resetForm() {
this.$refs.ruleForm.resetFields(); this.$refs.ruleForm.resetFields();
this.$emit('getSearch', this.form) this.$emit('getSearch', this.form,'clear')
}, },
changeTime(data,start,end){ // changeTime(data,start,end){
this.$emit('changeTime', data,start,end) // this.$emit('changeTime', data,start,end)
this.form[start] = data[0] // this.form[start] = data[0]
this.form[end] = data[1] // this.form[end] = data[1]
} // }
}, },
}; };
</script> </script>

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">活动管理</div> <div class="cardTitle">活动管理</div>
<searchForm :formItem="formItem" @getSearch="getData($event)" @changeTime='changeTime'></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增活动</a-button >新增活动</a-button
> >
@ -39,7 +39,8 @@
</span> </span>
<span slot="switch" slot-scope="switchV, row"> <span slot="switch" slot-scope="switchV, row">
<a-switch <a-switch
checked-children="开" un-checked-children="关" checked-children="开"
un-checked-children="关"
:checked="switchV === 1" :checked="switchV === 1"
@change="handleEnable(row)" @change="handleEnable(row)"
></a-switch> ></a-switch>
@ -64,7 +65,11 @@
@addClose="addClose" @addClose="addClose"
:editId="editId" :editId="editId"
></addForm> ></addForm>
<detailForm :detailId="detailId" :show="drawer.detail" @detailClose="detailClose"></detailForm> <detailForm
:detailId="detailId"
:show="drawer.detail"
@detailClose="detailClose"
></detailForm>
</div> </div>
</template> </template>
@ -76,16 +81,16 @@ import detailForm from "./depend/detail.vue";
export default { export default {
components: { components: {
addForm, addForm,
detailForm detailForm,
}, },
data() { data() {
return { return {
drawer: { drawer: {
show: false, show: false,
detail:false detail: false,
}, },
editId: null, editId: null,
detailId:null, detailId: null,
tableData: [], tableData: [],
searchForm: { searchForm: {
activityAddress: undefined, activityAddress: undefined,
@ -110,27 +115,53 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { search(data,type) {
if (data !== undefined) { if(type ==='clear'){
console.log(data); this.searchForm = {
this.searchForm = data; activityAddress: undefined,
console.log(this.searchForm); organizerName: undefined,
activityContact: undefined,
activityTel: undefined,
title: undefined,
status: undefined,
registrationStartTime: undefined,
registrationEndTime: undefined,
activityStartTime: undefined,
activityEndTime: undefined,
}
}else{
let obj = {}
for(let k in data) {
if(Array.isArray(data[k])) {
console.log(data[k]);
let start = k + 'StartTime'
obj[start] = data[k][0]
let end = k + 'EndTime'
obj[end] = data[k][1]
}else{
obj[k] = data[k]
}
}
console.log(obj);
this.searchForm = obj;
} }
this.getData()
},
async getData() {
let res = await activityList({ let res = await activityList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
...this.searchForm ...this.searchForm,
}); });
this.tableData = res.data.rows; this.tableData = res.data.rows;
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.selectedRowKeys=[] this.selectedRowKeys = [];
},
changeTime(data,start,end){
console.log(start);
this.searchForm[start] = data[0]
this.searchForm[end] = data[1]
console.log(this.searchForm);
}, },
// changeTime(data,start,end){
// this.searchForm[start] = data[0]
// this.searchForm[end] = data[1]
// console.log(this.searchForm);
// },
edit(id) { edit(id) {
this.editId = id; this.editId = id;
this.drawer.show = true; this.drawer.show = true;
@ -177,14 +208,14 @@ export default {
success() { success() {
this.getData(); this.getData();
}, },
detail(id){ detail(id) {
this.drawer.detail = true; this.drawer.detail = true;
this.detailId = id; this.detailId = id;
}, },
detailClose(){ detailClose() {
this.detailId = null; this.detailId = null;
this.drawer.detail = false; this.drawer.detail = false;
} },
}, },
computed: { computed: {
hasSelected() { hasSelected() {

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">活动主办方</div> <div class="cardTitle">活动主办方</div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增主办方</a-button >新增主办方</a-button
> >
@ -85,12 +85,11 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { search(data){
if (data !== undefined) { this.searchForm = data;
console.log(data); this.getData()
this.searchForm = data; },
console.log(this.searchForm); async getData() {
}
let res = await organizerList({ let res = await organizerList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">公告</div> <div class="cardTitle">公告</div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增公告</a-button >新增公告</a-button
> >
@ -83,12 +83,11 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { search(data){
if (data !== undefined) { this.searchForm = data;
console.log(data); this.getData()
this.searchForm = data; },
console.log(this.searchForm); async getData() {
}
let res = await announcementList({ let res = await announcementList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">社区话题</div> <div class="cardTitle">社区话题</div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增话题</a-button >新增话题</a-button
> >
@ -99,12 +99,7 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { async getData() {
if (data !== undefined) {
console.log(data);
this.searchForm = data;
console.log(this.searchForm);
}
let res = await topicList({ let res = await topicList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
@ -113,6 +108,10 @@ export default {
this.tableData = res.data.rows; this.tableData = res.data.rows;
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
}, },
search(data){
this.searchForm = data;
this.getData()
},
edit(id) { edit(id) {
this.editId = id; this.editId = id;
this.drawer.show = true; this.drawer.show = true;

@ -3,7 +3,7 @@
<div class="cardTitle">巡检记录</div> <div class="cardTitle">巡检记录</div>
<searchForm <searchForm
:formItem="formItem" :formItem="formItem"
@getSearch="getData($event)" @getSearch="search($event)"
></searchForm> ></searchForm>
<a-table <a-table
:columns="columns" :columns="columns"
@ -54,12 +54,11 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { search(data){
if (data !== undefined) { this.searchForm = data;
console.log(data); this.getData()
this.searchForm = data; },
console.log(this.searchForm); async getData() {
}
let res = await inspectionExecute({ let res = await inspectionExecute({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">巡检计划</div> <div class="cardTitle">巡检计划</div>
<searchForm :formItem="formItem" @getSearch="getData($event)" @changeTime='changeTime'></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)" @changeTime='changeTime'></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增计划</a-button >新增计划</a-button
> >
@ -93,12 +93,7 @@ export default {
let res = await routeSelect() let res = await routeSelect()
this.formItem[3].option = res.data this.formItem[3].option = res.data
}, },
async getData(data) { async getData() {
if (data !== undefined) {
console.log(data);
this.searchForm = data;
console.log(this.searchForm);
}
let res = await planList({ let res = await planList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
@ -108,6 +103,10 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.selectedRowKeys = [] this.selectedRowKeys = []
}, },
search(data){
this.searchForm = data;
this.getData()
},
changeTime(data, start, end) { changeTime(data, start, end) {
console.log(start); console.log(start);
this.searchForm[start] = data[0]; this.searchForm[start] = data[0];

@ -3,8 +3,7 @@
<div class="cardTitle">巡检点</div> <div class="cardTitle">巡检点</div>
<searchForm <searchForm
:formItem="formItem" :formItem="formItem"
@getSearch="getData($event)" @getSearch="search($event)"
@changeTime="changeTime"
></searchForm> ></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增巡更点</a-button >新增巡更点</a-button
@ -100,12 +99,7 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { async getData() {
if (data !== undefined) {
console.log(data);
this.searchForm = data;
console.log(this.searchForm);
}
let res = await pointList({ let res = await pointList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
@ -115,11 +109,9 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.selectedRowKeys = []; this.selectedRowKeys = [];
}, },
changeTime(data, start, end) { search(data){
console.log(start); this.searchForm = data;
this.searchForm[start] = data[0]; this.getData()
this.searchForm[end] = data[1];
console.log(this.searchForm);
}, },
edit(id) { edit(id) {
this.editId = id; this.editId = id;

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">巡检路线</div> <div class="cardTitle">巡检路线</div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增路线</a-button >新增路线</a-button
> >
@ -81,12 +81,7 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { async getData() {
if (data !== undefined) {
console.log(data);
this.searchForm = data;
console.log(this.searchForm);
}
let res = await routeList({ let res = await routeList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
@ -96,6 +91,10 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.selectedRowKeys = [] this.selectedRowKeys = []
}, },
search(data){
this.searchForm = data;
this.getData()
},
edit(id) { edit(id) {
this.editId = id; this.editId = id;
this.drawer.show = true; this.drawer.show = true;

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">资讯分类</div> <div class="cardTitle">资讯分类</div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增分类</a-button >新增分类</a-button
> >
@ -82,12 +82,7 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { async getData() {
if (data !== undefined) {
console.log(data);
this.searchForm = data;
console.log(this.searchForm);
}
let res = await newsItemList({ let res = await newsItemList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
@ -97,6 +92,10 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.selectedRowKeys=[] this.selectedRowKeys=[]
}, },
search(data){
this.searchForm = data;
this.getData()
},
edit(data) { edit(data) {
this.editData = data; this.editData = data;
this.drawer.show = true; this.drawer.show = true;

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">资讯管理</div> <div class="cardTitle">资讯管理</div>
<searchForm :formItem="formItem" @getSearch="getData($event)" @changeTime='changeTime'></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)" @changeTime='changeTime'></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增资讯</a-button >新增资讯</a-button
> >
@ -95,12 +95,7 @@ export default {
this.getItem(); this.getItem();
}, },
methods: { methods: {
async getData(data) { async getData() {
if (data !== undefined) {
console.log(data);
this.searchForm = data;
console.log(this.searchForm);
}
let res = await newsList({ let res = await newsList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
@ -110,6 +105,10 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.selectedRowKeys=[] this.selectedRowKeys=[]
}, },
search(data){
this.searchForm = data;
this.getData()
},
async getItem(){ async getItem(){
let res = await itemSelect() let res = await itemSelect()
this.formItem[0].option = res.data this.formItem[0].option = res.data

@ -71,7 +71,7 @@
<div class="drawer-content"> <div class="drawer-content">
<searchForm <searchForm
:formItem="formItem" :formItem="formItem"
@getSearch="getData($event)" @getSearch="search($event)"
></searchForm> ></searchForm>
<a-table <a-table
:columns="tableColumns" :columns="tableColumns"
@ -152,12 +152,7 @@ export default {
this.treeData = res.data; this.treeData = res.data;
deleteIds(this.treeData); deleteIds(this.treeData);
}, },
async getData(data) { async getData() {
if (data !== undefined) {
console.log(data);
this.searchForm = data;
console.log(this.searchForm);
}
let res = await chargesList({ let res = await chargesList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
@ -167,6 +162,10 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.selectedRowKeys = []; this.selectedRowKeys = [];
}, },
search(data){
this.searchForm = data;
this.getData()
},
addBind() { addBind() {
if (this.estateIds.length === 0) { if (this.estateIds.length === 0) {
this.$message.error("请选择房屋"); this.$message.error("请选择房屋");

@ -7,7 +7,7 @@
<a-tab-pane :key="3" tab="车位收费标准"> </a-tab-pane> <a-tab-pane :key="3" tab="车位收费标准"> </a-tab-pane>
<a-tab-pane :key="4" tab="临时收费标准"> </a-tab-pane> <a-tab-pane :key="4" tab="临时收费标准"> </a-tab-pane>
</a-tabs> </a-tabs>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true">添加费用</a-button> <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true">添加费用</a-button>
<a-table <a-table
:columns="columns" :columns="columns"
@ -81,12 +81,7 @@ export default {
changeType(data){ changeType(data){
this.getData() this.getData()
}, },
async getData(data) { async getData() {
if (data !== undefined) {
console.log(data);
this.searchForm = data;
console.log(this.searchForm);
}
let res = await chargesList({ let res = await chargesList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
@ -96,6 +91,10 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.selectedRowKeys = []; this.selectedRowKeys = [];
}, },
search(data){
this.searchForm = data;
this.getData()
},
edit(id) { edit(id) {
this.drawer = { this.drawer = {
editId:id, editId:id,

@ -12,7 +12,7 @@
<a-divider></a-divider> <a-divider></a-divider>
<searchForm <searchForm
:formItem="formItem" :formItem="formItem"
@getSearch="getData($event)" @getSearch="search($event)"
></searchForm> ></searchForm>
<a-table <a-table
:columns="columns" :columns="columns"
@ -66,10 +66,7 @@ export default {
}; };
}, },
methods: { methods: {
async getData(data) { async getData() {
if (data !== undefined) {
this.searchForm = data;
}
let res = await rechargeList({ let res = await rechargeList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,
@ -79,6 +76,10 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.selectedRowKeys = []; this.selectedRowKeys = [];
}, },
search(data){
this.searchForm = data;
this.getData()
},
selectionChoosed() {}, selectionChoosed() {},
close(){ close(){
this.$emit('close'); this.$emit('close');

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">预缴管理</div> <div class="cardTitle">预缴管理</div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-table <a-table
:columns="columns" :columns="columns"
:data-source="tableData" :data-source="tableData"
@ -109,10 +109,11 @@ export default {
let res = await allBuilding(); let res = await allBuilding();
this.formItem[2].option = res.data; this.formItem[2].option = res.data;
}, },
async getData(data) { search(data){
if (data !== undefined) { this.searchForm = data;
this.searchForm = data; this.getData()
} },
async getData() {
let res = await prepaymentList({ let res = await prepaymentList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">品牌管理</div> <div class="cardTitle">品牌管理</div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增品牌</a-button >新增品牌</a-button
> >
@ -108,12 +108,11 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { search(data){
if (data !== undefined) { this.searchForm = data;
console.log(data); this.getData()
this.searchForm = data; },
console.log(this.searchForm); async getData() {
}
let res = await brandList({ let res = await brandList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,

@ -3,7 +3,7 @@
<div class="cardTitle"> <div class="cardTitle">
<span>商品管理</span> <span>商品管理</span>
</div> </div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-table <a-table
:columns="columns" :columns="columns"
:data-source="tableData" :data-source="tableData"
@ -83,12 +83,7 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
getData(data) { getData() {
if (data !== undefined) {
console.log(data);
this.searchForm = data;
console.log(this.searchForm);
}
shopPushList({ shopPushList({
...this.searchForm, ...this.searchForm,
pageNum: this.pagination.current, pageNum: this.pagination.current,
@ -98,6 +93,10 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
}); });
}, },
search(data){
this.searchForm = data;
this.getData()
},
selectionChoosed(data) { selectionChoosed(data) {
console.log(data); console.log(data);
this.selectedRowKeys = data; this.selectedRowKeys = data;

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">jcook商品库</div> <div class="cardTitle">jcook商品库</div>
<searchForm :formItem="formItem" @getSearch="getData($event)" ></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)" ></searchForm>
<a-table <a-table
:columns="columns" :columns="columns"
:data-source="tableData" :data-source="tableData"
@ -87,12 +87,11 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { search(data){
if (data !== undefined) { this.searchForm = data;
console.log(data); this.getData()
this.searchForm = data; },
console.log(this.searchForm); async getData() {
}
let res = await jcookGoodsList({ let res = await jcookGoodsList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">店铺管理</div> <div class="cardTitle">店铺管理</div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增店铺</a-button >新增店铺</a-button
> >
@ -108,12 +108,11 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { search(data){
if (data !== undefined) { this.searchForm = data;
console.log(data); this.getData()
this.searchForm = data; },
console.log(this.searchForm); async getData() {
}
let res = await shopList({ let res = await shopList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="cardTitle">供应商管理</div> <div class="cardTitle">供应商管理</div>
<searchForm :formItem="formItem" @getSearch="getData($event)"></searchForm> <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm>
<a-button style="margin: 10px" class="add-btn" @click="drawer.show = true" <a-button style="margin: 10px" class="add-btn" @click="drawer.show = true"
>新增供应商</a-button >新增供应商</a-button
> >
@ -108,12 +108,11 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
async getData(data) { search(data){
if (data !== undefined) { this.searchForm = data;
console.log(data); this.getData()
this.searchForm = data; },
console.log(this.searchForm); async getData() {
}
let res = await vendorList({ let res = await vendorList({
pageNum: this.pagination.current, pageNum: this.pagination.current,
size: this.pagination.pageSize, size: this.pagination.pageSize,

Loading…
Cancel
Save