chunk-27346918.7b477a4a.js 5.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27346918"],{"3bc8":function(e,t,i){"use strict";i.d(t,"f",(function(){return a})),i.d(t,"e",(function(){return r})),i.d(t,"a",(function(){return o})),i.d(t,"h",(function(){return s})),i.d(t,"c",(function(){return l})),i.d(t,"d",(function(){return u})),i.d(t,"i",(function(){return d})),i.d(t,"j",(function(){return c})),i.d(t,"g",(function(){return m})),i.d(t,"b",(function(){return p}));var n=i("b775");function a(e){return Object(n["a"])({url:"/system/mes/list",method:"get",params:e})}function r(e){return Object(n["a"])({url:"/system/mes/"+e,method:"get"})}function o(e){return Object(n["a"])({url:"/system/mes",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/system/mes",method:"put",data:e})}function l(e){return Object(n["a"])({url:"/system/mes/"+e,method:"delete"})}function u(e){return Object(n["a"])({url:"/system/mes/export",method:"get",params:e})}function d(e){return Object(n["a"])({url:"/system/mes/uploadfile",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/system/mes/uploadfileImg",method:"post",data:e})}function m(e){return Object(n["a"])({url:"/system/mes/listOne",method:"get",params:e})}function p(e){return Object(n["a"])({url:"/system/mes/check/"+e,method:"get"})}},"605b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{ref:"queryForm",staticStyle:{"margin-bottom":"22px"},attrs:{model:e.queryParams,inline:!0}},[i("el-form-item",{attrs:{label:"标题",prop:"tatle"}},[i("el-input",{attrs:{placeholder:"请输入标题",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.tatle,callback:function(t){e.$set(e.queryParams,"tatle",t)},expression:"queryParams.tatle"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),i("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.mesList,stripe:"true"}},[i("el-table-column",{attrs:{label:"序号",width:"55",type:"index",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s((e.queryParams.pageNum-1)*e.queryParams.pageSize+t.$index+1))])]}}])}),i("el-table-column",{attrs:{label:"标题",align:"center",prop:"tatle"}}),i("el-table-column",{attrs:{label:"文件类型",align:"center",prop:"documentType",width:"120"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("详情")])]}}])})],1),i("el-dialog",{attrs:{title:e.title,visible:e.open,width:"63%","show-close":!0,"append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-container",[i("el-form",{ref:"form",staticStyle:{width:"100%"},attrs:{model:e.form,rules:e.rules}},[i("el-form-item",{attrs:{label:"",prop:"tatle"}},[i("el-header",[i("span",[e._v(e._s(this.form.tatle))])])],1),i("el-form-item",{attrs:{label:"",prop:"updateTime"}},[i("el-footer",[i("span",[e._v(e._s("发布日期 : "+e.parseTime(this.form.updateTime,"{y}-{m}-{d}")))])])],1),i("el-divider"),i("el-form-item",{attrs:{label:"",prop:"fileDetails"}},[i("el-main",[i("span",{domProps:{innerHTML:e._s(this.form.fileDetails)}})])],1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.cancel}},[e._v("关 闭")])],1)],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1)},a=[],r=i("3bc8"),o=(i("542c"),{components:{},data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,total:0,mesList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,tatle:void 0,documentType:void 0,img:void 0,putFilePath:void 0,fileDetails:void 0,xsState:void 0,typeId:void 0,flg:void 0,submitTime:void 0,lastUpdate:void 0},form:{}}},created:function(){this.getList()},methods:{handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!=e.length,this.multiple=!e.length},getList:function(){var e=this;this.loading=!0,Object(r["g"])(this.queryParams).then((function(t){e.mesList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,tatle:void 0,documentType:[],img:void 0,putFilePath:void 0,fileDetails:void 0,xsState:void 0,typeId:void 0,flg:void 0,createBy:void 0,createTime:void 0,updateBy:void 0,updateTime:void 0,remark:void 0},this.resetForm("form")},handleUpdate:function(e){var t=this;this.reset();var i=e.id||this.ids;Object(r["e"])(i).then((function(e){t.form=e.data,t.open=!0,t.title="",t.form=e.data}))}}}),s=o,l=(i("d86c"),i("2877")),u=Object(l["a"])(s,n,a,!1,null,"125e3476",null);t["default"]=u.exports},d86c:function(e,t,i){"use strict";i("fe30")},fe30:function(e,t,i){}}]);