|
@@ -1,9 +1,9 @@
|
|
<template>
|
|
<template>
|
|
<div id="goods">
|
|
<div id="goods">
|
|
<template v-if="view === 'list'">
|
|
<template v-if="view === 'list'">
|
|
- <csearch :fields="searchFields" v-model="searchInfo" @query="search"></csearch>
|
|
|
|
- <cbtn :list="btnList" @add="toAdd"></cbtn>
|
|
|
|
- <ctable ref="ctable" :fields="fields" :opera="opera" :data="list" :total="total" :limit="limit" @query="search"></ctable>
|
|
|
|
|
|
+ <data-search :fields="searchFields" v-model="searchInfo" @query="search"></data-search>
|
|
|
|
+ <data-btn :list="btnList" @add="toAdd"></data-btn>
|
|
|
|
+ <data-table ref="ctable" :fields="fields" :opera="opera" :data="list" :total="total" :limit="limit" @query="search"></data-table>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<el-row>
|
|
<el-row>
|
|
@@ -11,7 +11,7 @@
|
|
<el-button icon="el-icon-back" size="mini" @click="toBack()">返回</el-button>
|
|
<el-button icon="el-icon-back" size="mini" @click="toBack()">返回</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
- <cform :fields="infoFields" :rules="rules" v-model="form" labelWidth="150px"></cform>
|
|
|
|
|
|
+ <data-form :fields="infoFields" :rules="rules" v-model="form" labelWidth="150px"></data-form>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</template>
|
|
</template>
|
|
@@ -19,10 +19,10 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import csearch from '@/components/usual/c-search.vue';
|
|
|
|
-import cbtn from '@/components/usual/c-btnbar.vue';
|
|
|
|
-import ctable from '@/components/usual/c-table.vue';
|
|
|
|
-import cform from '@/components/usual/c-form.vue';
|
|
|
|
|
|
+// import csearch from '@/components/usual/c-search.vue';
|
|
|
|
+// import cbtn from '@/components/usual/c-btnbar.vue';
|
|
|
|
+// import ctable from '@/components/usual/c-table.vue';
|
|
|
|
+// import cform from '@/components/usual/c-form.vue';
|
|
import methodsUtil from './opera';
|
|
import methodsUtil from './opera';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions: selfShop } = createNamespacedHelpers('selfShop');
|
|
const { mapActions: selfShop } = createNamespacedHelpers('selfShop');
|
|
@@ -30,7 +30,7 @@ const { mapActions: goods } = createNamespacedHelpers('goods');
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
- components: { cbtn, ctable, csearch, cform },
|
|
|
|
|
|
+ // components: { cbtn, ctable, csearch, cform },
|
|
data: function () {
|
|
data: function () {
|
|
return {
|
|
return {
|
|
view: 'list',
|
|
view: 'list',
|