1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2f0202e0"],{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)}}},"1c93":function(e,t,a){},2995:function(e,t,a){"use strict";a("ba13")},"32f2":function(e,t,a){},3712:function(e,t,a){},"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")),l=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;height:100px} *{margin:0;font-size:12px}",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(l.c)()),axios.post("".concat(i.a.baseURL,"admin/uploadimg"),r).then((function(e){var r,l;e&&e.data&&200===e.status?(r=(e=e.data).code,e=e.data,0===r?(l=(e=e[0]).url,e.name,t("".concat(i.a.baseURL,"storage/").concat(l)),n(100)):a(100<=r&&r<=104?"登录信息已失效,请重新登录!":"出现未知问题,刷新页面,或者联系程序员!")):a("出现未知问题,刷新页面,或者联系程序员")})).catch((function(e){reject()}))}}}},watch:{tinymceHtml:{handler:function(e,t){this.value=e},immediate:!0,deep:!0}},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,"575de402",null);t.a=a.exports},"4f5b":function(e,t,a){"use strict";a.d(t,"a",(function(){return m})),a.d(t,"i",(function(){return n})),a.d(t,"j",(function(){return r})),a.d(t,"f",(function(){return i})),a.d(t,"k",(function(){return l})),a.d(t,"c",(function(){return s})),a.d(t,"h",(function(){return p})),a.d(t,"d",(function(){return o})),a.d(t,"e",(function(){return u})),a.d(t,"b",(function(){return c})),a.d(t,"g",(function(){return d}));var n=[{value:"0",label:"待分配"},{value:"1",label:"进行中"},{value:"2",label:"待测试"},{value:"3",label:"测试中"},{value:"5",label:"已关闭"},{value:"4",label:"已拒绝"},{value:"6",label:"延后处理"},{value:"8",label:"未关闭的"},{value:"10",label:"我处理过的"},{value:"11",label:"到我处理的"}],r=[{value:"0",label:"待分配"},{value:"1",label:"进行中"},{value:"2",label:"待测试"},{value:"3",label:"测试中"},{value:"5",label:"已关闭"},{value:"4",label:"已拒绝"},{value:"6",label:"延后处理"}],i=[{value:"1",label:"高",type:"danger",color:"#F56C6C"},{value:"2",label:"中",type:"info",color:"#909399"},{value:"3",label:"低",type:"success",color:"#67C23A"}],l=[{value:"0",label:"缺陷(Bug)",textLabel:"缺陷"},{value:"1",label:"任务(Task)",textLabel:"任务"},{value:"2",label:"需求(Story)",textLabel:"需求"}],o=[{value:"1",label:"采销平台"},{value:"2",label:"结算平台"}],s=[{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:"company_type",label:"系统类型",_slot_:"company_type",width:"85px"},{prop:"deal_name",label:"处理人",width:"70px"},{prop:"title",label:"标题","min-width":"140px"},{prop:"noteNo",label:"业务编号","min-width":"100px"},{prop:"apply_name",label:"申请人",width:"70px"},{prop:"company_name",label:"申请人部门",width:"135px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50"}],c=[{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:"company_type",label:"系统类型",_slot_:"company_type",width:"85px"},{prop:"title",label:"标题","min-width":"140px"},{prop:"noteNo",label:"业务编号","min-width":"100px"},{prop:"apply_name",label:"申请人",width:"70px"},{prop:"company_name",label:"申请人部门",width:"135px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50"}],u=[{prop:"bugNo",label:"工单编号",span:10},{prop:"apply_name",label:"创建人",span:6},{prop:"company_name",label:"创建部门",span:8},{prop:"title",label:"工单标题",span:24},{prop:"company_type",label:"系统类型",_slot_:"company_type",span:10},{prop:"can",label:"功能区",_slot_:"can",span:14},{prop:"noteNo",label:"业务编号",span:24},{prop:"remark",label:"工单描述",_slot_:"remark",span:24}],p=[{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"}],d={page:1,size:15,apply_name:"",title:"",type:"",level:"",bugNo:"",status:"",noteNo:"",company_type:"",deal_name:"",is_created:"",start:"",end:""},m={DashBoard:"DashBoard",Table:"Table"}},"8ee3":function(e,t,a){},"94c8":function(e,t,a){"use strict";a("32f2")},a769:function(e,t,a){"use strict";a("8ee3")},b5753:function(e,t,a){"use strict";a("1c93")},ba13:function(e,t,a){},ea93:function(e,t,a){"use strict";a("3712")},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)})))()}}}},f5ef:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("d3b7"),a("25f0"),a("e9c4"),a("96cf"),a("1920")),l=a("f5ed"),o=a("9f53"),s=(a("4d63"),a("ac1f"),a("2c3e"),a("00b4"),a("5319"),a("1276"),a("432e")),c=a("4f5b"),u=(s={name:"adjust",props:["showModel","id","isDetail","type"],mixins:[o.a],components:{TinymceEditor:s.a},data:function(){return{loading:!1,company_type:c.d,organizeList:[],showModelThis:this.showModel,ruleForm:{title:"",company_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"}],company_type:[{required:!0,message:"请选择系统类型",trigger:"change"}],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:"",noteNo:"",model_id:[],remark:'<div style="display: inline-block"><h4>【故障现象描述:】</h4>\n<p>必填 Ctrl+V粘贴截图</p>\n<h4>【期望结果描述:】</h4>\n<p>必填 Ctrl+V粘贴截图</p></div> '})}));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,r,l,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=33;break}if(e.loading=!0,n=JSON.parse(JSON.stringify(e.ruleForm)),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=12;break;case 12:return t.next=14,i.a.add(n);case 14:if(r=t.sent,l=r.code,r.data,o=r.message,e.loading=!1,0!==l){t.next=25;break}e.$notify.success({title:"工单添加成功",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=31;break;case 25:if(100<=l&&l<=104)return t.next=28,e.logout();t.next=30;break;case 28:t.next=31;break;case 30:e.$message.warning(o);case 31:t.next=35;break;case 33:return t.abrupt("return",!1);case 35:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},getimg:function(e){e.split("<img")},tinput:function(e){this.ruleForm.remark=e||"",this.$refs.ruleForm.validateField("remark")}}},a("a769"),a("2877")),p=(s=Object(u.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:"新建工单",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)","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-row",[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini","label-width":"90px",rules:e.rulesThis}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{prop:"title",label:"工单标题"}},[a("el-input",{attrs:{maxlength:"250",size:"mini",placeholder:"工单标题",disabled:e.isDetail},model:{value:e.ruleForm.title,callback:function(t){e.$set(e.ruleForm,"title",t)},expression:"ruleForm.title"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"company_type",label:"系统类型"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",clearable:"",placeholder:"系统类型"},model:{value:e.ruleForm.company_type,callback:function(t){e.$set(e.ruleForm,"company_type",t)},expression:"ruleForm.company_type"}},e._l(e.company_type,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value,clearable:""}})})),1)],1),a("el-form-item",{attrs:{prop:"model_id",label:"功能区"}},[a("good-class",{attrs:{value:e.ruleForm.model_id,size:"mini",disabled:""==e.ruleForm.company_type,type:e.ruleForm.company_type,placeholder:"功能区"},on:{handleChange:e.goods_class_change}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"noteNo",label:"业务编号"}},[a("el-input",{attrs:{maxlength:"250",size:"medium",type:"textarea",autosize:{minRows:3,maxRows:3},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():a("el-col",{attrs:{span:24}},[a("TinymceEditor",{ref:"tinymceEditor",attrs:{tinymceHtml:e.ruleForm.remark},on:{input:e.tinput}})],1)],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 0 0"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"7e1deb2e",null).exports,a("2f62")),d={name:"SwitchModeButton",props:["mode"],computed:{innerMode:{get:function(){return this.mode},set:function(e){this.$emit("update:mode",e)}}},data:function(){return{ListMode:c.a}},methods:{}},m=(d=(a("94c8"),Object(u.a)(d,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"switch_warpper"},[t("div",{class:"mode__item "+(e.innerMode===e.ListMode.Table?"active":""),on:{click:function(){return e.innerMode=e.ListMode.Table}}},[t("i",{staticClass:"el-icon-s-operation"})]),t("div",{class:"mode__item "+(e.innerMode===e.ListMode.DashBoard?"active":""),on:{click:function(){return e.innerMode=e.ListMode.DashBoard}}},[t("i",{staticClass:"el-icon-menu"})])])}),[],!1,null,"39d71274",null).exports),a("a9e3"),{name:"adjust",mixins:[l.a,o.a],components:{addEdit:s},computed:Object(r.a)(Object(r.a)({},Object(p.b)(["tablebtnSize","searchSize","size","level"])),{},{powers:function(){return this.$store.getters.btnList}}),data:function(){return{select:"1",input:"",type:1,company_type:c.d,seachStatus:c.i,statusOptions:c.j,levelOptions:c.f,typeOptions:c.k,columns:c.c,Pcolumns:c.b,showModel1:!1,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0}}},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},searchList:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,r,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.loading=!0,a.next=3,i.a.list(e);case 3:if(r=a.sent,n=r.code,l=r.data,r.message,0!==n){a.next=13;break}r=l.list,l=l.count,t.tableData=r,t.$emit("getTotal",Number(l)),a.next=20;break;case 13:if(100<=n&&n<=104)return a.next=16,t.logout();a.next=18;break;case 16:a.next=20;break;case 18:t.tableData=[],t.pageInfo.total=0;case 20:t.loading=!1;case 21:case"end":return a.stop()}}),a)})))()}}}),f=(m=(a("ea93"),Object(u.a)(m,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"adjust"},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:"1"===e.level?e.columns:e.Pcolumns},on:{"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:"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:"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:"company_type",fn:function(t){var n=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.type?"success":""},domProps:{textContent:e._s((e.company_type.find((function(e){return e.value==n.row.company_type}))||{}).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[a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter("detail",n.row.id)}}})])]}}])}),a("add-edit",{attrs:{"show-model":e.showModel,type:e.type},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"b6628490",null).exports),a("ade3")),h=(a("c740"),a("b64b"),a("7db0"),a("99af"),a("a434"),a("159b"),a("1980")),b=(h={name:"adjust",mixins:[l.a,o.a],components:{addEdit:s,draggable:a.n(h).a},computed:Object(r.a)(Object(r.a)({},Object(p.b)(["tablebtnSize","searchSize","size","level"])),{},{powers:function(){return this.$store.getters.btnList},dragOptions:function(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}}),data:function(){return{drag:!1,select:"1",input:"",type:1,company_type:c.d,seachStatus:c.i,statusOptions:c.j,levelOptions:c.f,typeOptions:c.k,columns:c.c,Pcolumns:c.b,showModel1:!1,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0}}},methods:(h={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("暂未找到相关流程!")},handleEnd:function(e){this.drag=!1},hadnleChange:function(e){var t,a,n=this;e=e.added;e&&(t=e.element,e=e.newIndex,-1!==(a=Object.keys(this.tableData).findIndex((function(e){return!!n.tableData[e].find((function(e){return e.bugNo===t.bugNo}))})))&&this.onUpdateStatus(t,a,t.status,e))}},Object(f.a)(h,"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("暂未找到相关流程!")})),Object(f.a)(h,"onUpdateStatus",(function(e,t,a,r){var l=this;return Object(n.a)(regeneratorRuntime.mark((function n(){var o,s,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=JSON.parse(JSON.stringify(e)),o=JSON.parse(JSON.stringify(l.tableData)),s.status=String(t),delete s.can,delete s.company_name,n.prev=5,n.next=8,i.a.update({bugNo:s.bugNo,company_type:s.company_type,deal_id:s.deal_id,id:s.id,model_id:Array.isArray(s.model_id)?s.model_id:[s.model_id],level:s.level,noteNo:s.noteNo,remark:s.remark,status:s.status,title:s.title,type:s.type});case 8:s=n.sent,u=s.code,n.t0=Number(u),n.next=0===n.t0?13:15;break;case 13:return o[t][r].status=t,n.abrupt("break",19);case 15:return l.$message.error("".concat(e.bugNo,' 状态由"').concat(c.j.find((function(e){return e.value===String(a)})).label,'"更新至"').concat(c.j.find((function(e){return e.value===String(t)})).label,'"失败')),o[t].splice(r,1),o[a].push(e),n.abrupt("break",19);case 19:l.tableData=o,n.next=28;break;case 22:n.prev=22,n.t1=n.catch(5),l.$message.error("".concat(e.bugNo,' 状态由"').concat(c.j.find((function(e){return e.value===String(a)})).label,'"更新至"').concat(c.j.find((function(e){return e.value===String(t)})).label,'"失败')),o[t].splice(r,1),o[a].push(e),l.tableData=o;case 28:case"end":return n.stop()}}),n,null,[[5,22]])})))()})),Object(f.a)(h,"openModal",(function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t})),Object(f.a)(h,"setData",(function(e){e.setData("Text","")})),Object(f.a)(h,"searchList",(function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,l,o,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.loading=!0,a.next=3,i.a.list(e);case 3:if(l=a.sent,n=l.code,o=l.data,l.message,0!==n){a.next=15;break}l=o.list,o=o.count,s=c.j.reduce((function(e,t){return Object(r.a)(Object(r.a)({},e),{},Object(f.a)({},String(t.value),[]))}),{}),l.forEach((function(e){var t=String(e.status);s[t]||(s[t]=[]),s[t].push(e)})),t.tableData=s,t.$emit("getTotal",Number(o)),a.next=22;break;case 15:if(100<=n&&n<=104)return a.next=18,t.logout();a.next=20;break;case 18:a.next=22;break;case 20:t.tableData=[],t.pageInfo.total=0;case 22:t.loading=!1;case 23:case"end":return a.stop()}}),a)})))()})),h)},h=(a("2995"),Object(u.a)(h,(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:"status-warpper"},e._l(e.statusOptions,(function(t){return a("div",{key:t.value,class:"status-item "+("6"===t.value?"last":"")},[a("div",{staticClass:"status-item__header"},[a("p",{staticStyle:{color:"#303133","font-weight":"700",height:"20px","line-height":"20px","font-size":"15px"}},[e._v(" "+e._s(t.label)+" · "+e._s(e.tableData[t.value]?e.tableData[t.value].length:0)+" ")]),"6"!==t.value?a("i",{staticClass:"el-icon-arrow-left"}):e._e()]),"1"===e.level?[a("draggable",e._b({staticClass:"board-column-content",attrs:{tag:"div",group:"corse"},on:{change:e.hadnleChange,start:function(t){e.drag=!0},end:e.handleEnd},model:{value:e.tableData[t.value],callback:function(a){e.$set(e.tableData,t.value,a)},expression:"tableData[item.value]"}},"draggable",e.dragOptions,!1),[a("transition-group",{attrs:{type:"transition",name:e.drag?null:"flip-list"}},e._l(e.tableData[t.value],(function(t,n){return a("div",{key:n,staticClass:"drag-item",on:{click:function(a){return e.getRouter("detail",t.id)}}},[a("div",{staticClass:"drag-item__header"},[a("div",{staticClass:"tag"},[e._v(" "+e._s(e.typeOptions[t.type].textLabel)+" ")]),a("div",{staticClass:"bugNo"},[e._v(" "+e._s(t.bugNo)+" ")])]),a("div",{staticStyle:{"font-size":"13px","text-align":"justify","line-height":"18px",margin:"8px 0px",color:"#000"}},[e._v(" "+e._s(t.title)+" ")]),a("div",{staticClass:"drag-item__footer"},[a("el-tooltip",{attrs:{content:"优先级 : "+e.levelOptions.find((function(e){return e.value===t.level})).label}},[a("p",{style:"color:"+e.levelOptions.find((function(e){return e.value===t.level})).color},[e._v(" "+e._s(e.levelOptions.find((function(e){return e.value===t.level})).label)+" ")])]),a("el-tooltip",{attrs:{content:"创建人 : "+t.apply_name}},[a("p",{staticClass:"name"},[e._v(e._s(t.apply_name))])])],1)])})),0)],1)]:e._l(e.tableData[t.value],(function(t,n){return a("div",{key:n,staticClass:"drag-item",on:{click:function(a){return e.getRouter("detail",t.id)}}},[a("div",{staticClass:"drag-item__header"},[a("div",{staticClass:"tag"},[e._v(" "+e._s(e.typeOptions[t.type].textLabel)+" ")]),a("div",{staticClass:"bugNo"},[e._v(" "+e._s(t.bugNo)+" ")])]),a("h3",{staticStyle:{"font-size":"13px","text-align":"justify","line-height":"18px",margin:"8px 0px",color:"#000"}},[e._v(" "+e._s(t.title)+" ")]),a("div",{staticClass:"drag-item__footer"},[a("el-tooltip",{attrs:{content:"优先级 : "+e.levelOptions.find((function(e){return e.value===t.level})).label}},[a("p",{style:"color:"+e.levelOptions.find((function(e){return e.value===t.level})).color},[e._v(" "+e._s(e.levelOptions.find((function(e){return e.value===t.level})).label)+" ")])]),a("el-tooltip",{attrs:{content:"创建人 : "+t.apply_name}},[a("p",{staticClass:"name"},[e._v(e._s(t.apply_name))])])],1)])}))],2)})),0)}),[],!1,null,"600e4e83",null).exports),a("3452")),g=a.n(b),v=(b=a("f121"),a.n(b));b={name:"adjust",mixins:[l.a,o.a],components:{addEdit:s,SwitchMode:d,TableMode:m,DashboardMode:h},computed:Object(r.a)(Object(r.a)({},Object(p.b)(["tablebtnSize","searchSize","size","level"])),{},{powers:function(){return this.$store.getters.btnList}}),data:function(){return{ListMode:c.a,currentMode:c.a.Table,select:"1",input:"",type:1,company_type:c.d,seachStatus:c.i,statusOptions:c.j,levelOptions:c.f,typeOptions:c.k,columns:c.c,Pcolumns:c.b,showModel1:!1,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0}}},watch:{currentMode:function(){var e=this;this.$nextTick((function(){return e.searchList()}))}},mounted:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.restSearch(1),(i=e.$route.query.back)&&(e.parmValue=JSON.parse(i),i=e.parmValue,a=i.page,n=i.size,r=i.select,i=i.input,e.select=r||"",e.input=i||"",delete e.parmValue.select,delete e.parmValue.input,e.pageInfo={size:n,curr:a,total:0}),e.$route.query.t)return t.next=6,e.analysisToken();t.next=8;break;case 6:return t.next=8,e.setcode();case 8:e.searchList();case 9:case"end":return t.stop()}}),t)})))()},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)})))()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},analysisToken: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=g.a.enc.Base64.parse(e.$route.query.t).toString(g.a.enc.Utf8),a=g.a.AES.decrypt(a,v.a.secretKey).toString(g.a.enc.Utf8),a=JSON.parse(a),a=a.token,t.next=6,e.$store.dispatch("user/loginByToken",a);case 6:return t.next=8,e.$store.dispatch("user/UserInfor",{});case 8:case"end":return t.stop()}}),t)})))()},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("暂未找到相关流程!")},restSearch:function(e){this.pageInfo={size:15,curr:1,total:0},this.parmValue=Object(r.a)({},c.g),1!==e&&this.searchList()},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(){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: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:"",e.parmValue.is_created=e.level+""=="1"?"0":"1",e.$refs[e.currentMode]&&e.$refs[e.currentMode].searchList(e.parmValue);case 10:case"end":return t.stop()}}),t)})))()}}},a("b5753"),l=Object(u.a)(b,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("el-row",[a("el-col",{staticStyle:{width:"180px"},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:"420px",padding:"0 0 0 10px"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"188px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"130px",float:"right"},attrs:{span:6}},[a("div",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),a("el-button",{attrs:{size:e.searchSize,type:"success"},on:{click:function(t){e.showModel=!0}}},[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("1"===e.level?e.seachStatus:e.statusOptions,(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.company_type,callback:function(t){e.$set(e.parmValue,"company_type",t)},expression:"parmValue.company_type"}},e._l(e.company_type,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value,clearable:""}})})),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"}}),"1"==e.level?a("el-option",{attrs:{label:"处理人",value:"4"}}):e._e()],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"001"==e}))?a("el-col",{staticStyle:{width:"75px",float:"right"},attrs:{span:3}},[a("div",{staticStyle:{"margin-right":"10px"}},[a("SwitchMode",{attrs:{mode:e.currentMode},on:{"update:mode":function(t){e.currentMode=t}}})],1)]):e._e()],1),e.currentMode===e.ListMode.Table?[a("TableMode",{ref:"Table",on:{getTotal:function(t){return e.pageInfo.total=t}}})]:e._e(),e.currentMode===e.ListMode.DashBoard?[a("DashboardMode",{ref:"DashBoard",on:{getTotal:function(t){return e.pageInfo.total=t}}})]:e._e(),a("div",{staticStyle:{width:"100%",display:"flex","justify-content":"flex-end","margin-top":"10px"}},[a("el-pagination",{attrs:{background:"","current-page":e.pageInfo.curr,"page-sizes":[15,50,100],"page-size":e.pageInfo.size,layout:"total, sizes, prev, pager, next, jumper",total:e.pageInfo.total},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1),a("add-edit",{attrs:{"show-model":e.showModel,type:e.type},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],2)}),[],!1,null,"1279f407",null);t.default=l.exports}}]);
|