(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-1aad"],{"88rA":function(t,e,a){"use strict";a.d(e,"h",function(){return i}),a.d(e,"b",function(){return o}),a.d(e,"k",function(){return s}),a.d(e,"e",function(){return l}),a.d(e,"g",function(){return d}),a.d(e,"a",function(){return c}),a.d(e,"j",function(){return u}),a.d(e,"d",function(){return p}),a.d(e,"i",function(){return m}),a.d(e,"c",function(){return f}),a.d(e,"l",function(){return h}),a.d(e,"f",function(){return b});var n=a("X4fA"),r=a("t3Un");function i(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/standardList",method:"post",data:t})}function o(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/addstandard",method:"post",data:t})}function s(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/putstandard",method:"post",data:t})}function l(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/delstandard?id="+t,method:"post"})}function d(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/queryStandardLawList",method:"post",data:t})}function c(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/addstandardLawList",method:"post",data:t})}function u(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/putstandardLawList",method:"post",data:t})}function p(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/delstandardLawList?id="+t,method:"post"})}function m(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/queryStandardEducationLeger",method:"post",data:t})}function f(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/addstandardEducationLeger",method:"post",data:t})}function h(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/putstandardEducationLeger",method:"post",data:t})}function b(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/delstandardEducationLeger?id="+t,method:"post"})}},ha1o:function(t,e,a){},k57G:function(t,e,a){"use strict";function n(){return"http://39.104.85.193:4105/upload/"}a.d(e,"a",function(){return n})},kjvM:function(t,e,a){"use strict";var n=a("ha1o");a.n(n).a},"o+eX":function(t,e,a){"use strict";a.r(e);var n=a("14Xm"),r=a.n(n),i=a("D3Ub"),o=a.n(i),s=a("k57G"),l=a("88rA"),d=a("7Qib"),c=(a("WZwz"),{name:"lawManagement",props:["enterpriseId"],data:function(){return{title:"",tableKey:0,listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,searchContent:"",listQuery:{filter:{name:""},pageIndex:1,pageSize:10},provinceList:[],cityList:[],districtList:[],streetList:[],committeeList:[],LawAccountData:[],lawManagementVisible:!1,dataFormRules:{},dataForm:{claim:"",effectivedate:"",department:"",number:"",description:"",ranges:"",updateinfo:"",orderindex:"",file:"",id:""}}},created:function(){this.getLawAccountListData()},methods:{getLawAccountListData:function(){var t=this;return o()(r.a.mark(function e(){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(l.g)(t.listQuery);case 3:"200"===(a=e.sent).data.code?(t.recordTotal=a.data.result.total,t.pageSize=a.data.result.size,t.pageTotal=Object(d.a)(a.data.result.total,a.data.result.size),t.currentPage=a.data.result.current,t.LawAccountData=a.data.result.records):t.$message({type:"warning",message:a.data.message}),t.listLoading=!1;case 6:case"end":return e.stop()}},e,t)}))()},searchData:function(){this.getLawAccountListData()},handleSizeChange:function(t){this.listQuery.pageSize=t,this.getLawAccountListData()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getLawAccountListData()},add:function(t,e){this.lawManagementVisible=!0,"新增"===t?(this.title="新增",this.dataForm={claim:"",effectivedate:"",department:"",number:"",description:"",ranges:"",updateinfo:"",orderindex:"",file:"",id:""}):(this.title="修改",this.dataForm.claim=e.claim,this.dataForm.effectivedate=e.effectivedate,this.dataForm.department=e.department,this.dataForm.number=e.number,this.dataForm.description=e.description,this.dataForm.ranges=e.ranges,this.dataForm.updateinfo=e.updateinfo,this.dataForm.orderindex=e.orderindex,this.dataForm.id=e.id)},download:function(t){window.open(Object(s.a)()+t,"_blank")},submit:function(){var t=this;return o()(r.a.mark(function e(){var a,n,i,o;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n in t.dataForm.file=t.$refs.upload.files[0],a=new FormData,t.dataForm)void 0!=t.dataForm[n]&&""!=t.dataForm[n].toString()&&a.append(n,t.dataForm[n]);if("新增"!==t.title){e.next=10;break}return e.next=6,Object(l.a)(a);case 6:"200"===(i=e.sent).data.code?(t.$refs.upload.value="",t.lawManagementVisible=!1,t.searchData(),t.$notify({duration:2e3,type:"success",message:"新增成功",title:"成功"})):t.$message({type:"warning",message:i.data.message}),e.next=14;break;case 10:return e.next=12,Object(l.j)(a);case 12:"200"===(o=e.sent).data.code?(t.$refs.upload.value="",t.lawManagementVisible=!1,t.searchData(),t.$notify({duration:2e3,type:"success",message:"修改成功",title:"成功"})):t.$message({type:"warning",message:o.data.message});case 14:case"end":return e.stop()}},e,t)}))()},deleteById:function(t){var e=this;this.$confirm("删除此条信息,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(l.d)(t.id).then(function(){e.getLawAccountListData(),e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})})})}}}),u=(a("kjvM"),a("KHd+")),p=Object(u.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{display:"block"}},[a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[t._v("按法律法规标准查:")]),t._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:""},model:{value:t.listQuery.filter.name,callback:function(e){t.$set(t.listQuery.filter,"name",e)},expression:"listQuery.filter.name"}})],1),t._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"margin-right":"10px"}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.add("新增","")}}},[t._v("添加")]),t._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.searchData()}}},[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.LawAccountData,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:"claim",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"生效日期",prop:"effectivedate",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"颁布部门",prop:"department",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"法规/标准编号",prop:"number",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"相关条款说明",prop:"description",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"适用范围",prop:"ranges",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"更新情况",prop:"updateinfo",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.download(e.row.url)}}},[t._v("下载")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.add("修改",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}}),t._v(" "),a("br")],1),t._v(" "),a("el-dialog",{attrs:{visible:t.lawManagementVisible,"append-to-body":"",title:t.title,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(e){t.lawManagementVisible=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:"claim"}},[a("el-input",{staticClass:"content_qw",model:{value:t.dataForm.claim,callback:function(e){t.$set(t.dataForm,"claim",e)},expression:"dataForm.claim"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"生效日期:",prop:"effectivedate"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"date",placeholder:"选择日期时间"},model:{value:t.dataForm.effectivedate,callback:function(e){t.$set(t.dataForm,"effectivedate",e)},expression:"dataForm.effectivedate"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"颁布部门:",prop:"department"}},[a("el-input",{staticClass:"content_qw",model:{value:t.dataForm.department,callback:function(e){t.$set(t.dataForm,"department",e)},expression:"dataForm.department"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"法规/标准编号:",prop:"number"}},[a("el-input",{staticClass:"content_qw",model:{value:t.dataForm.number,callback:function(e){t.$set(t.dataForm,"number",e)},expression:"dataForm.number"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"相关条款说明:",prop:"description"}},[a("el-input",{staticClass:"content_qw",model:{value:t.dataForm.description,callback:function(e){t.$set(t.dataForm,"description",e)},expression:"dataForm.description"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"适用范围:",prop:"ranges"}},[a("el-input",{staticClass:"content_qw",model:{value:t.dataForm.ranges,callback:function(e){t.$set(t.dataForm,"ranges",e)},expression:"dataForm.ranges"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"更新情况:",prop:"updateinfo"}},[a("el-input",{staticClass:"content_qw",model:{value:t.dataForm.updateinfo,callback:function(e){t.$set(t.dataForm,"updateinfo",e)},expression:"dataForm.updateinfo"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"排序顺序:",prop:"orderindex"}},[a("el-input",{staticClass:"content_qw",model:{value:t.dataForm.orderindex,callback:function(e){t.$set(t.dataForm,"orderindex",e)},expression:"dataForm.orderindex"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"许可范围:",prop:"upload"}},[a("input",{ref:"upload",attrs:{id:"upload",type:"file"}})])],1),t._v(" "),a("div",{attrs:{align:"right"}},[a("el-button",{on:{click:function(e){t.lawManagementVisible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submit()}}},[t._v("确认")])],1)],1)],1)},[],!1,null,"fe50a6a8",null);p.options.__file="index.vue";e.default=p.exports}}]);
|