|
@@ -10,7 +10,7 @@
|
|
|
>
|
|
|
<span v-if="view === 'list'">
|
|
|
<data-search :fields="searchFields" v-model="searchInfo" @query="search">
|
|
|
- <template #goods>
|
|
|
+ <!-- <template #goods>
|
|
|
<el-select v-model="searchInfo.goods" filterable clearable remote :remote-method="querySearch" placeholder="请选择商品名称" :loading="loading">
|
|
|
<el-option v-for="item in goodsList" :key="item._id" :label="item.name" :value="item._id"> </el-option>
|
|
|
</el-select>
|
|
@@ -19,7 +19,7 @@
|
|
|
<el-select v-model="searchInfo.leader" filterable clearable remote :remote-method="leaderSearch" placeholder="请选择团长名称" :loading="loading">
|
|
|
<el-option v-for="item in leaderList" :key="item._id" :label="item.name" :value="item._id"> </el-option>
|
|
|
</el-select>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
<template #status>
|
|
|
<el-option v-for="i in statusList" :key="i.value" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
@@ -78,12 +78,12 @@ export default {
|
|
|
],
|
|
|
opera: [
|
|
|
{ label: '修改', method: 'edit' },
|
|
|
- { label: '删除', method: 'delete', confirm: true, type: 'danger' },
|
|
|
+ // { label: '删除', method: 'delete', confirm: true, type: 'danger' },
|
|
|
],
|
|
|
btnList: [{ label: '添加', method: 'add' }],
|
|
|
searchFields: [
|
|
|
- { label: '商品名称', model: 'goods', custom: true },
|
|
|
- { label: '团长', model: 'leader', custom: true },
|
|
|
+ // { label: '商品名称', model: 'goods', custom: true },
|
|
|
+ // { label: '团长', model: 'leader', custom: true },
|
|
|
{ label: '状态', model: 'status', type: 'select' },
|
|
|
],
|
|
|
searchInfo: {},
|
|
@@ -109,7 +109,6 @@ export default {
|
|
|
...group(['query', 'delete', 'fetch', 'update', 'create']),
|
|
|
// 查询
|
|
|
async search({ skip = 0, limit = this.$limit, ...others } = {}) {
|
|
|
- // others.status = '0';
|
|
|
let query = { skip, limit, ...others };
|
|
|
if (Object.keys(this.searchInfo).length > 0) query = { ...query, ...this.searchInfo };
|
|
|
const res = await this.query(query);
|