Commit f3f60b1c by 无尘

fix: 修改组织架构状态

parent 71431846
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.f081d5995123a15b34a95c563dd5bef8.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.890819b16097cce48df8.js></script><script type=text/javascript src=./static/js/vendor.014a23eec35e9d02ede3.js></script><script type=text/javascript src=./static/js/app.3b18f29c4af173daa0b6.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.701a67fff2e28f6fe77ef398a3587924.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.9fc287cb00d4ffe83207.js></script><script type=text/javascript src=./static/js/vendor.014a23eec35e9d02ede3.js></script><script type=text/javascript src=./static/js/app.3b18f29c4af173daa0b6.js></script></body></html>
\ 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.
webpackJsonp([7],{"20P3":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Qs+A"),o=a("P9l9"),s=a("Ch4/"),l={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"组织架构管理",path:"/orgStructSet"},{name:"回收站",path:""}],options:[{label:"所有部门类型",value:""},{label:"分组",value:"0"},{label:"门店",value:"1"}],searchInput:"",storeFlag:"",currentPage:1,pageSize:20,total:0,tableData:[],setVisible:!1,recoverItem:{}}},computed:{},methods:{toRecover:function(e,t){this.recoverItem=t,this.setVisible=!0},closeSet:function(){this.setVisible=!1,this.currentPage=1,this.getTableList()},changeRoute:function(e){this.$router.push(e)},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={keyWord:t.searchInput||"",storeFlag:t.storeFlag,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/haoban-manage3-web/department-recycle-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{activeBrand:function(e,t){this.activeBrand=e},activeGroup:function(e,t){this.activeGroup=e}},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:r.a}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"apps-content-right"},[e._m(0),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("'--'")(t.row.storeCode)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:["span-dot",2==t.row.auditStatus?"bg-f5222d":"bg-52c41a"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toShowLog(t.$index,t.row)}}},[e._v("查看失败日志")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"overstore-tip"},[t("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("仅保存近一年失败日志")])])])])}]};var c=a("VU/8")(l,i,!1,function(e){a("M3Of")},"data-v-c710d760",null);t.default=c.exports},M3Of:function(e,t){},"Qs+A":function(e,t,a){"use strict";var n=a("mvHQ"),r=a.n(n),o=a("Xxa5"),s=a.n(o),l=a("exGp"),i=a.n(l),c=a("PI0u"),u=a("P9l9"),d=a("Ch4/"),p=a("3E4D"),f={props:{recoverItem:{type:[Object,Array],default:function(){return{}}}},data:function(){return{setVisible:!0,treeData:[],searchSelect:"",selectId:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"departmentName"}}},computed:{},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)}},methods:{loadNode:function(e,t){var a=this;return i()(s.a.mark(function n(){var r;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=a,0!==e.level){n.next=5;break}return n.abrupt("return",t(r.getGroup()));case 5:return n.next=7,r.getGroup(e,e.data,t);case 7:case"end":return n.stop()}},n,a)}))()},handleClose:function(e){e(),this.$emit("closeSet"),this.selectId=""},cancel:function(){this.$emit("closeSet"),this.selectId=""},filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(c.a)(function(e,t){if(!this.groupDataCopy.length)return!1},200),clearSearch:function(){this.groupData=JSON.parse(r()(this.groupDataCopy))},handleNodeClick:function(e){console.log(e),this.selectId=e.departmentId,this.selectData=e},getGroup:function(e,t,a){var n=this,o={parentId:t?t.departmentId:"",isStore:0};if(e&&(!t.hasSonNode||1==t.isStore))return a([]),!1;Object(u.a)("/haoban-manage3-web/department-list-level",o).then(function(o){var s=o.data;if(1==s.errorCode)return s.result&&s.result.length&&s.result.forEach(function(e){e.expand=!1,e.children=[],e.label=e.departmentName}),e?(a(s.result),t.children||n.$set(t,"children",[]),t.children=s.result||[],n.$forceUpdate(),!1):(n.groupData=s.result||[],void(n.groupDataCopy=JSON.parse(r()(n.groupData))));d.a.errorMsg(s)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},submitForm:function(){var e=this;if(!e.selectId)return p.a.showmsg("请选择部门","warning"),!1;if(1==e.selectData.isStore)return p.a.showmsg("禁止门店下面添加节点","warning"),!1;var t={departmentId:e.recoverItem.departmentId,parentId:e.selectId};Object(u.d)("/haoban-manage3-web/department-repair",t).then(function(t){var a=t.data;1==a.errorCode&&(p.a.showmsg("恢复成功","success"),e.$emit("closeSet",e.selectId)),d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},components:{},mounted:function(){this.getGroup()}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"设置成员所在部门",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"296px"},attrs:{placeholder:"请输入内容",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"select-tree-wrap m-t-20"},[a("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,data:e.groupData,load:e.loadNode,"node-key":"departmentId",lazy:"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,r=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont",1==r.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==r.bindFlag?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(n.label))])])}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var m=a("VU/8")(f,h,!1,function(e){a("mIym")},"data-v-6b4c03fc",null);t.a=m.exports},mIym:function(e,t){}});
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={63:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"937e457e590c16cf534f",1:"06c4e42e62c1f75191f0",2:"285d29389d588923f068",3:"877a49b931fbb74a585b",4:"fd18131aaafd201cd53f",5:"bf21cfa1832c94ed8d4c",6:"aadb949ab3bea612d805",7:"e7e90ccf15b4adeeb944",8:"3d0d5edced09c8237842",9:"aa16369ac132fab2a89c",10:"935a69797af3baaa97b8",11:"73a9b934417c9bc16fc6",12:"59db86ef512a3a65e1ce",13:"ebba5b82c2826c9ba6e1",14:"2c29119d13dc5fff8f2b",15:"b646de33eca64e94b02c",16:"36f27d68f0c8268f26a7",17:"a315ec3bb42a1a5f0ab3",18:"aac9552544b8aaf4d59f",19:"5c01b5259828e3c1889f",20:"0f96177cb5fd1bb77419",21:"d3de2ecd37f4d39cc396",22:"51720c0f417d0769d604",23:"fcfcc69624fb3566c12f",24:"aa192ffeba0868f01959",25:"97a04658f628dc5e71ed",26:"8a50cce733d418f3c0e9",27:"627b44e864332d27c872",28:"4a1eccc4cabcdd25f83d",29:"aca75882170e5a5945be",30:"82e87aae7d3295d12883",31:"032c054ea5ca1ae95138",32:"aabde07cc8c86019067e",33:"1a1ede0e9af1eeb07d09",34:"4985472ef726c7340ecb",35:"e1a3873d58a4cc1589a3",36:"061a93fd38be497575bf",37:"860a72f76833353f798d",38:"bdeed537d20150612926",39:"aa1050ca81022ada45d4",40:"3a0e34109a79afe2b803",41:"8b3ecb2fca74e9e15826",42:"87f46ef25dec9947a6c9",43:"90365a177efc5eecb6fe",44:"35deaf95633486c86ada",45:"77bcbd72c97f479fb2a0",46:"8d36bd32cd547dbfb19f",47:"6cbd1422c407e5e5bb55",48:"2e7b654e43cd44a49642",49:"952d05eb6e168261a3ff",50:"cd442f3ed8acba6f25b5",51:"fc84a6ee6fc1d9500cea",52:"2ba0810a01676a362ab7",53:"d27ba78b3162a86701a6",54:"7b4474d269d938b3a51b",55:"be25aa4e49d3d192a680",56:"3ad96239e6b5a38612bf",57:"7b6836579092420fa925",58:"a5bc5744383b8ec98b4a",59:"8f755c286b5655787dba",60:"697a90eb946d7a033d35"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={63:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"937e457e590c16cf534f",1:"06c4e42e62c1f75191f0",2:"285d29389d588923f068",3:"877a49b931fbb74a585b",4:"fd18131aaafd201cd53f",5:"bf21cfa1832c94ed8d4c",6:"aadb949ab3bea612d805",7:"493eabd26e11317f7512",8:"3d0d5edced09c8237842",9:"aa16369ac132fab2a89c",10:"935a69797af3baaa97b8",11:"73a9b934417c9bc16fc6",12:"59db86ef512a3a65e1ce",13:"ebba5b82c2826c9ba6e1",14:"2c29119d13dc5fff8f2b",15:"b646de33eca64e94b02c",16:"36f27d68f0c8268f26a7",17:"a315ec3bb42a1a5f0ab3",18:"aac9552544b8aaf4d59f",19:"5c01b5259828e3c1889f",20:"0f96177cb5fd1bb77419",21:"d3de2ecd37f4d39cc396",22:"51720c0f417d0769d604",23:"fcfcc69624fb3566c12f",24:"aa192ffeba0868f01959",25:"97a04658f628dc5e71ed",26:"8a50cce733d418f3c0e9",27:"627b44e864332d27c872",28:"4a1eccc4cabcdd25f83d",29:"aca75882170e5a5945be",30:"82e87aae7d3295d12883",31:"032c054ea5ca1ae95138",32:"aabde07cc8c86019067e",33:"1a1ede0e9af1eeb07d09",34:"4985472ef726c7340ecb",35:"e1a3873d58a4cc1589a3",36:"061a93fd38be497575bf",37:"860a72f76833353f798d",38:"bdeed537d20150612926",39:"aa1050ca81022ada45d4",40:"3a0e34109a79afe2b803",41:"8b3ecb2fca74e9e15826",42:"87f46ef25dec9947a6c9",43:"90365a177efc5eecb6fe",44:"35deaf95633486c86ada",45:"77bcbd72c97f479fb2a0",46:"8d36bd32cd547dbfb19f",47:"6cbd1422c407e5e5bb55",48:"2e7b654e43cd44a49642",49:"952d05eb6e168261a3ff",50:"cd442f3ed8acba6f25b5",51:"fc84a6ee6fc1d9500cea",52:"2ba0810a01676a362ab7",53:"d27ba78b3162a86701a6",54:"7b4474d269d938b3a51b",55:"be25aa4e49d3d192a680",56:"3ad96239e6b5a38612bf",57:"7b6836579092420fa925",58:"a5bc5744383b8ec98b4a",59:"8f755c286b5655787dba",60:"697a90eb946d7a033d35"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<!--
<fail-log @closeHelp="closeHelp"></fail-log>
import failLog from '@/components/company/fail-log.vue';
-->
<template>
<el-dialog title="查看失败日志" :visible.sync="dialogVisible" width="995px" :before-close="handleClose">
<div class="overstore-tip">
<div role="alert" class="el-alert el-alert--info flex flex-align-start">
<i class="el-alert__icon el-icon-info font-12 color-2f54eb"></i>
<div class="el-alert__content">
<span class="el-alert__title color-606266 font-14">仅保存近一年失败日志</span>
</div>
</div>
</div>
<div class="m-t-20">
<el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }">
<el-table-column label="分组/门店名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.name }}</template>
</el-table-column>
<el-table-column prop="" label="分组/门店code" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.finishTime }}
</template>
</el-table-column>
<el-table-column prop="" label="所属分组" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.finishTime }}
</template>
</el-table-column>
<el-table-column prop="" label="同步状态" show-overflow-tooltip>
<template slot-scope="scope">
<span :class="['span-dot', scope.row.auditStatus == 2 ? 'bg-f5222d' : 'bg-52c41a']"></span><span class="font-14 color-606266">{{ scope.row.status }}</span>
</template>
</el-table-column>
<el-table-column prop="" label="失败原因" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.storeCode | '--' }}</template>
</el-table-column>
</el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination>
</div>
</div>
</el-dialog>
</template>
<script>
import navCrumb from '@/components/nav/nav.vue';
import setDepartment from '@/components/company/set-department.vue';
import { getRequest } from '@/api/api';
import errMsg from '@/common/js/error';
// import { _debounce } from '@/common/js/public';
export default {
name: 'fail-log',
props: {},
data() {
return {
dialogVisible: true,
// 分页参数
currentPage: 1,
pageSize: 20,
total: 0,
tableData: []
};
},
computed: {},
methods: {
handleClose() {
const that = this;
that.tableData = [];
that.$emit('closeLog');
},
/**
* 路由跳转
*/
changeRoute(path) {
this.$router.push(path);
},
/**
* 分页---页码变化
*/
handleSizeChange(val) {
const that = this;
that.pageSize = val;
that.getTableList();
},
/**
* 分页---当前页变化
*/
handleCurrentChange(val) {
const that = this;
that.currentPage = val;
that.getTableList();
},
/**
* 获取列表数据
*/
getTableList(val) {
const that = this;
let para = {
keyWord: that.searchInput || '', // 搜索字段
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
};
getRequest('/haoban-manage3-web/department-recycle-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.tableData = resData.result.list || [];
that.total = resData.result.total;
return false;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
watch: {},
mounted() {
const that = this;
that.getTableList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
navCrumb,
setDepartment
}
};
</script>
<style type="text/less" lang="less" scoped>
.span-dot {
display: inline-block;
vertical-align: middle;
width: 6px;
height: 6px;
margin-right: 6px;
border-radius: 3px;
&.bg-52c41a {
background: #52c41a;
}
&.bg-f5222d {
background: #f5222d;
}
}
.bg-82C5FF {
background: #82c5ff;
}
.color-508CEE {
color: #508cee;
}
.color-FF585C {
color: #ff585c;
}
.line-h-18 {
line-height: 18px;
}
.tooltip-text {
width: 100%;
white-space: pre-wrap;
word-break: break-all;
}
.w-293 {
width: 293px;
}
.w-191 {
width: 191px;
}
.el-alert--info {
background: rgba(240, 245, 255, 1);
border-radius: 2px;
border: 1px solid rgba(133, 165, 255, 1);
-webkit-box-align: flex-start;
-webkit-align-items: flex-start;
-ms-flex-align: flex-start;
align-items: flex-start;
.el-alert__icon {
font-size: 12px;
padding-top: 3px;
}
}
.my-customer-wrap {
height: 100%;
}
.right-content {
/*width: 100%;*/
padding: 0 20px 20px 20px;
min-height: calc(100% - 160px);
.right-box {
background: #fff;
min-height: 500px;
padding: 0px;
.apps-content {
.apps-content-right {
width: 100%;
padding: 20px;
background: #fff;
.overstore-body {
background: #fff;
}
.daily-set-wrap {
height: 100%;
background: #fff;
}
.app-detail-wrap {
height: 100%;
background: #fff;
}
.common-set-wrap {
height: 100%;
background: #fff;
}
}
}
}
}
</style>
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-04-14 11:38:02
* @LastEditTime: 2020-04-14 15:39:42
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -61,9 +61,11 @@
</div>
</div>
<!-- <vue-gic-footer></vue-gic-footer> -->
<fail-log v-if="logShow" @closeLog="closeLog"></fail-log>
</div>
</template>
<script>
import failLog from '@/components/company/fail-log.vue';
import navCrumb from '@/components/nav/nav.vue';
import setDepartment from '@/components/company/set-department.vue';
import { getRequest } from '@/api/api';
......@@ -84,37 +86,23 @@ export default {
name: '通讯录',
path: '/contactsList'
},
{
/* {
name: '组织架构管理',
path: '/orgStructSet'
},
}, */
{
name: '回收站',
name: '通讯录日志',
path: ''
}
],
options: [
{
label: '所有部门类型',
value: ''
},
{
label: '分组',
value: '0'
},
{
label: '门店',
value: '1'
}
],
searchInput: '',
storeFlag: '',
// 分页参数
currentPage: 1,
pageSize: 20,
total: 0,
tableData: [],
setVisible: false,
logShow: false,
recoverItem: {}
};
},
......@@ -123,16 +111,13 @@ export default {
/**
* 查看失败日志
*/
toRecover(index, item) {
toShowLog(index, item) {
const that = this;
that.recoverItem = item;
that.setVisible = true;
that.logShow = true;
},
closeSet() {
closeLog() {
const that = this;
that.setVisible = false;
that.currentPage = 1;
that.getTableList();
that.logShow = false;
},
/**
* 路由跳转
......@@ -165,7 +150,6 @@ export default {
const that = this;
let para = {
keyWord: that.searchInput || '', // 搜索字段
storeFlag: that.storeFlag,
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
};
......@@ -207,7 +191,8 @@ export default {
},
components: {
navCrumb,
setDepartment
setDepartment,
failLog
}
};
</script>
......
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