(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c0f558a"],{"365c":function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"a",(function(){return s}));var i=e("b775");e("b7ca");function n(t){return Object(i["a"])({url:"/oauth/token",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function s(t){return Object(i["a"])({url:"/sysDictData/getDictDataByType",method:"post",params:{dictTypes:t}})}},"61bf":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("layout-scroll-wrapper",{staticClass:"valid-con",attrs:{disabled:!0}},[e("layout-panel",[e("template",{slot:"title"},[e("div",{staticClass:"table-search box-shadow-b pd-tb10-lr30"},[t._v(" 系统数据效期（业务数据） "),e("popover",{attrs:{trigger:"hover",placement:"bottom-start"}},[e("div",{staticClass:"warn-msg"},[t._v("以当前日期为参考，超过效期的业务数据系统将自动删除。")]),e("fd-icon",{staticClass:"warn-icon",attrs:{slot:"reference",name:"message-warning"},slot:"reference"})],1),e("div",{staticClass:"valid-form"},[e("span",{staticClass:"valid-value"},[t._v(t._s(t.period)+" 年")]),e("div",{staticClass:"edit-btn",on:{click:function(a){t.visible=!0}}},[e("fd-icon",{attrs:{name:"write-new"}}),t._v(" 修改 ")],1)])],1)])],2),e("layout-panel",{staticClass:"table-con-sty pd-tb20-lr30",attrs:{title:"记录列表"}},[e("layout-table",{scopedSlots:t._u([{key:"default",fn:function(){return[e("EleTable",{attrs:{loading:t.loading,isShowAll:!0,"table-data":t.tableData,"table-config":{selection:!1,opt:null,headers:t.headers,index:!0}}})]},proxy:!0},t.queryParams.totalCount>0?{key:"page",fn:function(){return[e("Pagenation",{attrs:{pageConfig:t.queryParams},on:{pageChange:t.getList}})]},proxy:!0}:null],null,!0)})],1),e("GsDialog",{attrs:{modleConfig:{title:"修改效期",modelStyle:{width:"400px"}},visible:t.visible},on:{"update:visible":function(a){t.visible=a},save:t.handleSave},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"filter-form"},[e("fd-input",{model:{value:t.formPeriod,callback:function(a){t.formPeriod=a},expression:"formPeriod"}}),e("div",[t._v("年")])],1)]},proxy:!0}])})],1)},n=[],s=(e("d3b7"),e("a9e3"),e("5c96")),o=(e("99af"),e("b775")),r=function(t,a,e){return Object(o["a"])({url:"/SysDataValidity/list/".concat(a,"/").concat(e),method:"post",data:{param:t}})},l=function(t){return Object(o["a"])({url:"/SysDataValidity/add",method:"post",data:{param:t}})},d=e("365c"),c={name:"index",components:{Popover:s["Popover"]},data:function(){return{period:"",visible:!1,formPeriod:"",loading:!1,tableData:[],headers:[{label:this.$i18n.t("操作人"),id:"operator",disabled:!0,minWidth:"150px"},{label:this.$i18n.t("操作人邮箱"),id:"operatorEmail",disabled:!0,minWidth:"150px"},{label:this.$i18n.t("新值"),id:"newValue",disabled:!0,minWidth:"150px"},{label:this.$i18n.t("旧值"),id:"oldValue",disabled:!0,minWidth:"150px"},{label:this.$i18n.t("操作时间"),id:"operatorTime",disabled:!0,minWidth:"150px"}],queryParams:{totalCount:0,pageNum:1,pageSize:10}}},mounted:function(){this.getValidPeriod(),this.getList()},methods:{getValidPeriod:function(){var t=this;Object(d["a"])("sys_data_validity").then((function(a){var e=a.data;t.period=e[0].dictValue,t.formPeriod=t.period}))},handleSave:function(){var t=this;this.formPeriod||this.$message({message:"请输入数据有效期",type:"warning"}),this.$confirm({title:"提示",content:"是否确认修改数据效期",callback:function(){t.visible=!1,l({validity:t.formPeriod}).then((function(a){var e=a.data;e?(t.$message({message:"修改效期成功",type:"success"}),t.getValidPeriod(),t.getList()):t.$message({message:e.message,type:"error"})}))}})},getList:function(){var t=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.queryParams.pageNum=a,this.loading=!0,r(this.queryParams,this.queryParams.pageNum,this.queryParams.pageSize).then((function(a){var e=a.data;t.tableData=e.dataList,t.queryParams.totalCount=Number(e.totalCount)})).finally((function(){t.loading=!1}))}}},u=c,p=(e("79c2e"),e("2877")),f=Object(p["a"])(u,i,n,!1,null,"5d4acead",null);a["default"]=f.exports},"79c2e":function(t,a,e){"use strict";e("fdfd")},fdfd:function(t,a,e){}}]);