report-ui/dist/static/js/chunk-00f4.a176d883.js

1 rad
12 KiB
JavaScript
Normal vy Historik

2023-04-14 15:55:36 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-00f4"],{"/rDb":function(e,t,a){},"1C1b":function(e,t,a){"use strict";var r=a("/rDb");a.n(r).a},CJ5O:function(e,t,a){"use strict";var r=a("14Xm"),i=a.n(r),o=a("D3Ub"),n=a.n(o),s=a("sm2R"),l={name:"GetDictionary",props:{dictKey:String,updataDict:String,value:String},data:function(){return{dictionary:"",dictionaryOptions:[]}},watch:{dictKey:{immediate:!0,handler:function(){this.getSystem()}},value:{handler:function(e){this.dictionary=e},deep:!0}},created:function(){this.getSystem()},mounted:function(){this.dictionary=this.value},methods:{getSystem:function(){var e=this;return n()(i.a.mark(function t(){var a,r,o;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(s.a)(e.dictKey);case 2:if(a=t.sent,r=a.code,o=a.data,"200"==r){t.next=7;break}return t.abrupt("return");case 7:e.dictionaryOptions=o;case 8:case"end":return t.stop()}},t,e)}))()},selectChange:function(e){this.$emit("input",e),this.$emit("change",e)}}},u=(a("1C1b"),a("KHd+")),c=Object(u.a)(l,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-select",{attrs:{placeholder:"请选择",clearable:"",size:"mini"},on:{change:e.selectChange},model:{value:e.dictionary,callback:function(t){e.dictionary=t},expression:"dictionary"}},e._l(e.dictionaryOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.text,value:e.id}})}),1)},[],!1,null,"9e2cd716",null);c.options.__file="index.vue";t.a=c.exports},Yfch:function(e,t,a){"use strict";function r(e,t,a){""==t||void 0==t||null==t?a():/^[_a-zA-Z0-9]+$/.test(t)?a():a(new Error("英文字母、数字或下划线"))}a.d(t,"a",function(){return r})},ZjmF:function(e,t,a){"use strict";a.r(t);var r=a("t3Un");function i(e){return Object(r.a)({url:"dataSource/pageList",method:"GET",params:e})}function o(e){return Object(r.a)({url:"dataSource",method:"post",data:e})}function n(e){return Object(r.a)({url:"dataSource/delete/batch",method:"post",data:e})}function s(e){return Object(r.a)({url:"dataSource",method:"put",data:e})}function l(e){return Object(r.a)({url:"dataSource/"+e.id,method:"get",params:{accessKey:e.accessKey}})}function u(e){return Object(r.a)({url:"/dataSource/testConnection",method:"post",data:e})}var c=a("gDS+"),d=a.n(c),p=a("14Xm"),m=a.n(p),f=a("D3Ub"),g=a.n(f),b=a("sm2R"),y=a("CJ5O"),h=a("Yfch"),v={name:"Support",components:{Dictionary:y.a},props:{visib:{required:!0,type:Boolean,default:!1},dataSource:{required:!1,type:Object,default:function(){return""}}},data:function(){return{dictionaryOptions:[],selectedList:[],clickType:"",formData:{},list:null,totalCount:0,totalPage:0,listLoading:!0,dialogFormVisible:!1,basicDialog:!1,params:{sourceName:"",sourceCode:"",sourceType:"",pageNumber:1,pageSize:10,order:"DESC",sort:"update_time"},dialogForm:{sourceName:"",sourceCode:"",sourceType:"",sourceDesc:"",sourceConfig:""},dataLink:[],rules:{sourceType:[{required:!0,message:"数据集名称必选",trigger:"change"}],sourceCode:[{required:!0,message:"数据集编码必填",trigger:"blur"},{validator:h.a,trigger:"blur"}],sourceName:[{required:!0,message:"数据源名称必选",trigger:"blur"}]},value:"",updataDisabled:!1,testReplyCode:null}},methods:{setDataSource:function(){var e=this;return g()(m.a.mark(function t(){var a,r,i,o,n;return m.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.dialogForm={sourceName:"",sourceCode:"",sourceType:"",sourceDesc:"",sourceConfig:""},!e.dataSource.id){t.next=14;break}return t.next=4,l(e.dataSource);case 4:if(a=t.sent,r=a.code,i=a.data,"200"==r){t.next=9;break}return t.abrupt("return");case 9:e.dialogForm=i,o=e.dialogForm,n=[],e.dictionaryOptions.map(function(e){if(e.id==o.sourceType){n=JSON.parse(e.extend);for(var t=JSON.parse(o.sourceConfig),a=0;a<n.length;a++)n[a].value=t[n[a].label]}}),e.dataLink=n;case 14:case"end":return t.stop()}},t,e)}))()},getSystem:function(){var e=this;return g()(m.a.mark(function t(){var a,r,i;return m.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(b.a)("SOURCE_TYPE");case 2:if(a=t.sent,r=a.code,i=a.data,"200