diff --git a/src/api/goods/index.js b/src/api/goods/index.js
index 21b7676..0d58849 100644
--- a/src/api/goods/index.js
+++ b/src/api/goods/index.js
@@ -11,6 +11,7 @@ const api = {
delete: '/goods/delete',
state: '/goods/state',
dataList:'store/platformList',
+ exportData:'/goods/import',
}
// 列表记录
@@ -107,3 +108,14 @@ export function getDataList (data) {
data: data
})
}
+/**
+ * 导出
+ * @param {*} data
+ */
+export function exportData (data) {
+ return axios({
+ url: api.exportData,
+ method: 'post',
+ data: data
+ })
+}
\ No newline at end of file
diff --git a/src/components/Table/GoodsItem/GoodsItem.vue b/src/components/Table/GoodsItem/GoodsItem.vue
index b01aebd..c8accf6 100644
--- a/src/components/Table/GoodsItem/GoodsItem.vue
+++ b/src/components/Table/GoodsItem/GoodsItem.vue
@@ -6,17 +6,19 @@
-
{{ dataObj.title }}
+
+ {{ dataObj.title }}
-
{{ dataObj.subtitle }}
+
+ {{ dataObj.subtitle }}
+
-
{{ props.value.name }}
+
+ {{ props.value.name }}
@@ -34,28 +36,29 @@ export default {
// 商品信息
data: PropTypes.object.def({}),
// 副标题颜色
- subTitleColor: PropTypes.bool.def(false)
+ subTitleColor: PropTypes.bool.def(false),
},
computed: {
- dataObj () {
- return Object.assign({
- image: '',
- imageAlt: '',
- title: '',
- subtitle: '',
- goodsProps: [],
- titleWidth: 200
- }, this.$props.data)
- }
+ dataObj() {
+ return Object.assign(
+ {
+ image: '',
+ imageAlt: '',
+ title: '',
+ subtitle: '',
+ goodsProps: [],
+ titleWidth: 200,
+ },
+ this.$props.data
+ )
+ },
},
- data () {
+ data() {
return {
- isEmpty
+ isEmpty,
}
},
- methods: {
-
- }
+ methods: {},
}
diff --git a/src/config/router.config.js b/src/config/router.config.js
index 06fd31c..16a9db1 100644
--- a/src/config/router.config.js
+++ b/src/config/router.config.js
@@ -252,6 +252,12 @@ export const asyncRouterMap = [
meta: { title: '编辑商品', keepAlive: false, permission: ['/goods/update'] },
hidden: true,
},
+ {
+ path: '/goods/modify',
+ component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/modify'),
+ meta: { title: '批量修改', keepAlive: false, permission: ['/goods/modify'] },
+ hidden: true,
+ },
{
path: '/goods/copy',
component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Copy'),
diff --git a/src/views/goods/Index.vue b/src/views/goods/Index.vue
index 21221d2..5b98181 100644
--- a/src/views/goods/Index.vue
+++ b/src/views/goods/Index.vue
@@ -34,6 +34,22 @@
+
+
+
+
+
+
搜索
@@ -59,6 +75,12 @@
@click="handleImport()"
>批量导入
+ 导出
+ 批量修改