LargeModelProject/LargeScreenDisplay(1)/dist/static/js/chunk-2d0e68b7.2e4d8a49.js

1 line
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e68b7"],{"98ce":function(e,t,l){"use strict";l.r(t);var n=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"68px"}},[l("el-form-item",{attrs:{label:"会议主要例题",prop:"meetingTheme"}},[l("el-input",{attrs:{placeholder:"请输入会议主要例题",clearable:""},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.meetingTheme,callback:function(t){e.$set(e.queryParams,"meetingTheme",t)},expression:"queryParams.meetingTheme"}})],1),l("el-form-item",{attrs:{label:"日期范围",prop:"startsTime"}},[l("el-date-picker",{style:{width:"100%"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期","range-separator":"至",clearable:""},model:{value:e.queryParams.startsTime,callback:function(t){e.$set(e.queryParams,"startsTime",t)},expression:"queryParams.startsTime"}})],1),l("el-form-item",[l("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),l("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),l("el-row",{staticClass:"mb8",attrs:{gutter:10}},[l("el-col",{attrs:{span:1.5}},[l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:publish:add"],expression:"['system:publish:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),l("el-col",{attrs:{span:1.5}},[l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:publish:edit"],expression:"['system:publish:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),l("el-col",{attrs:{span:1.5}},[l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:publish:remove"],expression:"['system:publish:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),l("el-col",{attrs:{span:1.5}},[l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:publish:export"],expression:"['system:publish:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),l("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.publishList},on:{"selection-change":e.handleSelectionChange}},[l("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),l("el-table-column",{attrs:{label:"会议主要例题",align:"center",prop:"meetingTheme"}}),l("el-table-column",{attrs:{label:"类型",align:"center",prop:"meetingType"}}),l("el-table-column",{attrs:{label:"例会内容",align:"center",prop:"meetingContent"}}),l("el-table-column",{attrs:{label:"例会开始时间",align:"center",prop:"startTime"}}),l("el-table-column",{attrs:{label:"例会结束时间",align:"center",prop:"endTime"}}),l("el-table-column",{attrs:{label:"照片保存地址",align:"center",prop:"pictureAddress"}}),l("el-table-column",{attrs:{label:"单位名称",align:"center",prop:"unitName"}}),l("el-table-column",{attrs:{label:"项目名称",align:"center",prop:"projectName"}}),l("el-table-column",{attrs:{label:"主持人",align:"center",prop:"emcee"}}),l("el-table-column",{attrs:{label:"记录人",align:"center",prop:"noteTaker"}}),l("el-table-column",{attrs:{label:"会议时间",align:"center",prop:"meetintTime"}}),l("el-table-column",{attrs:{label:"会议地点",align:"center",prop:"meetingLocat"}}),l("el-table-column",{attrs:{label:"活动内容",align:"center",prop:"activityContent"}}),l("el-table-column",{attrs:{label:"会议记录",align:"center",prop:"meetingRecord"}}),l("el-table-column",{attrs:{label:"创建人id",align:"center",prop:"createUserId"}}),l("el-table-column",{attrs:{label:"是否删除",align:"center",prop:"isActive"}}),l("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:publish:edit"],expression:"['system:publish:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(l){return e.handleUpdate(t.row)}}},[e._v("修改")]),l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:publish:remove"],expression:"['system:publish:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(l){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),l("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}}),l("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[l("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[l("el-form-item",{attrs:{label:"会议主要例题",prop:"meetingTheme"}},[l("el-input",{attrs:{placeholder:"请输入会议主要例题"},model:{value:e.form.meetingTheme,callback:function(t){e.$set(e.form,"meetingTheme",t)},expression:"form.meetingTheme"}})],1),l("el-form-item",{attrs:{label:"例会内容"}},[l("editor",{attrs:{"min-height":192},model:{value:e.form.meetingContent,callback:function(t){e.$set(e.form,"meetingContent",t)},expression:"form.meetingContent"}})],1),l("el-form-item",{attrs:{label:"照片保存地址",prop:"pictureAddress"}},[l("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.pictureAddress,callback:function(t){e.$set(e.form,"pictureAddress",t)},expression:"form.pictureAddress"}})],1),l("el-form-item",{attrs:{label:"单位名称",prop:"unitName"}},[l("el-input",{attrs:{placeholder:"请输入单位名称"},model:{value:e.form.unitName,callback:function(t){e.$set(e.form,"unitName",t)},expression:"form.unitName"}})],1),l("el-form-item",{attrs:{label:"项目名称",prop:"projectName"}},[l("el-input",{attrs:{placeholder:"请输入项目名称"},model:{value:e.form.projectName,callback:function(t){e.$set(e.form,"projectName",t)},expression:"form.projectName"}})],1),l("el-form-item",{attrs:{label:"会议地点",prop:"meetingLocat"}},[l("el-input",{attrs:{placeholder:"请输入会议地点"},model:{value:e.form.meetingLocat,callback:function(t){e.$set(e.form,"meetingLocat",t)},expression:"form.meetingLocat"}})],1),l("el-form-item",{attrs:{label:"活动内容"}},[l("editor",{attrs:{"min-height":192},model:{value:e.form.activityContent,callback:function(t){e.$set(e.form,"activityContent",t)},expression:"form.activityContent"}})],1),l("el-form-item",{attrs:{label:"会议记录",prop:"meetingRecord"}},[l("el-input",{attrs:{placeholder:"请输入会议记录"},model:{value:e.form.meetingRecord,callback:function(t){e.$set(e.form,"meetingRecord",t)},expression:"form.meetingRecord"}})],1)],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),l("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],i=l("5530"),r=(l("d81d"),l("b775"));function s(e){return Object(r["a"])({url:"/system/publish/list",method:"get",params:e})}function o(e){return Object(r["a"])({url:"/system/publish/"+e,method:"get"})}function m(e){return Object(r["a"])({url:"/system/publish",method:"post",data:e})}function c(e){return Object(r["a"])({url:"/system/publish",method:"put",data:e})}function u(e){return Object(r["a"])({url:"/system/publish/"+e,method:"delete"})}var p={name:"Publish",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,publishList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,meetingTheme:null,meetingType:null,meetingContent:null,startTime:null,startsTime:null,endTime:null,pictureAddress:null,unitName:null,projectName:null,emcee:null,noteTaker:null,meetintTime:null,meetingLocat:null,activityContent:null,meetingRecord:null,createUserId:null,isActive:null},form:{},rules:{createTime:[{required:!0,message:"创建时间不能为空",trigger:"blur"}],updateTime:[{required:!0,message:"修改时间不能为空",trigger:"blur"}]}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,s(this.queryParams).then((function(t){e.publishList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:null,meetingTheme:null,meetingType:null,meetingContent:null,startTime:null,startsTime:null,endTime:null,pictureAddress:null,unitName:null,projectName:null,emcee:null,noteTaker:null,meetintTime:null,meetingLocat:null,activityContent:null,meetingRecord:null,createUserId:null,createTime:null,updateTime:null,isActive:null},this.resetForm("form")},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},handleAdd:function(){this.reset(),this.open=!0,this.title="添加例会发布"},handleUpdate:function(e){var t=this;this.reset();var l=e.id||this.ids;o(l).then((function(e){t.form=e.data,t.open=!0,t.title="修改例会发布"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?c(e.form).then((function(t){e.$modal.msgSuccess("修改成功"),e.open=!1,e.getList()})):m(e.form).then((function(t){e.$modal.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,l=e.id||this.ids;this.$modal.confirm('是否确认删除例会发布编号为"'+l+'"的数据项?').then((function(){return u(l)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){this.download("system/publish/export",Object(i["a"])({},this.queryParams),"publish_".concat((new Date).getTime(),".xlsx"))}}},d=p,h=l("2877"),b=Object(h["a"])(d,n,a,!1,null,null,null);t["default"]=b.exports}}]);