浏览代码

整理菜单icon,去除多余页面

chenrui 4 年之前
父节点
当前提交
cd7690e839

+ 54 - 79
src/config/router.config.js

@@ -66,7 +66,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '产品列表',
-              icon: 'file-text'
+              icon: 'gold'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -77,7 +77,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/list.vue'),
                 meta: {
                   title: '产品列表',
-                  icon: 'file-text',
+                  icon: 'gold',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -88,7 +88,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
                 meta: {
                   title: '新增产品',
-                  icon: 'file-text',
+                  icon: 'gold',
                   hidden: true
                   // permission: 'B_goodsManage_edit'
                 }
@@ -99,7 +99,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
                 meta: {
                   title: '编辑产品',
-                  icon: 'file-text',
+                  icon: 'gold',
                   hidden: true
                   // permission: 'B_goodsManage_edit'
                 }
@@ -113,7 +113,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '产品定价',
-              icon: 'sketch'
+              icon: 'transaction'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -124,7 +124,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productPricing/list.vue'),
                 meta: {
                   title: '产品定价列表',
-                  icon: 'sketch',
+                  icon: 'transaction',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -138,7 +138,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '价格变更记录',
-              icon: 'sketch'
+              icon: 'profile'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -149,7 +149,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/priceChangeRecord/list.vue'),
                 meta: {
                   title: '价格变更记录列表',
-                  icon: 'sketch',
+                  icon: 'profile',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -163,7 +163,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '产品上线审核',
-              icon: 'sketch'
+              icon: 'rise'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -174,7 +174,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productLaunchAudit/list.vue'),
                 meta: {
                   title: '产品上线审核列表',
-                  icon: 'sketch',
+                  icon: 'rise',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -188,7 +188,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '产品下线审核',
-              icon: 'sketch'
+              icon: 'fall'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -199,7 +199,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productOfflineAudit/list.vue'),
                 meta: {
                   title: '产品下线审核列表',
-                  icon: 'sketch',
+                  icon: 'fall',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -213,7 +213,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '产品级别管理',
-              icon: 'sketch'
+              icon: 'fund'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -224,7 +224,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productLevel/list.vue'),
                 meta: {
                   title: '产品级别列表',
-                  icon: 'sketch',
+                  icon: 'fund',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -238,7 +238,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '产品品牌管理',
-              icon: 'sketch'
+              icon: 'file-ppt'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -249,7 +249,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productBrand/list.vue'),
                 meta: {
                   title: '产品品牌列表',
-                  icon: 'sketch',
+                  icon: 'file-ppt',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -263,7 +263,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '产品分类管理',
-              icon: 'sliders'
+              icon: 'radar-chart'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -274,7 +274,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productCategory/list.vue'),
                 meta: {
                   title: '产品分类列表',
-                  icon: 'sliders',
+                  icon: 'radar-chart',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -316,7 +316,7 @@ export const asyncRouterMap = [
         component: PageView,
         meta: {
           title: '经销商管理',
-          icon: 'shopping'
+          icon: 'idcard'
           // permission: 'M_shop'
         },
         children: [
@@ -327,7 +327,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '营销分区设置',
-              icon: 'sketch'
+              icon: 'setting'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -338,38 +338,13 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/marketingDivisionSet/list.vue'),
                 meta: {
                   title: '营销分区列表',
-                  icon: 'sketch',
+                  icon: 'setting',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
               }
             ]
           },
-          // {
-          //   path: '/dealerManagement/userManagement',
-          //   redirect: '/dealerManagement/userManagement/list',
-          //   name: 'dealerManagementUserManagement',
-          //   component: RouteView,
-          //   meta: {
-          //     title: '营销部用户管理',
-          //     icon: 'sketch'
-          //     // permission: 'M_goodsManage_list'
-          //   },
-          //   hideChildrenInMenu: true,
-          //   children: [
-          //     {
-          //       path: 'list',
-          //       name: 'userManagementList',
-          //       component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/userManagement/list.vue'),
-          //       meta: {
-          //         title: '营销部用户列表',
-          //         icon: 'sketch',
-          //         hidden: true
-          //         // permission: 'M_goodsManage_list'
-          //       }
-          //     }
-          //   ]
-          // },
           {
             path: '/dealerManagement/merchantInfoManagement',
             redirect: '/dealerManagement/merchantInfoManagement/list',
@@ -435,7 +410,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '经销商账号管理',
-              icon: 'sketch'
+              icon: 'team'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -446,7 +421,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/dealerAccountManagement/list.vue'),
                 meta: {
                   title: '经销商账号列表',
-                  icon: 'sketch',
+                  icon: 'team',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -460,7 +435,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '经销商关系绑定',
-              icon: 'sketch'
+              icon: 'share-alt'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -471,7 +446,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/dealerRelationshipBinding/list.vue'),
                 meta: {
                   title: '经销商关系绑定列表',
-                  icon: 'sketch',
+                  icon: 'share-alt',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -485,7 +460,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '差价归属设置',
-              icon: 'sketch'
+              icon: 'stock'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -496,7 +471,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/rebateSettings/list.vue'),
                 meta: {
                   title: '差价归属设置列表',
-                  icon: 'sketch',
+                  icon: 'stock',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -581,7 +556,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '关联产品明细表',
-              icon: 'sketch'
+              icon: 'build'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -592,7 +567,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/associatedProductDetails/list.vue'),
                 meta: {
                   title: '关联产品明细列表',
-                  icon: 'sketch',
+                  icon: 'build',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -608,7 +583,7 @@ export const asyncRouterMap = [
         component: PageView,
         meta: {
           title: '采购管理',
-          icon: 'gold'
+          icon: 'money-collect'
           // permission: 'M_bulkWarehousing'
         },
         children: [
@@ -771,7 +746,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '下推订单管理',
-              icon: 'export'
+              icon: 'vertical-align-bottom'
               // permission: 'M_outboundList'
             },
             hideChildrenInMenu: true,
@@ -782,7 +757,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/list.vue'),
                 meta: {
                   title: '下推订单管理列表',
-                  icon: 'export',
+                  icon: 'vertical-align-bottom',
                   hidden: true
                   // permission: 'M_outboundList'
                 }
@@ -793,7 +768,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/detail.vue'),
                 meta: {
                   title: '下推订单详细',
-                  icon: 'export',
+                  icon: 'vertical-align-bottom',
                   hidden: true
                   // permission: 'M_outboundList'
                 }
@@ -936,7 +911,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '缺货统计(按客户)',
-              icon: 'sketch'
+              icon: 'file-done'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -947,7 +922,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/salesManagement/shortageStatisticsC/list.vue'),
                 meta: {
                   title: '缺货统计列表',
-                  icon: 'sketch',
+                  icon: 'file-done',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -961,7 +936,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '缺货统计(按产品)',
-              icon: 'sketch'
+              icon: 'file-protect'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -972,7 +947,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/salesManagement/shortageStatisticsP/list.vue'),
                 meta: {
                   title: '缺货统计列表',
-                  icon: 'sketch',
+                  icon: 'file-protect',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -1210,7 +1185,7 @@ export const asyncRouterMap = [
         component: PageView,
         meta: {
           title: '促销管理',
-          icon: 'cluster'
+          icon: 'rocket'
           // permission: 'M_shop'
         },
         children: [
@@ -1221,7 +1196,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '促销规则管理',
-              icon: 'pull-request'
+              icon: 'thunderbolt'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -1232,7 +1207,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/list.vue'),
                 meta: {
                   title: '促销规则列表',
-                  icon: 'pull-request',
+                  icon: 'thunderbolt',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -1243,7 +1218,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/detail.vue'),
                 meta: {
                   title: '促销规则详情',
-                  icon: 'pull-request',
+                  icon: 'thunderbolt',
                   hidden: true
                   // permission: 'B_goodsManage_edit'
                 }
@@ -1254,7 +1229,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/rule.vue'),
                 meta: {
                   title: '促销规则设置',
-                  icon: 'pull-request',
+                  icon: 'thunderbolt',
                   hidden: true
                   // permission: 'B_goodsManage_edit'
                 }
@@ -1268,7 +1243,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '促销订单统计',
-              icon: 'pull-request'
+              icon: 'contacts'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -1279,7 +1254,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/orderStatistics/list.vue'),
                 meta: {
                   title: '订单统计列表',
-                  icon: 'pull-request',
+                  icon: 'contacts',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -1293,7 +1268,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '促销产品统计',
-              icon: 'pull-request'
+              icon: 'file-ppt'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -1304,7 +1279,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/productStatistics/list.vue'),
                 meta: {
                   title: '产品统计列表',
-                  icon: 'pull-request',
+                  icon: 'file-ppt',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -1368,7 +1343,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '入库确认',
-              icon: 'pull-request'
+              icon: 'vertical-align-bottom'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -1379,7 +1354,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingConfirmation/list.vue'),
                 meta: {
                   title: '入库确认列表',
-                  icon: 'pull-request',
+                  icon: 'vertical-align-bottom',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -1393,7 +1368,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '退货确认',
-              icon: 'pull-request'
+              icon: 'vertical-align-top'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -1404,7 +1379,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/list.vue'),
                 meta: {
                   title: '退货确认列表',
-                  icon: 'pull-request',
+                  icon: 'vertical-align-top',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -1418,7 +1393,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '财务收款',
-              icon: 'sketch'
+              icon: 'pay-circle'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -1429,7 +1404,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/financialManagement/financialCollection/list.vue'),
                 meta: {
                   title: '财务收款列表',
-                  icon: 'sketch',
+                  icon: 'pay-circle',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
@@ -1535,7 +1510,7 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '调拨类型管理',
-              icon: 'deployment-unit'
+              icon: 'interaction'
               // permission: 'M_goodsManage_list'
             },
             hideChildrenInMenu: true,
@@ -1546,7 +1521,7 @@ export const asyncRouterMap = [
                 component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/transferTypeManagement/list.vue'),
                 meta: {
                   title: '调拨类型列表',
-                  icon: 'deployment-unit',
+                  icon: 'interaction',
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }

+ 0 - 125
src/views/dealerManagement/userManagement/editModal.vue

@@ -1,125 +0,0 @@
-<template>
-  <a-modal
-    centered
-    class="userManagementEdit-modal"
-    :footer="null"
-    :maskClosable="false"
-    title="分区设置"
-    v-model="isShow"
-    @cancle="isShow=false"
-    :width="600">
-    <!-- 表单 -->
-    <div>
-      <a-form-model
-        id="userManagementEdit-form"
-        ref="ruleForm"
-        :model="form"
-        :rules="rules"
-        :label-col="formItemLayout.labelCol"
-        :wrapper-col="formItemLayout.wrapperCol"
-      >
-        <a-form-model-item label="用户姓名" prop="productBrandName">
-          张三丰
-        </a-form-model-item>
-        <a-form-model-item label="所属营销分区" prop="productBrandName">
-          <a-select placeholder="请选择所属营销分区" id="userManagementEdit-level" allowClear v-model="form.levels">
-            <a-select-option v-for="item in productBrandList" :key="item.productBrandSn" :value="item.productBrandSn">{{ item.productBrandName }}</a-select-option>
-          </a-select>
-        </a-form-model-item>
-      </a-form-model>
-      <div class="btn-cont">
-        <a-button type="primary" id="userManagementEdit-submit" @click="handleSubmit">确定</a-button>
-        <a-button id="userManagementEdit-back" @click="isShow = false" style="margin-left: 15px;">取消</a-button>
-      </div>
-    </div>
-  </a-modal>
-</template>
-
-<script>
-import { STable, Upload } from '@/components'
-import Editor from '@/components/WEeditor'
-// import { dealerProductBrandSave } from '@/api/dealerProductBrand'
-export default {
-  name: 'UserManagementEditModal',
-  components: { STable, Upload, Editor },
-  props: {
-    openModal: { //  弹框显示状态
-      type: Boolean,
-      default: false
-    },
-    itemId: {
-      type: [Number, String],
-      default: ''
-    },
-    nowData: {
-      type: Object,
-      default: null
-    }
-  },
-  data () {
-    return {
-      isShow: this.openModal, //  是否打开弹框
-      formItemLayout: {
-        labelCol: { span: 6 },
-        wrapperCol: { span: 18 }
-      },
-      form: {
-        productBrandName: '', // 产品品牌名称
-        image: '',
-        desc: ''
-      },
-      rules: {
-        productBrandName: [
-          { required: true, message: '请输入产品品牌名称', trigger: 'blur' }
-        ]
-      },
-      productBrandList: []
-    }
-  },
-  methods: {
-    //  确定
-    handleSubmit () {
-      const _this = this
-      _this.$refs.ruleForm.validate(valid => {
-        if (valid) {
-          const formData = JSON.parse(JSON.stringify(_this.form))
-          formData.id = _this.itemId ? _this.itemId : undefined
-          dealerProductBrandSave(formData).then(res => {
-            if (res.status == 200) {
-              _this.$message.success(res.message)
-              _this.$emit('ok')
-              _this.isShow = false
-            }
-          })
-        } else {
-          return false
-        }
-      })
-    }
-  },
-  watch: {
-    //  父页面传过来的弹框状态
-    openModal (newValue, oldValue) {
-      this.isShow = newValue
-    },
-    //  重定义的弹框状态
-    isShow (newValue, oldValue) {
-      if (!newValue) {
-        this.$emit('close')
-      }
-    }
-  }
-}
-</script>
-
-<style lang="less">
-  .userManagementEdit-modal{
-    .ant-modal-body {
-    	padding: 40px 40px 24px;
-    }
-    .btn-cont {
-      text-align: center;
-      margin: 35px 0 10px;
-    }
-  }
-</style>

+ 0 - 154
src/views/dealerManagement/userManagement/list.vue

@@ -1,154 +0,0 @@
-<template>
-  <a-card size="small" :bordered="false" class="userManagementList-wrap">
-    <!-- 搜索条件 -->
-    <div class="table-page-search-wrapper">
-      <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
-        <a-row :gutter="15">
-          <a-col :md="6" :sm="24">
-            <a-form-item label="用户姓名">
-              <a-input id="userManagementList-productBrandName" v-model.trim="queryParam.productBrandName" allowClear placeholder="请输入用户姓名"/>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="24">
-            <a-form-item label="用户账号">
-              <a-input id="userManagementList-productBrandName" v-model.trim="queryParam.productBrandName" allowClear placeholder="请输入用户账号"/>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="24">
-            <a-form-item label="账号状态">
-              <v-select code="PRODUCT_STATUS" id="userManagementList-state" v-model="queryParam.state" allowClear placeholder="请选择账号状态"></v-select>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="24">
-            <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="userManagementList-refresh">查询</a-button>
-            <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="userManagementList-reset">重置</a-button>
-          </a-col>
-        </a-row>
-      </a-form>
-    </div>
-    <!-- 列表 -->
-    <s-table
-      class="sTable"
-      ref="table"
-      size="default"
-      :rowKey="(record) => record.id"
-      :columns="columns"
-      :data="loadData"
-      bordered>
-      <!-- 操作 -->
-      <template slot="action" slot-scope="text, record">
-        <a-button
-          size="small"
-          type="link"
-          class="button-primary"
-          @click="handleSet(record)"
-          id="userManagementList-set-btn">分区设置</a-button>
-        <a-button
-          size="small"
-          type="link"
-          class="button-warning"
-          @click="handleReset(record)"
-          id="userManagementList-reset-btn">重置密码</a-button>
-      </template>
-    </s-table>
-    <!-- 分区设置 -->
-    <user-management-edit-modal :openModal="openModal" :nowData="nowData" :itemId="itemId" @ok="$refs.table.refresh(true)" @close="closeModal" />
-  </a-card>
-</template>
-
-<script>
-// import { dealerProductBrandList, dealerProductBrandUpdate } from '@/api/dealerProductBrand'
-import { STable, VSelect } from '@/components'
-import userManagementEditModal from './editModal.vue'
-export default {
-  components: { STable, VSelect, userManagementEditModal },
-  data () {
-    return {
-      queryParam: { //  查询条件
-        productBrandName: '', //  品牌名称
-        enabledFlag: undefined //  状态
-      },
-      disabled: false, //  查询、重置按钮是否可操作
-      columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
-        { title: '用户角色', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '用户姓名', dataIndex: 'productBrandName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '用户账号', dataIndex: 'producstBrandName', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '所属营销分区', dataIndex: 'productssBrandName', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '账号状态', dataIndex: 'firstChar', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center' }
-      ],
-      // 加载数据方法 必须为 Promise 对象
-      loadData: parameter => {
-        this.disabled = true
-        // return dealerProductBrandList(Object.assign(parameter, this.queryParam)).then(res => {
-        //   const data = res.data
-        //   const no = (data.pageNo - 1) * data.pageSize
-        //   for (var i = 0; i < data.list.length; i++) {
-        //     data.list[i].no = no + i + 1
-        //   }
-        //   this.disabled = false
-        //   return data
-        // })
-        const _this = this
-        return new Promise(function (resolve, reject) {
-          const data = {
-            pageNo: 1,
-            pageSize: 10,
-            list: [
-              { id: '1', productNum: 'jgqp11111111111', productName: '产品1', productPic: ['https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', 'https://qn.antdv.com/vue.png'], productOldNum: 'jgqp111123545', productBrand: '箭冠品牌', productType: '产品分类1', inventoryNum: '5', inventoryMoney: '122' }
-            ]
-          }
-          const no = (data.pageNo - 1) * data.pageSize
-          for (var i = 0; i < data.list.length; i++) {
-            data.list[i].no = no + i + 1
-          }
-          _this.disabled = false
-          resolve(data)
-        })
-      },
-      openModal: false, //  分区设置  弹框
-      itemId: '', //  当前id
-      nowData: null, //  当前记录数据
-      productBrandList: []
-    }
-  },
-  methods: {
-    //  重置
-    resetSearchForm () {
-      this.queryParam.productBrandName = ''
-      this.queryParam.enabledFlag = undefined
-      this.$refs.table.refresh(true)
-    },
-    // 分区设置
-    handleSet (row) {
-      this.itemId = row ? row.id : null
-      this.nowData = row || null
-      this.openModal = true
-    },
-    //  关闭弹框
-    closeModal () {
-      this.itemId = ''
-      this.nowData = null
-      this.openModal = false
-    },
-    // 重置密码
-    handleReset (row) {
-      const _this = this
-      this.$confirm({
-        title: '提示',
-        content: '重置密码后,新的密码会以短信形式发送到【管理员手机】,确定要重置吗?',
-        centered: true,
-        onOk () {
-          // salesDel({ id: row.id }).then(res => {
-          //   if (res.status == 200) {
-          //     _this.$message.success(res.message)
-          //     _this.$refs.table.refresh()
-          //   }
-          // })
-        }
-      })
-    }
-  }
-}
-</script>