Commit 8f031554 by 无尘

fix: 修改 门店架构部门选择

parent 6e5fdec4
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.a09acdf52f7dee6480e9de6246f97e25.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=https://cdn.ravenjs.com/3.26.2/vue/raven.min.js crossorigin=anonymous></script><script>Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.49d1752a63341ed138a8.js></script><script type=text/javascript src=./static/js/vendor.2a06374a31d674ca49d2.js></script><script type=text/javascript src=./static/js/app.2a1ad6040a1ec278014d.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.f67635317a92fbb0d597cb0489dc6949.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=https://cdn.ravenjs.com/3.26.2/vue/raven.min.js crossorigin=anonymous></script><script>Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.3cf075cc3b46c4dafd59.js></script><script type=text/javascript src=./static/js/vendor.2a06374a31d674ca49d2.js></script><script type=text/javascript src=./static/js/app.2a1ad6040a1ec278014d.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(f,d,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],b[t]&&u.push(b[t][0]),b[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(f,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=c(c.s=n[i]);return o};var f={},b={73:0};function c(a){if(f[a])return f[a].exports;var b=f[a]={i:a,l:!1,exports:{}};return e[a].call(b.exports,b,b.exports,c),b.l=!0,b.exports}c.e=function(e){var a=b[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var f=new Promise(function(f,c){a=b[e]=[f,c]});a[2]=f;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,c.nc&&n.setAttribute("nonce",c.nc),n.src=c.p+"static/js/"+e+"."+{0:"a445e74b3900f3876c72",1:"0ebe3ead93207dc78a78",2:"c8863e7a9d4b284238db",3:"882bbad4c581b9592e94",4:"59afc6b09559f1ebc067",5:"552998314a7a8b30e5de",6:"00b931389a74250125a3",7:"50747c5f602fa39713ee",8:"ccfd1bb81626da46f432",9:"b916c8d12141617e4db2",10:"84a1849b0202f4273f23",11:"48cce40bd1119cfef79d",12:"8a1633b353b37d5bfcd2",13:"50f2f7291e012aa2feab",14:"94920536d81601122060",15:"35d29be8ae21328d7a1a",16:"7016f834cadae9b57028",17:"2c76434ec01b2b5ee02f",18:"d07d6af2aa0d5ee86261",19:"7ed28ae00b8809d6d671",20:"8f48037229efe39f46f1",21:"2103d8428d4f707fa369",22:"dec9447a8c45f2a2c7bb",23:"bd9202e3991ee39668e6",24:"54f2906c51709913d672",25:"4f9db49437ea94436d03",26:"1649432938888d71b3c9",27:"67137144c98b28cc5a30",28:"140ad99228544036c969",29:"30037b5674e7675b1da7",30:"fa0e0e20a9883b94be73",31:"a8e20732b0b0f62f5c5a",32:"509f0e1d73c3190be53a",33:"d649a5e4d061985d1c3a",34:"4977e6b9167f796404b9",35:"718d90637b7e54754f31",36:"6b7ba3c82f569f7a47e0",37:"f8bf84592943c5dfbf8a",38:"db0ccdb9d831a1fee238",39:"8861e4489f26fe322990",40:"c6cf553f8eb155ae6f1a",41:"119ab10f2d353ddcdbc8",42:"3cda7effdd6238c3e2d9",43:"afd187ba0590923ba9e5",44:"77199a317327d7ebcf4b",45:"5b64fee2aa3e6c3e3fc9",46:"588053d1bdb79f78028d",47:"e53a7b3b284d29858fae",48:"75da586a106599c730c1",49:"028b1255269b880f351b",50:"4289d8f282974207066c",51:"98c3602fc3a9ab54693a",52:"5ea13e39ab6e51a9054f",53:"5232792298264e487629",54:"4749eb7f37153ac94005",55:"bea6622b77dd0e24b535",56:"a2faa30e5f1c6aeb57be",57:"9064c84ce91fad83fe44",58:"04dbe15e8a9576b15187",59:"b62232922e7ccdd7242e",60:"956a6a3b0b11e618bd1b",61:"c220c6bad221831a72f6",62:"f797b18bb14b4d79151b",63:"b05b4ec28d2829c54f65",64:"0be98c69b2be684d451f",65:"e069a6e1df52acf3f14f",66:"9f1afb5a13b54ea92a02",67:"d674abd10a01e3c004c8",68:"2189902bf2848c91608c",69:"4087b90ee08d0100519f",72:"e19aae5a21dcfad3391e"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=b[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),b[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),f},c.m=e,c.c=f,c.d=function(e,a,f){c.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:f})},c.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(a,"a",a),a},c.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c.p="./",c.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(f,d,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(f,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var f={},c={73:0};function b(a){if(f[a])return f[a].exports;var c=f[a]={i:a,l:!1,exports:{}};return e[a].call(c.exports,c,c.exports,b),c.l=!0,c.exports}b.e=function(e){var a=c[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var f=new Promise(function(f,b){a=c[e]=[f,b]});a[2]=f;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"a445e74b3900f3876c72",1:"0ebe3ead93207dc78a78",2:"c8863e7a9d4b284238db",3:"e1a859c969621af21987",4:"59afc6b09559f1ebc067",5:"b2540360eda0ee16006c",6:"00b931389a74250125a3",7:"50747c5f602fa39713ee",8:"ccfd1bb81626da46f432",9:"b916c8d12141617e4db2",10:"84a1849b0202f4273f23",11:"48cce40bd1119cfef79d",12:"8a1633b353b37d5bfcd2",13:"50f2f7291e012aa2feab",14:"94920536d81601122060",15:"35d29be8ae21328d7a1a",16:"7016f834cadae9b57028",17:"2c76434ec01b2b5ee02f",18:"d07d6af2aa0d5ee86261",19:"7ed28ae00b8809d6d671",20:"8f48037229efe39f46f1",21:"2103d8428d4f707fa369",22:"dec9447a8c45f2a2c7bb",23:"bd9202e3991ee39668e6",24:"54f2906c51709913d672",25:"4f9db49437ea94436d03",26:"1649432938888d71b3c9",27:"67137144c98b28cc5a30",28:"140ad99228544036c969",29:"30037b5674e7675b1da7",30:"fa0e0e20a9883b94be73",31:"a8e20732b0b0f62f5c5a",32:"509f0e1d73c3190be53a",33:"d649a5e4d061985d1c3a",34:"4977e6b9167f796404b9",35:"718d90637b7e54754f31",36:"6b7ba3c82f569f7a47e0",37:"f8bf84592943c5dfbf8a",38:"db0ccdb9d831a1fee238",39:"8861e4489f26fe322990",40:"c6cf553f8eb155ae6f1a",41:"119ab10f2d353ddcdbc8",42:"3cda7effdd6238c3e2d9",43:"afd187ba0590923ba9e5",44:"77199a317327d7ebcf4b",45:"5b64fee2aa3e6c3e3fc9",46:"588053d1bdb79f78028d",47:"e53a7b3b284d29858fae",48:"75da586a106599c730c1",49:"028b1255269b880f351b",50:"4289d8f282974207066c",51:"98c3602fc3a9ab54693a",52:"5ea13e39ab6e51a9054f",53:"5232792298264e487629",54:"4749eb7f37153ac94005",55:"bea6622b77dd0e24b535",56:"a2faa30e5f1c6aeb57be",57:"9064c84ce91fad83fe44",58:"04dbe15e8a9576b15187",59:"b62232922e7ccdd7242e",60:"956a6a3b0b11e618bd1b",61:"c220c6bad221831a72f6",62:"f797b18bb14b4d79151b",63:"b05b4ec28d2829c54f65",64:"0be98c69b2be684d451f",65:"e069a6e1df52acf3f14f",66:"9f1afb5a13b54ea92a02",67:"d674abd10a01e3c004c8",68:"2189902bf2848c91608c",69:"4087b90ee08d0100519f",72:"e19aae5a21dcfad3391e"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=c[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),f},b.m=e,b.c=f,b.d=function(e,a,f){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:f})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -12,31 +12,33 @@ ...@@ -12,31 +12,33 @@
</div> </div>
<div class="search-result-container m-t-15" v-if="searchResultShow"> <div class="search-result-container m-t-15" v-if="searchResultShow">
<template v-if="storeFrame"> <template v-if="storeFrame">
<template v-for="(brand, index) in brandList" v-if="brand.departmentList.length > 0 || brand.storeList.length > 0 || brand.searchList.length > 0"> <template v-for="(brand, index) in brandList">
<div :key="brand.topDepartment.brandId + '_' + index"> <div :key="brand.topDepartment.brandId + '_' + index" v-if="brand.departmentList.length > 0 || brand.storeList.length > 0 || brand.searchList.length > 0">
<p class="brand-title">{{ brand.topDepartment.name }}</p> <div>
<ul class="search-result-ul" v-if="brand.departmentList.length > 0"> <p class="brand-title">{{ brand.topDepartment.name }}</p>
<p class="title store-frame-title">分组列表</p> <ul class="search-result-ul" v-if="brand.departmentList.length > 0">
<li class="group-item items" v-for="(department, index) in brand.departmentList" :key="index + '_' + department.groupId" @click="handleNodeClick(department)"> <p class="title store-frame-title">分组列表</p>
<i class="iconfont icon-tongshi-zuzhijiagou"></i> <li class="group-item items" v-for="(department, index) in brand.departmentList" :key="index + '_' + department.groupId" @click="handleNodeClick(department)">
{{ department.name }} <i class="iconfont icon-tongshi-zuzhijiagou"></i>
</li> {{ department.name }}
</ul> </li>
<ul class="search-result-ul" v-if="brand.storeList.length > 0"> </ul>
<p class="title store-frame-title">门店列表</p> <ul class="search-result-ul" v-if="brand.storeList.length > 0">
<li class="group-item items" v-for="(store, index) in brand.storeList" :key="index + '_' + store.storeGroupId" @click="handleStoreClick(store)"> <p class="title store-frame-title">门店列表</p>
<i class="iconfont icon-tongshi-zuzhijiagou"></i> <li class="group-item items" v-for="(store, index) in brand.storeList" :key="index + '_' + store.storeGroupId" @click="handleStoreClick(store)">
{{ store.storeName }} <i class="iconfont icon-tongshi-zuzhijiagou"></i>
</li> {{ store.storeName }}
</ul> </li>
<ul class="search-result-ul" v-if="brand.searchList.length > 0"> </ul>
<p class="title store-frame-title">人员列表</p> <ul class="search-result-ul" v-if="brand.searchList.length > 0">
<li class="person-item items" v-for="(employee, index) in brand.searchList" :key="index + '_' + employee.employeeClerkId" @click="selectEmployee(employee)"> <p class="title store-frame-title">人员列表</p>
<i class="iconfont icon-chengyuan"></i> <li class="person-item items" v-for="(employee, index) in brand.searchList" :key="index + '_' + employee.employeeClerkId" @click="selectEmployee(employee)">
{{ employee.name }} <i class="iconfont icon-chengyuan"></i>
<span class="from-group">{{ employee.departmentName }}</span> {{ employee.name }}
</li> <span class="from-group">{{ employee.departmentName }}</span>
</ul> </li>
</ul>
</div>
</div> </div>
</template> </template>
<p class="no-data-tip" v-if="brandList.length < 1">暂无数据</p> <p class="no-data-tip" v-if="brandList.length < 1">暂无数据</p>
...@@ -44,14 +46,14 @@ ...@@ -44,14 +46,14 @@
<template v-else> <template v-else>
<ul class="search-result-ul" v-if="departmentList.length > 0"> <ul class="search-result-ul" v-if="departmentList.length > 0">
<p class="title">部门列表</p> <p class="title">部门列表</p>
<li class="group-item items" v-for="(department, index) in departmentList" :key="index + '_' + department.groupId" @click="handleNodeClick(department)"> <li :class="['group-item items', defaultId == department.groupId ? 'active-item' : '']" v-for="(department, index) in departmentList" :key="index + '_' + department.groupId" @click="handleNodeClick(department)">
<i class="iconfont icon-tongshi-zuzhijiagou"></i> <i class="iconfont icon-tongshi-zuzhijiagou"></i>
{{ department.name }} {{ department.name }}
</li> </li>
</ul> </ul>
<ul class="search-result-ul" v-if="employeeList.length > 0"> <ul class="search-result-ul" v-if="employeeList.length > 0">
<p class="title">人员列表</p> <p class="title">人员列表</p>
<li class="person-item items" v-for="(employee, index) in employeeList" :key="index + '_' + employee.employeeClerkId" @click="selectEmployee(employee)"> <li :class="['person-item items', defaultId == employee.employeeClerkId ? 'active-item' : '']" v-for="(employee, index) in employeeList" :key="index + '_' + employee.employeeClerkId" @click="selectEmployee(employee)">
<i class="iconfont icon-chengyuan"></i> <i class="iconfont icon-chengyuan"></i>
{{ employee.name }} {{ employee.name }}
<span class="from-group">{{ employee.departmentName }}</span> <span class="from-group">{{ employee.departmentName }}</span>
...@@ -120,10 +122,12 @@ export default { ...@@ -120,10 +122,12 @@ export default {
* 树形菜单选择 * 树形菜单选择
*/ */
handleNodeClick(obj, node) { handleNodeClick(obj, node) {
const that = this; let that = this;
if (obj.id != that.defaultId) { if (obj.id != that.defaultId && !!document.querySelector('.el-tree-node')) {
document.querySelector('.el-tree-node').classList.remove('is-current'); document.querySelector('.el-tree-node').classList.remove('is-current');
} }
that.defaultId = obj.groupId;
that.$emit('handleTreeSelection', obj, node, 'node'); that.$emit('handleTreeSelection', obj, node, 'node');
}, },
...@@ -131,13 +135,16 @@ export default { ...@@ -131,13 +135,16 @@ export default {
* 搜索结果中选人 * 搜索结果中选人
*/ */
selectEmployee(person) { selectEmployee(person) {
this.$emit('handleEmployeeSelection', person, 'employee'); let that = this;
that.defaultId = person.employeeClerkId;
that.$emit('handleEmployeeSelection', person, 'employee');
}, },
/** /**
* 搜索结果中选门店 * 搜索结果中选门店
*/ */
handleStoreClick(store) { handleStoreClick(store) {
this.$emit('handleStoreSelection', store, 'store'); let that = this;
that.$emit('handleStoreSelection', store, 'store');
} }
}, },
filter: {}, filter: {},
...@@ -307,6 +314,14 @@ export default { ...@@ -307,6 +314,14 @@ export default {
color: #fff; color: #fff;
} }
} }
&.active-item {
background: #409eff;
color: #fff;
.iconfont {
color: #fff;
}
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment