|
@@ -9,7 +9,7 @@
|
|
|
element-loading-text="拼命加载中"
|
|
|
element-loading-spinner="el-icon-loading"
|
|
|
>
|
|
|
- <data-search :fields="searchFields" v-model="searchInfo" @query="search">
|
|
|
+ <data-search :fields="searchFields" v-model="searchInfo" @query="toSearch">
|
|
|
<template #status>
|
|
|
<el-option v-for="i in goodsStatusList" :key="i.value" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
@@ -38,13 +38,18 @@
|
|
|
@delete="toDelete"
|
|
|
@spec="toSpec"
|
|
|
@copy="toCopy"
|
|
|
- ></data-table> </el-col
|
|
|
- ></el-row>
|
|
|
+ ></data-table>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</span>
|
|
|
<el-row v-if="view === 'info'">
|
|
|
<el-col :span="24" style="margin: 0 0 10px 0">
|
|
|
- <el-col :span="2"><el-button type="primary" size="mini" @click="toBack()">返回</el-button></el-col>
|
|
|
- <el-col :span="2"><el-button type="primary" size="mini" @click="toSave(form)">保存</el-button></el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-button type="primary" size="mini" @click="toBack()">返回</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-button type="primary" size="mini" @click="toSave(form)">保存</el-button>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<data-form :fields="infoFields" :rules="rules" v-model="form" labelWidth="150px" @save="toSave">
|
|
@@ -179,6 +184,11 @@ export default {
|
|
|
...goodsTags(['tree']),
|
|
|
...goods(['copy', 'query', 'delete', 'fetch', 'update', 'create']),
|
|
|
...methodsUtil,
|
|
|
+ toSearch() {
|
|
|
+ // this.$refs.dataTable.resetPage();
|
|
|
+ const res = this.$refs.dataTable.getPageConfig();
|
|
|
+ console.log(res);
|
|
|
+ },
|
|
|
// 查询
|
|
|
async search({ skip = 0, limit = this.$limit, ...others } = {}) {
|
|
|
let query = { skip, limit, ...others, shop: this.user.shop.id };
|