You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
29 KiB
1 lines
29 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8e1deeaa"],{1771:function(e,t,r){"use strict";r.d(t,"f",(function(){return c})),r.d(t,"c",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return f})),r.d(t,"e",(function(){return m}));r("caad"),r("d3b7"),r("ac1f"),r("8a79"),r("2532"),r("3ca3"),r("1276"),r("2ca0"),r("498a"),r("ddb0"),r("2b3d");var n=r("5530"),s=r("b85c"),a=r("c2cf"),o=r("ebb5"),i=void 0,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"authority";"string"===typeof e&&(e=[e]),e&&e.length>0&&a["a"].enums({codes:e},r).then((function(r){var n,a=r.data,o=Object(s["a"])(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;t[i]=a.data[i]}}catch(c){o.e(c)}finally{o.f()}}))},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(e,t,"authority")},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(e,t,"msgs")},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"===typeof e&&(e=[e]),e&&e.length>0&&o["a"].list({codes:e}).then((function(r){var n,a=r.data,o=Object(s["a"])(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;t[i]=a.data[i]}}catch(c){o.e(c)}finally{o.f()}}))},f=function(e){console.log(e,12);var t=e.data,r=t.type;if(r&&r.includes("application/json")){var n=new FileReader;n.onload=function(e){if(2===e.target.readyState){var t=JSON.parse(e.target.result);i.$message({message:t.msg,type:"warning"})}},n.readAsText(t)}else{var s=e.headers["content-disposition"],a="下载文件.zip";if(s)for(var o=s.split(";"),c=0;c<o.length;c++){var l=o[c];if(null!==l&&""!==l){var u=l.split("=");if(null!==u&&u.length>0&&"filename"===u[0].trim().toLowerCase()){a=decodeURI(u[1]);break}}}(a.startsWith("'")||a.startsWith('"'))&&(a.endsWith("'")||a.endsWith('"'))&&(a=a.substring(1,a.length-1));var d=new Blob([t]),f=document.createElement("a");f.href=window.URL.createObjectURL(d),f.download=a,f.click(),window.URL.revokeObjectURL(f.href)}},m=function(e){var t={size:10,current:1,sort:"id",order:"descending",model:{},map:{},timeRange:null};return e?Object(n["a"])(Object(n["a"])({},t),e):t}},"27ae":function(e,t,r){(function(r){var n,s;(function(t,r){e.exports=r(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof r?r:this,(function(r){"use strict";r=r||{};var a,o=r.Base64,i="2.6.4",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(c),u=String.fromCharCode,d=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},f=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,m=function(e){return e.replace(f,d)},g=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[c.charAt(r>>>18),c.charAt(r>>>12&63),t>=2?"=":c.charAt(r>>>6&63),t>=1?"=":c.charAt(63&r)];return n.join("")},p=r.btoa&&"function"==typeof r.btoa?function(e){return r.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,g)},b=function(e){return p(m(String(e)))},h=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},O=function(e,t){return t?h(b(e)):b(e)},v=function(e){return O(e,!0)};r.Uint8Array&&(a=function(e,t){for(var r="",n=0,s=e.length;n<s;n+=3){var a=e[n],o=e[n+1],i=e[n+2],l=a<<16|o<<8|i;r+=c.charAt(l>>>18)+c.charAt(l>>>12&63)+("undefined"!=typeof o?c.charAt(l>>>6&63):"=")+("undefined"!=typeof i?c.charAt(63&l):"=")}return t?h(r):r});var C,I=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,A=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return u(55296+(r>>>10))+u(56320+(1023&r));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},T=function(e){return e.replace(I,A)},j=function(e){var t=e.length,r=t%4,n=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),s=[u(n>>>16),u(n>>>8&255),u(255&n)];return s.length-=[0,0,2,1][r],s.join("")},y=r.atob&&"function"==typeof r.atob?function(e){return r.atob(e)}:function(e){return e.replace(/\S{1,4}/g,j)},w=function(e){return y(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},D=function(e){return T(y(e))},B=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},x=function(e){return D(B(e))};r.Uint8Array&&(C=function(e){return Uint8Array.from(w(B(e)),(function(e){return e.charCodeAt(0)}))});var S=function(){var e=r.Base64;return r.Base64=o,e};if(r.Base64={VERSION:i,atob:w,btoa:p,fromBase64:x,toBase64:O,utob:m,encode:O,encodeURI:v,btou:T,decode:x,noConflict:S,fromUint8Array:a,toUint8Array:C},"function"===typeof Object.defineProperty){var L=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",L((function(){return x(this)}))),Object.defineProperty(String.prototype,"toBase64",L((function(e){return O(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",L((function(){return O(this,!0)})))}}return r["Meteor"]&&(Base64=r.Base64),e.exports?e.exports.Base64=r.Base64:(n=[],s=function(){return r.Base64}.apply(t,n),void 0===s||(e.exports=s)),{Base64:r.Base64}}))}).call(this,r("c8ba"))},"3d86":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIEElEQVR4Xu2c2W8b1xXGz3eHdhxLFkmlQVrES+2GHFLqku5N9zZdki6PRf8H67V/gNGXoi99cEUqblAY8EuBPHbfku572rTJQwpRkhO0VY0WsNN6gRGF9xR3RNlKEQ6jS176juezQJCgec6ce87vnPvNcCQI/5U6Ayj16rl4IQAlh4AAEICSZ6Dky+cEIAAlz0DJl88JQABKnoGSL58ToIAAzJ/uHe4bkxrYVKAtEfzj0snGl32WQgB8sjYNmzObB2svXWkaMamFptCs0CkgCyJyYHcIqvLYpaXG533CIgA+WZuUjSrmu+uH+0BqxKai0oJoqkAKkaOv9jAE4NVm6lZ9btDNMGa7wFZTAVoQaf9/N/uESAB8sjZpm51uTmzL9E0qoimgLXVjW+TIpA/HLSBkRvN8n7swU7t6uQlXWKsthabZ3jyhbvZZFieAT9bybFRR/9rGEav9FHZ7bLuHKFoCOTzpw43rjwD4ZvDchZnqfy+nxqlsoKUiqWjW0W1A7vB1O207AjCim2ud80cV/RRGW7BuXG+P7Ri72Qee8gJw9vyB2Wtbx68sNZ8dlrj6yupnoPiWT2KLYnPbA1DtPl9P7Istm0gbqu7UafDAcaj+8+JS814CcBtc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d":function(e,t,r){"use strict";var n=r("5530"),s=r("9256"),a={page:{url:"/msgsCenterInfo/page",method:"POST"},mark:{url:"/msgsCenterInfo/mark",method:"GET"},save:{url:"/msgsCenterInfo",method:"POST"},delete:{url:"/msgsCenterInfo",method:"DELETE"},preview:{method:"POST",url:"/msgsCenterInfo/preview"},export:{method:"POST",url:"/msgsCenterInfo/export"},import:{method:"POST",url:"/msgsCenterInfo/import"}};t["a"]={page:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.page),{},{data:e,custom:t}))},save:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.save),{},{data:e}))},delete:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.delete),{},{data:e}))},mark:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.mark),{},{data:e}))},get:function(e){return Object(s["a"])({url:"/msgsCenterInfo/".concat(e),method:"GET"})},preview:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.preview),{},{data:e}))},export:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.export),{},{responseType:"blob",data:e}))},import:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.import),{},{data:e}))}}},"4fad":function(e,t,r){var n=r("23e7"),s=r("6f53").entries;n({target:"Object",stat:!0},{entries:function(e){return s(e)}})},"61d9":function(e,t,r){"use strict";var n=r("5530"),s=r("9256"),a={page:{url:"/role/page",method:"POST"},save:{url:"/role",method:"POST"},update:{url:"/role",method:"PUT"},delete:{url:"/role",method:"DELETE"},saveUserRole:{url:"/role/user",method:"POST"},saveRoleAuthority:{url:"/role/authority",method:"POST"},preview:{method:"POST",url:"/user/preview"},export:{method:"POST",url:"/user/export"},import:{method:"POST",url:"/role/import"}};t["a"]={page:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.page),{},{data:e}))},save:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.save),{},{data:e}))},update:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.update),{},{data:e}))},delete:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.delete),{},{data:e}))},get:function(e){return Object(s["a"])({url:"/role/".concat(e),method:"GET"})},getDetails:function(e){return Object(s["a"])({url:"/role/details/".concat(e),method:"GET"})},check:function(e){return Object(s["a"])({url:"/role/check/".concat(e),method:"GET"})},saveUserRole:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.saveUserRole),{},{data:e}))},findUserIdByRoleId:function(e){return Object(s["a"])({url:"/role/user/".concat(e),method:"GET"})},findAuthorityIdByRoleId:function(e){return Object(s["a"])({url:"/role/authority/".concat(e),method:"GET"})},saveRoleAuthority:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.saveRoleAuthority),{},{data:e}))},preview:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.preview),{},{data:e}))},export:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.export),{},{responseType:"blob",data:e}))},import:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.import),{},{data:e}))}}},"6f53":function(e,t,r){var n=r("83ab"),s=r("df75"),a=r("fc6a"),o=r("d1e7").f,i=function(e){return function(t){var r,i=a(t),c=s(i),l=c.length,u=0,d=[];while(l>u)r=c[u++],n&&!o.call(i,r)||d.push(e?[r,i[r]]:i[r]);return d}};e.exports={entries:i(!0),values:i(!1)}},"8a79":function(e,t,r){"use strict";var n=r("23e7"),s=r("06cf").f,a=r("50c4"),o=r("5a34"),i=r("1d80"),c=r("ab13"),l=r("c430"),u="".endsWith,d=Math.min,f=c("endsWith"),m=!l&&!f&&!!function(){var e=s(String.prototype,"endsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!m&&!f},{endsWith:function(e){var t=String(i(this));o(e);var r=arguments.length>1?arguments[1]:void 0,n=a(t.length),s=void 0===r?n:d(a(r),n),c=String(e);return u?u.call(t,c,s):t.slice(s-c.length,s)===c}})},"8c70":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{ref:"form",attrs:{model:e.msgsCenterInfo,rules:e.rules,"label-position":"right","label-width":"100px","status-icon":""}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:e.$t("table.msgs.title"),prop:"msgsCenterInfoDTO.title"}},[r("el-input",{attrs:{disabled:"view"===e.type,maxlength:255},model:{value:e.msgsCenterInfo.msgsCenterInfoDTO.title,callback:function(t){e.$set(e.msgsCenterInfo.msgsCenterInfoDTO,"title",t)},expression:"msgsCenterInfo.msgsCenterInfoDTO.title"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:e.$t("table.msgs.bizType"),prop:"msgsCenterInfoDTO.bizType"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"view"===e.type,clearable:"",placeholder:"",value:""},model:{value:e.msgsCenterInfo.msgsCenterInfoDTO.bizType.code,callback:function(t){e.$set(e.msgsCenterInfo.msgsCenterInfoDTO.bizType,"code",t)},expression:"msgsCenterInfo.msgsCenterInfoDTO.bizType.code"}},e._l(e.enums.MsgsBizType,(function(e,t,n){return r("el-option",{key:n,attrs:{label:e,value:t}})})),1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:e.$t("table.msgs.bizId"),prop:"msgsCenterInfoDTO.bizId"}},[r("el-input",{attrs:{disabled:"view"===e.type,maxlength:255},model:{value:e.msgsCenterInfo.msgsCenterInfoDTO.bizId,callback:function(t){e.$set(e.msgsCenterInfo.msgsCenterInfoDTO,"bizId",t)},expression:"msgsCenterInfo.msgsCenterInfoDTO.bizId"}})],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:e.$t("table.msgs.msgsCenterType"),prop:"msgsCenterInfoDTO.msgsCenterType"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"view"===e.type,placeholder:"",value:""},on:{change:e.msgsCenterTypeChange},model:{value:e.msgsCenterInfo.msgsCenterInfoDTO.msgsCenterType.code,callback:function(t){e.$set(e.msgsCenterInfo.msgsCenterInfoDTO.msgsCenterType,"code",t)},expression:"msgsCenterInfo.msgsCenterInfoDTO.msgsCenterType.code"}},e._l(e.enums.MsgsCenterType,(function(e,t,n){return r("el-option",{key:n,attrs:{label:e,value:t}})})),1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"view"!==e.type,expression:"type!=='view'"}],attrs:{label:"接收类型",prop:"msgsCenterInfoDTO.receiveType"}},[r("el-radio-group",{attrs:{disabled:"view"===e.type||e.disabledReceiveType},model:{value:e.msgsCenterInfo.receiveType,callback:function(t){e.$set(e.msgsCenterInfo,"receiveType",t)},expression:"msgsCenterInfo.receiveType"}},[r("el-radio-button",{attrs:{label:"user"}},[e._v("用户")]),r("el-radio-button",{attrs:{label:"role"}},[e._v("角色")])],1)],1)],1),r("el-col",{attrs:{span:8}},["user"===e.msgsCenterInfo.receiveType?r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"view"!==e.type,expression:"type!=='view'"}],attrs:{label:"接收用户",prop:"userIdList"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"view"===e.type||e.disabledReceiveType,"collapse-tags":"",multiple:"",placeholder:"",value:""},on:{change:e.userSelect},model:{value:e.msgsCenterInfo.userIdList,callback:function(t){e.$set(e.msgsCenterInfo,"userIdList",t)},expression:"msgsCenterInfo.userIdList"}},e._l(e.allUserList,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"view"!==e.type,expression:"type!=='view'"}],attrs:{label:"接收角色",prop:"roleCodeList"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"view"===e.type||e.disabledReceiveType,"collapse-tags":"",multiple:"",placeholder:"",value:""},on:{change:e.roleSelect},model:{value:e.msgsCenterInfo.roleCodeList,callback:function(t){e.$set(e.msgsCenterInfo,"roleCodeList",t)},expression:"msgsCenterInfo.roleCodeList"}},e._l(e.allRoleList,(function(e){return r("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:e.$t("table.msgs.author"),prop:"msgsCenterInfoDTO.author"}},[r("el-input",{attrs:{disabled:"view"===e.type,maxlength:255},model:{value:e.msgsCenterInfo.msgsCenterInfoDTO.author,callback:function(t){e.$set(e.msgsCenterInfo.msgsCenterInfoDTO,"author",t)},expression:"msgsCenterInfo.msgsCenterInfoDTO.author"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:e.$t("table.msgs.handlerUrl"),prop:"msgsCenterInfoDTO.handlerUrl"}},[r("el-input",{attrs:{disabled:"view"===e.type,maxlength:255},model:{value:e.msgsCenterInfo.msgsCenterInfoDTO.handlerUrl,callback:function(t){e.$set(e.msgsCenterInfo.msgsCenterInfoDTO,"handlerUrl",t)},expression:"msgsCenterInfo.msgsCenterInfoDTO.handlerUrl"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:e.$t("table.msgs.isSingleHandle"),prop:"msgsCenterInfoDTO.isSingleHandle"}},[r("el-radio-group",{attrs:{disabled:"view"===e.type},model:{value:e.msgsCenterInfo.msgsCenterInfoDTO.isSingleHandle,callback:function(t){e.$set(e.msgsCenterInfo.msgsCenterInfoDTO,"isSingleHandle",t)},expression:"msgsCenterInfo.msgsCenterInfoDTO.isSingleHandle"}},[r("el-radio-button",{attrs:{label:!0}},[e._v(e._s(e.$t("common.yes")))]),r("el-radio-button",{attrs:{label:!1}},[e._v(e._s(e.$t("common.no")))])],1)],1)],1)],1),r("el-form-item",{staticStyle:{"margin-bottom":"30px"},attrs:{prop:"msgsCenterInfoDTO.content"}},[r("Tinymce",{ref:"content",attrs:{height:400},model:{value:e.msgsCenterInfo.msgsCenterInfoDTO.content,callback:function(t){e.$set(e.msgsCenterInfo.msgsCenterInfoDTO,"content",t)},expression:"msgsCenterInfo.msgsCenterInfoDTO.content"}})],1)],1),r("div",{staticClass:"dialog-footer"},[r("el-button",{directives:[{name:"show",rawName:"v-show",value:"view"!==e.type,expression:"type!=='view'"}],attrs:{disabled:e.disabled,plain:"",type:"primary"},on:{click:function(t){return e.submitForm(!1)}}},[e._v("发送")])],1)],1)},s=[],a=(r("99af"),r("caad"),r("c975"),r("d81d"),r("a434"),r("2532"),r("2909")),o=r("45bd"),i=r("61d9"),c=r("9fb8"),l=r("8256"),u=r("1771"),d={name:"MsgsEdit",components:{Tinymce:l["a"]},filters:{},props:{},data:function(){var e=this;return{allUserList:[],allRoleList:[],oldChooseUserIdList:[[]],oldChooseRoleIdList:[[]],dialog:{isVisible:!1},type:"add",msgsCenterInfo:this.initMsgsCenterInfo(),disabled:!1,disabledReceiveType:!1,enums:{MsgsBizType:{},MsgsCenterType:{}},rules:{"msgsCenterInfoDTO.title":[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{min:1,max:255,message:"长度在 1 到 255 个字符",trigger:"blur"}],"msgsCenterInfoDTO.content":[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{min:1,max:65535,message:"长度在 1 到 65535 个字符",trigger:"blur"}],"msgsCenterInfoDTO.msgsCenterType":{required:!0,message:this.$t("rules.require"),trigger:"change"},roleCodeList:{validator:function(t,r,n){"role"===e.msgsCenterInfo.receiveType&&"PUBLICITY"!==e.msgsCenterInfo.msgsCenterInfoDTO.msgsCenterType.code&&e.msgsCenterInfo.roleCodeList.length<=0?n("请选择角色"):n()},trigger:"blur"},userIdList:{validator:function(t,r,n){"user"===e.msgsCenterInfo.receiveType&&"PUBLICITY"!==e.msgsCenterInfo.msgsCenterInfoDTO.msgsCenterType.code&&e.msgsCenterInfo.userIdList.length<=0?n("请选择用户"):n()},trigger:"blur"},"msgsCenterInfoDTO.handlerUrl":{min:1,max:255,message:"长度在 1 到 255 个字符",trigger:"blur"}}}},computed:{},watch:{$route:function(){"/msgs/sendMsgs"===this.$route.path&&(this.loadMsgs(),this.loadUserList(),this.loadRoleList())}},mounted:function(){this.loadMsgs(),this.loadUserList(),this.loadRoleList(),Object(u["d"])(["MsgsCenterType","MsgsBizType"],this.enums)},methods:{initMsgsCenterInfo:function(){return{userIdList:[],roleCodeList:[],receiveType:"user",msgsCenterInfoDTO:{id:"",bizId:"",bizType:{code:""},msgsCenterType:{code:""},title:"",content:"",author:"",handlerUrl:"",handlerParams:"",isSingleHandle:!0}}},loadMsgs:function(){var e=this,t=this.$route.query.type,r=this.$route.query.id;this.type=t,"view"===t?o["a"].get(r).then((function(t){var r=t.data;r.isSuccess&&(e.msgsCenterInfo.msgsCenterInfoDTO=r.data,null===e.msgsCenterInfo.msgsCenterInfoDTO.bizType&&(e.msgsCenterInfo.msgsCenterInfoDTO.bizType={code:""}),null===e.msgsCenterInfo.msgsCenterInfoDTO.msgsCenterType&&(e.msgsCenterInfo.msgsCenterInfoDTO.msgsCenterType={code:""}))})):this.reset()},loadUserList:function(){var e=this;c["a"].page({current:1,size:1e4,model:{status:!0}}).then((function(t){var r=t.data;r.isSuccess&&r.data.records.length>0&&(e.allUserList=[{id:"-1",name:"全选"}].concat(Object(a["a"])(r.data.records)))}))},loadRoleList:function(){var e=this;i["a"].page({current:1,size:1e4,model:{status:!0}}).then((function(t){var r=t.data;r.isSuccess&&r.data.records.length>0&&(e.allRoleList=[{code:"-1",name:"全选"}].concat(Object(a["a"])(r.data.records)))}))},msgsCenterTypeChange:function(e){this.disabledReceiveType="PUBLICITY"===e},userSelect:function(e){var t=this.allUserList.map((function(e){return e.id})),r=1===this.oldChooseUserIdList.length?[]:this.oldChooseUserIdList[1];if(e.includes("-1")&&(this.msgsCenterInfo.userIdList=t),r.includes("-1")&&!e.includes("-1")&&(this.msgsCenterInfo.userIdList=[]),r.includes("-1")&&e.includes("-1")){var n=e.indexOf("-1");e.splice(n,1),this.msgsCenterInfo.userIdList=e}r.includes("-1")||e.includes("-1")||e.length===t.length-1&&(this.msgsCenterInfo.userIdList=["-1"].concat(e)),this.oldChooseUserIdList[1]=this.msgsCenterInfo.userIdList},roleSelect:function(e){var t=this.allRoleList.map((function(e){return e.code})),r=1===this.oldChooseRoleIdList.length?[]:this.oldChooseRoleIdList[1];if(e.includes("-1")&&(this.msgsCenterInfo.roleCodeList=t),r.includes("-1")&&!e.includes("-1")&&(this.msgsCenterInfo.roleCodeList=[]),r.includes("-1")&&e.includes("-1")){var n=e.indexOf("-1");e.splice(n,1),this.msgsCenterInfo.roleCodeList=e}r.includes("-1")||e.includes("-1")||e.length===t.length-1&&(this.msgsCenterInfo.roleCodeList=["-1"].concat(e)),this.oldChooseRoleIdList[1]=this.msgsCenterInfo.roleCodeList},reset:function(){var e=this;this.$refs.form.clearValidate(),this.$refs.form.resetFields(),this.msgsCenterInfo=this.initMsgsCenterInfo(),this.disabledReceiveType=!1,setTimeout((function(){e.$refs.content.setContent("")}),1e3)},submitForm:function(e){var t=this;console.log(t.msgsCenterInfo),this.$refs.form.validate((function(r){if(!r)return!1;t.editSubmit(e)}))},editSubmit:function(e){var t=this;"edit"===t.type?t.update():t.save()},save:function(){var e=this;e.disabled=!0,o["a"].save(e.msgsCenterInfo).then((function(t){e.disabled=!1;var r=t.data;r.isSuccess&&(e.$message({message:e.$t("tips.createSuccess"),type:"success"}),e.reset(),e.$router.push("/msgs/myMsgs"))}))},update:function(){var e=this;e.disabled=!0,o["a"].update(e.msgs).then((function(t){e.disabled=!1;var r=t.data;r.isSuccess&&(e.$message({message:e.$t("tips.createSuccess"),type:"success"}),e.reset(),e.$router.push("/msgs/myMsgs"))}))}}},f=d,m=r("2877"),g=Object(m["a"])(f,n,s,!1,null,"645f11f2",null);t["default"]=g.exports},9256:function(e,t,r){"use strict";r("99af"),r("4160"),r("caad"),r("4fad"),r("d3b7"),r("159b");var n=r("5530"),s=r("bc3a"),a=r.n(s),o=r("5c96"),i=r("5657");r("27ae");function c(e,t){"ECONNABORTED"===e.code?Object(o["Message"])({message:"请求超时"}):e.response&&e.response.data?Object(o["Message"])({message:e.response.data}):e.message&&Object(o["Message"])({message:e.message}),t(e)}function l(e,t){e.data.isError&&(4e4===e.data.code||40001===e.data.code||40002===e.data.code||40003===e.data.code||40005===e.data.code||40006===e.data.code||40008===e.data.code?o["MessageBox"].alert(e.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):o["Message"].error(e.data.msg)),t(e)}a.a.interceptors.request.use((function(e){var t=!1!==e.headers["X-isToken"]||e.headers["X-isToken"],r=i["a"].get("TOKEN","");r&&t&&(e.headers.token="Bearer "+r);var n="ceres_admin_web",s="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat("".concat(n,":").concat(s)),e}),(function(e){return Promise.reject(e)})),a.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var u=function(e){console.log(e,"opts");var t={ts:Date.now()},r=e.method.toUpperCase(),s={method:r,url:"".concat("https://pos.admin.api.lotus-wallet.com").concat(e.url),responseType:e.responseType||"",timeout:2e4},o=["PUT","POST","PATCH"];o.includes(r)?s.data=e.data||{}:s.params=Object(n["a"])(Object(n["a"])({},t),e.data||{}),e.formData&&(s.transformRequest=[function(e){var t=new FormData;return e&&Object.entries(e).forEach((function(e){t.append(e[0],e[1])})),t}]);var i=new Promise((function(e,t){a()(s).then((function(t){l(t,e)})).catch((function(e){c(e,t)}))}));return i};t["a"]=u},"9fb8":function(e,t,r){"use strict";var n=r("5530"),s=r("9256"),a={page:{method:"POST",url:"/user/page"},save:{method:"POST",url:"/user"},update:{method:"PUT",url:"/user"},updateBaseInfo:{method:"PUT",url:"/user/base"},avatar:{method:"PUT",url:"/user/avatar"},delete:{method:"DELETE",url:"/user"},reset:{method:"GET",url:"/user/reset"},updatePassword:{method:"PUT",url:"/user/password"},reload:{method:"POST",url:"/user/reload"},preview:{method:"POST",url:"/user/preview"},export:{method:"POST",url:"/user/export"},import:{method:"POST",url:"/user/import"}};t["a"]={page:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.page),{},{data:e}))},save:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.save),{},{data:e}))},update:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.update),{},{data:e}))},updateBaseInfo:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.updateBaseInfo),{},{data:e}))},updatePassword:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.updatePassword),{},{data:e}))},delete:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.delete),{},{data:e}))},get:function(e){return Object(s["a"])({method:"GET",url:"/user/".concat(e)})},reset:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.reset),{},{data:e}))},avatar:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.avatar),{},{data:e}))},reload:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.reload),{},{formData:!0,data:{userId:e}}))},preview:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.preview),{},{data:e}))},export:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.export),{},{responseType:"blob",data:e}))},import:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.import),{},{data:e}))}}},a623:function(e,t,r){"use strict";var n=r("23e7"),s=r("b727").every,a=r("a640"),o=r("ae40"),i=a("every"),c=o("every");n({target:"Array",proto:!0,forced:!i||!c},{every:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},c2cf:function(e,t,r){"use strict";var n=r("5530"),s=r("9256"),a={enums:{method:"GET",url:"/enums"}};t["a"]={uploadFile:"".concat("https://pos.admin.api.lotus-wallet.com","/attachment/upload"),enums:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.enums),{},{data:e}))}}},ebb5:function(e,t,r){"use strict";var n=r("5530"),s=r("9256"),a={page:{method:"POST",url:"/dictionaryItem/page"},update:{method:"PUT",url:"/dictionaryItem"},save:{method:"POST",url:"/dictionaryItem"},delete:{method:"DELETE",url:"/dictionaryItem"},list:{method:"GET",url:"/dictionaryItem/codes"},preview:{method:"POST",url:"/dictionaryItem/preview"},export:{method:"POST",url:"/dictionaryItem/export"},import:{method:"POST",url:"/dictionaryItem/import"}};t["a"]={page:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.page),{},{data:e}))},save:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.save),{},{data:e}))},update:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.update),{},{data:e}))},delete:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.delete),{},{data:e}))},list:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.list),{},{data:e}))},preview:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.preview),{},{data:e}))},export:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.export),{},{responseType:"blob",data:e}))},import:function(e){return Object(s["a"])(Object(n["a"])(Object(n["a"])({},a.import),{},{data:e}))}}}}]); |