|
@@ -52,6 +52,8 @@ import methodUtil from '@/util/opera';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions } = createNamespacedHelpers('goodsSpec');
|
|
const { mapActions } = createNamespacedHelpers('goodsSpec');
|
|
const { mapActions: dictData } = createNamespacedHelpers('dictData');
|
|
const { mapActions: dictData } = createNamespacedHelpers('dictData');
|
|
|
|
+const { mapActions: goods } = createNamespacedHelpers('goods');
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'spec',
|
|
name: 'spec',
|
|
props: {},
|
|
props: {},
|
|
@@ -131,6 +133,8 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...dictData({ getDict: 'query' }),
|
|
...dictData({ getDict: 'query' }),
|
|
...mapActions(['query', 'fetch', 'update', 'delete', 'create']),
|
|
...mapActions(['query', 'fetch', 'update', 'delete', 'create']),
|
|
|
|
+ ...goods({ goodsFetch: 'fetch' }),
|
|
|
|
+
|
|
...methodUtil,
|
|
...methodUtil,
|
|
// 添加自定义
|
|
// 添加自定义
|
|
initAddData() {
|
|
initAddData() {
|