chunk-d9eb7b06.013b5246.js 211 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d9eb7b06","chunk-0f3c4e7e","chunk-2e9cc266","chunk-15caf0ce","chunk-35f46a98","chunk-25ffc4de"],{"0159":function(e,t,a){},"02b4":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("a9e3"),a("1920")),s=a("f5ed"),o=a("2f62"),l=a("9f53"),c=a("ed2b"),u=a("4f5b"),d=a("72e9");s={name:"orderUiIndex",mixins:[s.a,l.a],components:{addEdit:c.a},computed:Object(r.a)(Object(r.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"orderUiIndex"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{select:"1",input:"",type:d.a,seachStatus:u.d,statusOptions:u.e,levelOptions:u.b,typeOptions:u.f,showModel1:!1,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15,apply_name:"",title:"",type:"",level:"",bugNo:"",status:"",noteNo:"",company_type:d.a,deal_name:"",start:"",end:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u.a}},mounted:function(){var e,t,a,n=this.$route.query.back;n&&(this.parmValue=JSON.parse(n),e=(n=this.parmValue).page,t=n.size,a=n.select,n=n.input,this.select=a||"",this.input=n||"",delete this.parmValue.select,delete this.parmValue.input,this.pageInfo={size:t,curr:e,total:0}),this.searchList()},methods:{getRouter:function(e,t){var a;e&&t?(t={type:"view",id:t},(a=JSON.parse(JSON.stringify(this.parmValue))).select=this.select,a.input=this.input,a={options:a,router:this.$route.path},t.preModel=JSON.stringify(a),this.routeGoto(e,t)):this.$message.warning("暂未找到相关流程!")},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},handleTime:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,t.pageInfo.curr=1,a.next=7,t.searchList();a.next=7;break;case 7:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.noteNo="0"===e.select?e.input:"",e.parmValue.bugNo="1"===e.select?e.input:"",e.parmValue.title="2"===e.select?e.input:"",e.parmValue.apply_name="3"===e.select?e.input:"",e.parmValue.deal_name="4"===e.select?e.input:"",t.next=11,i.a.list(e.parmValue);case 11:if(!(a=t.sent)||0!==a.code||!a.data){t.next=17;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=24;break;case 17:if(a&&100<=a.code&&a.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=24;break;case 22:e.tableData=[],e.pageInfo.total=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()}}},l=a("2877"),c=Object(l.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderUiIndex pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"100px"},attrs:{span:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"优先级"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.parmValue.level,callback:function(t){e.$set(e.parmValue,"level",t)},expression:"parmValue.level"}},e._l(e.levelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"140px",padding:"0 0 0 10px"},attrs:{span:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"需求类型"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.parmValue.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value,clearable:""}})})),1)],1),a("el-col",{staticStyle:{width:"301px",padding:"0 0 0 10px"},attrs:{span:5}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"134px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),a("el-row",{staticStyle:{padding:"12px 0 0 0"}},[a("el-col",{staticStyle:{width:"180px"},attrs:{span:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:e.searchSize,placeholder:"状态筛选"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.seachStatus,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"410px",padding:"0 0 0 10px"},attrs:{span:10}},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"关键字",size:e.searchSize},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend",placeholder:"筛选类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"需求编号",value:"1"}}),a("el-option",{attrs:{label:"业务编号",value:"0"}}),a("el-option",{attrs:{label:"需求标题",value:"2"}}),a("el-option",{attrs:{label:"申请人",value:"3"}}),a("el-option",{attrs:{label:"处理人",value:"4"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},slot:"append"})],1)],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){e.showModel=!0}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==n.row.status}))||{}).label||"--")}})]}},{key:"company_name",fn:function(t){return t=t.scope,e._l(t.row.company_name,(function(t,n){return a("el-tag",{key:t+n,staticStyle:{margin:"0 5px 0 0"},attrs:{size:e.tablebtnSize,type:"info"}},e._l(t,(function(t,r){return a("span",{key:t+n+r,style:{marginLeft:"0px"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:0<r,expression:"cindex > 0"}]},[e._v("/")]),a("span",[e._v(e._s(t.name))])])})),0)}))}},{key:"level",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:(e.levelOptions.find((function(e){return e.value==n.row.level}))||{}).type||"success"},domProps:{textContent:e._s((e.levelOptions.find((function(e){return e.value==n.row.level}))||{}).label||"--")}})]}},{key:"types",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.type?"warning":""},domProps:{textContent:e._s((e.typeOptions.find((function(e){return e.value==n.row.type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var n=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter("orderUiDetail",n.row.id)}}})]):e._e()]}}],null,!1,3024419091)}),a("add-edit",{attrs:{"show-model":e.showModel,type:e.type},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("no-auth")],1)}),[],!1,null,"a2221a3c",null);t.default=c.exports},"04c0":function(e,t,a){"use strict";a("efa6")},"0e4b":function(e,t,a){"use strict";a("55f9")},"0ee5":function(e,t,a){"use strict";t.a=[{name:"启用",code:"1"},{name:"禁用",code:"0"}]},1842:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=(a("e9c4"),a("96cf"),a("1fd2")),i=a("61f7"),s={name:"Account",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data:function(){var e=this;return{roleList:[],loading:!1,title:"重置密码",showModelThis:this.showModel,ruleForm:{id:this.id,password:"",confirmPassword:""},rulesThis:this.rules,rules:{password:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("新密码不能为空!")):!Object(i.b)(t)||t.length<6||16<t.length?a(new Error("新密码为6-16位数字字母组合!")):Object(i.h)(t)?a(new Error("新密码不能为纯数字!")):Object(i.i)(t)?a(new Error("新密码不能为纯字母!")):a()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,a,n){""===a?n(new Error("确认密码不能为空!")):e.ruleForm.password!==a?n(new Error("确认密码与新密码不一致!")):n()}}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.rulesThis=e.rules,t.next=3,e.resetForm();case 3:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={id:e.id,password:"",confirmPassword:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,n=JSON.parse(JSON.stringify(e.ruleForm)),t.next=5,r.a.setpwd(n);t.next=21;break;case 5:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=13;break}e.$notify.success({title:"密码修改成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(i&&100<=i.code&&i.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(i.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("1899"),a=a("2877"),a=Object(a.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{prop:"password",label:"新密码:"}},[t("el-input",{ref:"password",attrs:{placeholder:"新密码",name:"password",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1),t("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[t("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.ruleForm.confirmPassword,callback:function(t){e.$set(e.ruleForm,"confirmPassword",t)},expression:"ruleForm.confirmPassword"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"27f9591e",null);t.default=a.exports},1899:function(e,t,a){"use strict";a("4a1c")},1920:function(e,t,a){"use strict";var n=a("1b69"),r="admin/";t.a={list:function(e,t){return Object(n.a)(r+"notelist",e,"post",t)},add:function(e,t){return Object(n.a)(r+"notecreate",e,"post",t)},detail:function(e,t){return Object(n.a)(r+"noteinfo",e,"post",t)},update:function(e,t){return Object(n.a)(r+"noteedit",e,"post",t)},delete:function(e,t){return Object(n.a)(r+"delete",e,"post",t)},comAdd:function(e,t){return Object(n.a)(r+"cloudcreate",e,"post",t)},comUpdate:function(e,t){return Object(n.a)(r+"cloudedit",e,"post",t)},cloudlist:function(e,t){return Object(n.a)(r+"cloudlist",e,"post",t)},comDel:function(e,t){return Object(n.a)(r+"clouddel",e,"post",t)},allUser:function(e,t){return Object(n.a)(r+"userall",e,"post",t)},MUser:function(e,t){return Object(n.a)(r+"manangelist",e,"post",t)},MUpdate:function(e,t){return Object(n.a)(r+"manangecreate",e,"post",t)},MLogList:function(e,t){return Object(n.a)(r+"manangeloglist",e,"post",t)}}},"1db4":function(e,t,a){"use strict";a.r(t);var n=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])}],r={name:"Page404",computed:{message:function(){return"访问的页面不存在..."}},methods:{goto:function(){window.vm.$router.push({path:"/welcome/dashboard"})}}},i=(a("e894"),a("2877"));i=Object(i.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"wscn-http404-container"},[t("div",{staticClass:"wscn-http404"},[e._m(0),t("div",{staticClass:"bullshit"},[t("div",{staticClass:"bullshit__oops"},[e._v("哎呀!")]),t("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),t("div",{staticClass:"bullshit__info"},[e._v(" 请检查您输入的网址是否正确,或单击下面的按钮返回主页. ")]),t("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){return e.goto()}}},[e._v("回到首页")])],1)])])}),n,!1,null,"82eac96e",null);t.default=i.exports},"1fd2":function(e,t,a){"use strict";var n=a("1b69"),r="admin/";t.a={list:function(e,t){return Object(n.a)(r+"userlist",e,"post",t)},update:function(e,t){return Object(n.a)(r+"usersave",e,"post",t)},status:function(e,t){return Object(n.a)(r+"userstatus",e,"post",t)},getRole:function(e,t){return Object(n.a)(r+"roleall",e,"post",t)},getClist:function(e,t){return Object(n.a)(r+"query",e,"post",t)}}},2017:function(e,t,a){"use strict";a("cafe")},2089:function(e,t,a){},"21fa":function(e,t,a){"use strict";var n=a("1b69"),r="admin/";t.a={list:function(e,t){return Object(n.a)(r+"menulist",e,"post",t)},update:function(e,t){return Object(n.a)(r+"menusave",e,"post",t)},menustatus:function(e,t){return Object(n.a)(r+"menustatus",e,"post",t)},menudel:function(e,t){return Object(n.a)(r+"menudel",e,"post",t)},actionList:function(e,t){return Object(n.a)(r+"menuaction",e,"post",t)},actionadd:function(e,t){return Object(n.a)(r+"menuactionadd",e,"post",t)},actionedit:function(e,t){return Object(n.a)(r+"menuactionsave",e,"post",t)},actionstatus:function(e,t){return Object(n.a)(r+"menuactionstatus",e,"post",t)},actiondel:function(e,t){return Object(n.a)(r+"menuactiondel",e,"post",t)}}},2623:function(e,t,a){"use strict";var n=a("1b69"),r="admin/";t.a={list:function(e,t){return Object(n.a)(r+"ulist",e,"post",t)},add:function(e,t){return Object(n.a)(r+"add",e,"post",t)},status:function(e,t){return Object(n.a)(r+"stat",e,"post",t)},detail:function(e,t){return Object(n.a)(r+"query",e,"post",t)},update:function(e,t){return Object(n.a)(r+"refresh",e,"post",t)},delete:function(e,t){return Object(n.a)(r+"itemdel",e,"post",t)},getRole:function(e,t){return Object(n.a)(r+"roleall",e,"post",t)},userp:function(e,t){return Object(n.a)(r+"userp",e,"post",t)}}},"26fc":function(e,t,a){e.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},2759:function(e,t,a){"use strict";a("7bd5")},"2f45":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("159b"),a("a9e3"),a("e9c4"),a("ac1f"),a("5319"),a("1920")),s=a("2f62"),o=a("9f53"),l=a("5268"),c=a("a314"),u=a("432e"),d=a("c444"),p=a("4f5b"),m=a("361d");o={name:"yunshuDetail",mixins:[o.a],components:{TinymceEditor:u.a,record:l.a,comModule:c.a,selectHandlerModel:d.a},computed:Object(r.a)(Object(r.a)({},Object(s.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"yunshuDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{pinglunEdit:!1,parmValue:{page:1,size:5,id:this.queryId,total:0},tableData:[],bugNo:"",statusOptions:p.e,levelOptions:p.b,typeOptions:p.f,type:m.a,userOptions:[],ruleForm:{},activeName:"1",newTime:"",showModel:!1,queryId:"",loading:!1,rulesThis:this.rules}},mounted:function(){this.queryId=this.$route.query.id,this.initForm()},methods:{handleCurrentChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=e,a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},tinput:function(e){this.ruleForm.remark=e||"",this.$refs.ruleForm.validateField("remark")},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.newTime="",e.InitializeForm(),t.next=5,e.resetForm();case 5:return t.next=7,e.initData();case 7:return e.loading=!1,t.next=10,e.searchList();case 10:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()+""},editItem:function(e){this.tableData.forEach((function(e){e.edit=!1})),this.tableData[e].edit=!0},goods_class_change:function(e){this.ruleForm.model_id=e,this.$refs.ruleForm.validateField("model_id")},deleteById:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function a(){var n,r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e},a.next=3,i.a.comDel(n);case 3:if(!(r=a.sent)||0!==r.code){a.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),a.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return a.next=12,t.logout();a.next=14;break;case 12:a.next=15;break;case 14:t.$message.warning(r.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return a.stop()}}),a)})))()},plunsubmit:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,r,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.loading){a.next=29;break}if(t.loading=!0,n=e.id,r=e.input,r={id:n,talk_note:r,bugNo:t.ruleForm.bugNo},s={},"add"===n)return delete r.id,a.next=9,i.a.comAdd(r);a.next=12;break;case 9:s=a.sent,a.next=15;break;case 12:return a.next=14,i.a.comUpdate(r);case 14:s=a.sent;case 15:if(t.loading=!1,s&&0===s.code)return t.$notify.success({title:"add"===n?"添加成功!":"修改成功!",message:""}),"add"===n&&(t.pinglunEdit=!1),a.next=21,t.initForm();a.next=23;break;case 21:a.next=29;break;case 23:if(s&&100<=s.code&&s.code<=104)return a.next=26,t.logout();a.next=28;break;case 26:a.next=29;break;case 28:t.$message.warning(s.message);case 29:case"end":return a.stop()}}),a)})))()},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r,s,o,l,c,u,d,p,f,h,g,b;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({id:e.queryId});case 2:if((a=t.sent)&&0===a.code)return b=a.data,n=b.id,r=b.bugNo,s=b.title,o=b.company_type,l=b.level,c=b.type,u=b.remark,d=b.status,p=b.apply_name,f=b.model_id,h=b.deal_id,g=b.company_name,b=b.noteNo,e.bugNo=r,e.ruleForm={id:n,bugNo:r,title:s||"",company_type:o||m.a,remark:u||"",status:d||"",level:l||"",type:c||"",noteNo:b||"",apply_name:p||"",model_id:f||[],deal_id:h||"",company_name:g||[]},e.getNewTime(),t.next=10,e.getMuser();t.next=12;break;case 10:t.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(a.message);case 18:case"end":return t.stop()}}),t)})))()},getMuser:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.userOptions=[],t.next=3,i.a.MUser({company_id:m.a});case 3:if(!(a=t.sent)||0!==a.code){t.next=9;break}a.data.forEach((function(t){t={value:t.manange_id,label:t.manange_name},e.userOptions.push(t)})),t.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(a.message);case 15:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.id=e.queryId,t.next=3,i.a.cloudlist(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=11;break}r=a.data,n=r.list,r=r.count,n.forEach((function(e){e.edit=!1})),e.tableData=n,e.parmValue.total=Number(r),t.next=18;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=18;break;case 16:e.tableData=[],e.parmValue.total=0;case 18:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.InitializeForm())}));case 2:case"end":return t.stop()}}),t)})))()},InitializeForm:function(){this.ruleForm={id:"",bugNo:"",title:"",company_type:"",remark:"",status:"",level:"",type:"",apply_name:"",noteNo:"",deal_id:"",model_id:[],company_name:[]}},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var n,r,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=32;break}if(e.loading=!0,delete(n=JSON.parse(JSON.stringify(e.ruleForm))).company_name,delete n.apply_name,r=(r=(r=n.remark).replace(/\n/g,"")).replace(/"/g,"'"),n.remark=r,5e3<n.remark.length)return e.$message.warning("描述文字及标签总长度不能超过5000!"),e.loading=!1,t.abrupt("return");t.next=14;break;case 14:return t.next=16,i.a.update(n);case 16:if((s=t.sent)&&0===s.code)return e.$notify.success({title:"修改成功",message:""}),t.next=21,e.initForm();t.next=23;break;case 21:t.next=29;break;case 23:if(s&&100<=s.code&&s.code<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:e.$message.warning(s.message);case 29:e.loading=!1,t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("2759"),u=a("2877"),l=Object(u.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"yunshuDetail pagePadding clear"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?a("div",[a("div",{staticClass:"left"},[a("div",{staticClass:"title clear"},[a("div",{staticClass:"title-left"},[e._v("#"+e._s(e.ruleForm.bugNo))]),a("div",{staticClass:"title-right"},[a("el-input",{staticClass:"notshow",attrs:{placeholder:"标题",disabled:!e.powers.some((function(e){return"005"==e})),size:"medium"},model:{value:e.ruleForm.title,callback:function(t){e.$set(e.ruleForm,"title",t)},expression:"ruleForm.title"}})],1)]),a("div",{staticClass:"stockApply-com"},[a("el-tabs",{attrs:{size:"mini"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"描述详情",name:"1"}},[e.powers.some((function(e){return"005"==e}))?a("div",{staticClass:"desc"},[""!==e.newTime?a("TinymceEditor",{ref:"tinymceEditor",attrs:{tinymceHtml:e.ruleForm.remark},on:{input:e.tinput}}):e._e()],1):a("div",{staticClass:"desc"},[a("div",{staticClass:"desc-main"},[a("div",{staticClass:"show-html",domProps:{innerHTML:e._s(e.ruleForm.remark)}})])]),a("div",{staticClass:"pinglun"},[a("div",{staticClass:"pinglun-title"},[e._v("评论")]),e.pinglunEdit?a("div",[a("comModule",{attrs:{id:"add"},on:{cancel:function(t){e.pinglunEdit=!1},submit:e.plunsubmit}})],1):a("div",{staticClass:"pinglun-input",on:{click:function(t){e.pinglunEdit=!0}}},[e._v(" 请输入评论: Ctrl+V可粘贴截图 ")])]),a("div",{staticClass:"tableData"},[e._l(e.tableData,(function(t,n){return a("div",{key:t.talk_note+"key",staticClass:"tableData-main",style:{borderLeft:n+1===e.tableData.length?"2px solid transparent":"2px solid #252b3a"}},[a("div",{staticClass:"tableData-title clear"},[a("div",{staticClass:"dian-mian fl"},[a("div",{staticClass:"dian"}),n+1===e.tableData.length?a("div",{staticClass:"dian-zhe"}):e._e()]),a("div",{staticClass:"user fl"},[e._v(e._s(t.talk_name))]),a("div",{staticClass:"time fr"},[e._v(e._s(t.addtime))]),t.edit||"0"!==t.is_edit?e._e():a("div",{staticClass:"operation fr"},[a("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.editItem(n)}}}),a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.deleteById(t.id)}}})])]),a("div",{staticClass:"tableData-talk_note"},[t.edit?a("div",[a("comModule",{attrs:{id:t.id,value:t.talk_note},on:{cancel:function(t){e.tableData[n].edit=!1},submit:e.plunsubmit}})],1):a("div",{staticClass:"talk-note-main",domProps:{innerHTML:e._s(t.talk_note)}})])])})),5<e.parmValue.total?a("div",{staticClass:"my-page"},[a("el-pagination",{attrs:{"current-page":e.parmValue.page,"page-size":e.parmValue.size,layout:"total, prev, pager, next",total:e.parmValue.total},on:{"current-change":e.handleCurrentChange,"prev-click":e.handleCurrentChange,"next-click":e.handleCurrentChange}})],1):e._e()],2)]),a("el-tab-pane",{attrs:{label:"操作记录",name:"2"}},[""!==e.newTime?a("record",{attrs:{newTime:e.newTime,bugNo:e.bugNo}}):e._e()],1)],1)],1)]),a("div",{staticClass:"right"},[a("div",{staticClass:"title"},[e._v(" 基本信息 "),e.powers.some((function(e){return"005"==e}))||e.powers.some((function(e){return"012"==e}))?a("el-button",{staticClass:"fr",staticStyle:{margin:"6px 0 0 0"},attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保存 ")]):e._e()],1),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,size:"mini","label-width":"80px"}},[a("el-form-item",{attrs:{label:"处理状态:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"处理状态:"},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"处理人:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"处理人:"},model:{value:e.ruleForm.deal_id,callback:function(t){e.$set(e.ruleForm,"deal_id",t)},expression:"ruleForm.deal_id"}},e._l(e.userOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e.powers.some((function(e){return"002"==e}))?a("div",{staticClass:"setUser",on:{click:function(t){e.showModel=!0}}},[a("i",{staticClass:"el-icon-setting"})]):e._e()],1),a("el-form-item",{attrs:{label:"优先级:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{size:"mini",disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"优先级"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.levelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"需求类型:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{size:"mini",disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"需求类型"},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"业务编号:"}},[a("el-input",{staticClass:"notshow",attrs:{type:"textarea",autosize:{minRows:1,maxRows:10},placeholder:"业务编号",disabled:!e.powers.some((function(e){return"005"==e}))},model:{value:e.ruleForm.noteNo,callback:function(t){e.$set(e.ruleForm,"noteNo",t)},expression:"ruleForm.noteNo"}})],1),a("el-form-item",{attrs:{label:"创建人:"}},[a("div",{staticClass:"show-input",class:{disabled:!e.powers.some((function(e){return"012"==e}))}},[e._v(" "+e._s(e.ruleForm.apply_name)+" ")])]),a("el-form-item",{attrs:{label:"创建人部门:"}},[a("div",{staticClass:"show-input hei"},e._l(e.ruleForm.company_name,(function(t,n){return a("el-tag",{key:t+n,staticStyle:{margin:"0 5px 0 0"},attrs:{type:"info",size:"mini"}},e._l(t,(function(t,r){return a("span",{key:t+n+r,style:{marginLeft:"0px"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:0<r,expression:"cindex > 0"}]},[e._v("/")]),a("span",[e._v(e._s(t.name))])])})),0)})),1)])],1),a("div",{staticClass:"tijiaoBTN"})],1),a("select-handler-model",{attrs:{id:e.queryId,"show-model":e.showModel,type:e.type},on:{refresh:function(t){e.showModel=!1,e.getMuser()},cancel:function(t){e.showModel=!1}}})],1):a("no-auth")],1)}),[],!1,null,"7e50896a",null);t.default=l.exports},"2f76":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("a9e3"),a("1920")),s=a("f5ed"),o=a("2f62"),l=a("9f53"),c=a("ed2b"),u=a("4f5b"),d=a("a404");s={name:"adjust",mixins:[s.a,l.a],components:{addEdit:c.a},computed:Object(r.a)(Object(r.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"adjust"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{select:"1",input:"",type:d.a,seachStatus:u.d,statusOptions:u.e,levelOptions:u.b,typeOptions:u.f,showModel1:!1,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15,apply_name:"",title:"",type:"",level:"",bugNo:"",status:"",noteNo:"",company_type:d.a,deal_name:"",start:"",end:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u.a}},mounted:function(){var e,t,a,n=this.$route.query.back;n&&(this.parmValue=JSON.parse(n),e=(n=this.parmValue).page,t=n.size,a=n.select,n=n.input,this.select=a||"",this.input=n||"",delete this.parmValue.select,delete this.parmValue.input,this.pageInfo={size:t,curr:e,total:0}),this.searchList()},methods:{getRouter:function(e,t){var a;e&&t?(t={type:"view",id:t},(a=JSON.parse(JSON.stringify(this.parmValue))).select=this.select,a.input=this.input,a={options:a,router:this.$route.path},t.preModel=JSON.stringify(a),this.routeGoto(e,t)):this.$message.warning("暂未找到相关流程!")},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},handleTime:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,t.pageInfo.curr=1,a.next=7,t.searchList();a.next=7;break;case 7:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.noteNo="0"===e.select?e.input:"",e.parmValue.bugNo="1"===e.select?e.input:"",e.parmValue.title="2"===e.select?e.input:"",e.parmValue.apply_name="3"===e.select?e.input:"",e.parmValue.deal_name="4"===e.select?e.input:"",t.next=11,i.a.list(e.parmValue);case 11:if(!(a=t.sent)||0!==a.code||!a.data){t.next=17;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=24;break;case 17:if(a&&100<=a.code&&a.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=24;break;case 22:e.tableData=[],e.pageInfo.total=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()}}},l=a("2877"),c=Object(l.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"adjust pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"100px"},attrs:{span:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"优先级"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.parmValue.level,callback:function(t){e.$set(e.parmValue,"level",t)},expression:"parmValue.level"}},e._l(e.levelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"140px",padding:"0 0 0 10px"},attrs:{span:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"需求类型"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.parmValue.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value,clearable:""}})})),1)],1),a("el-col",{staticStyle:{width:"301px",padding:"0 0 0 10px"},attrs:{span:5}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"134px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),a("el-row",{staticStyle:{padding:"12px 0 0 0"}},[a("el-col",{staticStyle:{width:"180px"},attrs:{span:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:e.searchSize,placeholder:"状态筛选"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.seachStatus,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"410px",padding:"0 0 0 10px"},attrs:{span:10}},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"关键字",size:e.searchSize},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend",placeholder:"筛选类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"需求编号",value:"1"}}),a("el-option",{attrs:{label:"业务编号",value:"0"}}),a("el-option",{attrs:{label:"需求标题",value:"2"}}),a("el-option",{attrs:{label:"申请人",value:"3"}}),a("el-option",{attrs:{label:"处理人",value:"4"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},slot:"append"})],1)],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){e.showModel=!0}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==n.row.status}))||{}).label||"--")}})]}},{key:"company_name",fn:function(t){return t=t.scope,e._l(t.row.company_name,(function(t,n){return a("el-tag",{key:t+n,staticStyle:{margin:"0 5px 0 0"},attrs:{size:e.tablebtnSize,type:"info"}},e._l(t,(function(t,r){return a("span",{key:t+n+r,style:{marginLeft:"0px"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:0<r,expression:"cindex > 0"}]},[e._v("/")]),a("span",[e._v(e._s(t.name))])])})),0)}))}},{key:"level",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:(e.levelOptions.find((function(e){return e.value==n.row.level}))||{}).type||"success"},domProps:{textContent:e._s((e.levelOptions.find((function(e){return e.value==n.row.level}))||{}).label||"--")}})]}},{key:"types",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.type?"warning":""},domProps:{textContent:e._s((e.typeOptions.find((function(e){return e.value==n.row.type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var n=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter("adjustDetail",n.row.id)}}})]):e._e()]}}],null,!1,1140875644)}),a("add-edit",{attrs:{"show-model":e.showModel,type:e.type},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("no-auth")],1)}),[],!1,null,"249cd8e0",null);t.default=c.exports},"30a4":function(e,t,a){},"361d":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var n="2"},3991:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("159b"),a("a9e3"),a("e9c4"),a("ac1f"),a("5319"),a("1920")),s=a("2f62"),o=a("9f53"),l=a("5268"),c=a("a314"),u=a("432e"),d=a("c444"),p=a("4f5b"),m=a("a404");o={name:"adjustDetail",mixins:[o.a],components:{TinymceEditor:u.a,record:l.a,comModule:c.a,selectHandlerModel:d.a},computed:Object(r.a)(Object(r.a)({},Object(s.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"adjustDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{pinglunEdit:!1,parmValue:{page:1,size:5,id:this.queryId,total:0},tableData:[],bugNo:"",statusOptions:p.e,levelOptions:p.b,typeOptions:p.f,type:m.a,userOptions:[],ruleForm:{},activeName:"1",newTime:"",showModel:!1,queryId:"",loading:!1,rulesThis:this.rules}},mounted:function(){this.queryId=this.$route.query.id,this.initForm()},methods:{handleCurrentChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=e,a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},tinput:function(e){this.ruleForm.remark=e||"",this.$refs.ruleForm.validateField("remark")},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.newTime="",e.InitializeForm(),t.next=5,e.resetForm();case 5:return t.next=7,e.initData();case 7:return e.loading=!1,t.next=10,e.searchList();case 10:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()+""},editItem:function(e){this.tableData.forEach((function(e){e.edit=!1})),this.tableData[e].edit=!0},goods_class_change:function(e){this.ruleForm.model_id=e,this.$refs.ruleForm.validateField("model_id")},deleteById:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function a(){var n,r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e},a.next=3,i.a.comDel(n);case 3:if(!(r=a.sent)||0!==r.code){a.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),a.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return a.next=12,t.logout();a.next=14;break;case 12:a.next=15;break;case 14:t.$message.warning(r.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return a.stop()}}),a)})))()},plunsubmit:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,r,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.loading){a.next=29;break}if(t.loading=!0,n=e.id,r=e.input,r={id:n,talk_note:r,bugNo:t.ruleForm.bugNo},s={},"add"===n)return delete r.id,a.next=9,i.a.comAdd(r);a.next=12;break;case 9:s=a.sent,a.next=15;break;case 12:return a.next=14,i.a.comUpdate(r);case 14:s=a.sent;case 15:if(t.loading=!1,s&&0===s.code)return t.$notify.success({title:"add"===n?"添加成功!":"修改成功!",message:""}),"add"===n&&(t.pinglunEdit=!1),a.next=21,t.initForm();a.next=23;break;case 21:a.next=29;break;case 23:if(s&&100<=s.code&&s.code<=104)return a.next=26,t.logout();a.next=28;break;case 26:a.next=29;break;case 28:t.$message.warning(s.message);case 29:case"end":return a.stop()}}),a)})))()},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r,s,o,l,c,u,d,p,f,h,g,b;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({id:e.queryId});case 2:if((a=t.sent)&&0===a.code)return b=a.data,n=b.id,r=b.bugNo,s=b.title,o=b.company_type,l=b.level,c=b.type,u=b.remark,d=b.status,p=b.apply_name,f=b.model_id,h=b.deal_id,g=b.company_name,b=b.noteNo,e.bugNo=r,e.ruleForm={id:n,bugNo:r,title:s||"",company_type:o||m.a,remark:u||"",status:d||"",level:l||"",type:c||"",noteNo:b||"",apply_name:p||"",model_id:f||[],deal_id:h||"",company_name:g||[]},e.getNewTime(),t.next=10,e.getMuser();t.next=12;break;case 10:t.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(a.message);case 18:case"end":return t.stop()}}),t)})))()},getMuser:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.userOptions=[],t.next=3,i.a.MUser({company_id:m.a});case 3:if(!(a=t.sent)||0!==a.code){t.next=9;break}a.data.forEach((function(t){t={value:t.manange_id,label:t.manange_name},e.userOptions.push(t)})),t.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(a.message);case 15:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.id=e.queryId,t.next=3,i.a.cloudlist(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=11;break}r=a.data,n=r.list,r=r.count,n.forEach((function(e){e.edit=!1})),e.tableData=n,e.parmValue.total=Number(r),t.next=18;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=18;break;case 16:e.tableData=[],e.parmValue.total=0;case 18:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.InitializeForm())}));case 2:case"end":return t.stop()}}),t)})))()},InitializeForm:function(){this.ruleForm={id:"",bugNo:"",title:"",company_type:"",remark:"",status:"",level:"",type:"",apply_name:"",noteNo:"",deal_id:"",model_id:[],company_name:[]}},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var n,r,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=32;break}if(e.loading=!0,delete(n=JSON.parse(JSON.stringify(e.ruleForm))).company_name,delete n.apply_name,r=(r=(r=n.remark).replace(/\n/g,"")).replace(/"/g,"'"),n.remark=r,5e3<n.remark.length)return e.$message.warning("描述文字及标签总长度不能超过5000!"),e.loading=!1,t.abrupt("return");t.next=14;break;case 14:return t.next=16,i.a.update(n);case 16:if((s=t.sent)&&0===s.code)return e.$notify.success({title:"修改成功",message:""}),t.next=21,e.initForm();t.next=23;break;case 21:t.next=29;break;case 23:if(s&&100<=s.code&&s.code<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:e.$message.warning(s.message);case 29:e.loading=!1,t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("760d"),u=a("2877"),l=Object(u.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"adjustDetail pagePadding clear"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?a("div",[a("div",{staticClass:"left"},[a("div",{staticClass:"title clear"},[a("div",{staticClass:"title-left"},[e._v("#"+e._s(e.ruleForm.bugNo))]),a("div",{staticClass:"title-right"},[a("el-input",{staticClass:"notshow",attrs:{placeholder:"标题",disabled:!e.powers.some((function(e){return"005"==e})),size:"medium"},model:{value:e.ruleForm.title,callback:function(t){e.$set(e.ruleForm,"title",t)},expression:"ruleForm.title"}})],1)]),a("div",{staticClass:"stockApply-com"},[a("el-tabs",{attrs:{size:"mini"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"描述详情",name:"1"}},[e.powers.some((function(e){return"005"==e}))?a("div",{staticClass:"desc"},[""!==e.newTime?a("TinymceEditor",{ref:"tinymceEditor",attrs:{tinymceHtml:e.ruleForm.remark},on:{input:e.tinput}}):e._e()],1):a("div",{staticClass:"desc"},[a("div",{staticClass:"desc-main"},[a("div",{staticClass:"show-html",domProps:{innerHTML:e._s(e.ruleForm.remark)}})])]),a("div",{staticClass:"pinglun"},[a("div",{staticClass:"pinglun-title"},[e._v("评论")]),e.pinglunEdit?a("div",[a("comModule",{attrs:{id:"add"},on:{cancel:function(t){e.pinglunEdit=!1},submit:e.plunsubmit}})],1):a("div",{staticClass:"pinglun-input",on:{click:function(t){e.pinglunEdit=!0}}},[e._v(" 请输入评论: Ctrl+V可粘贴截图 ")])]),a("div",{staticClass:"tableData"},[e._l(e.tableData,(function(t,n){return a("div",{key:t.talk_note+"key",staticClass:"tableData-main",style:{borderLeft:n+1===e.tableData.length?"2px solid transparent":"2px solid #252b3a"}},[a("div",{staticClass:"tableData-title clear"},[a("div",{staticClass:"dian-mian fl"},[a("div",{staticClass:"dian"}),n+1===e.tableData.length?a("div",{staticClass:"dian-zhe"}):e._e()]),a("div",{staticClass:"user fl"},[e._v(e._s(t.talk_name))]),a("div",{staticClass:"time fr"},[e._v(e._s(t.addtime))]),t.edit||"0"!==t.is_edit?e._e():a("div",{staticClass:"operation fr"},[a("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.editItem(n)}}}),a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.deleteById(t.id)}}})])]),a("div",{staticClass:"tableData-talk_note"},[t.edit?a("div",[a("comModule",{attrs:{id:t.id,value:t.talk_note},on:{cancel:function(t){e.tableData[n].edit=!1},submit:e.plunsubmit}})],1):a("div",{staticClass:"talk-note-main",domProps:{innerHTML:e._s(t.talk_note)}})])])})),5<e.parmValue.total?a("div",{staticClass:"my-page"},[a("el-pagination",{attrs:{"current-page":e.parmValue.page,"page-size":e.parmValue.size,layout:"total, prev, pager, next",total:e.parmValue.total},on:{"current-change":e.handleCurrentChange,"prev-click":e.handleCurrentChange,"next-click":e.handleCurrentChange}})],1):e._e()],2)]),a("el-tab-pane",{attrs:{label:"操作记录",name:"2"}},[""!==e.newTime?a("record",{attrs:{newTime:e.newTime,bugNo:e.bugNo}}):e._e()],1)],1)],1)]),a("div",{staticClass:"right"},[a("div",{staticClass:"title"},[e._v(" 基本信息 "),e.powers.some((function(e){return"005"==e}))||e.powers.some((function(e){return"012"==e}))?a("el-button",{staticClass:"fr",staticStyle:{margin:"6px 0 0 0"},attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保存 ")]):e._e()],1),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,size:"mini","label-width":"80px"}},[a("el-form-item",{attrs:{label:"处理状态:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"处理状态:"},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"处理人:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"处理人:"},model:{value:e.ruleForm.deal_id,callback:function(t){e.$set(e.ruleForm,"deal_id",t)},expression:"ruleForm.deal_id"}},e._l(e.userOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e.powers.some((function(e){return"002"==e}))?a("div",{staticClass:"setUser",on:{click:function(t){e.showModel=!0}}},[a("i",{staticClass:"el-icon-setting"})]):e._e()],1),a("el-form-item",{attrs:{label:"优先级:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{size:"mini",disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"优先级"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.levelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"需求类型:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{size:"mini",disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"需求类型"},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"功能区:"}},[a("good-class",{staticClass:"notshow",attrs:{value:e.ruleForm.model_id,size:"mini",disabled:!e.powers.some((function(e){return"012"==e})),type:"1",placeholder:"功能区"},on:{handleChange:e.goods_class_change}})],1),a("el-form-item",{attrs:{label:"业务编号:"}},[a("el-input",{staticClass:"notshow",attrs:{type:"textarea",autosize:{minRows:1,maxRows:10},placeholder:"业务编号",disabled:!e.powers.some((function(e){return"005"==e}))},model:{value:e.ruleForm.noteNo,callback:function(t){e.$set(e.ruleForm,"noteNo",t)},expression:"ruleForm.noteNo"}})],1),a("el-form-item",{attrs:{label:"创建人:"}},[a("div",{staticClass:"show-input",class:{disabled:!e.powers.some((function(e){return"012"==e}))}},[e._v(" "+e._s(e.ruleForm.apply_name)+" ")])]),a("el-form-item",{attrs:{label:"创建人部门:"}},[a("div",{staticClass:"show-input hei"},e._l(e.ruleForm.company_name,(function(t,n){return a("el-tag",{key:t+n,staticStyle:{margin:"0 5px 0 0"},attrs:{type:"info",size:"mini"}},e._l(t,(function(t,r){return a("span",{key:t+n+r,style:{marginLeft:"0px"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:0<r,expression:"cindex > 0"}]},[e._v("/")]),a("span",[e._v(e._s(t.name))])])})),0)})),1)])],1),a("div",{staticClass:"tijiaoBTN"})],1),a("select-handler-model",{attrs:{id:e.queryId,"show-model":e.showModel,type:e.type},on:{refresh:function(t){e.showModel=!1,e.getMuser()},cancel:function(t){e.showModel=!1}}})],1):a("no-auth")],1)}),[],!1,null,"015bbeff",null);t.default=l.exports},"3db1":function(e,t,a){"use strict";a("ec65")},"432e":function(e,t,a){"use strict";a("a9e3"),a("b0c0"),a("99af");var n=a("e562"),r=a.n(n),i=(n=a("ca72"),a("030f"),a("0902"),a("d2dc"),a("2fec"),a("ffbe"),a("64d8"),a("07d7"),a("2d33"),a("f557"),a("855b"),a("3154"),a("2b07"),a("4ea8"),a("8863"),a("4bd0"),a("4237"),a("84ec"),a("3aea"),a("eda9"),a("cfb0"),a("ebac"),a("bc54"),a("0a9d"),a("840a"),a("6957"),a("62e5"),a("dcb7"),a("55a0"),a("07d1"),a("0335"),a("34de"),a("78e4"),a("0efa"),a("365e"),a("9434"),a("5daa")),s=a("5f87");n={name:"Tinymce",props:{tinymceHtml:"",tinymceHeight:{type:Number,default:430}},components:{Editor:n.a},data:function(){var e=this;return{tinymceId:"mytinymceId",value:this.tinymceHtml,init:{selector:"#tinymce",content_style:"html,body { width: 100%;height: 100%;position: relative; background: transparent;padding:0;margin: 0;box-sizing: border-box;} body{padding:16px} p{margin:0;line-height:40px} img{ display: inline-block;}",language_url:"/tinymce/langs/zh_CN.js",language:"zh_CN",height:this.tinymceHeight,body_class:"panel-body ",object_resizing:!1,skin_url:"/tinymce/skins/ui/oxide",toolbar:"removeformat bold italic underline strikethrough forecolor backcolor numlist bullist alignleft aligncenter alignright link table fullscreen",menubar:"",plugins:"advlist anchor autolink autosave code codesample colorpicker contextmenu directionality fullscreen hr image imagetools insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount",end_container_on_empty_block:!0,paste_data_images:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",default_link_target:"_blank",link_title:!1,nonbreaking_force_tab:!1,init_instance_callback:function(t){t.on("NodeChange Change KeyUp SetContent",(function(){e.$emit("input",t.getContent())}))},convert_urls:!1,images_upload_handler:function(e,t,a,n){n(0);var r=new FormData;r.append("image",e.blob()),r.append("token",Object(s.c)()),axios.post("".concat(i.a.baseURL,"admin/uploadimg"),r).then((function(e){var r,s;e&&e.data&&200===e.status?(r=(e=e.data).code,e=e.data,0===r?(s=(e=e[0]).url,e.name,t("".concat(i.a.baseURL,"storage/").concat(s)),n(100)):a(100<=r&&r<=104?"登录信息已失效,请重新登录!":"出现未知问题,刷新页面,或者联系程序员!")):a("出现未知问题,刷新页面,或者联系程序员")})).catch((function(e){reject()}))}}}},watch:{tinymceHtml:function(e,t){this.value=e}},computed:{},created:function(){},mounted:function(){r.a.init({})},methods:{setContent:function(e){window.tinymce.get(this.tinymceId).setContent(e)},getContent:function(){window.tinymce.get(this.tinymceId).getContent()}}},a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"tinymce-container"},[t("editor",{attrs:{id:"tinymce",init:e.init},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)}),[],!1,null,"47abba4e",null);t.a=a.exports},"43a2":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("a9e3"),a("1920")),s=a("f5ed"),o=a("2f62"),l=a("9f53"),c=a("ed2b"),u=a("4f5b"),d=a("361d");s={name:"yunshuIndex",mixins:[s.a,l.a],components:{addEdit:c.a},computed:Object(r.a)(Object(r.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"yunshuIndex"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{select:"1",input:"",type:d.a,seachStatus:u.d,statusOptions:u.e,levelOptions:u.b,typeOptions:u.f,showModel1:!1,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15,apply_name:"",title:"",type:"",level:"",bugNo:"",status:"",noteNo:"",company_type:d.a,deal_name:"",start:"",end:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u.a}},mounted:function(){var e,t,a,n=this.$route.query.back;n&&(this.parmValue=JSON.parse(n),e=(n=this.parmValue).page,t=n.size,a=n.select,n=n.input,this.select=a||"",this.input=n||"",delete this.parmValue.select,delete this.parmValue.input,this.pageInfo={size:t,curr:e,total:0}),this.searchList()},methods:{getRouter:function(e,t){var a;e&&t?(t={type:"view",id:t},(a=JSON.parse(JSON.stringify(this.parmValue))).select=this.select,a.input=this.input,a={options:a,router:this.$route.path},t.preModel=JSON.stringify(a),this.routeGoto(e,t)):this.$message.warning("暂未找到相关流程!")},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},handleTime:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,t.pageInfo.curr=1,a.next=7,t.searchList();a.next=7;break;case 7:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.noteNo="0"===e.select?e.input:"",e.parmValue.bugNo="1"===e.select?e.input:"",e.parmValue.title="2"===e.select?e.input:"",e.parmValue.apply_name="3"===e.select?e.input:"",e.parmValue.deal_name="4"===e.select?e.input:"",t.next=11,i.a.list(e.parmValue);case 11:if(!(a=t.sent)||0!==a.code||!a.data){t.next=17;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=24;break;case 17:if(a&&100<=a.code&&a.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=24;break;case 22:e.tableData=[],e.pageInfo.total=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()}}},l=a("2877"),c=Object(l.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"yunshuIndex pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"100px"},attrs:{span:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"优先级"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.parmValue.level,callback:function(t){e.$set(e.parmValue,"level",t)},expression:"parmValue.level"}},e._l(e.levelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"140px",padding:"0 0 0 10px"},attrs:{span:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"需求类型"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.parmValue.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value,clearable:""}})})),1)],1),a("el-col",{staticStyle:{width:"301px",padding:"0 0 0 10px"},attrs:{span:5}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"134px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),a("el-row",{staticStyle:{padding:"12px 0 0 0"}},[a("el-col",{staticStyle:{width:"180px"},attrs:{span:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:e.searchSize,placeholder:"状态筛选"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.seachStatus,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"410px",padding:"0 0 0 10px"},attrs:{span:10}},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"关键字",size:e.searchSize},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend",placeholder:"筛选类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"需求编号",value:"1"}}),a("el-option",{attrs:{label:"业务编号",value:"0"}}),a("el-option",{attrs:{label:"需求标题",value:"2"}}),a("el-option",{attrs:{label:"申请人",value:"3"}}),a("el-option",{attrs:{label:"处理人",value:"4"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},slot:"append"})],1)],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){e.showModel=!0}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==n.row.status}))||{}).label||"--")}})]}},{key:"company_name",fn:function(t){return t=t.scope,e._l(t.row.company_name,(function(t,n){return a("el-tag",{key:t+n,staticStyle:{margin:"0 5px 0 0"},attrs:{size:e.tablebtnSize,type:"info"}},e._l(t,(function(t,r){return a("span",{key:t+n+r,style:{marginLeft:"0px"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:0<r,expression:"cindex > 0"}]},[e._v("/")]),a("span",[e._v(e._s(t.name))])])})),0)}))}},{key:"level",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:(e.levelOptions.find((function(e){return e.value==n.row.level}))||{}).type||"success"},domProps:{textContent:e._s((e.levelOptions.find((function(e){return e.value==n.row.level}))||{}).label||"--")}})]}},{key:"types",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.type?"warning":""},domProps:{textContent:e._s((e.typeOptions.find((function(e){return e.value==n.row.type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var n=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter("yunshuDetail",n.row.id)}}})]):e._e()]}}],null,!1,1698870989)}),a("add-edit",{attrs:{"show-model":e.showModel,type:e.type},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("no-auth")],1)}),[],!1,null,"526fc21c",null);t.default=c.exports},"43b9":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=(a("ac1f"),a("5319"),a("96cf"),a("61f7")),i=a("6a1e"),s={name:"Login",mixins:[a("9f53").a],data:function(){var e=this;return{stepList:["验证身份","重设密码","设置成功"],timer:null,num:3,step:0,loginFormX:{username:"",mobile:"",code:""},loginRulesX:{username:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("请输入账号")):a()}}],mobile:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(r.g)(t)?a():a(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("验证码不能为空!")):Object(r.h)(t)&&6===t.length?a():a(new Error("验证码应为6位数字!"))}}]},loginFormY:{newPassword:"",confirmPassword:""},loginRulesY:{newPassword:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("新密码不能为空!")):!Object(r.b)(t)||t.length<6||16<t.length?a(new Error("新密码为6-16位数字字母组合!")):Object(r.h)(t)?a(new Error("新密码不能为纯数字!")):Object(r.i)(t)?a(new Error("新密码不能为纯字母!")):a()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,a,n){""===a?n(new Error("确认密码不能为空!")):e.loginFormY.newPassword!==a?n(new Error("确认密码与新密码不一致!")):n()}}]},codeType:"code",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},mounted:function(){""===this.loginFormX.mobile&&this.$refs.mobile.focus(),""===this.loginFormX.code&&this.$refs.code.focus()},destroyed:function(){},methods:{modifyPostLevel:function(e){this.step=e},phoneErr:function(e){e||this.$refs.loginFormX.validateField("mobile")},checkCapslock:function(e){e=e.key,this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},handleLoginX:function(){var e=this;this.$refs.loginFormX.validate((function(t){if(!t)return!1;e.step++}))},handleLoginY:function(){var e=this;this.$refs.loginFormY.validate((function(t){if(!t)return!1;e.loading||(e.loading=!0,t={username:e.loginFormX.username,mobile:e.loginFormX.mobile,code:e.loginFormX.code,password:e.loginFormY.newPassword},i.a.resetpwd(t).then(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a||0!==a.code){t.next=6;break}e.loading=!1,e.step++,e.setTime(),t.next=13;break;case 6:if(a&&100<=a.code&&a.code<=104)return t.next=9,e.logout();t.next=11;break;case 9:t.next=13;break;case 11:e.$message.warning(a.message),e.loading=!1;case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()))}))},setTime:function(){var e=this;this.timer=setInterval((function(){0!==e.num?e.num--:e.timer&&(clearInterval(e.timer),e.num=3,e.gotoLogin())}),1e3)},gotoLogin:function(){window.vm.$router.replace("/login")}}};a("ebdd"),a("a6e7"),a=a("2877"),a=Object(a.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"forget-password"},[a("div",{staticClass:"forget-main"},[a("div",{staticClass:"my-card"},[e._m(0),a("div",{staticStyle:{margin:"8px 0 35px 0"}},[a("el-steps",{attrs:{active:e.step,simple:"","process-status":"finish","finish-status":"success"}},e._l(e.stepList,(function(e,t){return a("el-step",{key:t,attrs:{title:e}})})),1)],1),0===e.step?a("div",[a("el-form",{ref:"loginFormX",staticClass:"login-form",attrs:{model:e.loginFormX,rules:e.loginRulesX,autocomplete:"on","label-position":"left","label-width":"95px"}},[a("el-form-item",{attrs:{prop:"username",label:"账号:"}},[a("el-input",{ref:"username",attrs:{placeholder:"账号",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormX.username,callback:function(t){e.$set(e.loginFormX,"username",t)},expression:"loginFormX.username"}})],1),a("el-form-item",{attrs:{prop:"mobile",label:"手机号:"}},[a("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormX.mobile,callback:function(t){e.$set(e.loginFormX,"mobile",t)},expression:"loginFormX.mobile"}})],1),a("el-form-item",{staticClass:"code-sign",attrs:{prop:"code",label:"验证码:"}},[a("ul",{staticClass:"code-main"},[a("li",[a("el-input",{ref:"code",attrs:{placeholder:"验证码",name:"code",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormX.code,callback:function(t){e.$set(e.loginFormX,"code",t)},expression:"loginFormX.code"}})],1),a("li",[a("send-verification-code",{attrs:{mobile:e.loginFormX.mobile},on:{phoneErr:e.phoneErr}})],1)])]),a("el-button",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginX(t)}}},[e._v("下一步")])],1)],1):1===e.step?a("div",[a("el-form",{ref:"loginFormY",staticClass:"login-form",attrs:{model:e.loginFormY,rules:e.loginRulesY,autocomplete:"on","label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{prop:"newPassword",label:"新密码:"}},[a("el-input",{ref:"newPassword",attrs:{placeholder:"6-16位数字字母组合",name:"newPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormY.newPassword,callback:function(t){e.$set(e.loginFormY,"newPassword",t)},expression:"loginFormY.newPassword"}})],1),a("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[a("el-input",{ref:"confirmPassword",attrs:{placeholder:"6-16位数字字母组合",name:"confirmPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormY.confirmPassword,callback:function(t){e.$set(e.loginFormY,"confirmPassword",t)},expression:"loginFormY.confirmPassword"}})],1),a("el-button-group",{staticStyle:{"margin-top":"10px"}},[a("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",disabled:e.loading,icon:"el-icon-arrow-left"},nativeOn:{click:function(t){t.preventDefault(),e.step=0}}},[e._v("上一步")]),a("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",loading:e.loading},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginY(t)}}},[e._v("下一步"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1)],1)],1):a("div",{staticClass:"success-card"},[e._m(1),a("div",{staticClass:"teps-title"},[e._v("恭喜你,新密码设置成功!")]),a("div",{staticClass:"teps-time"},[a("span",[e._v(e._s(e.num))]),e._v("秒后自动返回 ")])])])])])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"title-container"},[e("h3",{staticClass:"title"},[this._v("设置新登录密码")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"success-icon"},[e("i",{staticClass:"el-icon-success"})])}],!1,null,"825e5ed4",null);t.default=a.exports},"441c":function(e,t,a){"use strict";a("f8b26")},"44d1":function(e,t,a){},"44e6":function(e,t,a){},"4a1c":function(e,t,a){},"4c1f":function(e,t,a){"use strict";var n=a("1b69");t.a={list:function(e,t){return Object(n.a)("admin/versionlist",e,"post",t)}}},"4e9d":function(e,t,a){"use strict";a("6860")},"4f5b":function(e,t,a){"use strict";a.d(t,"d",(function(){return n})),a.d(t,"e",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"f",(function(){return s})),a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return l}));var n=[{value:"0",label:"待分配"},{value:"1",label:"进行中"},{value:"2",label:"已解决"},{value:"3",label:"测试中"},{value:"4",label:"已拒绝"},{value:"5",label:"已关闭"},{value:"6",label:"延后处理"},{value:"8",label:"未关闭的"},{value:"9",label:"我创建的"},{value:"10",label:"我处理过的"},{value:"11",label:"到我处理的"}],r=[{value:"0",label:"待分配"},{value:"1",label:"进行中"},{value:"2",label:"已解决"},{value:"3",label:"测试中"},{value:"4",label:"已拒绝"},{value:"5",label:"已关闭"},{value:"6",label:"延后处理"}],i=[{value:"1",label:"高",type:"danger"},{value:"2",label:"中",type:"info"},{value:"3",label:"低",type:"success"}],s=[{value:"0",label:"缺陷(Bug)"},{value:"1",label:"任务(Task)"},{value:"2",label:"需求(Story)"}],o=[{prop:"bugNo",label:"需求编号",width:"160px"},{prop:"status",label:"状态",_slot_:"status",width:"70px"},{prop:"level",label:"优先级",_slot_:"level",width:"60px"},{prop:"type",label:"需求类型",_slot_:"types",width:"95px"},{prop:"deal_name",label:"处理人",width:"70px"},{prop:"apply_name",label:"申请人",width:"70px"},{prop:"title",label:"标题","min-width":"140px"},{prop:"noteNo",label:"业务编号","min-width":"100px"},{prop:"company_name",label:"申请人部门",_slot_:"company_name","min-width":"140px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50"}],l=[{prop:"id",label:"编号",width:"60"},{prop:"addtime",label:"操作时间",width:"140"},{prop:"action_name",label:"操作人",width:"70"},{prop:"type_name",label:"操作类型",width:"70"},{prop:"handle_name",label:"操作字段",width:"90"},{prop:"action_item",label:"操作前",_slot_:"action_item"},{prop:"action_after",label:"操作后",_slot_:"action_after"}]},"51ec":function(e,t,a){},5268:function(e,t,a){"use strict";var n=a("1da1"),r=(a("d3b7"),a("159b"),a("a9e3"),a("96cf"),a("1920")),i=a("f5ed"),s=a("9f53"),o=(a("ac1f"),a("466d"),{name:"contrastModel",props:["showModel","id","sitem"],data:function(){return{loading:!0,showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,n=e.sitem,a=n.action_item,n=n.action_after,e.x=a,e.y=n,e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},matchHTML:function(){}}}),l=(a("ad7c"),a("2877")),c=(o=Object(l.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"变更详情",center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{staticClass:"clear",staticStyle:{"line-height":"28px",height:"28px","font-size":"15px",margin:"0 0 10px 0"},attrs:{span:24}},[t("div",{staticClass:"fl"},[t("span",[e._v("操作人:")]),e.sitem?t("span",[e._v(e._s(e.sitem.action_name))]):e._e()]),t("div",{staticClass:"fr"},[t("span",[e._v("操作时间:")]),e.sitem?t("span",[e._v(e._s(e.sitem.addtime))]):e._e()])]),t("el-col",{attrs:{span:12}},[t("div",{staticClass:"contrast-title",staticStyle:{margin:"0 0 10px 0"}},[e._v("操作前:")]),t("div",{staticClass:"contrast-main",staticStyle:{"line-height":"25px","max-height":"480px",height:"100%","overflow-y":"scroll"},domProps:{innerHTML:e._s(e.x)}})]),t("el-col",{attrs:{span:12}},[t("div",{staticClass:"contrast-title",staticStyle:{margin:"0 0 10px 0"}},[e._v("操作后:")]),t("div",{staticClass:"contrast-main",staticStyle:{"line-height":"25px","max-height":"480px",height:"100%","overflow-y":"scroll"},domProps:{innerHTML:e._s(e.y)}})])],1)],1)],1)}),[],!1,null,"5d61d952",null).exports,a("4f5b"));a={name:"record",mixins:[i.a,s.a],props:["newTime","bugNo"],components:{contrastModel:o},watch:{newTime:function(e){e&&this.reloadList()}},data:function(){return{loading:!0,showModel:!1,parmValue:{page:1,size:15,bugNo:""},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:c.c}},mounted:function(){this.reloadList()},methods:{reloadList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.page=1,e.pageInfo.curr=1,t.next=4,e.searchList();case 4:case"end":return t.stop()}}),t)})))()},openModal:function(e){this.sitem=e,this.showModel=!0},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.tableData=[],e.loading=!0,e.parmValue.bugNo=e.bugNo,t.next=5,r.a.MLogList(e.parmValue);case 5:if(!(a=t.sent)||0!==a.code||!a.data){t.next=12;break}e.tableData=a.data.list,e.tableData.forEach((function(e){e.type_name="1"===e.type?"新建":"编辑"})),e.pageInfo.total=Number(a.data.count),t.next=19;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},i=Object(l.a)(a,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"record"},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){return e.reloadList()},"screen-submit":function(t){return e.reloadList()}},scopedSlots:e._u([{key:"action_item",fn:function(t){var n=t.scope;return["描述"===n.row.handle_name?a("span",[a("el-tag",{attrs:{size:"mini"},on:{click:function(t){return e.openModal(n.row)}}},[e._v("查看详情")])],1):a("span",[e._v(e._s(n.row.action_item))])]}},{key:"action_after",fn:function(t){var n=t.scope;return["描述"===n.row.handle_name?a("span",[a("el-tag",{attrs:{size:"mini"},on:{click:function(t){return e.openModal(n.row)}}},[e._v("查看详情")])],1):a("span",[e._v(e._s(n.row.action_after))])]}}])}),a("contrastModel",{attrs:{"show-model":e.showModel,sitem:e.sitem},on:{cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"0e5e5a0e",null);t.a=i.exports},"55f9":function(e,t,a){},"5de4":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("d81d"),a("e9c4"),a("159b"),a("f5ed")),s=a("21fa"),o=a("b36d"),l=a("2f62"),c=a("9f53");o={name:"MenuOperator",components:{addEdit:o.default},mixins:[i.a,c.a],computed:Object(r.a)(Object(r.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"menuOperator"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,showInterface:!1,isDetail:!1,isAdd:!0,level:1,modelId:0,formData:{},parentIds:"",parmValue:{parentId:0,code:"",status:"",type:1,menuCategory:"",current:1,size:15},tableData:[]}},mounted:function(){this.searchList()},methods:{addEditFn:function(e,t,a,n,r,i){this.showModel=!0,this.modelId=e,this.level=a,this.parentIds=t,this.isDetail=n,this.isAdd=r,this.formData=i},submitRefresh:function(e,t,a){var r=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a<3)return e.next=3,r.searchList();e.next=5;break;case 3:e.next=6;break;case 5:r.getchildList(t);case 6:case"end":return e.stop()}}),e)})))()},remove:function(e,t,a,r){var i=this;return Object(n.a)(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i.$confirm("确定要".concat("0"===r?"启用":"禁用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function n(){var o,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o={id:e,status:"1"===r?"0":"1"},l={},3===a)return n.next=5,s.a.actionstatus(o);n.next=8;break;case 5:l=n.sent,n.next=11;break;case 8:return n.next=10,s.a.menustatus(o);case 10:l=n.sent;case 11:if(!l||0!==l.code){n.next=21;break}if(i.$notify.success({title:"修改成功!",message:""}),3!==a){n.next=17;break}i.getchildList(t),n.next=19;break;case 17:return n.next=19,i.searchList();case 19:n.next=27;break;case 21:if(l&&100<=l.code&&l.code<=104)return n.next=24,i.logout();n.next=26;break;case 24:n.next=27;break;case 26:i.$message.warning(l.message);case 27:case"end":return n.stop()}}),n)})))).catch((function(){}));case 2:case"end":return o.stop()}}),o)})))()},deleteMenu:function(e,t,a,r){var i=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r={id:e},o={},3===a)return n.next=5,s.a.actiondel(r);n.next=8;break;case 5:o=n.sent,n.next=11;break;case 8:return n.next=10,s.a.menudel(r);case 10:o=n.sent;case 11:if(!o||0!==o.code){n.next=21;break}if(i.$notify.success({title:"删除成功!",message:""}),3!==a){n.next=17;break}i.getchildList(t),n.next=19;break;case 17:return n.next=19,i.searchList();case 19:n.next=24;break;case 21:if(o&&100<=o.code&&o.code<=104)return n.next=24,i.logout();n.next=24;break;case 24:case"end":return n.stop()}}),n)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},openChildren:function(e,t,a,n){n?this.tableData=1===a?this.tableData.map((function(t){return t.id===e&&(t.child=[]),t})):this.tableData.map((function(a){return a.id===t&&(a.child=a.child.map((function(t){return t.id===e&&(t.child=[]),t}))),a})):1===a?this.concatData(e,"0",a):this.getchildList(e)},getchildList:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,r,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.loading=!0,a.next=3,s.a.actionList({id:e});case 3:if(n=a.sent,r=[],!n||0!==n.code||!n.data){a.next=9;break}r=n.data,a.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return a.next=12,t.logout();a.next=14;break;case 12:a.next=15;break;case 14:t.$message.warning(n.message);case 15:i=(i=JSON.parse(JSON.stringify(t.tableData))).map((function(t,a){return t&&t.child&&0<t.child.length&&t.child.forEach((function(t,a){return e===t.id&&(t.child=r),t})),t})),t.tableData=i,t.loading=!1;case 19:case"end":return a.stop()}}),a)})))()},concatData:function(e,t,a){var r=this;return Object(n.a)(regeneratorRuntime.mark((function n(){var i,o,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r.loading=!0,n.next=3,s.a.list({});case 3:if(i=n.sent,o=[],!i||0!==i.code||!i.data){n.next=9;break}o=i.data,n.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return n.next=12,r.logout();n.next=14;break;case 12:n.next=15;break;case 14:r.$message.warning(i.message);case 15:l=(l=JSON.parse(JSON.stringify(r.tableData))).map((function(n,r){return(1===a?e:t===n.id)&&(n.child=o[r].child),n})),r.tableData=l,r.loading=!1;case 19:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.list({});case 3:if(a=t.sent,e.tableData=[],!a||0!==a.code||!a.data){t.next=9;break}e.tableData=a.data,t.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.tableData=[];case 15:e.loading=!1;case 16:case"end":return t.stop()}}),t)})))()}}},i=a("2877"),c=Object(i.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"box pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("el-row",{attrs:{gutter:10}},[t("el-col",{staticStyle:{padding:"5px"},attrs:{span:24}},[t("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[t("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),e.powers.some((function(e){return"003"==e}))?t("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.addEditFn(0,"0",1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e()],1)],1)],1),t("el-row",{attrs:{gutter:10}},[t("el-col",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{span:24}},[t("shy-tree",{attrs:{value:e.tableData,level:1},on:{addEdit:e.addEditFn,openChildren:e.openChildren,remove:e.remove,deleteMenu:e.deleteMenu}})],1)],1),t("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,level:e.level,"parent-ids":e.parentIds,"is-add":e.isAdd,"form-data":e.formData,type:e.parmValue.type,"is-detail":e.isDetail},on:{refresh:e.submitRefresh,cancel:function(t){e.showModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=c.exports},"5e53":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("a9e3"),a("4c1f")),s=a("f5ed"),o=a("2f62"),l=a("9f53");s={name:"updates",mixins:[s.a,l.a],computed:Object(r.a)(Object(r.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"updates"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{type:"VER",page:1,size:15},count:0,tableData:[]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={type:"VER",page:1,size:15},this.count=0,this.searchList()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.list(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=9;break}e.tableData=a.data.list,e.count=Number(a.data.count),t.next=16;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.count=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},l=a("2877"),r=Object(l.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"updates pagePadding",staticStyle:{"padding-top":"25px"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:e.size,stripe:""}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{size:e.size,"label-position":"top",inline:""}},[a("el-form-item",{attrs:{label:"更新内容"}},[a("p",{domProps:{innerHTML:e._s(t.row.system)}})])],1)]}}],null,!1,1054835690)}),a("el-table-column",{attrs:{label:"版本号",prop:"version"}}),a("el-table-column",{attrs:{label:"更新模块",prop:"module"}}),a("el-table-column",{attrs:{label:"更新时间",prop:"addtime"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[a("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[15,50,100],"page-size":e.parmValue.size,layout:"total, sizes, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)],1):a("no-auth")],1)}),[],!1,null,"62bbd75f",null);t.default=r.exports},"5f10":function(e,t,a){"use strict";a("ce32")},6860:function(e,t,a){},"6bd2":function(e,t,a){"use strict";t.a=[{code:"001",name:"列表"},{code:"002",name:"设置处理人"},{code:"003",name:"添加"},{code:"004",name:"启/禁用"},{code:"005",name:"修改"},{code:"006",name:"删除"},{code:"007",name:"详情"},{code:"008",name:"提交"},{code:"011",name:"设为/取消负责人"},{code:"012",name:"设置需求状态"}]},"6d88":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=(a("d81d"),a("b0c0"),a("e9c4"),a("96cf"),a("1fd2")),i=a("9f53"),s=a("61f7");i={name:"Account",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data:function(){return{roleList:[],loading:!1,title:"添加账号",organizeList:[],showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",itemid:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:function(e,t,a){""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(s.d)(t)||Object(s.e)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:function(e,t,a){""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(s.h)(t)||Object(s.i)(t)||!Object(s.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(s.g)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:function(e,t,a){""===t||Object(s.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],itemid:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},mounted:function(){},methods:{itemidChange:function(e){this.ruleForm.itemid=e,this.$refs.ruleForm.validateField("itemid")},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.getClist();case 3:return t.next=5,e.getRole();case 5:if("add"===e.id)return e.title="添加账号",e.rulesThis=e.rules,t.next=10,e.resetForm();t.next=12;break;case 10:t.next=15;break;case 12:return e.isDetail?(e.title="账号详情",e.rulesThis={}):(e.title="修改账号",e.rulesThis=e.rules),t.next=15,e.resetForm(e.sitem);case 15:e.loading=!1;case 16:case"end":return t.stop()}}),t)})))()},getClist:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.organizeList=[],t.next=3,r.a.getClist({});case 3:(a=t.sent)&&0===a.code&&a.data&&(e.organizeList=a.data,e.recursion(e.organizeList));case 5:case"end":return t.stop()}}),t)})))()},recursion:function(e){var t=this;e.map((function(e){return e&&Array.isArray(e.child)&&(e.value=e.id+"",e.label=e.name,0===e.child.length?delete e.child:t.recursion(e.child)),e}))},getRole:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={status:"",level:"",role_name:""},t.next=3,r.a.getRole(a);case 3:(a=t.sent)&&0===a.code&&a.data&&(e.roleList=a.data,e.roleList.map((function(e){return e.id+="",e.status+="",e})));case 5:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.a.detail({id:e.id});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=8;break}e.ruleForm=a.data,e.ruleForm.role_id=e.ruleForm.role,t.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.$message.warning(a.message);case 14:case"end":return t.stop()}}),t)})))()},resetForm:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.$nextTick((function(){var a,n,r,i,s,o,l;t.$refs.ruleForm&&(t.$refs.ruleForm.resetFields(),t.$refs.ruleForm.clearValidate(),a=e.username,n=e.nickname,r=e.mobile,i=e.email,s=e.roleid,o=e.status,l=e.depart_code,t.ruleForm={username:a||"",name:n||"",mobile:r||"",email:i||"",role_id:s||"",status:o||"",itemid:l||[]})}));case 2:case"end":return a.stop()}}),a)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var n,i,s,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=31;break}if(e.loading=!0,o=JSON.parse(JSON.stringify(e.ruleForm)),l=o.username,c=o.name,u=o.mobile,n=o.email,i=o.role_id,s=o.status,o=o.itemid,l={id:e.id,username:l||"",nickname:c||"",mobile:u||"",email:n||"",role:i||"",status:s||"",itemid:o||[]},c={},"add"===e.id)return delete l.id,t.next=9,r.a.add(l);t.next=12;break;case 9:c=t.sent,t.next=15;break;case 12:return t.next=14,r.a.update(l);case 14:c=t.sent;case 15:if(e.loading=!1,!c||0!==c.code){t.next=23;break}u="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:u,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=29;break;case 23:if(c&&100<=c.code&&c.code<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:e.$message.warning(c.message);case 29:t.next=33;break;case 31:return t.abrupt("return",!1);case 33:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("441c"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[a("el-card",{staticStyle:{"margin-top":"-20px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?a("el-form-item",{attrs:{label:"账号",prop:"username"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1):e._e(),a("el-form-item",{attrs:{label:"真实姓名",prop:"name"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1),a("el-form-item",{attrs:{label:"所在部门",prop:"itemid"}},[a("all-organize",{attrs:{value:e.ruleForm.itemid,"is-detail":e.isDetail,disabled:e.isDetail,multiple:!0,checkStrictly:!0,placeholder:"请选择所在部门"},on:{searchChange:e.itemidChange}})],1),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1),a("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[a("el-radio-group",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.role_id,callback:function(t){e.$set(e.ruleForm,"role_id",t)},expression:"ruleForm.role_id"}},e._l(e.roleList,(function(t){return a("el-radio",{key:t.id,attrs:{label:t.id,disabled:"1"!==t.status}},[e._v(e._s(t.role_name))])})),1)],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-switch",{attrs:{"active-value":"1","inactive-value":"0",disabled:e.isDetail},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}})],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"98ac53ec",null);t.default=a.exports},"6e66":function(e,t,a){"use strict";a("44d1")},"72e9":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var n="3"},"760d":function(e,t,a){"use strict";a("f17f")},"77c8":function(e,t,a){"use strict";a("a1b0")},7914:function(e,t,a){"use strict";a.r(t);var n=a("2909"),r=a("1da1"),i=(a("96cf"),a("7db0"),a("d3b7"),a("4de4"),a("c740"),a("159b"),a("a434"),a("99af"),a("e9c4"),a("d81d"),a("1b69")),s="admin/",o=function(e,t){return Object(i.a)(s+"roleinfo",e,"post",t)},l=function(e,t){return Object(i.a)(s+"rolesave",e,"post",t)},c=function(e,t){return Object(i.a)(s+"roleall",e,"post",t)},u=function(e,t){return Object(i.a)(s+"menuactionlist",e,"post",t)},d={name:"Action",mixins:[a("9f53").a],data:function(){return{ruleForm:{},isBtnDisabled:!0,roleActive:{},actionChange:[],roleList:[],rules:[],actionList:[],action_data:[],action:[],private_data:[]}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"action"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]},indeterminateCheck:function(){return function(e){var t=e.action.filter((function(t){return-1<e.checkList.findIndex((function(e){return e===t.id}))})).length,a=e.action.filter((function(t){return-1==e.checkList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<a}},indeterminateField:function(){return function(e){var t=e.action_data.filter((function(t){return-1<e.fieldList.findIndex((function(e){return e===t.id}))})).length,a=e.action_data.filter((function(t){return-1==e.fieldList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<a}}},mounted:function(){this.initactionList()},methods:{handleCheckAllChange:function(e,t,a,n){var r=this;this.actionList[t].child[n].checkAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[n].action.forEach((function(a){var i=r.actionList[t].child[n].checkList.findIndex((function(e){return e===a.id}));e&&-1==i?r.actionList[t].child[n].checkList.push(a.id):!e&&-1<i&&r.actionList[t].child[n].checkList.splice(i,1)}))},handleFieldAllChange:function(e,t,a,n){var r=this;this.actionList[t].child[n].fieldAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[n].action_data.forEach((function(a){var i=r.actionList[t].child[n].fieldList.findIndex((function(e){return e===a.id}));e&&-1==i?r.actionList[t].child[n].fieldList.push(a.id):!e&&-1<i&&r.actionList[t].child[n].fieldList.splice(i,1)}))},handleCheckedGroupChange:function(e,t,a,n){var r=this;this.actionList[t].child[n].checkAll=this.actionList[t].child[n].action.every((function(e){return-1<r.actionList[t].child[n].checkList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,a)},handleFieldGroupChange:function(e,t,a,n){var r=this;this.actionList[t].child[n].fieldAll=this.actionList[t].child[n].action_data.every((function(e){return-1<r.actionList[t].child[n].fieldList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,a)},handleCheckedChange:function(e,t,a,n,r){e?-1==this.actionList[a].child[n].checkList.indexOf(t)&&this.actionList[a].child[n].checkList.push(t):(-1<(e=this.actionList[a].child[n].checkList.findIndex((function(e){return e==t})))&&this.actionList[a].child[n].checkList.splice(e,1),this.actionList[a].child[n].checkAll=!1),this.$set(this.actionList,a,r)},handleFieldChange:function(e,t,a,n,r){e?-1==this.actionList[a].child[n].fieldList.indexOf(t)&&this.actionList[a].child[n].fieldList.push(t):(-1<(e=this.actionList[a].child[n].fieldList.findIndex((function(e){return e==t})))&&this.actionList[a].child[n].fieldList.splice(e,1),this.actionList[a].child[n].fieldAll=!1),this.$set(this.actionList,a,r)},switchRoleHandle:function(e){var t=this;this.roleActive=Object.assign({},e),this.$nextTick(Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.refreshRoleDetail(e.id);case 2:case"end":return a.stop()}}),a)}))))},save:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.action_data=[],e.action=[],a=[],e.actionList.forEach((function(t){t.child.forEach((function(t){var r;(r=e.action_data).push.apply(r,Object(n.a)(t.fieldList)),(r=e.action).push.apply(r,Object(n.a)(t.checkList)),"1"===t.is_private_change&&a.push(t.id)}))})),0!==e.action.length){t.next=8;break}e.$message.warning("请选择功能!"),t.next=24;break;case 8:return r={roleid:e.roleActive.id,role_name:e.ruleForm.role_name,level:e.ruleForm.level,action:e.action,action_data:e.action_data,private_data:a},i=e.$loading(),t.next=12,l(r);case 12:if(!(s=t.sent)||0!==s.code||!s.data){t.next=17;break}e.$notify.success({title:"保存成功!",message:""}),t.next=23;break;case 17:if(s&&100<=s.code&&s.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=23;break;case 22:e.$message.warning(s.message);case 23:i.close();case 24:case"end":return t.stop()}}),t)})))()},refreshRoleDetail:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var n,r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.isBtnDisabled=!0,a.next=3,o({roleid:e});case 3:if(!(n=a.sent)||0!==n.code||!n.data){a.next=14;break}r=n.data,(t.ruleForm=r).action&&0<r.action.length?t.action=r.action:t.action=[],r.action_data&&0<r.action_data.length?t.action_data=r.action_data:t.action_data=[],""===r.private_data&&(r.private_data=[]),r.private_data&&0<r.private_data.length?t.private_data=r.private_data:t.private_data=[],t.refreshRoleCheckAllStatus(),a.next=20;break;case 14:if(n&&100<=n.code&&n.code<=104)return a.next=17,t.logout();a.next=19;break;case 17:a.next=20;break;case 19:t.$message.warning(n.message);case 20:t.isBtnDisabled=!1;case 21:case"end":return a.stop()}}),a)})))()},initactionList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u({});case 2:if((a=t.sent)&&0===a.code&&a.data)return e.rules=a.data,t.next=7,e.initRoleList();t.next=9;break;case 7:t.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(a.message);case 15:case"end":return t.stop()}}),t)})))()},initRoleList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c({});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=16;break}if(e.roleList=[].concat(a.data),0<e.roleList.length)return t.next=8,e.switchRoleHandle(e.roleList[0]);t.next=10;break;case 8:t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))()},refreshRoleCheckAllStatus:function(){var e=this,t=(t=JSON.parse(JSON.stringify(this.rules)).filter((function(e){return e.child&&0<e.child.length}))).map((function(e){return e.child.map((function(e){return e.checkAll=!1,e.checkList=[],e.fieldAll=!1,e.fieldList=[],(e.is_private_change="0")===e.is_private?e.private=[]:e.private=[{id:"0",label:"公有数据"},{id:"1",label:"私有数据"}],e})),e}));this.actionList=t,this.actionList.forEach((function(t,a){t.child&&0<t.child.length&&t.child.forEach((function(t,a){var n;t.id,t.action&&0<t.action.length&&t.action.forEach((function(a){var n=e.action.findIndex((function(e){return e===a.id}));-1!==n&&t.checkList.push(e.action[n]),t.action.length===t.checkList.length&&(t.checkAll=!0)})),t.action_data&&0<t.action_data.length&&(t.action_data.map((function(a){var n=e.action_data.findIndex((function(e){return e===a.id}));-1!==n&&t.fieldList.push(e.action_data[n])})),t.action_data.length===t.fieldList.length&&(t.fieldAll=!0)),t.private&&2===t.private.length?(n=e.private_data.findIndex((function(e){return e===t.id})),t.is_private_change=-1!==n?"1":"0"):t.is_private_change="0"})),e.$set(e.actionList,a,t)}))}}};a("dd1d"),a=a("2877"),a=Object(a.a)(d,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"action pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",{staticClass:"action_show"},[a("div",{staticClass:"action_show_box"},[a("ul",{staticClass:"role-list"},[a("p",{staticClass:"role-list__title"},[e._v("角色列表")]),0==e.roleList.length?a("p",{staticStyle:{"line-height":"60px","text-align":"center",color:"#909399"}},[e._v(" 暂无数据 ")]):e._e(),e._l(e.roleList,(function(t,n){return a("li",{key:"role"+n,staticClass:"role-list__item",class:{active:t.id==e.roleActive.id},on:{click:function(a){e.isBtnDisabled||e.switchRoleHandle(t)}}},[e._v(" "+e._s(t.role_name)+" "),e.isBtnDisabled&&t.id==e.roleActive.id?a("i",{staticClass:"el-icon-loading"}):e._e()])}))],2),a("div",{staticClass:"rule-view"},[a("div",{staticClass:"rule-list"},e._l(e.actionList,(function(t,n){return a("el-row",{key:"menu"+t.id+n},[t.child&&0<t.child.length?a("el-col",{staticClass:"ffff",attrs:{span:24}},[a("div",{staticClass:"ftitle"},[a("span",[e._v(e._s(t.menu_name))])]),a("div",{staticClass:"fbody"},e._l(t.child,(function(r,i){return a("div",{key:"yemian"+r.id+i,staticClass:"fbody-item"},[r.action&&0===r.action.length&&r.action_data&&0===r.action_data.length?e._e():[a("div",{staticClass:"stitle"},[a("span",{staticClass:"_h2"},[e._v(e._s(r.menu_name))]),r&&r.private&&2===r.private.length?a("el-radio-group",{staticStyle:{margin:"0 0 0 20px"},attrs:{size:"mini"},model:{value:r.is_private_change,callback:function(t){e.$set(r,"is_private_change",t)},expression:"subItem.is_private_change"}},e._l(r.private,(function(t,n){return a("el-radio-button",{key:t.label+n,attrs:{label:t.id}},[e._v(e._s(t.label))])})),1):e._e()],1),r.action&&0<r.action.length?a("div",{staticClass:"scheck"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:!e.powers.some((function(e){return"008"==e})),indeterminate:e.indeterminateCheck(r)},on:{change:function(a){return e.handleCheckAllChange(a,n,t,i)}},model:{value:r.checkAll,callback:function(t){e.$set(r,"checkAll",t)},expression:"subItem.checkAll"}},[e._v("功能全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(a){return e.handleCheckedGroupChange(a,n,t,i)}},model:{value:r.checkList,callback:function(t){e.$set(r,"checkList",t)},expression:"subItem.checkList"}},[e._l(r.action,(function(r){return[a("el-checkbox",{key:"checkItem"+r.id,attrs:{disabled:!e.powers.some((function(e){return"008"==e})),label:r.id},on:{change:function(a){return e.handleCheckedChange(a,r.id,n,i,t)}}},[e._v(e._s(r.action_name))])]}))],2)],1)]):e._e(),r.action_data&&0<r.action_data.length?a("div",{staticClass:"sfield"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:!e.powers.some((function(e){return"008"==e})),indeterminate:e.indeterminateField(r)},on:{change:function(a){return e.handleFieldAllChange(a,n,t,i)}},model:{value:r.fieldAll,callback:function(t){e.$set(r,"fieldAll",t)},expression:"subItem.fieldAll"}},[e._v("字段全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(a){return e.handleFieldGroupChange(a,n,t,i)}},model:{value:r.fieldList,callback:function(t){e.$set(r,"fieldList",t)},expression:"subItem.fieldList"}},[e._l(r.action_data,(function(r){return[a("el-checkbox",{key:"FieldItem"+r.id,attrs:{label:r.id,disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(a){return e.handleFieldChange(a,r.id,n,i,t)}}},[e._v(e._s(r.field_name))])]}))],2)],1)]):e._e()]],2)})),0)]):e._e()],1)})),1)])]),a("div",{staticClass:"rule-bottom"},[e.powers.some((function(e){return"008"==e}))?a("el-button",{attrs:{size:"small",type:"primary",disabled:e.isBtnDisabled},on:{click:function(t){return e.save()}}},[e._v("提 交")]):e._e()],1)]):a("div",[a("no-auth")],1)])}),[],!1,null,"4e06c306",null);t.default=a.exports},"7a70":function(e,t,a){},"7a8b":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("159b"),a("a9e3"),a("e9c4"),a("ac1f"),a("5319"),a("1920")),s=a("2f62"),o=a("9f53"),l=a("5268"),c=a("a314"),u=a("432e"),d=a("c444"),p=a("4f5b"),m=a("72e9");o={name:"orderUiDetail",mixins:[o.a],components:{TinymceEditor:u.a,record:l.a,comModule:c.a,selectHandlerModel:d.a},computed:Object(r.a)(Object(r.a)({},Object(s.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"orderUiDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{pinglunEdit:!1,parmValue:{page:1,size:5,id:this.queryId,total:0},tableData:[],bugNo:"",statusOptions:p.e,levelOptions:p.b,typeOptions:p.f,type:m.a,userOptions:[],ruleForm:{},activeName:"1",newTime:"",showModel:!1,queryId:"",loading:!1,rulesThis:this.rules}},mounted:function(){this.queryId=this.$route.query.id,this.initForm()},methods:{handleCurrentChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=e,a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.newTime="",e.InitializeForm(),t.next=5,e.resetForm();case 5:return t.next=7,e.initData();case 7:return e.loading=!1,t.next=10,e.searchList();case 10:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()+""},editItem:function(e){this.tableData.forEach((function(e){e.edit=!1})),this.tableData[e].edit=!0},tinput:function(e){this.ruleForm.remark=e||"",this.$refs.ruleForm.validateField("remark")},goods_class_change:function(e){this.ruleForm.model_id=e,this.$refs.ruleForm.validateField("model_id")},deleteById:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function a(){var n,r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e},a.next=3,i.a.comDel(n);case 3:if(!(r=a.sent)||0!==r.code){a.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),a.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return a.next=12,t.logout();a.next=14;break;case 12:a.next=15;break;case 14:t.$message.warning(r.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return a.stop()}}),a)})))()},plunsubmit:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,r,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.loading){a.next=29;break}if(t.loading=!0,n=e.id,r=e.input,r={id:n,talk_note:r,bugNo:t.ruleForm.bugNo},s={},"add"===n)return delete r.id,a.next=9,i.a.comAdd(r);a.next=12;break;case 9:s=a.sent,a.next=15;break;case 12:return a.next=14,i.a.comUpdate(r);case 14:s=a.sent;case 15:if(t.loading=!1,s&&0===s.code)return t.$notify.success({title:"add"===n?"添加成功!":"修改成功!",message:""}),"add"===n&&(t.pinglunEdit=!1),a.next=21,t.initForm();a.next=23;break;case 21:a.next=29;break;case 23:if(s&&100<=s.code&&s.code<=104)return a.next=26,t.logout();a.next=28;break;case 26:a.next=29;break;case 28:t.$message.warning(s.message);case 29:case"end":return a.stop()}}),a)})))()},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r,s,o,l,c,u,d,p,f,h,g,b;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({id:e.queryId});case 2:if((a=t.sent)&&0===a.code)return b=a.data,n=b.id,r=b.bugNo,s=b.title,o=b.company_type,l=b.level,c=b.type,u=b.remark,d=b.status,p=b.apply_name,f=b.model_id,h=b.deal_id,g=b.company_name,b=b.noteNo,e.bugNo=r,e.ruleForm={id:n,bugNo:r,title:s||"",company_type:o||m.a,remark:u||"",status:d||"",level:l||"",type:c||"",noteNo:b||"",apply_name:p||"",model_id:f||[],deal_id:h||"",company_name:g||[]},e.getNewTime(),t.next=10,e.getMuser();t.next=12;break;case 10:t.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(a.message);case 18:case"end":return t.stop()}}),t)})))()},getMuser:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.userOptions=[],t.next=3,i.a.MUser({company_id:m.a});case 3:if(!(a=t.sent)||0!==a.code){t.next=9;break}a.data.forEach((function(t){t={value:t.manange_id,label:t.manange_name},e.userOptions.push(t)})),t.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(a.message);case 15:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.id=e.queryId,t.next=3,i.a.cloudlist(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=11;break}r=a.data,n=r.list,r=r.count,n.forEach((function(e){e.edit=!1})),e.tableData=n,e.parmValue.total=Number(r),t.next=18;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=18;break;case 16:e.tableData=[],e.parmValue.total=0;case 18:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.InitializeForm())}));case 2:case"end":return t.stop()}}),t)})))()},InitializeForm:function(){this.ruleForm={id:"",bugNo:"",title:"",company_type:"",remark:"",status:"",level:"",type:"",apply_name:"",noteNo:"",deal_id:"",model_id:[],company_name:[]}},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var n,r,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=32;break}if(e.loading=!0,delete(n=JSON.parse(JSON.stringify(e.ruleForm))).company_name,delete n.apply_name,r=(r=(r=n.remark).replace(/\n/g,"")).replace(/"/g,"'"),n.remark=r,5e3<n.remark.length)return e.$message.warning("描述文字及标签总长度不能超过5000!"),e.loading=!1,t.abrupt("return");t.next=14;break;case 14:return t.next=16,i.a.update(n);case 16:if((s=t.sent)&&0===s.code)return e.$notify.success({title:"修改成功",message:""}),t.next=21,e.initForm();t.next=23;break;case 21:t.next=29;break;case 23:if(s&&100<=s.code&&s.code<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:e.$message.warning(s.message);case 29:e.loading=!1,t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("3db1"),u=a("2877"),l=Object(u.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"orderUiDetail pagePadding clear"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?a("div",[a("div",{staticClass:"left"},[a("div",{staticClass:"title clear"},[a("div",{staticClass:"title-left"},[e._v("#"+e._s(e.ruleForm.bugNo))]),a("div",{staticClass:"title-right"},[a("el-input",{staticClass:"notshow",attrs:{placeholder:"标题",disabled:!e.powers.some((function(e){return"005"==e})),size:"medium"},model:{value:e.ruleForm.title,callback:function(t){e.$set(e.ruleForm,"title",t)},expression:"ruleForm.title"}})],1)]),a("div",{staticClass:"stockApply-com"},[a("el-tabs",{attrs:{size:"mini"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"描述详情",name:"1"}},[e.powers.some((function(e){return"005"==e}))?a("div",{staticClass:"desc"},[""!==e.newTime?a("TinymceEditor",{ref:"tinymceEditor",attrs:{tinymceHtml:e.ruleForm.remark},on:{input:e.tinput}}):e._e()],1):a("div",{staticClass:"desc"},[a("div",{staticClass:"desc-main"},[a("div",{staticClass:"show-html",domProps:{innerHTML:e._s(e.ruleForm.remark)}})])]),a("div",{staticClass:"pinglun"},[a("div",{staticClass:"pinglun-title"},[e._v("评论")]),e.pinglunEdit?a("div",[a("comModule",{attrs:{id:"add"},on:{cancel:function(t){e.pinglunEdit=!1},submit:e.plunsubmit}})],1):a("div",{staticClass:"pinglun-input",on:{click:function(t){e.pinglunEdit=!0}}},[e._v(" 请输入评论: Ctrl+V可粘贴截图 ")])]),a("div",{staticClass:"tableData"},[e._l(e.tableData,(function(t,n){return a("div",{key:t.talk_note+"key",staticClass:"tableData-main",style:{borderLeft:n+1===e.tableData.length?"2px solid transparent":"2px solid #252b3a"}},[a("div",{staticClass:"tableData-title clear"},[a("div",{staticClass:"dian-mian fl"},[a("div",{staticClass:"dian"}),n+1===e.tableData.length?a("div",{staticClass:"dian-zhe"}):e._e()]),a("div",{staticClass:"user fl"},[e._v(e._s(t.talk_name))]),a("div",{staticClass:"time fr"},[e._v(e._s(t.addtime))]),t.edit||"0"!==t.is_edit?e._e():a("div",{staticClass:"operation fr"},[a("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.editItem(n)}}}),a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.deleteById(t.id)}}})])]),a("div",{staticClass:"tableData-talk_note"},[t.edit?a("div",[a("comModule",{attrs:{id:t.id,value:t.talk_note},on:{cancel:function(t){e.tableData[n].edit=!1},submit:e.plunsubmit}})],1):a("div",{staticClass:"talk-note-main",domProps:{innerHTML:e._s(t.talk_note)}})])])})),5<e.parmValue.total?a("div",{staticClass:"my-page"},[a("el-pagination",{attrs:{"current-page":e.parmValue.page,"page-size":e.parmValue.size,layout:"total, prev, pager, next",total:e.parmValue.total},on:{"current-change":e.handleCurrentChange,"prev-click":e.handleCurrentChange,"next-click":e.handleCurrentChange}})],1):e._e()],2)]),a("el-tab-pane",{attrs:{label:"操作记录",name:"2"}},[""!==e.newTime?a("record",{attrs:{newTime:e.newTime,bugNo:e.bugNo}}):e._e()],1)],1)],1)]),a("div",{staticClass:"right"},[a("div",{staticClass:"title"},[e._v(" 基本信息 "),e.powers.some((function(e){return"005"==e}))||e.powers.some((function(e){return"012"==e}))?a("el-button",{staticClass:"fr",staticStyle:{margin:"6px 0 0 0"},attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保存 ")]):e._e()],1),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,size:"mini","label-width":"80px"}},[a("el-form-item",{attrs:{label:"处理状态:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"处理状态:"},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"处理人:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"处理人:"},model:{value:e.ruleForm.deal_id,callback:function(t){e.$set(e.ruleForm,"deal_id",t)},expression:"ruleForm.deal_id"}},e._l(e.userOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e.powers.some((function(e){return"002"==e}))?a("div",{staticClass:"setUser",on:{click:function(t){e.showModel=!0}}},[a("i",{staticClass:"el-icon-setting"})]):e._e()],1),a("el-form-item",{attrs:{label:"优先级:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{size:"mini",disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"优先级"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.levelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"需求类型:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{size:"mini",disabled:!e.powers.some((function(e){return"012"==e})),placeholder:"需求类型"},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"功能区:"}},[a("good-class",{staticClass:"notshow",attrs:{value:e.ruleForm.model_id,size:"mini",disabled:!e.powers.some((function(e){return"012"==e})),type:"3",placeholder:"功能区"},on:{handleChange:e.goods_class_change}})],1),a("el-form-item",{attrs:{label:"业务编号:"}},[a("el-input",{staticClass:"notshow",attrs:{type:"textarea",autosize:{minRows:1,maxRows:10},placeholder:"业务编号",disabled:!e.powers.some((function(e){return"005"==e}))},model:{value:e.ruleForm.noteNo,callback:function(t){e.$set(e.ruleForm,"noteNo",t)},expression:"ruleForm.noteNo"}})],1),a("el-form-item",{attrs:{label:"创建人:"}},[a("div",{staticClass:"show-input",class:{disabled:!e.powers.some((function(e){return"012"==e}))}},[e._v(" "+e._s(e.ruleForm.apply_name)+" ")])]),a("el-form-item",{attrs:{label:"创建人部门:"}},[a("div",{staticClass:"show-input hei"},e._l(e.ruleForm.company_name,(function(t,n){return a("el-tag",{key:t+n,staticStyle:{margin:"0 5px 0 0"},attrs:{type:"info",size:"mini"}},e._l(t,(function(t,r){return a("span",{key:t+n+r,style:{marginLeft:"0px"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:0<r,expression:"cindex > 0"}]},[e._v("/")]),a("span",[e._v(e._s(t.name))])])})),0)})),1)])],1),a("div",{staticClass:"tijiaoBTN"})],1),a("select-handler-model",{attrs:{id:e.queryId,"show-model":e.showModel,type:e.type},on:{refresh:function(t){e.showModel=!1,e.getMuser()},cancel:function(t){e.showModel=!1}}})],1):a("no-auth")],1)}),[],!1,null,"595a6320",null);t.default=l.exports},"7bd5":function(e,t,a){},"7e10":function(e,t,a){"use strict";a.r(t);var n=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"dingLoading"},[e("img",{attrs:{src:a("f8b2"),alt:""}})])}],r={name:"loadingPage",data:function(){return{}},mounted:function(){}},i=(a("04c0"),a("2877"));i=Object(i.a)(r,(function(){this.$createElement;return this._self._c,this._m(0)}),n,!1,null,"17af7bec",null);t.default=i.exports},"83c2":function(e,t,a){},"850c":function(e,t,a){},"88ec":function(e,t,a){"use strict";var n=a("1b69"),r="admin/";t.a={add:function(e,t){return Object(n.a)(r+"roleadd",e,"post",t)},list:function(e,t){return Object(n.a)(r+"rolelist",e,"post",t)},detail:function(e,t){return Object(n.a)(r+"roleinfo",e,"post",t)},update:function(e,t){return Object(n.a)(r+"rolesave",e,"post",t)},status:function(e,t){return Object(n.a)(r+"rolestatus",e,"post",t)},actionList:function(e,t){return Object(n.a)(r+"menuactionlist",e,"post",t)}}},"91a0":function(e,t,a){"use strict";a("bc0b")},9291:function(e,t,a){"use strict";a("2089")},9406:function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("2f62");n={name:"dashboard",data:function(){return{emptyGif:a("ff1f")}},computed:Object(n.a)({},Object(r.b)(["avatar"])),mounted:function(){}},a("4e9d"),r=a("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"dashboard-container"},[t("div",{staticClass:"dashboard-editor-container"},[t("div",{staticClass:"info-container clearfix"},[t("pan-thumb",{attrs:{image:e.avatar,width:"130px",height:"130px"}}),t("span",{staticClass:"welcome-title"},[e._v("欢迎登录需求管理系统")])],1),t("img",{staticStyle:{width:"60%",margin:"-30px auto 0 auto"},attrs:{src:e.emptyGif}})])])}),[],!1,null,"ed3c6808",null);t.default=r.exports},9693:function(e,t,a){"use strict";a("0159")},"9cd7":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=(a("b0c0"),a("96cf"),a("2623")),i=a("6bd2"),s={mixins:[a("9f53").a],props:["showModel","id","isDetail","pid","level","isAdd","type","formData"],data:function(){return{loading:!1,showIconModel:!1,title:"",btnList:i.a,showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入组织名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isAdd?(e.title="添加组织",e.loading=!1,e.rulesThis=e.rules):e.isDetail?(e.title="组织详情",e.rulesThis={}):(e.title="修改组织",e.rulesThis=e.rules),t.next=3,e.resetForm();case 3:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.ruleForm={id:e.id,pid:e.pid,name:e.formData&&e.formData.name?e.formData.name:""},t.next=3,e.$nextTick((function(){e.$refs.ruleForm&&e.$refs.ruleForm.clearValidate()}));case 3:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return",!1);t.next=2;break;case 2:return e.loading=!0,t.next=5,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var n,i,s,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=35;break}if(n={},i={},s=e.ruleForm.name,n={id:e.id,pid:e.pid,name:s},1!==e.level&&(2===e.level?(delete n.menuid,delete n.action_code,delete n.status):(delete n.pid,delete n.img,delete n.is_show,delete n.weight,delete n.route,delete n.is_display,delete n.url)),e.isAdd&&delete n.id,e.isAdd)return t.next=10,r.a.add(n);t.next=13;break;case 10:i=t.sent,t.next=16;break;case 13:return t.next=15,r.a.update(n);case 15:i=t.sent;case 16:if(e.loading=!1,!i||0!==i.code){t.next=27;break}e.ruleForm={},s=e.isAdd?"添加成功":"修改成功",e.$notify.success({title:s,message:""}),e.showModelThis=!1,o=e.pid,0===e.id&&(o="0"),e.$emit("refresh",e.id,o,e.level),t.next=33;break;case 27:if(i&&100<=i.code&&i.code<=104)return t.next=30,e.logout();t.next=32;break;case 30:t.next=33;break;case 32:e.$message.warning(i.message);case 33:t.next=38;break;case 35:return e.loading=!1,t.abrupt("return",!1);case 38:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 5:case"end":return t.stop()}}),t)})))()}}};a("fbe2"),a=a("2877"),a=Object(a.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"25vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"is_show-icon":"",rules:e.rulesThis,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"组织名称:",prop:"name"}},[t("el-input",{attrs:{disabled:e.isDetail,placeholder:"请输入组织名称"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"0385d30e",null);t.default=a.exports},"9ed6":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=(a("d3b7"),a("b64b"),a("96cf"),a("6a1e")),i=a("9f53"),s=a("61f7"),o=(i={name:"Login",mixins:[i.a],data:function(){return{ver:"",show:!1,loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(s.g)(t)?a():a(new Error("请输入正确的手机号"))}}],password:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("密码不能为空!")):!Object(s.b)(t)||t.length<6||18<t.length?a(new Error("密码为6-18位数字字母组合!")):Object(s.h)(t)?a(new Error("密码不能为纯数字!")):Object(s.i)(t)?a(new Error("密码不能为纯字母!")):a()}}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){e=e.query,e&&(this.redirect=e.redirect,this.otherQuery=this.getOtherQuery(e))},immediate:!0}},mounted:function(){""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus()},methods:{getversion:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.a.version({});case 2:if(!(a=t.sent)||0!==a.code){t.next=8;break}n=a.data,e.ver=n.version,t.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.$message.warning(a.message);case 14:case"end":return t.stop()}}),t)})))()},setVisible:function(e){this.show=e},handleClick:function(){this.show=!0},handleSuccess:function(){this.show=!1,this.handleLogin()},checkCapslock:function(e){e=e.key,this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(t){0===t.code?e.getMenu():(e.$message.warning(t.message),e.loading=!1)})).catch((function(t){e.loading=!1}))}))},getMenu:function(){var e=this;this.$store.dispatch("user/getMenuList",this).then((function(t){window.vm.$router.push({path:"/welcome",query:e.otherQuery}),e.loading=!1})).catch((function(t){e.loading=!1}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,a){return"redirect"!==a&&(t[a]=e[a]),t}),{})}}},a("2017"),a("6e66"),a("2877"));o=Object(o.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"login-container"},[t("div",{staticClass:"login-form-main"},[t("img",{attrs:{src:a("a56b"),alt:""}}),e._m(0),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[t("div",{staticClass:"title-container"},[t("h3",{staticClass:"title"},[e._v(" 需求管理系统"),t("span",[e._v(e._s(e.ver))])])]),t("el-form-item",{attrs:{prop:"username"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-user"})]),t("el-input",{ref:"username",attrs:{placeholder:"手机号",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),t("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[t("el-form-item",{attrs:{prop:"password"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-unlock"})]),t("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),t("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[t("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),t("el-button",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{loading:e.loading,disabled:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin()}}},[e._v("登 录")]),t("div",{staticStyle:{position:"relative",padding:"12px 0 0 0"}},[t("div",{staticClass:"tips",staticStyle:{float:"left"}},[t("el-popover",{attrs:{placement:"top",title:"初始密码:",width:"200",trigger:"click",content:"dingding123"}},[t("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t("router-link",{attrs:{to:"/forget-password"}},[t("div",{staticClass:"tips",staticStyle:{float:"right"}},[t("span",[e._v("忘记密码")])])])],1)],1)],1),e._m(1)])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"main-title"},[e("h1",[this._v("欢迎登录")]),e("h3",[this._v("需求管理系统")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"beian"},[e("span",[this._v("万宇恒通")]),e("a",{attrs:{target:"_blank",href:"https://beian.miit.gov.cn/"}},[this._v("京ICP备2020033956号-1")]),e("span")])}],!1,null,"35b43acd",null);t.default=o.exports},a1b0:function(e,t,a){},a314:function(e,t,a){"use strict";var n=a("1da1"),r=(a("96cf"),a("fb6a"),a("b0c0"),a("99af"),a("c740"),a("d3b7"),a("9f53")),i=a("5daa"),s=a("5f87");r={name:"comModule",mixins:[r.a],props:["id","value"],data:function(){return{imgAPI:i.a.baseURL,inputEdit:!1,input:"",isChange:!0,loading:!1}},created:function(){this.input=this.value},methods:{handlePaste:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,r,i,s,o,l,c,u,d,p,m,f;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e.preventDefault(),e.stopPropagation(),n=f=0,r=t.$refs.txt1.innerHTML||"",i=["image/jpg","image/png","image/jpeg"],s=r.length,n=window.getSelection().focusOffset<=window.getSelection().anchorOffset?(f=window.getSelection().focusOffset,window.getSelection().anchorOffset):(f=window.getSelection().anchorOffset,window.getSelection().focusOffset),l=o="",0!==f&&(o=r.slice(0,f)),n!==s&&(l=r.slice(n)),c=(e.clipboardData||window.clipboardData).items,u=null,c&&0!==c.length){a.next=18;break}return t.$message.error("当前浏览器不支持本地或请打开图片再复制"),a.abrupt("return");case 18:d=function(a){if("text/plain"===c[a].type){var n=(e.clipboardData||window.clipboardData).getData("Text");t.input="".concat(o).concat(n).concat(l)}else if(-1!==i.findIndex((function(e){return e==c[a].type})))return u=c[a].getAsFile(),"break"},p=0;case 20:if(!(p<c.length)){a.next=27;break}if("break"===d(p))return a.abrupt("break",27);a.next=24;break;case 24:p++,a.next=20;break;case 27:if(u){a.next=29;break}return a.abrupt("return");case 29:if(3<u.size/1024/1024)return t.$message.error("图片大小不能超过 3MB!"),a.abrupt("return");a.next=32;break;case 32:return a.next=34,t.httpupLoad(u);case 34:if("error"!==(m=a.sent)){a.next=39;break}t.$message.error("图片上传失败,请稍后重试!"),a.next=46;break;case 39:if("token"===m)return a.next=42,t.logout();a.next=44;break;case 42:a.next=46;break;case 44:m.name,f=m.url,t.input="".concat(o,"<img style='display: inline-block;max-width: 50%;' src='").concat(f,"'/>").concat(l);case 46:case"end":return a.stop()}}),a)})))()},httpupLoad:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise((function(a,n){var r=t,i=new FormData;i.append("image",e),i.append("token",Object(s.c)()),axios.post("".concat(r.imgAPI,"admin/uploadimg"),i).then((function(e){var t,i;e&&e.data&&200===e.status?(t=(e=e.data).code,e=e.data,0===t?(i=(e=e[0]).url,e=e.name,a({url:"".concat(r.imgAPI,"storage/").concat(i),name:e})):a(100<=t&&t<=104?"token":"error")):n()})).catch((function(e){n()}))})));case 1:case"end":return a.stop()}}),a)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,a=e.$refs.txt1.innerHTML,!a){t.next=12;break}if(2e3<a.length)return e.$message.warning("评论文字及图片总长度不能超过2000!"),e.loading=!1,t.abrupt("return");t.next=8;break;case 8:e.loading=!1,e.$emit("submit",{id:e.id,input:a}),t.next=14;break;case 12:e.$message.warning("评论内容不能为空"),e.loading=!1;case 14:case"end":return t.stop()}}),t)})))()}}},a("9693"),a=a("2877"),a=Object(a.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"comModule"},[t("div",{ref:"txt1",staticClass:"comment",attrs:{id:"txt1",contenteditable:!0},domProps:{innerHTML:e._s(e.input)},on:{paste:e.handlePaste}}),t("div",{staticStyle:{padding:"10px 0 0 0"}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("提交")]),t("el-button",{attrs:{plain:"",size:"mini"},on:{click:function(t){return e.$emit("cancel")}}},[e._v("取消")])],1)])}),[],!1,null,"62bd8b8a",null);t.a=a.exports},a36b:function(e,t,a){e.exports=a.p+"static/img/404.a57b6f31.png"},a404:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var n="1"},a56b:function(e,t,a){e.exports=a.p+"static/img/loginlan.1ecbd4ab.png"},a6e7:function(e,t,a){"use strict";a("de32")},ad7c:function(e,t,a){"use strict";a("850c")},b0f3:function(e,t,a){},b346:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("a9e3"),a("1b69")),s={list:function(e,t){return Object(i.a)("admin/loglist",e,"post",t)}},o=a("f5ed"),l=a("2f62"),c=a("9f53");o={name:"oplog",mixins:[o.a,c.a],computed:Object(r.a)(Object(r.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"oplog"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{role:"",action:"",event:"",startTime:"",endTime:"",name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"name",label:"账号"},{prop:"rolename",label:"角色"},{prop:"info",label:"模块"},{prop:"url",label:"事件"},{prop:"addtime",label:"操作时间",sortable:!0}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={role:"",action:"",event:"",startTime:"",endTime:"",name:"",page:1,size:15},this.searchList()},timeReturned:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==e.startTime?t.parmValue.startTime=e.startTime:t.parmValue.startTime="",""!==e.endTime?t.parmValue.endTime=e.endTime:t.parmValue.endTime="",""!==t.parmValue.startTime&&""!==t.parmValue.endTime)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},changeStatus:function(e,t){var a=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={roleid:e,status:"1"===t?"0":"1"},n.next=3,s.delete(r);case 3:if(0!==(i=n.sent).code){n.next=9;break}a.$notify.success({title:"状态修改成功",message:""}),a.searchList(),n.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return n.next=12,a.logout();n.next=14;break;case 12:n.next=15;break;case 14:a.$message.warning(i.message);case 15:case"end":return n.stop()}}),n)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.list(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=9;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=16;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},c=a("2877"),r=Object(c.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"oplog pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",[a("el-col",{staticStyle:{padding:"0 0 10px 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"160px"},attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"用户角色"},model:{value:e.parmValue.role,callback:function(t){e.$set(e.parmValue,"role",t)},expression:"parmValue.role"}})],1),a("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-input",{attrs:{maxlength:40,size:e.searchSize,placeholder:"模块名称"},model:{value:e.parmValue.action,callback:function(t){e.$set(e.parmValue,"action",t)},expression:"parmValue.action"}})],1),a("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-input",{attrs:{maxlength:40,size:e.searchSize,placeholder:"操作事件"},model:{value:e.parmValue.event,callback:function(t){e.$set(e.parmValue,"event",t)},expression:"parmValue.event"}})],1),a("el-col",{staticClass:"fr",staticStyle:{width:"54px"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"322px","padding-right":"0"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.startTime,end:e.parmValue.endTime,type:1,width:"145px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)],1)]}}],null,!1,502036115)}):a("no-auth")],1)}),[],!1,null,"44f5de22",null);t.default=r.exports},b36d:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=(a("96cf"),a("b0c0"),a("21fa")),i=a("6bd2"),s=a("cdf1"),o=a("9f53");s={components:{iconDialog:s.default},mixins:[o.a],props:["showModel","id","isDetail","parentIds","level","isAdd","type","formData"],data:function(){return{loading:!1,showIconModel:!1,title:"",btnList:i.a,showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入按钮标识编码(用于判断按钮是否显示)",trigger:"change"}],img:[{required:!0,message:"请选择图标",trigger:"blur"}],route:[{required:!0,message:"请输入路由",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],component:[{required:!0,message:"请输入页面组件路径",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],weight:[{required:!0,message:"请输入权重,数值越大排名越靠前",trigger:"blur"}],is_show:[{required:!0,message:"请选择状态",trigger:"change"}],is_display:[{required:!0,message:"请选择页面状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{codeChange:function(e){for(var t=0;t<this.btnList.length;t++)if(this.btnList[t].code===e){this.ruleForm.name=this.btnList[t].name;break}},setVal:function(e){this.ruleForm.img=e,this.$refs.ruleForm.validateField("img")},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isAdd)return 1===e.level?e.title="添加一级菜单":2===e.level?e.title="添加二级菜单":e.title="添加按钮",e.loading=!1,e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=8;break;case 6:t.next=11;break;case 8:return e.isDetail?(1===e.level?e.title="一级菜单详情":2===e.level?e.title="二级菜单详情":e.title="按钮详情",e.rulesThis={}):(1===e.level?e.title="修改一级菜单":2===e.level?e.title="修改二级菜单":e.title="修改按钮",e.rulesThis=e.rules),t.next=11,e.initData();case 11:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r,i,s,o,l,c,u,d,p,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,a="",a=e.isAdd&&0===e.id?"0":e.parentIds,m=e.formData,n=m.menu_name,r=m.menu_img,i=m.menu_route,s=m.is_show,o=m.weight,l=m.status,c=m.menu_url,u=m.menuid,d=m.action_name,p=m.action_code,m=m.is_display,3!==e.level?(e.ruleForm={parentId:e.id+"",parentIds:a+"",name:n+"",code:"",img:r+"",route:i+"",component:1===e.level?"":c+"",menuCategory:"1",type:e.type+"",is_show:s+"",is_display:m+"",weight:parseInt(o+"")},1===e.level&&delete e.ruleForm.parentIds):e.ruleForm={parentId:e.id+"",parentIds:u+"",name:d+"",code:p+"",img:"",route:"",component:"",menuCategory:"2",type:e.type+"",is_show:l+"",weight:"1"},e.loading=!1,t.next=8,e.$nextTick((function(){e.$refs.ruleForm&&e.$refs.ruleForm.clearValidate()}));case 8:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="",a=e.isAdd&&0===e.id?"0":e.parentIds,e.ruleForm={parentId:e.id,parentIds:a,name:"",code:"",img:"",route:"",component:"",menuCategory:e.level<3?1:2,type:e.type+"",is_show:"1",is_display:"1",weight:1},t.next=5,e.$nextTick((function(){e.$refs.ruleForm&&e.$refs.ruleForm.clearValidate()}));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return",!1);t.next=2;break;case 2:return e.loading=!0,t.next=5,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var n,i,s,o,l,c,u,d,p,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=41;break}if(n={},i={},d=e.ruleForm,p=d.name,m=d.img,s=d.route,o=d.is_show,l=d.is_display,c=d.weight,u=d.component,d=d.code,n={id:e.id,pid:e.parentIds,menuid:e.parentIds,name:p,img:m,is_show:o,weight:c,route:s,is_display:l,url:u,action_code:d,status:o},1===e.level?(delete n.pid,delete n.menuid,delete n.url,delete n.action_code,delete n.status):2===e.level?(delete n.menuid,delete n.action_code,delete n.status):(delete n.pid,delete n.img,delete n.is_show,delete n.weight,delete n.route,delete n.is_display,delete n.url),e.isAdd&&delete n.id,e.level<3)return t.next=10,r.a.update(n);t.next=13;break;case 10:i=t.sent,t.next=22;break;case 13:if(e.isAdd)return t.next=16,r.a.actionadd(n);t.next=19;break;case 16:i=t.sent,t.next=22;break;case 19:return t.next=21,r.a.actionedit(n);case 21:i=t.sent;case 22:if(e.loading=!1,!i||0!==i.code){t.next=33;break}e.ruleForm={},p=e.isAdd?"添加成功":"修改成功",e.$notify.success({title:p,message:""}),e.showModelThis=!1,m=e.parentIds,0===e.id&&(m="0"),e.$emit("refresh",e.id,m,e.level),t.next=39;break;case 33:if(i&&100<=i.code&&i.code<=104)return t.next=36,e.logout();t.next=38;break;case 36:t.next=39;break;case 38:e.$message.warning(i.message);case 39:t.next=43;break;case 41:return e.loading=!1,t.abrupt("return",!1);case 43:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 5:case"end":return t.stop()}}),t)})))()}}},a("77c8"),o=a("2877"),a=Object(o.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[a("el-card",{staticStyle:{"margin-top":"-20px"}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"is_show-icon":"",rules:e.rulesThis,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[e.level<3?a("el-form-item",{attrs:{label:"名称:",prop:"name"}},[a("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:用户管理"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1):e._e(),3===e.level?a("el-form-item",{attrs:{label:"按钮标识:",prop:"code"}},[a("el-select",{attrs:{placeholder:"请选择按钮标识",clearable:"",filterable:"",disabled:e.isDetail},on:{change:e.codeChange},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}},e._l(e.btnList,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1):e._e(),a("el-row",[e.level<3?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"路由:",prop:"route"}},[a("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:user"},model:{value:e.ruleForm.route,callback:function(t){e.$set(e.ruleForm,"route",t)},expression:"ruleForm.route"}})],1)],1):e._e(),e.level<3?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"图标:",prop:"img"}},[a("el-row",{attrs:{gutter:10}},[e.ruleForm.img?a("el-col",{staticStyle:{width:"45px"},attrs:{span:3}},[a("div",{staticClass:"g-block",on:{click:function(t){e.showIconModel=!0}}},[a("i",{class:e.ruleForm.img})])]):e._e(),e.ruleForm.img?e._e():a("el-col",{attrs:{span:7}},[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){e.showIconModel=!0}}},[e._v(" 选择图标 ")])],1)],1),a("iconDialog",{attrs:{"show-model":e.showIconModel},on:{setVal:e.setVal,cancel:function(t){e.showIconModel=!1}}})],1)],1):e._e()],1),2===e.level?a("el-form-item",{attrs:{label:"页面路径:",prop:"component"}},[a("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:park/user"},model:{value:e.ruleForm.component,callback:function(t){e.$set(e.ruleForm,"component",t)},expression:"ruleForm.component"}},[a("template",{slot:"prepend"},[e._v("views/")])],2)],1):e._e(),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"状态:",prop:"is_show"}},[a("el-radio",{attrs:{label:"1",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 启用 ")]),a("el-radio",{attrs:{label:"0",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 禁用 ")])],1)],1),a("el-col",{attrs:{span:12}},[e.level<3?a("el-form-item",{attrs:{label:"页面状态:",prop:"is_display"}},[a("el-radio",{attrs:{label:"1",disabled:e.isDetail},model:{value:e.ruleForm.is_display,callback:function(t){e.$set(e.ruleForm,"is_display",t)},expression:"ruleForm.is_display"}},[e._v(" 显示 ")]),a("el-radio",{attrs:{label:"0",disabled:e.isDetail},model:{value:e.ruleForm.is_display,callback:function(t){e.$set(e.ruleForm,"is_display",t)},expression:"ruleForm.is_display"}},[e._v(" 隐藏 ")])],1):e._e()],1)],1),e.level<3?a("el-form-item",{attrs:{label:"排序权重:",prop:"weight"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0"},attrs:{span:16}},[a("el-input",{attrs:{type:"number",disabled:e.isDetail},model:{value:e.ruleForm.weight,callback:function(t){e.$set(e.ruleForm,"weight",e._n(t))},expression:"ruleForm.weight"}})],1),a("el-col",{attrs:{span:7}},[a("el-tag",{attrs:{type:"danger"}},[e._v("数值越大排名越靠前")])],1)],1)],1):e._e()],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right",padding:"0 0 10px 0"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)}),[],!1,null,"0c7bc033",null);t.default=a.exports},baa6:function(e,t,a){e.exports=a.p+"static/img/developing.750f7ed1.jpg"},bc0b:function(e,t,a){},c420:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("ade3"),i=a("5530"),s=(a("96cf"),a("7db0"),a("d3b7"),a("a9e3"),a("f5ed")),o=a("1fd2"),l=a("6d88"),c=a("1842"),u=a("0ee5"),d=a("2f62"),p=a("9f53");l={name:"Account",components:{addEdit:l.default,resetPassword:c.default},mixins:[s.a,p.a],computed:Object(i.a)(Object(i.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"account"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:u.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(r.a)(e,"tableData",[]),Object(r.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(r.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(r.a)(e,"columns",[{prop:"nickname",label:"真实姓名",width:"110px"},{prop:"role_name",label:"角色名称",width:"110px"},{prop:"mobile",label:"联系电话",width:"110px"},{prop:"depart_info",label:"所在部门",_slot_:"depart_info"},{prop:"email",label:"邮箱"},{prop:"status",label:"状态",_slot_:"status",width:"70px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"140px",_slot_:"operation"}]),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={name:"",username:"",status:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},openPasswordModal:function(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},deleteById:function(e,t){var a=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={id:e,status:"1"===t?"0":"1"},n.next=3,o.a.status(r);case 3:if(!(i=n.sent)||0!==i.code){n.next=9;break}a.$notify.success({title:"删除成功",message:""}),a.searchList(),n.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return n.next=12,a.logout();n.next=14;break;case 12:n.next=15;break;case 14:a.$message.warning(i.message);case 15:case"end":return n.stop()}}),n)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.a.list(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=9;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=16;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var a=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a.loading=!0,r={id:e,status:"1"===t?"0":"1"},n.next=4,o.a.status(r);case 4:if((i=n.sent)&&0===i.code)return a.loading=!1,a.$notify.success({title:"状态修改成功!",message:""}),n.next=10,a.searchList();n.next=12;break;case 10:n.next=18;break;case 12:if(i&&100<=i.code&&i.code<=104)return n.next=15,a.logout();n.next=17;break;case 15:n.next=18;break;case 17:a.$message.warning(i.message);case 18:case"end":return n.stop()}}),n)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()}}},a("91a0"),c=a("2877"),s=Object(c.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"账号状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return a("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"150px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"业务员姓名"},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),a("el-col",{staticStyle:{width:"160px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"手机号"},model:{value:e.parmValue.username,callback:function(t){e.$set(e.parmValue,"username",t)},expression:"parmValue.username"}})],1),a("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1)],1)]}},{key:"depart_info",fn:function(t){return t=t.scope,e._l(t.row.depart_info,(function(t,n){return a("el-tag",{key:t+n,staticStyle:{margin:"0 3px 0 0"},attrs:{size:e.tablebtnSize,type:"''"}},[e._l(t,(function(t,r){return a("span",{key:t+n+r},[a("span",{directives:[{name:"show",rawName:"v-show",value:0<r,expression:"cindex > 0"}]},[e._v("/")]),a("span",[e._v(e._s(t))])])})),e._v(" "+e._s(t.name))],2)}))}},{key:"status",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==n.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var n=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(n.row.id,!0,n.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(n.row.id,!1,n.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===n.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(n.row.id,n.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===n.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(n.row.id,n.row.status)}}})]):e._e()]}}],null,!1,3886604445)}):e._e(),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),a("reset-password",{attrs:{id:e.passwordModelId,"show-model":e.passwordModel,"is-detail":e.isPasswordDetail},on:{refresh:e.searchList,cancel:function(t){e.passwordModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"26cd4d8e",null);t.default=s.exports},c444:function(e,t,a){"use strict";var n=a("1da1"),r=(a("d3b7"),a("159b"),a("96cf"),a("1920")),i={name:"selectHandlerModel",props:["showModel","id","type"],mixins:[a("9f53").a],data:function(){return this.$createElement,{listData:[],leftChecked:[],rightChecked:[],checkedValue:[],renderFunc:function(e,t){return e("span",[t.label])},loading:!1,showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{itemidChange:function(e){this.ruleForm.itemid=e,this.$refs.ruleForm.validateField("itemid")},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.getAlluser();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},getAlluser:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.listData=[],t.next=3,r.a.allUser({});case 3:if((a=t.sent)&&0===a.code)return n=a.data,i=[],n.forEach((function(e){e={key:e.id,label:e.nickname},i.push(e)})),e.listData=i,t.next=11,e.getMuser();t.next=13;break;case 11:t.next=19;break;case 13:if(a&&100<=a.code&&a.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(a.message);case 19:case"end":return t.stop()}}),t)})))()},getMuser:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.checkedValue=[],t.next=3,r.a.MUser({company_id:e.type});case 3:if(i=t.sent,a=i.code,n=i.data,i=i.message,0!==a){t.next=10;break}s=n,e.listData.forEach((function(t){s.forEach((function(a){t.key===a.manange_id&&e.checkedValue.push(t.key)}))})),t.next=16;break;case 10:if(100<=a&&a<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(i);case 16:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,i,s,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,a={company_id:e.type,id:e.checkedValue},t.next=4,r.a.MUpdate(a);case 4:if(a=t.sent,n=a.code,i=a.data,s=a.message,e.loading=!1,!a||0!==a.code){t.next=13;break}e.$notify.success({title:"设置成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=26;break;case 13:if(10002!==n){t.next=20;break}o="<ul>",i.forEach((function(e){o+="<li>".concat(e.manange_name,"</li>")})),o+="</ul>",e.$notify({title:s||"",dangerouslyUseHTMLString:!0,message:o}),t.next=26;break;case 20:if(100<=n&&n<=104)return t.next=23,e.logout();t.next=25;break;case 23:t.next=26;break;case 25:e.$message.warning(s);case 26:case"end":return t.stop()}}),t)})))()}}};a("5f10"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"设置处理人",center:!0,align:"left",top:"5vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-transfer",{staticStyle:{"text-align":"left",width:"100%",height:"500px"},attrs:{filterable:"","filter-placeholder":"搜索人名","left-default-checked":e.leftChecked,"right-default-checked":e.rightChecked,"render-content":e.renderFunc,titles:["未选择","已选择"],format:{noChecked:"${total}",hasChecked:"${checked}/${total}"},data:e.listData},on:{change:e.handleChange},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}})],1),t("el-col",{staticClass:"tr",staticStyle:{padding:"15px 0 0 0"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("确 定")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v("取 消")])],1)],1)],1)],1)}),[],!1,null,"7025fef0",null);t.a=a.exports},cafe:function(e,t,a){},cdf1:function(e,t,a){"use strict";a.r(t);var n={props:["showModel"],data:function(){return{loading:!1,icon:"",showModelThis:this.showModel}},watch:{icon:function(e){e&&(this.showModelThis=!1,this.$emit("setVal",e))},showModel:function(e){this.showModelThis=e},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){}}};a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"选择图标",center:!0,align:"left",top:"7vh",width:"840px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("icon-list",{model:{value:e.icon,callback:function(t){e.icon=t},expression:"icon"}})],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("取 消")])],1)],1)],1)],1)}),[],!1,null,null,null);t.default=a.exports},ce32:function(e,t,a){},d4aa:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("a9e3"),a("f291")),s=a("88ec"),o=a("0ee5"),l=a("e66a"),c=a("f5ed"),u=a("9f53"),d=a("2f62");c={name:"role",mixins:[c.a,u.a],components:{addEdit:i.default},computed:Object(r.a)(Object(r.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"role"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e=this;return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],authOptions:[{id:"1",label:"管理员"},{id:"2",label:"非管理员"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"role_name",label:"角色名称"},{prop:"level",label:"角色等级",_format_:function(t){return(e.authOptions.find((function(e){return e.id==t.level}))||{}).label}},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={status:"",level:"",role_name:"",page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},changeStatus:function(e,t){var a=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={roleid:e,status:"1"===t?"0":"1"},n.next=3,s.a.status(r);case 3:if(!(i=n.sent)||0!==i.code){n.next=9;break}a.$notify.success({title:"状态修改成功",message:""}),a.searchList(),n.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return n.next=12,a.logout();n.next=14;break;case 12:n.next=15;break;case 14:a.$message.warning(i.message);case 15:case"end":return n.stop()}}),n)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.list(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=9;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=16;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},u=a("2877"),i=Object(u.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"role pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",[a("el-col",{staticStyle:{padding:"0 0 0 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:3}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"角色状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return a("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"130px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",placeholder:"角色等级"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.level,callback:function(t){e.$set(e.parmValue,"level",t)},expression:"parmValue.level"}},e._l(e.roleLevel,(function(e){return a("el-option",{key:"ruleid"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"150px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"角色名称"},model:{value:e.parmValue.role_name,callback:function(t){e.$set(e.parmValue,"role_name",t)},expression:"parmValue.role_name"}})],1),a("el-col",{staticStyle:{width:"54px"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==n.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var n=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(n.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(n.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===n.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(n.row.id,n.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===n.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(n.row.id,n.row.status)}}})]):e._e()]}}],null,!1,2871923126)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"6a3ba93c",null);t.default=i.exports},d668:function(e,t,a){"use strict";a.r(t);var n=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"developing"},[e("img",{attrs:{src:a("baa6"),alt:""}})])}],r={name:"developing"},i=(a("df37"),a("2877"));i=Object(i.a)(r,(function(){this.$createElement;return this._self._c,this._m(0)}),n,!1,null,"71020079",null);t.default=i.exports},dd1d:function(e,t,a){"use strict";a("83c2")},de32:function(e,t,a){},df37:function(e,t,a){"use strict";a("30a4")},e66a:function(e,t,a){"use strict";t.a=[{name:"管理员",code:"1"},{name:"非管理员",code:"2"}]},e894:function(e,t,a){"use strict";a("44e6")},ebdd:function(e,t,a){"use strict";a("7a70")},ec65:function(e,t,a){},ed2b:function(e,t,a){"use strict";var n=a("1da1"),r=(a("96cf"),a("4d63"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("e9c4"),a("5319"),a("1920")),i=a("9f53"),s=a("432e");i={name:"adjust",props:["showModel","id","isDetail","type"],mixins:[i.a],components:{TinymceEditor:s.a},data:function(){return{loading:!1,organizeList:[],showModelThis:this.showModel,ruleForm:{title:"",company_type:this.type,model_id:[],remark:"",noteNo:""},rulesThis:this.rules,rules:{title:[{required:!0,message:"请输入标题",trigger:"blur"}],noteNo:[{required:!1,validator:function(e,t,a){""===t?a():new RegExp("[\\u4E00-\\u9FFF]+","g").test(t)?a(new Error("业务编号不能输入汉字!")):function(e){for(var t=0;t<e.length;t++){var a=e.charCodeAt(t);if(55296<=a&&a<=56319){if(1<e.length){var n=1024*(a-55296)+(e.charCodeAt(t+1)-56320)+65536;if(118784<=n&&n<=128895)return 1}}else if(1<e.length){if(8419==e.charCodeAt(t+1))return 1}else{if(8448<=a&&a<=10239)return 1;if(11013<=a&&a<=11015)return 1;if(10548<=a&&a<=10549)return 1;if(12951<=a&&a<=12953)return 1;if(169==a||174==a||12349==a||12336==a||11093==a||11036==a||11035==a||11088==a)return 1}}}(t)?a(new Error("业务编号不能输入表情包!")):a()},trigger:"blur"}],model_id:[{type:"array",required:!0,message:"请选择功能区",trigger:"change"}],remark:[{required:!0,message:"请输入描述",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},mounted:function(){},methods:{initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={title:"",company_type:e.type,noteNo:"",model_id:[],remark:'<h4>【故障现象描述:】</h4>\n<p style="font-size: 12px;">必填 Ctrl+V粘贴截图</p>\n<h4>【期望结果描述:】</h4>\n<p style="font-size: 12px;">必填 Ctrl+V粘贴截图</p>'})}));case 2:case"end":return t.stop()}}),t)})))()},goods_class_change:function(e){this.ruleForm.model_id=e,this.$refs.ruleForm.validateField("model_id")},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var n,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=30;break}if(e.loading=!0,n=JSON.parse(JSON.stringify(e.ruleForm)),i=(i=(i=n.remark).replace(/\n/g,"")).replace(/"/g,"'"),n.remark=i,5e3<n.remark.length)return e.$message.warning("描述文字及标签总长度不能超过5000!"),e.loading=!1,t.abrupt("return");t.next=12;break;case 12:return t.next=14,r.a.add(n);case 14:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=22;break}e.$notify.success({title:"添加成功",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},tinput:function(e){this.ruleForm.remark=e||"",this.$refs.ruleForm.validateField("remark")}}},a("9291"),s=a("2877"),a=Object(s.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"新建需求",center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"0px"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"title"}},[t("el-input",{attrs:{maxlength:"250",size:"medium",placeholder:"标题",disabled:e.isDetail},model:{value:e.ruleForm.title,callback:function(t){e.$set(e.ruleForm,"title",t)},expression:"ruleForm.title"}})],1)],1),"2"!==e.type?t("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:12}},[t("el-form-item",{attrs:{prop:"model_id"}},[t("good-class",{attrs:{value:e.ruleForm.model_id,size:"medium",disabled:e.isDetail,type:e.type,placeholder:"功能区"},on:{handleChange:e.goods_class_change}})],1)],1):e._e(),t("el-col",{style:{paddingLeft:"2"!==e.type?"0px":"10px"},attrs:{span:"2"!==e.type?24:12}},[t("el-form-item",{attrs:{prop:"noteNo"}},[t("el-input",{attrs:{maxlength:"250",size:"medium",placeholder:"业务编号",disabled:e.isDetail},model:{value:e.ruleForm.noteNo,callback:function(t){e.$set(e.ruleForm,"noteNo",t)},expression:"ruleForm.noteNo"}})],1)],1),e.loading?e._e():t("el-col",{attrs:{span:24}},[t("TinymceEditor",{ref:"tinymceEditor",attrs:{tinymceHtml:e.ruleForm.remark},on:{input:e.tinput}})],1)],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 0 0"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"061697dd",null);t.a=a.exports},ee5c:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("fb6a"),a("b0c0"),a("99af"),a("e9c4"),a("d81d"),a("f5ed")),s=a("2623"),o=a("9cd7"),l=a("0ee5"),c=a("2f62"),u=a("9f53");o={name:"organize",components:{addEdit:o.default},mixins:[i.a,u.a],computed:Object(r.a)(Object(r.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"organize"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{titleList:[],sitem:null,statusList:l.a,loading:!0,showModel:!1,showInterface:!1,isDetail:!1,isAdd:!0,level:1,modelId:0,formData:{},parentIds:"",parmValue:{pid:"",name:"",nickname:""},depart:[],item:[],passwordModel:!1,passwordModelId:0}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={pid:"",name:"",nickname:""},this.searchList()},changeBreadcrumb:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e+1===t.titleList.length)return a.abrupt("return");a.next=4;break;case 4:t.parmValue.pid=t.titleList[e].id,t.titleList=t.titleList.slice(0,e+1);case 6:return 1===t.titleList.length&&(t.titleList=[]),a.next=9,t.searchList();case 9:case"end":return a.stop()}}),a)})))()},openChildren:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.pid=e.id,n={id:e.id,titleName:e.name},0===t.titleList.length&&t.titleList.push({id:"",titleName:"全部组织"}),t.titleList.push(n),a.next=6,t.searchList();case 6:case"end":return a.stop()}}),a)})))()},openModal:function(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},openPasswordModal:function(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},setUpEdit:function(e,t){var a=this;return Object(n.a)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("1"===t)return r={id:e,position:"2"},n.next=4,s.a.userp(r);n.next=19;break;case 4:if((i=n.sent)&&0===i.code)return a.$notify.success({title:"设置成功!",message:""}),n.next=9,a.searchList();n.next=11;break;case 9:n.next=17;break;case 11:if(i&&100<=i.code&&i.code<=104)return n.next=14,a.logout();n.next=16;break;case 14:n.next=17;break;case 16:a.$message.warning(i.message);case 17:n.next=20;break;case 19:a.$message.warning("该账户已是部门负责人!");case 20:case"end":return n.stop()}}),n)})))()},addEditFn:function(e,t,a,n,r,i){this.showModel=!0,this.modelId=e,this.level=a,this.parentIds=t,this.isDetail=n,this.isAdd=r,this.formData=i},setstatus:function(e,t,a,r){var i=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,i.$confirm("确定要".concat("0"===r?"启用":"禁用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={id:e,status:"1"===r?"0":"1"},t.next=3,s.a.status(a);case 3:if((n=t.sent)&&0===n.code)return i.$notify.success({title:"修改成功!",message:""}),t.next=8,i.searchList();t.next=10;break;case 8:t.next=16;break;case 10:if(n&&100<=n.code&&n.code<=104)return t.next=13,i.logout();t.next=15;break;case 13:t.next=16;break;case 15:i.$message.warning(n.message);case 16:case"end":return t.stop()}}),t)})))).catch((function(){}));case 3:case"end":return t.stop()}}),t)})))()},del:function(e,t,a,r){var i=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,i.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={id:e},t.next=3,s.a.delete(a);case 3:if((n=t.sent)&&0===n.code)return i.$notify.success({title:"删除成功!",message:""}),t.next=8,i.searchList();t.next=10;break;case 8:t.next=13;break;case 10:if(n&&100<=n.code&&n.code<=104)return t.next=13,i.logout();t.next=13;break;case 13:case"end":return t.stop()}}),t)})))).catch((function(){}));case 3:case"end":return t.stop()}}),t)})))()},concatData:function(e,t,a){var r=this;return Object(n.a)(regeneratorRuntime.mark((function n(){var i,o,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r.loading=!0,n.next=3,s.a.list({});case 3:if(i=n.sent,o=[],!i||0!==i.code||!i.data){n.next=9;break}o=i.data,n.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return n.next=12,r.logout();n.next=14;break;case 12:n.next=15;break;case 14:r.$message.warning(i.message);case 15:l=(l=JSON.parse(JSON.stringify(r.depart))).map((function(n,r){return(1===a?e:t===n.id)&&(n.child=o[r].child),n})),r.depart=l,r.loading=!1;case 19:case"end":return n.stop()}}),n)})))()},deleteById:function(e,t){var a=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={id:e,status:"1"===t?"0":"1"},n.next=3,s.a.status(r);case 3:if(!(i=n.sent)||0!==i.code){n.next=9;break}a.$notify.success({title:"删除成功",message:""}),a.searchList(),n.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return n.next=12,a.logout();n.next=14;break;case 12:n.next=15;break;case 14:a.$message.warning(i.message);case 15:case"end":return n.stop()}}),n)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.list(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=10;break}r=a.data,n=r.depart,r=r.item,e.depart=n,e.item=r,t.next=17;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.depart=[],e.item=[];case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var a=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a.loading=!0,r={id:e,status:"1"===t?"0":"1"},n.next=4,s.a.status(r);case 4:if((i=n.sent)&&0===i.code)return a.loading=!1,a.$notify.success({title:"状态修改成功!",message:""}),n.next=10,a.searchList();n.next=12;break;case 10:n.next=18;break;case 12:if(i&&100<=i.code&&i.code<=104)return n.next=15,a.logout();n.next=17;break;case 15:n.next=18;break;case 17:a.$message.warning(i.message);case 18:case"end":return n.stop()}}),n)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()}}},a("f513"),i=a("2877"),u=Object(i.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"organize pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{padding:"12px 0 15px 0"},attrs:{span:24}},[a("div",{staticClass:"my-breadcrumb clear"},e._l(e.titleList,(function(t,n){return a("div",{key:t+n,staticClass:"my-breadcrumb-item",class:{chover:!0},on:{click:function(t){return e.changeBreadcrumb(n)}}},[a("span",{staticClass:"label"},[e._v(e._s(t.titleName))]),n+1!==e.titleList.length?a("span",{staticClass:"separator"},[e._v("/")]):e._e()])})),0)]),a("el-col",{attrs:{span:24}},[a("el-row",{staticStyle:{padding:"0 0 3px 0"}},[a("el-col",{staticStyle:{width:"200px"},attrs:{span:8}},[a("el-input",{attrs:{placeholder:"部门名称",size:e.searchSize},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),a("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:8}},[a("el-input",{attrs:{placeholder:"员工姓名",size:e.searchSize},model:{value:e.parmValue.nickname,callback:function(t){e.$set(e.parmValue,"nickname",t)},expression:"parmValue.nickname"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),e.powers.some((function(e){return"003"==e}))?a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.addEditFn(0,e.parmValue&&""!==e.parmValue.pid?e.parmValue.pid:"0",1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e()],1)],1)],1)],1)],1),a("el-row",{attrs:{gutter:10}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("el-col",{attrs:{span:24}},[a("organize-tree",{staticStyle:{"margin-left":"-5px"},attrs:{list:e.depart,level:1,pid:0},on:{addEdit:e.addEditFn,openChildren:e.openChildren,status:e.setstatus,del:e.del}}),a("staff-tree",{staticStyle:{"margin-left":"-5px"},attrs:{list:e.item,level:1,pid:0},on:{setUpEdit:e.setUpEdit}})],1):e._e(),e.item&&0===e.item.length&&e.depart&&0===e.depart.length?a("div",{staticClass:"no-data"},[e._v(" 暂无数据 ")]):e._e()],1),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,level:e.level,pid:e.parentIds,"is-add":e.isAdd,"form-data":e.formData,type:e.parmValue.type,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"6d477f8f",null);t.default=u.exports},ef3c:function(e,t,a){"use strict";a.r(t),a("ac1f"),a("5319");var n={created:function(){var e=this.$route,t=e.params;e=e.query,t=t.path;this.$router.replace({path:"/welcome/dashboard"+t,query:e})},render:function(e){return e()}};a=a("2877"),a=Object(a.a)(n,void 0,void 0,!1,null,null,null);t.default=a.exports},efa6:function(e,t,a){},f17f:function(e,t,a){},f291:function(e,t,a){"use strict";a.r(t);var n=a("2909"),r=a("1da1"),i=(a("96cf"),a("4de4"),a("d3b7"),a("c740"),a("159b"),a("a434"),a("e9c4"),a("d81d"),a("88ec")),s=a("e66a"),o=a("61f7"),l={name:"Role",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data:function(){return{loading:!1,title:"添加角色",private_data:[],showModelThis:this.showModel,roleLevel:s.a,ruleForm:{role_name:"",level:"1"},action_data:[],action:[],roleActive:{rules:[]},roleList:[],ruleList:[],dataList:[],actionList:[],rulesThis:this.rules,rules:{role_name:[{required:!0,validator:function(e,t,a){""===t?a(new Error("角色名称不能为空!")):t.lenght<2||10<t.lenght||!Object(o.d)(t)||Object(o.e)(t)?a(new Error("角色名称规则为2~10位汉字!")):a()},trigger:"blur"}],level:[{required:!0,message:"请选择角色等级",trigger:"change"}]}}},computed:{indeterminateCheck:function(){return function(e){var t=e.action.filter((function(t){return-1<e.checkList.findIndex((function(e){return e===t.id}))})).length,a=e.action.filter((function(t){return-1==e.checkList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<a}},indeterminateField:function(){return function(e){var t=e.action_data.filter((function(t){return-1<e.fieldList.findIndex((function(e){return e===t.id}))})).length,a=e.action_data.filter((function(t){return-1==e.fieldList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<a}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{handleCheckAllChange:function(e,t,a,n){var r=this;this.actionList[t].child[n].checkAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[n].action.forEach((function(a){var i=r.actionList[t].child[n].checkList.findIndex((function(e){return e===a.id}));e&&-1==i?r.actionList[t].child[n].checkList.push(a.id):!e&&-1<i&&r.actionList[t].child[n].checkList.splice(i,1)}))},handleFieldAllChange:function(e,t,a,n){var r=this;this.actionList[t].child[n].fieldAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[n].action_data.forEach((function(a){var i=r.actionList[t].child[n].fieldList.findIndex((function(e){return e===a.id}));e&&-1==i?r.actionList[t].child[n].fieldList.push(a.id):!e&&-1<i&&r.actionList[t].child[n].fieldList.splice(i,1)}))},handleCheckedGroupChange:function(e,t,a,n){var r=this;this.actionList[t].child[n].checkAll=this.actionList[t].child[n].action.every((function(e){return-1<r.actionList[t].child[n].checkList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,a)},handleFieldGroupChange:function(e,t,a,n){var r=this;this.actionList[t].child[n].fieldAll=this.actionList[t].child[n].action_data.every((function(e){return-1<r.actionList[t].child[n].fieldList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,a)},handleCheckedChange:function(e,t,a,n,r){e?-1==this.actionList[a].child[n].checkList.indexOf(t)&&this.actionList[a].child[n].checkList.push(t):(-1<(e=this.actionList[a].child[n].checkList.findIndex((function(e){return e==t})))&&this.actionList[a].child[n].checkList.splice(e,1),this.actionList[a].child[n].checkAll=!1),this.$set(this.actionList,a,r)},handleFieldChange:function(e,t,a,n,r){e?-1==this.actionList[a].child[n].fieldList.indexOf(t)&&this.actionList[a].child[n].fieldList.push(t):(-1<(e=this.actionList[a].child[n].fieldList.findIndex((function(e){return e==t})))&&this.actionList[a].child[n].fieldList.splice(e,1),this.actionList[a].child[n].fieldAll=!1),this.$set(this.actionList,a,r)},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.title="添加角色",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=11;break;case 6:return t.next=8,e.initActionList();case 8:e.loading=!1,t.next=19;break;case 11:return e.isDetail?(e.title="角色",e.rulesThis={}):(e.title="修改角色",e.rulesThis=e.rules),t.next=14,e.resetForm();case 14:return t.next=16,e.initActionList();case 16:return t.next=18,e.initData();case 18:e.loading=!1;case 19:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({roleid:e.id});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=15;break}n=a.data,(e.ruleForm=n).action&&0<n.action.length?e.action=n.action:e.action=[],n.action_data&&0<n.action_data.length?e.action_data=n.action_data:e.action_data=[],""===n.private_data&&(n.private_data=[]),n.private_data&&0<n.private_data.length?e.private_data=n.private_data:e.private_data=[],(n=JSON.parse(JSON.stringify(e.actionList))).map((function(t){return t.child&&0<t.child.length&&t.child.map((function(t){var a;return t.action&&0<t.action.length&&(t.action.map((function(a){var n=e.action.findIndex((function(e){return e===a.id}));return-1!==n&&t.checkList.push(e.action[n]),a})),t.action.length===t.checkList.length&&(t.checkAll=!0)),t.action_data&&0<t.action_data.length&&(t.action_data.map((function(a){var n=e.action_data.findIndex((function(e){return e===a.id}));return-1!==n&&t.fieldList.push(e.action_data[n]),a})),t.action_data.length===t.fieldList.length&&(t.fieldAll=!0)),t.private&&2===t.private.length?(a=e.private_data.findIndex((function(e){return e===t.id})),t.is_private_change=-1!==a?"1":"0"):t.is_private_change="0",t})),t})),e.actionList=n,t.next=21;break;case 15:if(a&&100<=a.code&&a.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(a.message);case 21:case"end":return t.stop()}}),t)})))()},initActionList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.actionList({});case 2:if(!(a=t.sent)||0!==a.code){t.next=10;break}n=a.data,n=(n=n.filter((function(e){return e.child&&0<e.child.length}))).map((function(e){return e.child.map((function(e){return e.checkAll=!1,e.checkList=[],e.fieldAll=!1,e.fieldList=[],(e.is_private_change="0")===e.is_private?e.private=[]:e.private=[{id:"0",label:"公有数据"},{id:"1",label:"私有数据"}],e})),e})),e.actionList=n,t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={role_name:"",level:"1"})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,s,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=38;break}if(e.action_data=[],e.action=[],r=[],e.actionList.forEach((function(t){t.child.forEach((function(t){var a;(a=e.action_data).push.apply(a,Object(n.a)(t.fieldList)),(a=e.action).push.apply(a,Object(n.a)(t.checkList)),"1"===t.is_private_change&&r.push(t.id)}))})),0!==e.action.length){t.next=9;break}e.$message.warning("请选择功能!"),t.next=36;break;case 9:if(e.loading=!0,s={roleid:e.id,role_name:e.ruleForm.role_name,level:e.ruleForm.level,action:e.action,action_data:e.action_data,private_data:r},o={},"add"===e.id)return delete s.roleid,t.next=16,i.a.add(s);t.next=19;break;case 16:o=t.sent,t.next=22;break;case 19:return t.next=21,i.a.update(s);case 21:o=t.sent;case 22:if(e.loading=!1,!o||0!==o.code){t.next=30;break}l="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:l,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=36;break;case 30:if(o&&100<=o.code&&o.code<=104)return t.next=33,e.logout();t.next=35;break;case 33:t.next=36;break;case 35:e.$message.warning(o.message);case 36:t.next=40;break;case 38:return t.abrupt("return",!1);case 40:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("0e4b"),a=a("2877"),a=Object(a.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[a("el-card",{staticStyle:{"margin-top":"-20px"}},[a("el-row",{attrs:{gutter:10}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色名称",prop:"role_name"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.role_name,callback:function(t){e.$set(e.ruleForm,"role_name",t)},expression:"ruleForm.role_name"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色等级",prop:"level"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:e.isDetail,placeholder:"请选择角色等级"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.roleLevel,(function(e){return a("el-option",{key:"ruleid"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1)],1),a("div",{staticClass:"quanxian-main"},[a("div",{staticClass:"quanxian-title"},[a("span",{staticStyle:{color:"#ff8888"}},[e._v("*")]),a("span",{staticStyle:{"font-size":"14px",color:"#606266","line-height":"40px",padding:"0 12px 0 0","font-weight":"700"}},[e._v("功能权限")])]),a("div",{staticClass:"rule-view"},[a("div",{staticClass:"rule-list"},e._l(e.actionList,(function(t,n){return a("el-row",{key:"menu"+t.id+n},[t.child&&0<t.child.length?a("el-col",{staticClass:"ffff",attrs:{span:24}},[a("div",{staticClass:"ftitle"},[a("span",[e._v(e._s(t.menu_name))])]),a("div",{staticClass:"fbody"},e._l(t.child,(function(r,i){return a("div",{key:"yemian"+r.id+i,staticClass:"fbody-item"},[r.action&&0===r.action.length&&r.action_data&&0===r.action_data.length?e._e():[a("div",{staticClass:"stitle"},[a("span",{staticClass:"_h2"},[e._v(e._s(r.menu_name))]),r&&r.private&&2===r.private.length?a("el-radio-group",{staticStyle:{margin:"0 0 0 20px"},attrs:{size:"mini",disabled:e.isDetail},model:{value:r.is_private_change,callback:function(t){e.$set(r,"is_private_change",t)},expression:"subItem.is_private_change"}},e._l(r.private,(function(t,n){return a("el-radio-button",{key:t.label+n,attrs:{disabled:e.isDetail,label:t.id}},[e._v(e._s(t.label))])})),1):e._e()],1),r.action&&0<r.action.length?a("div",{staticClass:"scheck"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:e.isDetail,indeterminate:e.indeterminateCheck(r)},on:{change:function(a){return e.handleCheckAllChange(a,n,t,i)}},model:{value:r.checkAll,callback:function(t){e.$set(r,"checkAll",t)},expression:"subItem.checkAll"}},[e._v("功能全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:e.isDetail},on:{change:function(a){return e.handleCheckedGroupChange(a,n,t,i)}},model:{value:r.checkList,callback:function(t){e.$set(r,"checkList",t)},expression:"subItem.checkList"}},[e._l(r.action,(function(r){return[a("el-checkbox",{key:"checkItem"+r.id,attrs:{disabled:e.isDetail,label:r.id},on:{change:function(a){return e.handleCheckedChange(a,r.id,n,i,t)}}},[e._v(e._s(r.action_name))])]}))],2)],1)]):e._e(),r.action_data&&0<r.action_data.length?a("div",{staticClass:"sfield"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:e.isDetail,indeterminate:e.indeterminateField(r)},on:{change:function(a){return e.handleFieldAllChange(a,n,t,i)}},model:{value:r.fieldAll,callback:function(t){e.$set(r,"fieldAll",t)},expression:"subItem.fieldAll"}},[e._v("字段全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:e.isDetail},on:{change:function(a){return e.handleFieldGroupChange(a,n,t,i)}},model:{value:r.fieldList,callback:function(t){e.$set(r,"fieldList",t)},expression:"subItem.fieldList"}},[e._l(r.action_data,(function(r){return[a("el-checkbox",{key:"FieldItem"+r.id,attrs:{label:r.id,disabled:e.isDetail},on:{change:function(a){return e.handleFieldChange(a,r.id,n,i,t)}}},[e._v(e._s(r.field_name))])]}))],2)],1)]):e._e()]],2)})),0)]):e._e()],1)})),1)])])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"d7be86b2",null);t.default=a.exports},f513:function(e,t,a){"use strict";a("51ec")},f5ed:function(e,t,a){"use strict";var n=a("1da1");a("96cf"),t.a={methods:{handlePageChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=e,t.pageInfo.curr=e,a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},handleSizeChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=1,t.pageInfo.curr=1,t.pageInfo.size=e,t.parmValue.size=e,a.next=6,t.searchList();case 6:case"end":return a.stop()}}),a)})))()}}}},f8b2:function(e,t,a){e.exports=a.p+"static/img/loading.190c78aa.gif"},f8b26:function(e,t,a){},fbe2:function(e,t,a){"use strict";a("b0f3")},feca:function(e,t,a){var n={"./dashboard/index.vue":"9406","./developing/index.vue":"d668","./error-page/404.vue":"1db4","./interest/account/addEdit.vue":"6d88","./interest/account/index.vue":"c420","./interest/account/resetPassword.vue":"1842","./interest/action/index.vue":"7914","./interest/organize/addEdit.vue":"9cd7","./interest/organize/index.vue":"ee5c","./interest/role/addEdit.vue":"f291","./interest/role/index.vue":"d4aa","./loadingPage/index.vue":"7e10","./login/forget-password.vue":"43b9","./login/index.vue":"9ed6","./orderUi/orderUiIndex/detail.vue":"7a8b","./orderUi/orderUiIndex/index.vue":"02b4","./purchaseAndSale/adjust/detail.vue":"3991","./purchaseAndSale/adjust/index.vue":"2f76","./redirect/index.vue":"ef3c","./system/menuOperator/addEdit.vue":"b36d","./system/menuOperator/iconDialog.vue":"cdf1","./system/menuOperator/index.vue":"5de4","./system/oplog/index.vue":"b346","./system/updates/index.vue":"5e53","./yunshu/yunshuIndex/detail.vue":"2f45","./yunshu/yunshuIndex/index.vue":"43a2"};function r(e){return e=i(e),a(e)}function i(e){if(a.o(n,e))return n[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}r.keys=function(){return Object.keys(n)},r.resolve=i,(e.exports=r).id="feca"},ff1f:function(e,t,a){e.exports=a.p+"static/img/welcome.6cf0f25b.gif"}}]);