From 1e14172c024e8d64d636156be914beaa0a540ef5 Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 6 Aug 2024 22:54:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/describe/index.js | 11 ++++++++ src/views/store/describe.vue | 34 +++++++++++++----------- src/views/store/modules/describeAdd.vue | 27 +++++++++---------- src/views/store/modules/describeEdit.vue | 27 +++++++++---------- 5 files changed, 54 insertions(+), 47 deletions(-) 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 @@