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

@ -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",

@ -50,3 +50,14 @@ export function list (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-decorator="['plate_id', { initialValue: 0 }]"
>
<a-select-option :value="0">全部</a-select-option>
<a-select-option :value="1">商品</a-select-option>
<a-select-option :value="2">数据</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-option v-for="(item, index) in describeList" :key="index" :value="item.id">{{
item.name
}}</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="商城类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
@ -75,7 +64,7 @@
</span>
</s-table>
<EditForm ref="EditForm" @handleSubmit="handleRefresh" />
<AddForm ref="AddForm" @handleSubmit="handleRefresh(true)" />
<AddForm ref="AddForm" @handleSubmit="handleRefresh(true)" />
</a-card>
</template>
@ -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

@ -20,19 +20,9 @@
</a-form-item >
<a-form-item label="板块名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select v-decorator="['plate_id', { initialValue: 1 }]">
<a-select-option :value="1">商品</a-select-option>
<a-select-option :value="2">数据</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-option v-for="(item, index) in describeList1" :key="index" :value="item.id">{{
item.name
}}</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="功能名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
@ -76,16 +66,17 @@
<script>
import * as Api from '@/api/describe/index'
import { SelectImage } from '@/components'
import PropTypes from 'ant-design-vue/es/_util/vue-types'
export default {
components: {
SelectImage,
},
props: {
//
props: {
},
data() {
return {
accountList: [],
describeList1:[],
//
title: '',
//
@ -105,8 +96,14 @@ export default {
}
},
methods: {
getRetailDescribeList() {
Api.retailDescribeList().then((result) => {
this.describeList1 = result.data.list
})
},
//
add() {
this.getRetailDescribeList()
//
this.visible = true
},

@ -18,20 +18,10 @@
</a-radio-group>
</a-form-item>
<a-form-item label="板块名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select v-decorator="['plate_id', { initialValue: 1 }]">
<a-select-option :value="1">商品</a-select-option>
<a-select-option :value="2">数据</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 v-decorator="['plate_id', { initialValue: 0 }]">
<a-select-option v-for="(item, index) in describeList1" :key="index" :value="item.id">{{
item.name
}}</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="功能名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
@ -75,16 +65,17 @@
<script>
import * as Api from '@/api/describe/index'
import { SelectImage } from '@/components'
import PropTypes from 'ant-design-vue/es/_util/vue-types'
export default {
components: {
SelectImage,
},
props: {
//
},
data() {
return {
accountList: [],
describeList1:[],
//
title: '',
//
@ -105,9 +96,15 @@ export default {
}
},
methods: {
getRetailDescribeList() {
Api.retailDescribeList().then((result) => {
this.describeList1 = result.data.list
})
},
//
add(info) {
console.log(info)
this.getRetailDescribeList()
//
this.visible = true
//

Loading…
Cancel
Save