main
fanfan 4 months ago
parent 0048b70a3c
commit 1e14172c02
  1. 2
      package.json
  2. 11
      src/api/describe/index.js
  3. 32
      src/views/store/describe.vue
  4. 25
      src/views/store/modules/describeAdd.vue
  5. 27
      src/views/store/modules/describeEdit.vue

@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "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 ", "test:unit": "vue-cli-service test:unit ",
"lint": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint", "lint": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint",
"build:preview": "vue-cli-service build --mode preview", "build:preview": "vue-cli-service build --mode preview",

@ -50,3 +50,14 @@ export function list (params) {
params params
}) })
} }
/**
* 渠道列表
* @param {*} params
*/
export function retailDescribeList (params) {
return axios({
url: '/RetailDescribe/getPlate',
method: 'get',
params
})
}

@ -14,20 +14,9 @@
v-model="queryParam.plate_id" v-model="queryParam.plate_id"
v-decorator="['plate_id', { initialValue: 0 }]" v-decorator="['plate_id', { initialValue: 0 }]"
> >
<a-select-option :value="0">全部</a-select-option> <a-select-option v-for="(item, index) in describeList" :key="index" :value="item.id">{{
<a-select-option :value="1">商品</a-select-option> item.name
<a-select-option :value="2">数据</a-select-option> }}</a-select-option>
<a-select-option :value="3">商品订单</a-select-option>
<a-select-option :value="4">服务订单</a-select-option>
<a-select-option :value="5">回收订单</a-select-option>
<a-select-option :value="6">支付</a-select-option>
<a-select-option :value="7">财务</a-select-option>
<a-select-option :value="8">店铺展示</a-select-option>
<a-select-option :value="9">角色</a-select-option>
<a-select-option :value="10">营销</a-select-option>
<a-select-option :value="11">多商户</a-select-option>
<a-select-option :value="12">内容管理</a-select-option>
<a-select-option :value="13">其他功能</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="商城类型" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="商城类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
@ -100,6 +89,7 @@ export default {
plate_id: '', plate_id: '',
type: '', type: '',
}, },
describeList: [],
searchForm: this.$form.createForm(this), searchForm: this.$form.createForm(this),
columns: [ columns: [
{ {
@ -155,8 +145,20 @@ export default {
}, },
} }
}, },
created() {}, created() {
this.getRetailDescribeList()
},
methods: { methods: {
getRetailDescribeList() {
Api.retailDescribeList().then((result) => {
let all = {
name: '全部',
id: 0,
}
result.data.list.unshift(all)
this.describeList = result.data.list
})
},
// //
handleDelete(record) { handleDelete(record) {
const self = this const self = this

@ -20,19 +20,9 @@
</a-form-item > </a-form-item >
<a-form-item label="板块名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="板块名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select v-decorator="['plate_id', { initialValue: 1 }]"> <a-select v-decorator="['plate_id', { initialValue: 1 }]">
<a-select-option :value="1">商品</a-select-option> <a-select-option v-for="(item, index) in describeList1" :key="index" :value="item.id">{{
<a-select-option :value="2">数据</a-select-option> item.name
<a-select-option :value="3">商品订单</a-select-option> }}</a-select-option>
<a-select-option :value="4">服务订单</a-select-option>
<a-select-option :value="5">回收订单</a-select-option>
<a-select-option :value="6">支付</a-select-option>
<a-select-option :value="7">财务</a-select-option>
<a-select-option :value="8">店铺展示</a-select-option>
<a-select-option :value="9">角色</a-select-option>
<a-select-option :value="10">营销</a-select-option>
<a-select-option :value="11">多商户</a-select-option>
<a-select-option :value="12">内容管理</a-select-option>
<a-select-option :value="13">其他功能</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="功能名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="功能名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
@ -76,16 +66,17 @@
<script> <script>
import * as Api from '@/api/describe/index' import * as Api from '@/api/describe/index'
import { SelectImage } from '@/components' import { SelectImage } from '@/components'
import PropTypes from 'ant-design-vue/es/_util/vue-types'
export default { export default {
components: { components: {
SelectImage, SelectImage,
}, },
props: { props: {
//
}, },
data() { data() {
return { return {
accountList: [], accountList: [],
describeList1:[],
// //
title: '', title: '',
// //
@ -105,8 +96,14 @@ export default {
} }
}, },
methods: { methods: {
getRetailDescribeList() {
Api.retailDescribeList().then((result) => {
this.describeList1 = result.data.list
})
},
// //
add() { add() {
this.getRetailDescribeList()
// //
this.visible = true this.visible = true
}, },

@ -18,20 +18,10 @@
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
<a-form-item label="板块名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="板块名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select v-decorator="['plate_id', { initialValue: 1 }]"> <a-select v-decorator="['plate_id', { initialValue: 0 }]">
<a-select-option :value="1">商品</a-select-option> <a-select-option v-for="(item, index) in describeList1" :key="index" :value="item.id">{{
<a-select-option :value="2">数据</a-select-option> item.name
<a-select-option :value="3">商品订单</a-select-option> }}</a-select-option>
<a-select-option :value="4">服务订单</a-select-option>
<a-select-option :value="5">回收订单</a-select-option>
<a-select-option :value="6">支付</a-select-option>
<a-select-option :value="7">财务</a-select-option>
<a-select-option :value="8">店铺展示</a-select-option>
<a-select-option :value="9">角色</a-select-option>
<a-select-option :value="10">营销</a-select-option>
<a-select-option :value="11">多商户</a-select-option>
<a-select-option :value="12">内容管理</a-select-option>
<a-select-option :value="13">其他功能</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="功能名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="功能名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
@ -75,16 +65,17 @@
<script> <script>
import * as Api from '@/api/describe/index' import * as Api from '@/api/describe/index'
import { SelectImage } from '@/components' import { SelectImage } from '@/components'
import PropTypes from 'ant-design-vue/es/_util/vue-types'
export default { export default {
components: { components: {
SelectImage, SelectImage,
}, },
props: { props: {
//
}, },
data() { data() {
return { return {
accountList: [], accountList: [],
describeList1:[],
// //
title: '', title: '',
// //
@ -105,9 +96,15 @@ export default {
} }
}, },
methods: { methods: {
getRetailDescribeList() {
Api.retailDescribeList().then((result) => {
this.describeList1 = result.data.list
})
},
// //
add(info) { add(info) {
console.log(info) console.log(info)
this.getRetailDescribeList()
// //
this.visible = true this.visible = true
// //

Loading…
Cancel
Save