1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6abe6977"],{"158b":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=a("5530"),i=(a("96cf"),a("d3b7"),a("3ca3"),a("ddb0"),a("159b"),a("a9e3"),a("e9c4"),a("ac1f"),a("5319"),a("2f62")),o=a("9f53"),s=a("1920"),l=a("f5ed"),c=(a("466d"),{name:"contrastModel",props:["showModel","id","sitem"],components:{"el-image-viewer":function(){return Promise.all([a.e("chunk-elementUI"),a.e("chunk-75cf006e")]).then(a.bind(null,"08a9"))}},data:function(){return{showViewer:!1,srcListView:[],loading:!0,showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{imageChange:function(e){"IMG"!==e.target.nodeName&&"img"!==e.target.nodeName||(e=e.target.currentSrc,this.srcListView=[e],this.showViewer=!0)},closeViewer:function(){this.showViewer=!1},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(){}}}),u=a("2877"),d=(c=Object(u.a)(c,(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","custom-class":"contrastModel","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-image-viewer",{directives:[{name:"show",rawName:"v-show",value:e.showViewer,expression:"showViewer"}],attrs:{"on-close":e.closeViewer,"url-list":e.srcListView}}),t("el-row",{attrs:{gutter:10}},[t("el-col",{staticClass:"title",attrs:{span:24}},[t("el-row",[t("el-col",{staticClass:"tl",attrs:{span:12}},[t("span",[e._v("操作人:")]),e.sitem?t("span",[e._v(e._s(e.sitem.action_name))]):e._e()]),t("el-col",{staticClass:"tr",attrs:{span:12}},[t("span",[e._v("操作时间:")]),e.sitem?t("span",[e._v(e._s(e.sitem.addtime))]):e._e()])],1)],1),t("el-col",{attrs:{span:12}},[t("div",{staticClass:"contrast-title"},[e._v("操作前:")]),t("div",{ref:"contentfx",staticClass:"contrast-main",domProps:{innerHTML:e._s(e.x)},on:{click:function(t){return e.imageChange(t)}}})]),t("el-col",{attrs:{span:12}},[t("div",{staticClass:"contrast-title"},[e._v("操作后:")]),t("div",{ref:"contentfy",staticClass:"contrast-main",domProps:{innerHTML:e._s(e.y)},on:{click:function(t){return e.imageChange(t)}}})])],1)],1)],1)}),[],!1,null,"8d9d3e6c",null).exports,a("4f5b")),p=(l={name:"record",mixins:[l.a,o.a],props:["showModel","bugNo"],components:{contrastModel:c},watch:{showModel:function(e){(this.showModelThis=e)&&this.reloadList()},showModelThis:function(e){e||this.$emit("cancel")}},data:function(){return{loading:!0,showModelThis:this.showModel,showConModel:!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:d.h}},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.showConModel=!0},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.tableData=[],e.loading=!0,e.parmValue.bugNo=e.bugNo,t.next=5,s.a.MLogList(e.parmValue);case 5:if(n=t.sent,a=n.code,r=n.data,n.message,0!==a){t.next=16;break}n=r.list,r=r.count,e.tableData=n,e.tableData.forEach((function(e){e.type_name="1"===e.type?"新建":"编辑"})),e.pageInfo.total=Number(r),t.next=23;break;case 16:if(100<=a&&a<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=23;break;case 21:e.tableData=[],e.pageInfo.total=0;case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()}}},c=Object(u.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:"操作记录",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("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.showConModel,sitem:e.sitem},on:{cancel:function(t){e.showConModel=!1}}})],1)],1)}),[],!1,null,"b5703bbe",null).exports,a("fb6a"),a("b0c0"),a("99af"),a("c740"),a("5daa")),m=a("5f87"),b=(l={name:"comModule",mixins:[o.a],props:["id","value","bugNo"],data:function(){return{imgAPI:p.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,o,s,l,c,u,d,p,m,b;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e.preventDefault(),e.stopPropagation(),n=m=0,r=t.$refs.txt1.innerHTML||"",i=["image/jpg","image/png","image/jpeg"],b=r.length,n=window.getSelection().focusOffset<=window.getSelection().anchorOffset?(m=window.getSelection().focusOffset,window.getSelection().anchorOffset):(m=window.getSelection().anchorOffset,window.getSelection().focusOffset),s=o="",0!==m&&(o=r.slice(0,m)),n!==b&&(s=r.slice(n)),l=(e.clipboardData||window.clipboardData).items,c=null,l&&0!==l.length){a.next=18;break}return t.$message.error("当前浏览器不支持本地或请打开图片再复制"),a.abrupt("return");case 18:u=function(a){if("text/plain"===l[a].type){var n=(e.clipboardData||window.clipboardData).getData("Text");t.input="".concat(o).concat(n).concat(s)}else if(-1!==i.findIndex((function(e){return e==l[a].type})))return c=l[a].getAsFile(),"break"},d=0;case 20:if(!(d<l.length)){a.next=27;break}if("break"===u(d))return a.abrupt("break",27);a.next=24;break;case 24:d++,a.next=20;break;case 27:if(c){a.next=29;break}return a.abrupt("return");case 29:if(3<c.size/1024/1024)return t.$message.error("图片大小不能超过 3MB!"),a.abrupt("return");a.next=32;break;case 32:return a.next=34,t.httpupLoad(c);case 34:if("error"!==(p=a.sent)){a.next=39;break}t.$message.error("图片上传失败,请稍后重试!"),a.next=46;break;case 39:if("token"===p)return a.next=42,t.logout();a.next=44;break;case 42:a.next=46;break;case 44:m=p.name,b=p.url,t.input="".concat(o,"<img style='display: inline-block;height:40px;' name='").concat(m,"' src='").concat(b,"'/>").concat(s);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(m.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){t.next=15;break}if(e.loading=!0,a=e.$refs.txt1.innerHTML,!a){t.next=13;break}if(2e3<a.length)return e.$message.warning("评论文字及图片总长度不能超过2000!"),e.loading=!1,t.abrupt("return");t.next=9;break;case 9:return t.next=11,e.plunsubmit({id:e.id,input:a});case 11:t.next=15;break;case 13:e.$message.warning("评论内容不能为空"),e.loading=!1;case 15:case"end":return t.stop()}}),t)})))()},plunsubmit:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,r,i,o,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=e.id,r=e.input,r={id:n,talk_note:r,bugNo:t.bugNo},i={},"add"===n)return delete r.id,a.next=7,s.a.comAdd(r);a.next=10;break;case 7:i=a.sent,a.next=13;break;case 10:return a.next=12,s.a.comUpdate(r);case 12:i=a.sent;case 13:if(t.loading=!1,o=(l=i).code,l=l.message,0!==o){a.next=21;break}t.$notify.success({title:"add"===n?"回复添加成功!":"回复修改成功!",message:""}),t.$refs.txt1.innerHTML="",t.$emit("submit"),a.next=27;break;case 21:if(100<=o&&o<=104)return a.next=24,t.logout();a.next=26;break;case 24:a.next=27;break;case 26:t.$message.warning(l);case 27:case"end":return a.stop()}}),a)})))()}}},l=(a("185c"),Object(u.a)(l,(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-main"},[t("div",{staticClass:"comModule-title",staticStyle:{margin:"20px 0 0 0"}},[t("b",[e._v("在线回复")]),t("el-button",{staticClass:"fr",staticStyle:{margin:"9px 0 0 16px"},attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("提交")]),t("el-button",{staticClass:"fr",staticStyle:{margin:"9px 0 0 0px"},attrs:{plain:"",size:"mini"},on:{click:function(t){e.$refs.txt1.innerHTML=""}}},[e._v("重置")])],1),t("div",{staticClass:"comModule"},[t("div",{ref:"txt1",staticClass:"comment",attrs:{id:"txt1",contenteditable:!0,contenteditable:"",placeholder:"请输入回复: Ctrl+V可粘贴截图 "},domProps:{innerHTML:e._s(e.input)},on:{paste:e.handlePaste}})])])}),[],!1,null,"66a8a90d",null).exports),a("432e"));o={name:"adjustDetail",mixins:[o.a],components:{TinymceEditor:b.a,record:c,comModule:l,"el-image-viewer":function(){return Promise.all([a.e("chunk-elementUI"),a.e("chunk-75cf006e")]).then(a.bind(null,"08a9"))}},computed:Object(r.a)(Object(r.a)({},Object(i.b)(["tablebtnSize","searchSize","size","level"])),{},{powers:function(){return this.$store.getters.btnList}}),data:function(){return{showViewer:!1,srcListView:[],sitem:null,parmValue:{page:1,size:5,id:this.queryId,total:0},tableData:[],bugNo:"",statusOptions:d.j,levelOptions:d.f,typeOptions:d.k,detail_columns:d.e,company_type:d.d,type:1,userOptions:[],ruleForm:{},activeName:"1",newTime:"",showModel:!1,queryId:"",loading:!1,rulesThis:this.rules}},mounted:function(){this.queryId=this.$route.query.id,this.initForm()},methods:{imageChange:function(e){"IMG"!==e.target.nodeName&&"img"!==e.target.nodeName||(e=e.target.currentSrc,this.srcListView=[e],this.showViewer=!0)},closeViewer:function(){this.showViewer=!1},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=3,t.searchList();case 3: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()+""},plunsubmit: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,t.next=3,e.searchList();case 3:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r,i,o,l,c,u,d,p,m,b,f,g,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.detail({id:e.queryId});case 2:if(n=t.sent,a=n.code,h=n.data,n=n.message,0===a)return e.sitem=h,r=h.id,i=h.bugNo,o=h.title,l=h.company_type,c=h.level,u=h.type,d=h.remark,p=h.status,m=h.apply_name,b=h.model_id,f=h.deal_id,g=h.company_name,h=h.noteNo,e.bugNo=i,e.ruleForm={id:String(r),bugNo:String(i),title:String(o)||"",company_type:l,remark:d||"",status:String(p)||"",level:String(c)||"",type:String(u)||"",noteNo:String(h)||"",apply_name:String(m)||"",model_id:b||[],deal_id:f||"",company_name:String(g)||""},e.getNewTime(),t.next=14,e.getMuser();t.next=16;break;case 14:t.next=22;break;case 16:if(100<=a&&a<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=22;break;case 21:e.$message.warning(n);case 22:case"end":return t.stop()}}),t)})))()},getMuser: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.userOptions=[],t.next=3,s.a.allUser({level:"1"});case 3:if(r=t.sent,a=r.code,n=r.data,r=r.message,0!==a){t.next=12;break}n.forEach((function(t){t={value:t.id,label:t.nickname},e.userOptions.push(t)})),t.next=18;break;case 12:if(100<=a&&a<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(r);case 18: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,s.a.cloudlist(e.parmValue);case 3:if(n=t.sent,a=n.code,r=n.data,n.message,0!==a){t.next=14;break}n=r.list,r=r.count,n.forEach((function(e){e.edit=!1})),e.tableData=n,e.parmValue.total=Number(r),t.next=21;break;case 14:if(100<=a&&a<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.parmValue.total=0;case 21: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,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=35;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,s.a.update(n);case 16:if(r=t.sent,i=r.code,r.data,o=r.message,0===i)return e.$notify.success({title:"修改成功",message:""}),t.next=24,e.initForm();t.next=26;break;case 24:t.next=32;break;case 26:if(100<=i&&i<=104)return t.next=29,e.logout();t.next=31;break;case 29:t.next=32;break;case 31:e.$message.warning(o);case 32:e.loading=!1,t.next=37;break;case 35:return t.abrupt("return",!1);case 37:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("980c"),b=Object(u.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"adjustDetail pagePadding clear"},[a("el-image-viewer",{directives:[{name:"show",rawName:"v-show",value:e.showViewer,expression:"showViewer"}],attrs:{"on-close":e.closeViewer,"url-list":e.srcListView}}),a("div",{staticClass:"left"},[""!==e.newTime?a("show-data-table",{staticStyle:{margin:"0",padding:"0"},attrs:{sitem:e.sitem,newTime:e.newTime,columns:e.detail_columns,border:""}},[a("template",{slot:"company_type"},[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.company_type.find((function(t){return t.id==e.sitem.order_type}))||{}).label||"--")}})],1),a("template",{slot:"can"},[a("el-tag",{attrs:{size:"mini"}},e._l(e.sitem.can,(function(t,n){return a("span",{key:t.id+n},[e._v(e._s(0!==n?"/":"")+e._s(t.rename))])})),0)],1),a("template",{slot:"remark"},[a("div",{ref:"contentf",staticClass:"remark",domProps:{innerHTML:e._s(e.sitem.remark)},on:{click:function(t){return e.imageChange(t)}}})])],2):e._e(),a("div",{staticClass:"stockApply-com"},[a("div",{staticClass:"pinglun"},[a("div",{staticClass:"pinglun-title"},[e._v("回复记录")]),5<e.parmValue.total?a("div",{staticClass:"my-page fr"},[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()]),a("div",{staticClass:"tableData"},e._l(e.tableData,(function(t,n){return a("div",{key:t.talk_note+"key",staticClass:"tableData-main clear"},[a("div",{staticClass:"tableData-title"},[a("div",{staticClass:"label"},[a("div",{staticClass:"user"},[e._v(e._s(t.talk_name))]),a("div",{staticClass:"time"},[e._v(e._s(t.addtime))])])]),a("div",{staticClass:"tableData-talk_note",style:{borderLeft:n+1===e.tableData.length?"2px solid transparent":"2px solid #e4e7ed"}},[a("div",{staticClass:"dian-mian fl"},[a("div",{staticClass:"dian"}),n+1===e.tableData.length?a("div",{staticClass:"dian-zhe"}):e._e()]),a("div",{ref:"contentff",refInFor:!0,staticClass:"talk-note-main",domProps:{innerHTML:e._s(t.talk_note)},on:{click:function(t){return e.imageChange(t)}}})])])})),0)])],1),a("div",{staticClass:"right"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("div",{staticClass:"title border"},[a("b",[e._v("状态信息")]),e.powers.some((function(e){return"002"==e}))?a("el-button",{staticClass:"fr",staticStyle:{margin:"6px 0 0 12px"},attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保存 ")]):e._e(),e.powers.some((function(e){return"002"==e}))?a("el-button",{staticClass:"fr",staticStyle:{margin:"6px 0 0 0"},attrs:{size:"mini",plain:""},on:{click:function(t){e.showModel=!0}}},[e._v("操作记录 ")]):e._e()],1),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,size:"mini","label-width":"80px",disabled:!e.powers.some((function(e){return"002"==e}))}},[a("el-form-item",{attrs:{label:"处理状态:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{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),"1"==e.level?a("el-form-item",{attrs:{label:"处理人:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",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)],1):e._e(),a("el-form-item",{attrs:{label:"优先级:"}},[a("el-select",{staticClass:"notshow",staticStyle:{width:"100%"},attrs:{size:"mini",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",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)],1)],1),e.powers.some((function(e){return"003"==e}))?a("comModule",{attrs:{id:"add",bugNo:e.bugNo},on:{submit:e.plunsubmit}}):e._e()],1),a("record",{attrs:{"show-model":e.showModel,bugNo:e.bugNo},on:{cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"a10e9c9c",null);t.default=b.exports},"185c":function(e,t,a){"use strict";a("8f88")},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)}}},"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")),o=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(o.c)()),axios.post("".concat(i.a.baseURL,"admin/uploadimg"),r).then((function(e){var r,o;e&&e.data&&200===e.status?(r=(e=e.data).code,e=e.data,0===r?(o=(e=e[0]).url,e.name,t("".concat(i.a.baseURL,"storage/").concat(o)),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 o})),a.d(t,"c",(function(){return l})),a.d(t,"h",(function(){return d})),a.d(t,"d",(function(){return s})),a.d(t,"e",(function(){return u})),a.d(t,"b",(function(){return c})),a.d(t,"g",(function(){return p}));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"}],o=[{value:"0",label:"缺陷(Bug)",textLabel:"缺陷"},{value:"1",label:"任务(Task)",textLabel:"任务"},{value:"2",label:"需求(Story)",textLabel:"需求"}],s=[{value:"1",label:"采销平台"},{value:"2",label:"结算平台"}],l=[{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}],d=[{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"}],p={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"}},"8f88":function(e,t,a){},"946b":function(e,t,a){},"980c":function(e,t,a){"use strict";a("946b")},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)})))()}}}}}]);
|