chunk-0ce400e0.f6bb7f9c.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ce400e0","chunk-19319dea","chunk-2d0df437"],{"17d8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery.apply(null,arguments)}}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{md:6,sm:8}},[t("a-form-item",{attrs:{label:"消息标题"}},[t("a-input",{attrs:{placeholder:"请输入消息标题"},model:{value:e.queryParam.esTitle,callback:function(t){e.$set(e.queryParam,"esTitle",t)},expression:"queryParam.esTitle"}})],1)],1),t("a-col",{attrs:{md:6,sm:8}},[t("a-form-item",{attrs:{label:"发送内容"}},[t("a-input",{attrs:{placeholder:"请输入发送内容"},model:{value:e.queryParam.esContent,callback:function(t){e.$set(e.queryParam,"esContent",t)},expression:"queryParam.esContent"}})],1)],1),e.toggleSearchStatus?[t("a-col",{attrs:{md:6,sm:8}},[t("a-form-item",{attrs:{label:"接收人"}},[t("a-input",{attrs:{placeholder:"请输入接收人"},model:{value:e.queryParam.esReceiver,callback:function(t){e.$set(e.queryParam,"esReceiver",t)},expression:"queryParam.esReceiver"}})],1)],1)]:e._e(),t("a-col",{attrs:{md:6,sm:8}},[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[t("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),t("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")]),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.handleToggleSearch}},[e._v("\n "+e._s(e.toggleSearchStatus?"收起":"展开")+"\n "),t("a-icon",{attrs:{type:e.toggleSearchStatus?"up":"down"}})],1)],1)])],2)],1)],1),t("div",{staticClass:"table-operator"},[t("a-button",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),t("a-button",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("消息")}}},[e._v("导出")]),t("a-upload",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[t("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?t("a-dropdown",[t("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[t("a-menu-item",{key:"1",on:{click:e.batchDel}},[t("a-icon",{attrs:{type:"delete"}}),e._v("\n 删除\n ")],1)],1),t("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n "),t("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),t("div",[t("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[t("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),t("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n "),t("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),t("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"esContent",fn:function(e){return t("span",{},[t("j-ellipsis",{attrs:{value:e,length:10}})],1)}},{key:"action",fn:function(a,r){return t("span",{},[t("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")]),t("a-divider",{attrs:{type:"vertical"}}),t("a-dropdown",[t("a",{staticClass:"ant-dropdown-link"},[e._v("更多"),t("a-icon",{attrs:{type:"down"}})],1),t("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[t("a-menu-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}]},[t("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")])]),t("a-menu-item",[t("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[t("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),t("sysMessage-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},n=[],l=a("89ba"),s=a("b65a"),o=a("d579"),i={name:"SysMessageList",mixins:[s["a"]],components:{JEllipsis:o["default"],SysMessageModal:l["default"]},data:function(){return{description:"消息管理页面",show:!1,columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,a){return parseInt(a)+1}},{title:"消息标题",align:"center",dataIndex:"esTitle"},{title:"发送内容",align:"center",dataIndex:"esContent",scopedSlots:{customRender:"esContent"}},{title:"接收人",align:"center",dataIndex:"esReceiver"},{title:"发送次数",align:"center",dataIndex:"esSendNum"},{title:"发送状态",align:"center",dataIndex:"esSendStatus_dictText"},{title:"发送时间",align:"center",dataIndex:"esSendTime"},{title:"发送方式",align:"center",dataIndex:"esType_dictText"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/message/sysMessage/list",delete:"/message/sysMessage/delete",deleteBatch:"/message/sysMessage/deleteBatch",exportXlsUrl:"message/sysMessage/exportXls",importExcelUrl:"message/sysMessage/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{}},c=i,d=(a("81a96"),a("2877")),u=Object(d["a"])(c,r,n,!1,null,"2687f623",null);t["default"]=u.exports},"81a96":function(e,t,a){"use strict";a("a1f1")},"88bc":function(e,t,a){(function(t){var a=1/0,r=9007199254740991,n="[object Arguments]",l="[object Function]",s="[object GeneratorFunction]",o="[object Symbol]",i="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,d=i||c||Function("return this")();function u(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function m(e,t){var a=-1,r=e?e.length:0,n=Array(r);while(++a<r)n[a]=t(e[a],a,e);return n}function p(e,t){var a=-1,r=t.length,n=e.length;while(++a<r)e[n+a]=t[a];return e}var f=Object.prototype,v=f.hasOwnProperty,h=f.toString,b=d.Symbol,g=f.propertyIsEnumerable,w=b?b.isConcatSpreadable:void 0,y=Math.max;function C(e,t,a,r,n){var l=-1,s=e.length;a||(a=_),n||(n=[]);while(++l<s){var o=e[l];t>0&&a(o)?t>1?C(o,t-1,a,r,n):p(n,o):r||(n[n.length]=o)}return n}function S(e,t){return e=Object(e),x(e,t,(function(t,a){return a in e}))}function x(e,t,a){var r=-1,n=t.length,l={};while(++r<n){var s=t[r],o=e[s];a(o,s)&&(l[s]=o)}return l}function k(e,t){return t=y(void 0===t?e.length-1:t,0),function(){var a=arguments,r=-1,n=y(a.length-t,0),l=Array(n);while(++r<n)l[r]=a[t+r];r=-1;var s=Array(t+1);while(++r<t)s[r]=a[r];return s[t]=l,u(e,this,s)}}function _(e){return N(e)||j(e)||!!(w&&e&&e[w])}function T(e){if("string"==typeof e||q(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function j(e){return O(e)&&v.call(e,"callee")&&(!g.call(e,"callee")||h.call(e)==n)}var N=Array.isArray;function R(e){return null!=e&&I(e.length)&&!M(e)}function O(e){return E(e)&&R(e)}function M(e){var t=P(e)?h.call(e):"";return t==l||t==s}function I(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function P(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}function q(e){return"symbol"==typeof e||E(e)&&h.call(e)==o}var F=k((function(e,t){return null==e?{}:S(e,m(C(t,1),T))}));e.exports=F}).call(this,a("c8ba"))},"89ba":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"消息标题"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esTitle",{}],expression:"['esTitle', {}]"}],attrs:{placeholder:"请输入消息标题"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送内容"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esContent",{}],expression:"['esContent', {}]"}],attrs:{placeholder:"请输入发送内容"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送所需参数"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esParam",{}],expression:"['esParam', {}]"}],attrs:{placeholder:"请输入发送所需参数Json格式"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"接收人"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esReceiver",{}],expression:"['esReceiver', {}]"}],attrs:{placeholder:"请输入接收人"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送方式"}},[t("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["esType",{}],expression:"[ 'esType', {}]"}],attrs:{triggerChange:!0,dictCode:"msgType",placeholder:"请选择发送方式"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送时间"}},[t("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["esSendTime",{}],expression:"[ 'esSendTime', {}]"}],attrs:{showTime:"",format:"YYYY-MM-DD HH:mm:ss"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送状态"}},[t("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["esSendStatus",{}],expression:"[ 'esSendStatus', {}]"}],attrs:{triggerChange:!0,dictCode:"msgSendStatus",placeholder:"请选择发送状态"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送次数"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["esSendNum",{}],expression:"[ 'esSendNum', {}]"}]})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送失败原因"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esResult",{}],expression:"['esResult', {}]"}]})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"备注"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{}],expression:"['remark', {}]"}]})],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.disableSubmit,expression:"!disableSubmit"}]},[t("a-button",{staticStyle:{"margin-right":".8rem"},on:{confirm:e.handleCancel}},[e._v("取消")]),t("a-button",{attrs:{type:"primary",loading:e.confirmLoading},on:{click:e.handleOk}},[e._v("提交")])],1)],1)},n=[],l=a("0fea"),s=a("88bc"),o=a.n(s),i=a("c1df"),c=a.n(i),d={name:"SysMessageModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},disableSubmit:!0,url:{add:"/message/sysMessage/add",edit:"/message/sysMessage/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(o()(t.model,"esContent","esParam","esReceiver","esResult","esSendNum","esSendStatus","esTitle","esType","remark")),t.form.setFieldsValue({esSendTime:t.model.esSendTime?c()(t.model.esSendTime):null})}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(a,r){if(!a){t.confirmLoading=!0;var n="",s="";e.model.id?(n+=e.url.edit,s="put"):(n+=e.url.add,s="post");var o=Object.assign(e.model,r);o.esSendTime=o.esSendTime?o.esSendTime.format("YYYY-MM-DD HH:mm:ss"):null,Object(l["i"])(n,o,s).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}},u=d,m=a("2877"),p=Object(m["a"])(u,r,n,!1,null,"1b4235a7",null);t["default"]=p.exports},a1f1:function(e,t,a){},d579:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-tooltip",{attrs:{placement:"topLeft"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.value))])]),e._v("\n "+e._s(e._f("ellipsis")(e.value,e.length))+"\n")],2)},n=[],l={name:"JEllipsis",props:{value:{type:String,required:!1},length:{type:Number,required:!1,default:25}}},s=l,o=a("2877"),i=Object(o["a"])(s,r,n,!1,null,"4de15389",null);t["default"]=i.exports}}]);