1 line
7.1 KiB
JavaScript
1 line
7.1 KiB
JavaScript
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4ccf9ee4"],{"0d74":function(t,e,n){"use strict";var i=n("cc8d");n.n(i).a},"0e0b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAb5JREFUKBVjZCAChK76z/zv5o8KJkaGg6trOI/AtDDBGLjo////M/65/mMukDb4+49hUUjjd2eYWoKaQ5q/T2Bg/O8B1PCElZHJ+y8Dw5yglu/yIAPwag5q/N70j4HRkEWYU4WBgVHsz/+/GQyMDN9Z/zNx4dUc3PSt6D/jfy8uAQ6f1dmMX9hYGaqBPkhjZGJoX1nLfh2n5qCm7yn/GRiTOLg4PZbmMX6K7Pkv8usXw3ZGRsbCdTWci0EaQQDD2UAbwxj+M5SzsXO4LS9hfJPU+Z/3x7fvO4AqF62t45gB0QYhGZE5IY0/PP8y/J/GwsTgtLqW837C/P8cHx//2M7wn/H0+nqOMmS1IDbcZmAI2v1j/L8WGJczQRob9v9n+fT4+0qgK25j0wjSDLYZFJfBTd+fAQOj7x/QyYz/meIZGP6H/2dkYNev5YhsYGT8B1KMDsA2R7T8VAJKPFlby9XN+J8xFBjKa4EaRUTFOWJwaQQZBNb8698/I6AbHgQ2f3cChqgXUPwUCw9H8Kx0xt8gRbgAWDNQAz8warSBjkv6x8jwDBy3RYzfcWmCiTMCU5EjjEMqzQLUkE6qJph6AErYncWlgAYnAAAAAElFTkSuQmCC"},1151:function(t,e,n){"use strict";n.r(e);var i=(n("953d"),n("3d18")),o={data:function(){return{type:"",workerList:[],dialogVisible:!1,current:1,size:10,total:0,workerInfo:{title:"",content:""},editorOption:{modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image","video"]]},theme:"snow"}}},computed:{editor:function(){return this.$refs.myQuillEditor.quill}},created:function(){this.projectSn=this.$store.state.projectSn,this.getWorkerList()},methods:{onEditorReady:function(t){},onEditorBlur:function(){},onEditorFocus:function(){},onEditorChange:function(){},getWorkerList:function(){var t=this,e={projectSn:this.$store.state.projectSn,current:this.current,size:this.size};Object(i.d)(e).then((function(e){t.workerList=e.result.records,t.total=e.result.total}))},addBtn:function(){this.type="新增播报",this.dialogVisible=!0,this.workerInfo={title:"",content:""}},editBtn:function(t){this.type="编辑播报",this.dialogVisible=!0,this.workerInfo=JSON.parse(JSON.stringify(t))},deleteBtn:function(t){var e=this;this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i.b)({id:t.id}).then((function(t){e.$message({type:"success",message:"删除成功!"}),e.getWorkerList()}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},saveUav:function(){var t=this,e={projectSn:this.$store.state.projectSn,title:this.workerInfo.title,content:this.workerInfo.content};this.$refs.addEditForm.validate((function(n){n&&("新增播报"==t.type?Object(i.a)(e).then((function(e){t.$message.success(e.message),t.dialogVisible=!1,t.workerInfo={title:"",content:""},t.getWorkerList()})):"编辑播报"==t.type&&Object(i.e)(e).then((function(e){t.$message.success(e.message),t.dialogVisible=!1,t.workerInfo={title:"",content:""},t.getWorkerList()})))}))},handleSizeChange:function(t){this.current=t,this.size=10,this.getWorkerList()},handleCurrentChange:function(t){this.current=t,this.size=10,this.getWorkerList()}}},r=(n("0d74"),n("2877")),s=Object(r.a)(o,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"fullHeight"},[i("div",{staticClass:"searchBox whiteBlock"},[i("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.addBtn}},[t._v("添加 ")])],1),i("div",{staticClass:"table_wrap whiteBlock"},[i("vue-scroll",[i("el-table",{staticClass:"tables",attrs:{data:t.workerList}},[i("el-table-column",{attrs:{align:"center",prop:"title",label:"标题"}}),i("el-table-column",{attrs:{align:"center",prop:"createTime",label:"新增时间"}}),i("el-table-column",{attrs:{align:"center",prop:"updateTime",label:"修改时间"}}),i("el-table-column",{attrs:{width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"tableBtns"},[i("div",{staticClass:"operationText",on:{click:function(n){return t.editBtn(e.row)}}},[i("
|