Commit 26940ac1 by fairyly

fix: 修改回收站接口

parent 92f07392
<!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.24.css><link href=./static/css/app.8bc7c21c5c8ba21908ea3ee05fffa75a.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.2343fd9d336aeeb5b62b.js></script><script type=text/javascript src=./static/js/vendor.8e03e18a0b10f64895eb.js></script><script type=text/javascript src=./static/js/app.7a22ce6502c3d16fa333.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.24.css><link href=./static/css/app.66b0d1fd045d798f2fd06ddabc5e1e89.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.5ce37fbe2c30a378de5c.js></script><script type=text/javascript src=./static/js/vendor.8e03e18a0b10f64895eb.js></script><script type=text/javascript src=./static/js/app.bdc62eeecdc036f62b92.js></script></body></html>
\ No newline at end of file
webpackJsonp([12],{B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"登录遇到错误啦!请确认您是否已是好办管理员,如不是,请联系管理员。"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("kUQV")},"data-v-45ea1cc1",null);s.default=c.exports},kUQV:function(t,s){}});
\ No newline at end of file
webpackJsonp([11],{B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"登录遇到错误啦!请确认您是否已是好办管理员,如不是,请联系管理员。"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("kUQV")},"data-v-45ea1cc1",null);s.default=c.exports},kUQV:function(t,s){}});
\ No newline at end of file
webpackJsonp([11],{DSd8:function(e,t){},IBIs:function(e,t){},K8Yn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),s=a("mvHQ"),r=a.n(s),o=a("Xxa5"),l=a.n(o),i=a("exGp"),c=a.n(i),u=a("PI0u"),d=a("P9l9"),p=a("Ch4/"),h=a("3E4D"),f={props:{applicationId:{type:String,default:function(){return""}}},data:function(){return{setVisible:!0,treeData:[],searchSelect:"",selectId:"",groupData:[],defaultProps:{children:"children",label:"departmentName"}}},computed:{},methods:{loadNode:function(e,t){var a=this;return c()(l.a.mark(function n(){var s;return l.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(s=a,0!==e.level){n.next=5;break}return n.abrupt("return",t(s.getGroup()));case 5:return n.next=7,s.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=""},toInput:Object(u.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(r()(this.storesCopy)));var a=JSON.parse(r()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.treeData=a},500),clearSearch:function(){this.treeData=JSON.parse(r()(this.storesCopy))},handleNodeClick:function(e){console.log(e),this.selectId=e.departmentId},getGroup:function(e,t,a){var n=this,s={parentId:t?t.departmentId:"",isStore:0};Object(d.a)("/haoban-manage3-web/department-list-level",s).then(function(s){var r=s.data;if(1==r.errorCode)return r.result&&r.result.length&&r.result.forEach(function(e){e.expand=!1,e.children=[],e.label=e.departmentName}),e?(a(r.result),t.children||n.$set(t,"children",[]),t.children=r.result||[],n.$forceUpdate(),!1):void(n.groupData=r.result||[]);p.a.errorMsg(r)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},submitForm:function(){var e=this;if(!e.selectId)return h.a.showmsg("请选择部门","warning"),!1;var t={departmentId:e.selectId};Object(d.c)("/haoban-manage3-web/department-repair",t).then(function(t){var a=t.data;1==a.errorCode&&(h.a.showmsg("恢复成功","success"),e.$emit("closeSet",e.selectId)),p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},components:{},mounted:function(){this.getGroup()}},g={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:"请输入内容"},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:{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;return t.data,a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont",1==n.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==n.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 v=a("VU/8")(f,g,!1,function(e){a("IBIs")},"data-v-4a04c44f",null).exports,m={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{name:"回收站",path:""}],options:[{label:"所有部门类型",value:""},{label:"分组",value:"0"},{label:"门店",value:"1"}],searchInput:"",storeFlag:"",currentPage:1,pageSize:20,total:0,tableData:[],setVisible:!1}},computed:{},methods:{toRecover:function(){this.setVisible=!0},closeSet:function(){this.setVisible=!1,this.currentPage=1,this.getTableList()},changeRoute:function(e){this.$router.push(e)},toInput:Object(u.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeType:function(){this.currentPage=1,this.getTableList()},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(d.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;p.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:v}},b={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:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入部门名称/CODE/ID",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),a("el-select",{staticClass:"w-191 m-l-10",attrs:{placeholder:"所有部门类型"},on:{change:e.changeType},model:{value:e.storeFlag,callback:function(t){e.storeFlag=t},expression:"storeFlag"}},e._l(e.options,function(e){return a("el-option",{key:e.value+"type",attrs:{label:e.label,value:e.value}})}),1)],1),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[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[e._v(e._s(t.row.departmentName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(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("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.toRecover(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)])])]),e._v(" "),e.setVisible?a("set-department",{on:{closeSet:e.closeSet}}):e._e()],1),e._v(" "),a("vue-gic-footer")],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("什么是回收站?"),t("br"),this._v("GIC分组或门店被删除后将被放置到回收站,如果是误删或想再次启用,您可以随时恢复它们。")])])])])}]};var C=a("VU/8")(m,b,!1,function(e){a("DSd8")},"data-v-681072e1",null);t.default=C.exports}});
\ No newline at end of file
webpackJsonp([14],{"5SyP":function(e,t){},K8Yn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("mvHQ"),s=a.n(r),o=a("Xxa5"),l=a.n(o),i=a("exGp"),c=a.n(i),u=a("PI0u"),d=a("P9l9"),p=a("Ch4/"),h=a("3E4D"),f={props:{recoverItem:{type:[Object,Array],default:function(){return{}}}},data:function(){return{setVisible:!0,treeData:[],searchSelect:"",selectId:"",groupData:[],defaultProps:{children:"children",label:"departmentName"}}},computed:{},methods:{loadNode:function(e,t){var a=this;return c()(l.a.mark(function n(){var r;return l.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=""},toInput:Object(u.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(s()(this.storesCopy)));var a=JSON.parse(s()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.treeData=a},500),clearSearch:function(){this.treeData=JSON.parse(s()(this.storesCopy))},handleNodeClick:function(e){console.log(e),this.selectId=e.departmentId},getGroup:function(e,t,a){var n=this,r={parentId:t?t.departmentId:"",isStore:0};Object(d.a)("/haoban-manage3-web/department-list-level",r).then(function(r){var s=r.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):void(n.groupData=s.result||[]);p.a.errorMsg(s)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},submitForm:function(){var e=this;if(!e.selectId)return h.a.showmsg("请选择部门","warning"),!1;var t={departmentId:e.recoverItem.departmentId,parentId:e.selectId};Object(d.c)("/haoban-manage3-web/department-repair",t).then(function(t){var a=t.data;1==a.errorCode&&(h.a.showmsg("恢复成功","success"),e.$emit("closeSet",e.selectId)),p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},components:{},mounted:function(){this.getGroup()}},v={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:"请输入内容"},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:{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;return t.data,a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont",1==n.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==n.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 g=a("VU/8")(f,v,!1,function(e){a("Sdhe")},"data-v-4f0e192e",null).exports,m={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{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)},toInput:Object(u.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeType:function(){this.currentPage=1,this.getTableList()},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(d.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;p.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:g}},b={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:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入部门名称/CODE/ID",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),a("el-select",{staticClass:"w-191 m-l-10",attrs:{placeholder:"所有部门类型"},on:{change:e.changeType},model:{value:e.storeFlag,callback:function(t){e.storeFlag=t},expression:"storeFlag"}},e._l(e.options,function(e){return a("el-option",{key:e.value+"type",attrs:{label:e.label,value:e.value}})}),1)],1),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[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[e._v(e._s(t.row.departmentName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(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("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.toRecover(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)])])]),e._v(" "),e.setVisible?a("set-department",{attrs:{recoverItem:e.recoverItem},on:{closeSet:e.closeSet}}):e._e()],1),e._v(" "),a("vue-gic-footer")],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("什么是回收站?"),t("br"),this._v("GIC分组或门店被删除后将被放置到回收站,如果是误删或想再次启用,您可以随时恢复它们。")])])])])}]};var C=a("VU/8")(m,b,!1,function(e){a("5SyP")},"data-v-2eee1718",null);t.default=C.exports},Sdhe:function(e,t){}});
\ 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([49],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},AmOA:function(e,t){},LP53:function(e,t,n){"use strict";function a(e,t,n,a,o,r,s,i,u,p){"boolean"!=typeof s&&(u=i,i=s,s=!1);const c="function"==typeof n?n.options:n;let d;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),a&&(c._scopeId=a),r?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=d):t&&(d=s?function(e){t.call(this,p(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,i(e))}),d)if(c.functional){const e=c.render;c.render=function(t,n){return d.call(n),e(t,n)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,d):[d]}return n}n.d(t,"a",function(){return a});"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("fZjL"),o=n.n(a),r=(n("j1ja"),n("hKoQ")),s=n.n(r),i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var u=n("VU/8")({name:"App",data:function(){return{}}},i,!1,function(e){n("/NA0")},null,null).exports,p=n("lRwf"),c=n.n(p),d=n("pRNm"),l=n.n(d),m=n("5tgt"),f=n.n(m);c.a.use(l.a);var g=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var v,h=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:f()("login","index")},{path:"/index",name:"index",component:f()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:f()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:f()("business","contacts")},{path:"/orgStructSet",name:"组织架构管理",component:f()("business","orgStructSet")},{path:"/recycle",name:"组织架构管理",component:f()("business","recycle")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:f()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:f()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:f()("apps","index"),children:[{path:"/mycustomer",name:"我的顾客的",redirect:"/memberShowSet",component:f()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"会员展示设置",component:f()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"会员分组设置",component:f()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"会员搜索设置",component:f()("apps/customerApp","memberSearchSet")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:f()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:g},{path:"/404",name:"error404",component:g},{path:"/500",name:"error500",component:g},{path:"*",redirect:"/404",hidden:!0}],S=new l.a({routes:h,scrollBehavior:function(){return{y:0}}}),D=n("zL8q"),b=n.n(D),y=n("Rf8U"),w=n.n(y),x=n("mtWM"),A=n.n(x),k=n("bOdI"),E=n.n(k),T=n("SJI6"),M=n.n(T);c.a.use(M.a);var R=new M.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[]},mutations:(v={},E()(v,"login",function(e,t){sessionStorage.token=t,e.token=t}),E()(v,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),E()(v,"title",function(e,t){e.title=t}),E()(v,"show",function(e,t){e.show=t}),E()(v,"saveAdd",function(e,t){e.addDepartment.push(t)}),E()(v,"saveEdit",function(e,t){e.editDepartment.push(t)}),E()(v,"saveDel",function(e,t){e.delDepartment.push(t)}),E()(v,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),v),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearTreeData:function(e,t){e.commit("clearData")}}}),V=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[o]:("00"+a[o]).substr((""+a[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+a+" "+r+":"+s+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n;return t.getFullYear()+"-"+o+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+o+"."+a+" "+r+":"+s+":"+i}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""}}),_=n("TUaa"),H=n.n(_),I=n("tyqE"),O=n.n(I),P=n("pRVe"),q=n.n(P),C=n("XsK6"),j=n.n(C),L=n("QRL9"),N=n.n(L),Y=n("eMjc"),G=n.n(Y),J=n("l9mu"),U=n.n(J),X={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;G()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,r=a,s=0,i=592.28/n*a,u=t.toDataURL("image/jpeg",1),p=new U.a("","pt","a4");if(r<o)p.addImage(u,"JPEG",0,0,595.28,i);else for(;r>0;)p.addImage(u,"JPEG",0,s,595.28,i),s-=841.89,(r-=o)>0&&p.addPage();p.save(e+".pdf")})}}},F=n("/IwO"),$=n.n(F),z=n("iUJ9");n("AmOA");s.a.polyfill(),Vue.use(z.a),Vue.use($.a),$.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(X),Vue.use(j.a),Vue.use(N.a),Vue.use(q.a),Vue.use(O.a),Vue.use(H.a),Vue.config.productionTip=!1,Vue.use(b.a,{size:"large"}),Vue.use(w.a,A.a),Vue.axios.defaults.withCredentials=!0,o()(V).forEach(function(e){Vue.filter(e,V[e])}),S.beforeEach(function(e,t,n){var a=window.location.origin;a.indexOf("localhost"),localStorage.getItem("userInfo"),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:S,store:R,components:{App:u},template:"<App/>"})},Opzk:function(e,t,n){var a={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,42],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,38],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,37],"./apps/badEvaluate/index.vue":["AG22",0,22],"./apps/cloudDaily/customReport.vue":["ak3k",0,45],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,16],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,10],"./apps/cloudDaily/index.vue":["4QyY",0,20],"./apps/cloudDaily/systemReport.vue":["J/6z",0,18],"./apps/cloudDaily/systemReportSet.vue":["qpQM",0,4],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,23],"./apps/cloudDaily/template.vue":["9Bnz",0,2],"./apps/cloudDaily/template/block.vue":["O3gZ",29],"./apps/cloudDaily/template/date-range.vue":["2WGr",30],"./apps/cloudDaily/template/image.vue":["8dpP",41],"./apps/cloudDaily/template/input.vue":["zHtI",47],"./apps/cloudDaily/template/select.vue":["rYZf",39],"./apps/customerApp/index.vue":["QHTa",0,25],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,34],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,27],"./apps/customerApp/memberShowSet.vue":["odfG",0,19],"./apps/index.vue":["K1Vb",0,35],"./apps/quota/companyDaySet.vue":["NiGE",0,44],"./apps/quota/index.vue":["qSX4",0,43],"./apps/quota/monthList.vue":["fAFA",0,28],"./apps/quota/monthTask.vue":["NpHY",0,6],"./apps/quota/monthTaskDetail.vue":["YKf6",0,24],"./apps/quota/salerMonthDetail.vue":["+qr5",0,32],"./apps/quota/storeMonthTask.vue":["qWC+",0,7],"./apps/trafficTask/index.vue":["FmZU",0,33],"./apps/trafficTask/taskDetail.vue":["XrDD",0,36],"./apps/trafficTask/taskRecord.vue":["m+x7",0,13],"./apps/trafficTask/taskViewDetail.vue":["SBUJ",0,26],"./apps/trafficTask/trafficTaskSet.vue":["OUXi",0,17],"./business/contacts.vue":["/W60",0,3],"./business/index.vue":["jPcV",0,46],"./business/orgStructSet.vue":["OI5V",0,5],"./business/recycle.vue":["K8Yn",0,11],"./errorPage/403.vue":["6XGN",14],"./errorPage/404.vue":["AejC",15],"./errorPage/500.vue":["FskK",9],"./errorPage/gic-error.vue":["Q3j/",12],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,31],"./login/index.vue":["T+/8",0,8],"./overstore/index.vue":["Y55K",0,40],"./overstore/overStoreList.vue":["vuAV",0,21]};function o(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(a)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var t,b,o,i=0,u=[];i<a.length;i++)b=a[i],f[b]&&u.push(f[b][0]),f[b]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(a,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=d(d.s=r[i]);return o};var a={},f={50:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"28de0cec799a55dde08b",1:"9a1776fdc262362d75b8",2:"dd64300d7fd4c6f93957",3:"c3107da3f310c0982a36",4:"9ddbb7eb94dffb0a9779",5:"0701de1010a5e827c873",6:"ceeafddf1f53c690e330",7:"6d7d7d9276aa319a3339",8:"434d6dec8e967c1d4931",9:"c85e2b4a6cf1559ca44d",10:"020d82bd334a1d575eeb",11:"a68b399c42a0ed56d8ee",12:"b511ecb904489d7326bd",13:"fdc44253d67064d39bc7",14:"f478482d466f749cdf71",15:"11d904ee49dd6fdcad7a",16:"d6ca67bf21f8bae4f303",17:"dac9f3ea8eb039929b09",18:"6e0eea98e1605e065063",19:"71862d29861a4ad3343e",20:"0c9c731350f53480c8db",21:"43276bb09695f16fb663",22:"7caa190e94f49e17ccb6",23:"7e2ae59f347fd3ff7b63",24:"ffed4039c5f4559aad87",25:"f1c07fe96cea72ece46e",26:"60f4dfd62fa683a8c241",27:"357841ff5aeff2145503",28:"1629eccbbcb1ff5d4566",29:"c92047e52bfeb6f899bf",30:"1fbc9d5790795666ccf2",31:"038770fe9611597e6c58",32:"ae639ba1904ab977256b",33:"e5f68a1b362d56977015",34:"12ae31e3354830f0c34f",35:"4a15da14c5a042b2d797",36:"6d3f2cd67f5a76d59c24",37:"02640e09cbc2fce52b26",38:"99b7a521efb1f6a9ae88",39:"13770623cd0155327e56",40:"f6ef482085cccdca5f67",41:"d2e13a048e460fe7db63",42:"acf86fb4d020b4e47fab",43:"3b5b49ba98cefb56f327",44:"1e172b3e315e8115193f",45:"5b6aa809cba6e597dad2",46:"b8a25437acb57de97830",47:"da9b899d98080bcbc0a4"}[e]+".js";var t=setTimeout(b,12e4);function b(){r.onerror=r.onload=null,clearTimeout(t);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=b,n.appendChild(r),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var t,b,o,i=0,u=[];i<c.length;i++)b=c[i],a[b]&&u.push(a[b][0]),a[b]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(f&&f(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=d(d.s=r[i]);return o};var c={},a={50:0};function d(f){if(c[f])return c[f].exports;var a=c[f]={i:f,l:!1,exports:{}};return e[f].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var f=a[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,d){f=a[e]=[c,d]});f[2]=c;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"28de0cec799a55dde08b",1:"9a1776fdc262362d75b8",2:"dd64300d7fd4c6f93957",3:"77e6464f33f57cf78f64",4:"9ddbb7eb94dffb0a9779",5:"0701de1010a5e827c873",6:"ceeafddf1f53c690e330",7:"6d7d7d9276aa319a3339",8:"434d6dec8e967c1d4931",9:"c85e2b4a6cf1559ca44d",10:"020d82bd334a1d575eeb",11:"9dab292208cf6f8fc4cf",12:"6680534bb49ff57ad63f",13:"26a4796b6fe5f9237828",14:"3f9dfd6e151325285b85",15:"11d904ee49dd6fdcad7a",16:"d6ca67bf21f8bae4f303",17:"dac9f3ea8eb039929b09",18:"6e0eea98e1605e065063",19:"71862d29861a4ad3343e",20:"0c9c731350f53480c8db",21:"43276bb09695f16fb663",22:"7caa190e94f49e17ccb6",23:"7e2ae59f347fd3ff7b63",24:"ffed4039c5f4559aad87",25:"f1c07fe96cea72ece46e",26:"60f4dfd62fa683a8c241",27:"357841ff5aeff2145503",28:"1629eccbbcb1ff5d4566",29:"c92047e52bfeb6f899bf",30:"1fbc9d5790795666ccf2",31:"038770fe9611597e6c58",32:"ae639ba1904ab977256b",33:"e5f68a1b362d56977015",34:"12ae31e3354830f0c34f",35:"4a15da14c5a042b2d797",36:"6d3f2cd67f5a76d59c24",37:"02640e09cbc2fce52b26",38:"99b7a521efb1f6a9ae88",39:"13770623cd0155327e56",40:"f6ef482085cccdca5f67",41:"d2e13a048e460fe7db63",42:"acf86fb4d020b4e47fab",43:"3b5b49ba98cefb56f327",44:"1e172b3e315e8115193f",45:"5b6aa809cba6e597dad2",46:"b8a25437acb57de97830",47:"da9b899d98080bcbc0a4"}[e]+".js";var t=setTimeout(b,12e4);function b(){r.onerror=r.onload=null,clearTimeout(t);var f=a[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=b,n.appendChild(r),c},d.m=e,d.c=c,d.d=function(e,f,c){d.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(f,"a",f),f},d.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 16:13:59
* @LastEditors : 无尘
* @LastEditTime : 2020-02-21 14:23:52
* @LastEditTime : 2020-02-27 10:05:00
* @FilePath : \Hapi-demoj:\公司\haoban-3\src\components\company\add-member.vue
-->
<!--
......@@ -61,6 +61,7 @@ import countryMobile from '@/components/common/country-mobile.vue';
import selectDepartment from '@/components/company/select-department.vue';
import { getRequest, postRequest } from '@/api/api';
import errMsg from '@/common/js/error';
import showMsg from '@/common/js/showmsg';
import PhoneNumber from 'awesome-phonenumber';
export default {
name: 'add-member',
......@@ -93,20 +94,6 @@ export default {
return {
memberVisible: true,
partForm: {
staffId: '',
staffName: '',
nickName: '',
nationCode: '86',
phoneNumber: '',
postion: '',
activeFlag: false,
departmentList: [],
departmentIds: '',
sex: 1,
syncPostionFlag: 1,
extendPostion: ''
},
rules: {
staffName: [
{
......@@ -130,6 +117,20 @@ export default {
trigger: 'change'
}
]
},
partForm: {
staffId: '',
staffName: '',
nickName: '',
nationCode: '86',
phoneNumber: '',
postion: '',
activeFlag: false,
departmentList: [],
departmentIds: '',
sex: 1,
syncPostionFlag: 1,
extendPostion: ''
}
};
},
......@@ -201,6 +202,7 @@ export default {
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('添加成功!', 'success');
that.$emit('refreshData');
return false;
}
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 14:02:22
* @LastEditors : 无尘
* @LastEditTime : 2020-02-23 16:36:55
* @LastEditTime : 2020-02-27 10:17:37
* @FilePath : \Hapi-demoj:\公司\haoban-3\src\components\company\depart-list.vue
-->
<!--
......@@ -105,9 +105,6 @@ export default {
tableData: [],
// 新增
partVisible: false,
partForm: {
departmentName: ''
},
rules: {
name: [
{
......@@ -116,6 +113,9 @@ export default {
trigger: 'blur'
}
]
},
partForm: {
departmentName: ''
}
};
},
......@@ -239,6 +239,7 @@ export default {
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('添加成功', 'success');
that.currentPage = 1;
that.getTableList();
// 是否需要更新左侧 tree
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors : 无尘
* @LastEditTime : 2020-02-18 08:46:29
* @LastEditTime : 2020-02-27 09:56:38
*/
import Vue from 'vue';
import Router from 'vue-router';
......@@ -129,6 +129,116 @@ export const constantRouterMap = [
component: _import('apps/customerApp', 'memberSearchSet')
}
]
},
{
path: '/cloudDaily',
name: '云日报',
redirect: '/dailyRecord',
component: _import('apps/cloudDaily', 'index'),
children: [
{
path: '/dailyRecord',
name: '云日报记录',
component: _import('apps/cloudDaily', 'dailyRecord')
},
{
path: '/dailyDetail',
name: '日报详情',
component: _import('apps/cloudDaily', 'dailyDetail')
},
{
path: '/taskAssign',
name: '任务下发设置',
component: _import('apps/cloudDaily', 'taskAssign')
},
{
path: '/systemReport',
name: '系统报表',
component: _import('apps/cloudDaily', 'systemReport')
},
{
path: '/customReport',
name: '自定义报表',
component: _import('apps/cloudDaily', 'customReport')
}
]
},
{
path: '/trafficTask',
name: '话务任务',
redirect: '/taskRecord',
component: _import('apps/trafficTask', 'index'),
children: [
{
path: '/taskRecord',
name: '话务任务记录',
component: _import('apps/trafficTask', 'taskRecord')
},
{
path: '/taskDetail',
name: '话务任务详情',
component: _import('apps/trafficTask', 'taskDetail')
},
{
path: '/taskViewDetail',
name: '话务任务详情',
component: _import('apps/trafficTask', 'taskViewDetail')
},
{
path: '/trafficTaskSet',
name: '话务任务设置',
component: _import('apps/trafficTask', 'trafficTaskSet')
},
{
path: '/badEvaluateSet',
name: '不良评价设置',
component: _import('apps/badEvaluate', 'badEvaluateSet')
}
]
},
{
path: '/quota',
name: '指标管理',
redirect: '/monthList',
component: _import('apps/quota', 'index'),
children: [
{
path: '/monthList',
name: '月指标列表',
component: _import('apps/quota', 'monthList')
},
{
path: '/storeMonthTask',
name: '门店月指标',
component: _import('apps/quota', 'storeMonthTask')
},
{
path: '/salerMonthDetail',
name: '导购月指标详情',
component: _import('apps/quota', 'salerMonthDetail')
},
{
path: '/companyDaySet',
name: '商户日权重',
component: _import('apps/quota', 'companyDaySet')
},
{
path: '/monthTask',
name: '月指标任务',
component: _import('apps/quota', 'monthTask'),
meta: {
keepAlive: true
}
},
{
path: '/monthTaskDetail',
name: '月指标任务详情',
component: _import('apps/quota', 'monthTaskDetail'),
meta: {
keepAlive: true
}
}
]
}
]
},
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘
* @LastEditTime : 2020-02-26 21:02:36
* @LastEditTime : 2020-02-27 10:11:50
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -50,7 +50,7 @@
</div>
</div>
</div>
<set-department v-if="setVisible" @closeSet="closeSet"></set-department>
<set-department v-if="setVisible" :recoverItem="recoverItem" @closeSet="closeSet"></set-department>
</div>
<vue-gic-footer></vue-gic-footer>
</div>
......@@ -98,7 +98,8 @@ export default {
pageSize: 20,
total: 0,
tableData: [],
setVisible: false
setVisible: false,
recoverItem: {}
};
},
computed: {},
......@@ -106,8 +107,9 @@ export default {
/**
* 恢复
*/
toRecover() {
toRecover(index, item) {
const that = this;
that.recoverItem = item;
that.setVisible = true;
},
closeSet() {
......
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