(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-5165","chunk-71d7"],{"/sDw":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"a",function(){return i}),a.d(e,"d",function(){return l}),a.d(e,"b",function(){return s});var n=a("t3Un"),o=a("X4fA");function r(t,e,a){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://39.104.85.193:4105/enterprise/document?id="+e+"&type="+a,method:"get",params:t||{}})}function i(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://39.104.85.193:4105/enterprise/adddocument",method:"post",data:t})}function l(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://39.104.85.193:4105/enterprise/putdocument",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://39.104.85.193:4105/enterprise/deldocument?id="+t,method:"post"})}},"2nRT":function(t,e,a){"use strict";a.r(e);var n=a("14Xm"),o=a.n(n),r=a("D3Ub"),i=a.n(r),l=a("X4fA"),s=a("k57G"),c=(a("8fCU"),a("/sDw")),u={name:"lookStoreHouse",data:function(){return{title:"",FlowInformatiopnVisible:!1,uploadUrl:s.a,header:{Authorization:Object(l.a)()},dataForm:{file:[],id:0,ids:[],memo:"",name:"",settime:"",type:"FLOW"},dataFormRules:{},pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,dialogImageUrl:"",dialogVisible:!1,disabled:!1,fileList:[],uploadData:{enterprise:1}}},methods:{showFlowInformationForm:function(t,e,a){this.enterpriseId=a,this.FlowInformatiopnVisible=!0,this.title=t,"新增"===this.title?this.dataForm={file:[],id:0,ids:[],memo:"",name:"",settime:"",type:"FLOW"}:(this.dataForm.type="FLOW",this.dataForm=e)},submitFlowInformation:function(){var t=this;return i()(o.a.mark(function e(){var a,n,r,i,l,s;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n in t.dataForm.type="FLOW",a=new FormData,t.dataForm)void 0!=t.dataForm[n]&&""!=t.dataForm[n].toString()&&a.append(n,t.dataForm[n]);if(a.append("enterpriseid",t.enterpriseId),(r=t.$refs.upload.files)&&r.length>0)for(i=0;i<r.length;i++)a.append("file",r[i]);if("新增"!==t.title){e.next=13;break}return e.next=9,Object(c.a)(a);case 9:"200"===(l=e.sent).data.code?(t.$refs.upload.value="",t.$emit("getinfo"),t.FlowInformatiopnVisible=!1,t.$notify({type:"success",duration:2e3,message:"成功",title:"成功"})):t.$message({type:"warning",message:l.data.message}),e.next=17;break;case 13:return e.next=15,Object(c.d)(a);case 15:"200"===(s=e.sent).data.code?(t.$refs.upload.value="",t.$emit("getinfo"),t.FlowInformatiopnVisible=!1,t.$notify({type:"success",duration:2e3,message:"成功",title:"成功"})):t.$message({type:"warning",message:s.data.message});case 17:case"end":return e.stop()}},e,t)}))()}}},d=(a("XnH4"),a("KHd+")),m=Object(d.a)(u,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{visible:t.FlowInformatiopnVisible,"append-to-body":"",title:t.title,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(e){t.FlowInformatiopnVisible=e}}},[a("el-form",{ref:"dataForm",attrs:{rules:t.dataFormRules,model:t.dataForm,"label-position":"right","label-width":"140px",width:"600px"}},[a("el-form-item",{attrs:{label:"制度名称:",prop:"name"}},[a("el-input",{model:{value:t.dataForm.name,callback:function(e){t.$set(t.dataForm,"name",e)},expression:"dataForm.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"制定时间:",prop:"settime"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",placeholder:"选择日期时间"},model:{value:t.dataForm.settime,callback:function(e){t.$set(t.dataForm,"settime",e)},expression:"dataForm.settime"}})],1),t._v(" "),a("el-form-item",{attrs:{type:"textarea",label:"备注:",prop:"memo"}},[a("el-input",{model:{value:t.dataForm.memo,callback:function(e){t.$set(t.dataForm,"memo",e)},expression:"dataForm.memo"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"文件:",prop:"upload"}},[a("input",{ref:"upload",attrs:{id:"upload",type:"file",multiple:""}})])],1),t._v(" "),a("div",{attrs:{align:"right"}},[a("el-button",{on:{click:function(e){t.storeHouseVisible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitFlowInformation()}}},[t._v("确认")])],1)],1)},[],!1,null,"4285fa1c",null);m.options.__file="flowInformation.vue";e.default=m.exports},"8Upm":function(t,e,a){},XnH4:function(t,e,a){"use strict";var n=a("q6oY");a.n(n).a},fSFf:function(t,e,a){"use strict";a.r(e);var n=a("14Xm"),o=a.n(n),r=a("D3Ub"),i=a.n(r),l=a("k57G"),s=a("2nRT"),c=a("7Qib"),u=a("/sDw"),d={name:"publicSecurityDepartment",props:["enterpriseId"],data:function(){return{tableKey:0,listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,searchContent:"",FlowDataList:[],searchForm:{province:"",city:"",district:"",street:"",committee:"",type:""}}},components:{flowInformation:s.default},created:function(){this.getFlowInformationData()},methods:{getFlowInformationData:function(){var t=this;return i()(o.a.mark(function e(){var a,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a={}).pageIndex=t.currentPage,a.pageSize=t.pageSize,t.listLoading=!0,e.next=6,Object(u.c)(a,t.enterpriseId,"FLOW");case 6:"200"===(n=e.sent).data.code?(t.recordTotal=n.data.result.total,t.pageSize=n.data.result.size,t.pageTotal=Object(c.a)(n.data.result.total,n.data.result.size),t.currentPage=n.data.result.current,t.FlowDataList=n.data.result.records):t.$message({type:"warning",message:n.data.message}),t.listLoading=!1;case 9:case"end":return e.stop()}},e,t)}))()},openFlowInformationForm:function(t,e){this.$refs.flowInformation.showFlowInformationForm(t,e,this.enterpriseId)},deleteById:function(t,e){var a=this;this.$confirm("删除此条信息,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(u.b)(e.id).then(function(){a.getFlowInformationData(),a.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})})})},download:function(t,e){window.open(Object(l.a)()+e.enterpriseResources[0].url,"_blank")},handleSizeChange:function(t){this.listQuery.pageSize=t,this.getFlowInformationData()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getFlowInformationData()}}},m=(a("kuHz"),a("KHd+")),p=Object(m.a)(d,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.openFlowInformationForm("新增","")}}},[t._v("添加")])],1),t._v(" "),a("div",{staticClass:"table_content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.FlowDataList,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"制度名称",prop:"name",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"制定时间",prop:"settime",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"上传时间",prop:"createtime",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.openFlowInformationForm("修改",e.row)}}},[t._v("修改")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.download("下载",e.row)}}},[t._v("下载")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.deleteById("删除",e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("br"),t._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":t.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pageSize,total:t.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t._v(" "),a("flowInformation",{ref:"flowInformation",on:{getinfo:t.getFlowInformationData}})],1)},[],!1,null,"88fb9bae",null);p.options.__file="flowInformationCommitment.vue";e.default=p.exports},k57G:function(t,e,a){"use strict";function n(){return"http://39.104.85.193:4105/upload/"}a.d(e,"a",function(){return n})},kuHz:function(t,e,a){"use strict";var n=a("8Upm");a.n(n).a},q6oY:function(t,e,a){}}]);
|