diff --git a/package.json b/package.json index 9bef791..9a3a811 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "serve": "vue-cli-service serve", - "build": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", + "build": "vue-cli-service build", "test:unit": "vue-cli-service test:unit ", "lint": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint", "build:preview": "vue-cli-service build --mode preview", diff --git a/src/api/describe/index.js b/src/api/describe/index.js index 44c0872..3aca6f1 100644 --- a/src/api/describe/index.js +++ b/src/api/describe/index.js @@ -49,4 +49,15 @@ export function list (params) { method: 'get', params }) +} +/** + * 渠道列表 + * @param {*} params + */ + export function retailDescribeList (params) { + return axios({ + url: '/RetailDescribe/getPlate', + method: 'get', + params + }) } \ No newline at end of file diff --git a/src/views/store/describe.vue b/src/views/store/describe.vue index 0db47f0..fd50876 100644 --- a/src/views/store/describe.vue +++ b/src/views/store/describe.vue @@ -14,20 +14,9 @@ v-model="queryParam.plate_id" v-decorator="['plate_id', { initialValue: 0 }]" > - 全部 - 商品 - 数据 - 商品订单 - 服务订单 - 回收订单 - 支付 - 财务 - 店铺展示 - 角色 - 营销 - 多商户 - 内容管理 - 其他功能 + {{ + item.name + }} @@ -75,7 +64,7 @@ - + @@ -100,6 +89,7 @@ export default { plate_id: '', type: '', }, + describeList: [], searchForm: this.$form.createForm(this), columns: [ { @@ -155,8 +145,20 @@ export default { }, } }, - created() {}, + created() { + this.getRetailDescribeList() + }, methods: { + getRetailDescribeList() { + Api.retailDescribeList().then((result) => { + let all = { + name: '全部', + id: 0, + } + result.data.list.unshift(all) + this.describeList = result.data.list + }) + }, // 删除记录 handleDelete(record) { const self = this diff --git a/src/views/store/modules/describeAdd.vue b/src/views/store/modules/describeAdd.vue index 3954246..de0c5b3 100644 --- a/src/views/store/modules/describeAdd.vue +++ b/src/views/store/modules/describeAdd.vue @@ -20,19 +20,9 @@ - 商品 - 数据 - 商品订单 - 服务订单 - 回收订单 - 支付 - 财务 - 店铺展示 - 角色 - 营销 - 多商户 - 内容管理 - 其他功能 + {{ + item.name + }} @@ -76,16 +66,17 @@