Commit ca3f8bcc by 前端

菜单迁移

1 parent 8c1aeb0f
......@@ -96,8 +96,242 @@ export const routerName = {
parentId: "91205",
label: "查看标签",
handle: "handleViewLabel"
},
{
authId: "9120502",
parentId: "91205",
label: "设备登录历史",
category: "Button",
type: "primary",
handle: "handleLoginHistory"
},
{
authId: "9120503",
parentId: "91205",
label: "导出人员",
category: "Button",
type: "primary",
handle: "handleExportPerson"
},
{
authId: "9120504",
parentId: "91205",
label: "导出标签",
category: "Button",
type: "primary",
handle: "handleExportLabel"
}
],
component: _import("systemConfig/inStoreManage/index")
},
91206: {
path: "/staffManage",
name: "staffManage",
meta: {
title: "驻店工资绩效",
authId: "91206",
parentId: "912",
cache: false
},
auth: [
{
authId: "9120601",
parentId: "91206",
label: "导出工资绩效",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9120602",
parentId: "91206",
label: "导入员工",
category: "Button",
handle: "handleImport"
},
{
authId: "9120603",
parentId: "91206",
label: "绩效配置",
handle: "handlePerformance",
addRoutePath: [
{
authId: "912060301",
name: "绩效配置",
parentId: "91206"
}
]
},
{
authId: "9120604",
parentId: "91206",
label: "导师配置",
handle: "handleMentor",
addRoutePath: [
{
authId: "912060401",
name: "导师配置",
parentId: "91206"
}
]
},
{
authId: "9120605",
parentId: "91206",
label: "启用工资绩效",
handle: "handleEnableOrDisable",
ruleObj: {
attr: "performanceFlag",
rule: {
N: "启用工资绩效",
Y: "禁用工资绩效"
}
}
},
{
authId: "9120606",
parentId: "91206",
label: "业绩详情",
handle: "handleDetail"
}
],
component: _import("systemConfig/businessSchoolManage/index")
},
912060301: {
path: "/performanceConfig",
name: "performanceConfig",
meta: {
title: "绩效配置",
authId: "912060301",
parentId: "91206",
sideHidden: true,
activePath: "/staffManage"
},
component: _import("systemConfig/businessSchoolManage/performanceConfig")
},
912060401: {
path: "/mentorConfig",
name: "mentorConfig",
meta: {
title: "导师配置",
authId: "912060401",
parentId: "91206",
sideHidden: true,
activePath: "/staffManage"
},
component: _import("systemConfig/businessSchoolManage/mentorConfig")
},
91207: {
path: "/inStoreGoalsConfig",
name: "inStoreGoalsConfig",
meta: {
title: "驻店目标配置",
authId: "91207",
parentId: "912",
cache: false
},
auth: [
{
authId: "9120701",
parentId: "91207",
label: "新增",
category: "Button",
type: "primary",
handle: "handleAdd",
addRoutePath: [
{
authId: "912070101",
name: "新增",
parentId: "91207"
}
]
},
{
authId: "9120702",
parentId: "91207",
label: "查看",
handle: "handleStoreView",
addRoutePath: [
{
authId: "912070201",
name: "查看",
parentId: "91207"
}
]
},
{
authId: "9120703",
parentId: "91207",
label: "编辑",
handle: "handleStoreEdit",
addRoutePath: [
{
authId: "912070101",
name: "编辑",
parentId: "91207"
}
]
},
{
authId: "9120704",
parentId: "91207",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9120705",
parentId: "91207",
label: "查看",
handle: "handleStaffView",
addRoutePath: [
{
authId: "912070501",
name: "查看任务",
parentId: "91207"
}
]
}
],
component: _import("systemConfig/inStoreGoalsConfig/index")
},
912070101: {
path: "/addInStoreConfig",
name: "addInStoreConfig",
meta: {
title: "新增",
authId: "912070101",
parentId: "91207",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/addInStoreConfig")
},
// 查看店面目标配置
912070201: {
path: "/inStoreConfigView",
name: "inStoreConfigView",
meta: {
title: "查看",
authId: "912070201",
parentId: "91207",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/addInStoreConfig")
},
// 查看驻店员工任务
912070501: {
path: "/employeeTasksView",
name: "employeeTasksView",
meta: {
title: "查看任务",
authId: "912070501",
parentId: "91207",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/employeeTasksView")
}
}
......@@ -10,10 +10,13 @@
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
......@@ -24,7 +27,9 @@
<span class="table-header-title">工资绩效员工列表</span>
<div class="table-header-tips">共<span class="count">{{ totalNum }}</span>个员工启用工资绩效</div>
</div>
<auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062101', '9062102']" />
<auth-button category="Button"
style="{display: inline-block}"
:show-btn-ids="['9120601', '9120602']" />
</d2-table-header>
<d2-table ref="staffManageTable"
:has-num="false"
......@@ -33,29 +38,39 @@
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<div slot="partnerMerchantNameId" slot-scope="scope">
<div slot="partnerMerchantNameId"
slot-scope="scope">
<div v-if="!scope.scope.partnerMerchantNameIdList.length">-</div>
<div v-else v-for="(item, index) in scope.scope.partnerMerchantNameIdList" :key="index">{{ item }}</div>
<div v-else
v-for="(item, index) in scope.scope.partnerMerchantNameIdList"
:key="index">{{ item }}</div>
</div>
<div slot="partnerMerchantId" slot-scope="scope">
<div slot="partnerMerchantId"
slot-scope="scope">
<div v-if="!scope.scope.partnerMerchantIdList.length">-</div>
<div v-else v-for="(item, index) in scope.scope.partnerMerchantIdList" :key="index">{{ item }}</div>
<div v-else
v-for="(item, index) in scope.scope.partnerMerchantIdList"
:key="index">{{ item }}</div>
</div>
<div slot="auth-button"
slot-scope="scope">
<!-- 绩效配置 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062103']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9120603']" />
</span>
<!-- 导师配置 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062104']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9120604']" />
</span>
<!-- 禁/启用工资绩效 -->
<auth-button :data="scope.scope" :show-btn-ids="['9062105']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9120605']" />
<!-- 业绩详情 -->
<span>
<auth-button :data="scope.scope" :show-btn-ids="['9062106']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9120606']" />
</span>
</div>
</d2-table>
......@@ -109,25 +124,37 @@
ref="exportFileRuleForm"
label-width="140px"
:rules="exportFormRules">
<el-form-item label="选择导出月份:" prop="exportMonth">
<el-date-picker
v-model="exportFileForm.exportMonth"
class="wid_280"
type="month"
placeholder="选择月"
:picker-options="beforeRangePickerOptions">
<el-form-item label="选择导出月份:"
prop="exportMonth">
<el-date-picker v-model="exportFileForm.exportMonth"
class="wid_280"
type="month"
placeholder="选择月"
:picker-options="beforeRangePickerOptions">
</el-date-picker>
</el-form-item>
<el-form-item label="选择园区店:" prop="exportYqMerchantId">
<el-select class="wid_280" v-model="exportFileForm.exportYqMerchantId" multiple collapse-tags filterable clearable>
<el-option v-for="(item, index) in yqMerchantList" :key="index" :label="item.merchantName" :value="item.merchantId"></el-option>
<el-form-item label="选择园区店:"
prop="exportYqMerchantId">
<el-select class="wid_280"
v-model="exportFileForm.exportYqMerchantId"
multiple
collapse-tags
filterable
clearable>
<el-option v-for="(item, index) in yqMerchantList"
:key="index"
:label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select>
</el-form-item>
</el-form>
</slot>
</d2-dialog>
<!-- 业绩详情 -->
<performance-detail-dialog v-if="perDetailVisible" :detail-info-data="detailInfoData" :per-detail-visible="perDetailVisible" @handleConfirm="handleDetail"></performance-detail-dialog>
<performance-detail-dialog v-if="perDetailVisible"
:detail-info-data="detailInfoData"
:per-detail-visible="perDetailVisible"
@handleConfirm="handleDetail"></performance-detail-dialog>
</d2-container>
</template>
......@@ -542,18 +569,18 @@ export default {
.m-t-40 {
margin-top: 40px;
}
.table-header-title{
.table-header-title {
font-size: 16px;
color: #333333;
font-weight: 500;
}
.table-header-tips{
.table-header-tips {
font-size: 12px;
color: #999999;
display: inline-block;
margin-left: 8px;
.count{
color: #D9646C;
.count {
color: #d9646c;
}
}
.staff-list .m-l-md {
......@@ -581,13 +608,13 @@ export default {
top: 50px;
left: 0;
}
::v-deep .el-tag--info{
::v-deep .el-tag--info {
max-width: 140px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .wid_280{
::v-deep .wid_280 {
width: 280px !important;
}
</style>
......@@ -10,17 +10,22 @@
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button @click="searchList" size="small" type="primary">
<el-button @click="searchList"
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062504']" />
<auth-button category="Button"
style="{display: inline-block}"
:show-btn-ids="['9120704']" />
</d2-table-header>
<d2-table ref="staffTargetTable"
:has-num="false"
......@@ -31,57 +36,77 @@
@refreshTable="jumpPage"
:array-span-method="arraySpanMethod">
<!-- 车主类型 -->
<template slot="selectCarType" slot-scope="scope">
<template slot="selectCarType"
slot-scope="scope">
<div v-if="scope.scope.selectCarType == 0">无</div>
<div v-if="scope.scope.selectCarType == 1">车辆价格:{{ scope.scope.minCarPrice }}-{{ scope.scope.maxCarPrice }}万</div>
<div v-if="scope.scope.selectCarType == 1">
车辆价格:{{ scope.scope.minCarPrice }}-{{ scope.scope.maxCarPrice }}万</div>
<div v-if="scope.scope.selectCarType == 2">车辆类型:
<span v-for="(subItem, subIndex) in scope.scope.carList" :key="subIndex">{{ `${subItem.carSeriesName}` }}<span v-if="subIndex < scope.scope.carList.length - 1"> / </span></span>
<span v-for="(subItem, subIndex) in scope.scope.carList"
:key="subIndex">{{ `${subItem.carSeriesName}` }}<span
v-if="subIndex < scope.scope.carList.length - 1"> / </span></span>
</div>
</template>
<!-- 商品分类 -->
<template slot="selectGoodsType" slot-scope="scope">
<template slot="selectGoodsType"
slot-scope="scope">
<div v-if="scope.scope.selectGoodsType == 0">无</div>
<div v-if="scope.scope.selectGoodsType == 1">
<span v-for="(subItem, subIndex) in scope.scope.goodsTypeList" :key="subIndex">{{ subItem.goodsTypeName }}<span v-if="subIndex < scope.scope.goodsTypeList.length - 1"> + </span></span>
<span v-for="(subItem, subIndex) in scope.scope.goodsTypeList"
:key="subIndex">{{ subItem.goodsTypeName }}<span
v-if="subIndex < scope.scope.goodsTypeList.length - 1"> + </span></span>
</div>
</template>
<!-- 主推产品套餐 -->
<template slot="selectPackageType" slot-scope="scope">
<template slot="selectPackageType"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 0">无</div>
<!-- 单商品/多个商品 -->
<div v-if="scope.scope.selectPackageType == 1">
<div style="padding: 0 3px;width: 180px;overflow: hidden; text-overflow: ellipsis;white-space: nowrap;" v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ subItem.upgradeGoodsName }}</div>
<div style="padding: 0 3px;width: 180px;overflow: hidden; text-overflow: ellipsis;white-space: nowrap;"
v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ subItem.upgradeGoodsName }}</div>
</div>
<!-- 商品组合 -->
<div v-if="scope.scope.selectPackageType == 2">
<span v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ subItem.upgradeGoodsName }}<span v-if="subIndex < scope.scope.packageList.length - 1"> + </span></span>
<span v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ subItem.upgradeGoodsName }}<span
v-if="subIndex < scope.scope.packageList.length - 1"> + </span></span>
</div>
</template>
<!-- 目标转化率 -->
<template slot="conversionRate" slot-scope="scope">
<template slot="conversionRate"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `${subItem.conversionRate}%` || '-' }}</div>
<div v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ `${subItem.conversionRate}%` || '-' }}</div>
</div>
<div v-else>{{ `${scope.scope.conversionRate}%` || '-' }}</div>
</template>
<!-- 目标转化率提成 -->
<template slot="conversionRatePercentage" slot-scope="scope">
<template slot="conversionRatePercentage"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `${subItem.conversionRatePercentage}%` || '-' }}</div>
<div v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ `${subItem.conversionRatePercentage}%` || '-' }}</div>
</div>
<div v-else>{{ `${scope.scope.conversionRatePercentage}%` || '-' }}</div>
</template>
<!-- 客单价 -->
<template slot="customerUnitPrice" slot-scope="scope">
<template slot="customerUnitPrice"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `¥${subItem.customerUnitPrice}` || '-' }}</div>
<div v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ `¥${subItem.customerUnitPrice}` || '-' }}</div>
</div>
<div v-else>{{ `¥${scope.scope.customerUnitPrice}` || '-' }}</div>
</template>
<!-- 客单价提成 -->
<template slot="customerUnitPricePercentage" slot-scope="scope">
<template slot="customerUnitPricePercentage"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `${subItem.customerUnitPricePercentage}%` || '-' }}</div>
<div v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ `${subItem.customerUnitPricePercentage}%` || '-' }}</div>
</div>
<div v-else>{{ `${scope.scope.customerUnitPricePercentage}%` || '-' }}</div>
</template>
......@@ -97,7 +122,8 @@
slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062505']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9120705']" />
</span>
</div>
</d2-table>
......
......@@ -10,17 +10,22 @@
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062501']" />
<auth-button category="Button"
style="{display: inline-block}"
:show-btn-ids="['9120701']" />
</d2-table-header>
<d2-table ref="storeTargetTable"
:has-num="false"
......@@ -29,27 +34,34 @@
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="sceneType" slot-scope="scope">
<template slot="sceneType"
slot-scope="scope">
<div v-if="scope.scope.sceneType == 1">精品升级</div>
<div v-if="scope.scope.sceneType == 0">会员权益/升级</div>
</template>
<template slot="partnerMerchantName" slot-scope="scope">
<div v-for="item in scope.scope.serviceList" :key="item.merchantId">{{ item.merchantName }}</div>
<template slot="partnerMerchantName"
slot-scope="scope">
<div v-for="item in scope.scope.serviceList"
:key="item.merchantId">{{ item.merchantName }}</div>
<div v-if="!scope.scope.serviceList.length">-</div>
</template>
<template slot="partnerMerchantId" slot-scope="scope">
<div v-for="item in scope.scope.serviceList" :key="item.merchantId">{{ item.merchantId }}</div>
<template slot="partnerMerchantId"
slot-scope="scope">
<div v-for="item in scope.scope.serviceList"
:key="item.merchantId">{{ item.merchantId }}</div>
<div v-if="!scope.scope.serviceList.length">-</div>
</template>
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062502']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9120702']" />
</span>
<!-- 编辑 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062503']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9120703']" />
</span>
</div>
</d2-table>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!