chunk-2d21e789.e88b7736.js 2.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21e789"],{d667:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"来文标题 : "}},[i("el-input",{model:{value:t.form.fwtitle,callback:function(e){t.$set(t.form,"fwtitle",e)},expression:"form.fwtitle"}})],1),i("el-form-item",{attrs:{label:"来文单位 : "}},[i("el-input",{model:{value:t.form.fwdept,callback:function(e){t.$set(t.form,"fwdept",e)},expression:"form.fwdept"}})],1),i("el-form-item",{attrs:{label:"来文日期 : "}},[i("el-input",{model:{value:t.form.createTime,callback:function(e){t.$set(t.form,"createTime",e)},expression:"form.createTime"}})],1),i("el-form-item",{attrs:{label:"流水号 : "}},[i("el-input")],1),i("el-form-item",{attrs:{label:"文件字号 : "}},[i("el-input")],1),i("el-form-item",{attrs:{label:"紧急程度 : "}},[i("el-input")],1),i("el-form-item",{attrs:{label:"添加附件 : "}},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"https://jsonplaceholder.typicode.com/posts/",multiple:"",limit:3,"file-list":t.fileList}},[i("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1)],1),i("el-form-item",{attrs:{label:"收文原件 : "}},[i("el-input")],1),i("el-form-item",{attrs:{label:"发文对象 : "}},[i("el-input")],1),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:t.submitToDo}},[t._v("同 意")]),i("el-button",{attrs:{type:"danger"},on:{click:t.deleteToDo}},[t._v("拒 绝")])],1)],1)],1)},o=[],r=(i("20d6"),i("5b15")),a={name:"tododetails",data:function(){return{form:this.$route.query.bd,actkey:this.$route.query.id,loading:!0,fileList:[]}},created:function(){this.info()},methods:{info:function(t){},submitToDo:function(){var t=this;this.loading=!0,Object(r["f"])(this.form.taskid).then((function(e){t.msgSuccess("提交成功"),t.$router.go(-1),t.$store.state.tagsView.visitedViews.splice(t.$store.state.tagsView.visitedViews.findIndex((function(e){return e.path===t.$route.path})),1),t.$router.push(t.$store.state.tagsView.visitedViews[t.$store.state.tagsView.visitedViews.length-1].path)}))},deleteToDo:function(){var t=this;this.$confirm("是否确认拒绝这这个申请吗?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["a"])(t.form.taskid).then((function(e){t.msgSuccess("拒绝成功"),t.form={},t.$router.go(-1),t.$store.state.tagsView.visitedViews.splice(t.$store.state.tagsView.visitedViews.findIndex((function(e){return e.path===t.$route.path})),1),t.$router.push(t.$store.state.tagsView.visitedViews[t.$store.state.tagsView.visitedViews.length-1].path)}))})).catch((function(){}))}},watch:{$route:function(t,e){t!=e&&(this.form=this.$route.query.bd)}}},l=a,n=i("2877"),u=Object(n["a"])(l,s,o,!1,null,"2896c834",null);e["default"]=u.exports}}]);