|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
- <a-card size="small" :bordered="false" class="marketingDivisionSetNew-wrap">
|
|
|
+ <a-card size="small" :bordered="false" class="shoppingManagementList-wrap">
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
<!-- 操作按钮 -->
|
|
|
<div ref="tableSearch" class="table-operator" style="border: 0;">
|
|
|
- <a-button id="marketingDivisionSetNew-add" type="primary" @click="addCategory">新增类目</a-button>
|
|
|
+ <a-button id="shoppingManagementList-addType" type="primary" @click="addCategory">新增类目</a-button>
|
|
|
</div>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
@@ -40,27 +40,27 @@
|
|
|
type="link"
|
|
|
class="button-info"
|
|
|
@click="handleEdit(record)"
|
|
|
- :id="'marketingDivisionSetNew-edit-btn'+record.id">编辑</a-button>
|
|
|
+ :id="'shoppingManagementList-edit-btn'+record.id">编辑</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-info"
|
|
|
v-if="record.type && record.type == 'root'"
|
|
|
@click="addZone(record)"
|
|
|
- :id="'marketingDivisionSetNew-edit-btn'+record.id">添加子类目</a-button>
|
|
|
+ :id="'shoppingManagementList-edit-btn'+record.id">添加子类目</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-success"
|
|
|
v-else
|
|
|
@click="handleAddProduct(record)"
|
|
|
- :id="'marketingDivisionSetNew-edit-btn'+record.id">添加产品</a-button>
|
|
|
+ :id="'shoppingManagementList-edit-btn'+record.id">添加产品</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-error"
|
|
|
@click="handleDel(record)"
|
|
|
- :id="'marketingDivisionSetNew-del-btn'+record.id">删除</a-button>
|
|
|
+ :id="'shoppingManagementList-del-btn'+record.id">删除</a-button>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
@@ -70,18 +70,6 @@
|
|
|
:openModal="openCategoryModal"
|
|
|
@ok="$refs.table.refresh()"
|
|
|
@close="openCategoryModal=false"></addCategoryModal>
|
|
|
- <!-- 新增分区 -->
|
|
|
- <addZoneModal
|
|
|
- v-drag
|
|
|
- :openModal="openZoneModal"
|
|
|
- :parentData="parentData"
|
|
|
- @ok="$refs.table.refresh()"
|
|
|
- @close="openZoneModal=false"></addZoneModal>
|
|
|
- <!-- 查看经销商 -->
|
|
|
- <viewDealers
|
|
|
- :showModal="openDealerModal"
|
|
|
- :parentData="parentData"
|
|
|
- @close="openDealerModal=false"></viewDealers>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -90,12 +78,10 @@ import { commonMixin } from '@/utils/mixin'
|
|
|
// 组件
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import addCategoryModal from './addCategoryModal.vue'
|
|
|
-// import addZoneModal from './addZoneModal.vue'
|
|
|
-// import viewDealers from './viewDealers.vue'
|
|
|
// 接口
|
|
|
import { subareaQueryAll, deleteSubareaBySn, deleteSubareaAreaBySn } from '@/api/subarea'
|
|
|
export default {
|
|
|
- name: 'MarketingDivisionSetNew',
|
|
|
+ name: 'ShoppingManagementList',
|
|
|
mixins: [commonMixin],
|
|
|
components: { STable, VSelect, addCategoryModal },
|
|
|
data () {
|
|
@@ -253,7 +239,7 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less">
|
|
|
- .marketingDivisionSetNew-wrap{
|
|
|
+ .shoppingManagementList-wrap{
|
|
|
height: 100%;
|
|
|
}
|
|
|
</style>
|