gds-plus-design-vue 1.1.87 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{chartbi.c211f08d.js → chartbi.06e48153.js} +20 -20
- package/lib/{chartbi.090c7bd2.mjs → chartbi.cdd1e365.mjs} +21 -14
- package/lib/gd-initial.js +12 -12
- package/lib/gd-initial.mjs +1993 -1336
- package/lib/main.2415a49a.js +1 -0
- package/lib/{main.b4723893.mjs → main.2cddfbbd.mjs} +5 -5
- package/lib/{main.6903ab7a.js → main.4c447fc3.js} +1 -1
- package/lib/{main.197a0d5f.mjs → main.86fe06d4.mjs} +6 -6
- package/lib/{main.4f2a165f.mjs → main.b2d0a309.mjs} +10 -10
- package/lib/{main.d1772cf9.js → main.d091d06d.js} +1 -1
- package/lib/{messages.0e2d9d5a.js → messages.2fff74f3.js} +5 -5
- package/lib/{messages.a9287789.mjs → messages.d8abe18d.mjs} +18 -18
- package/lib/style.css +3 -3
- package/lib/{system.account.d3dd14ec.js → system.account.8ea53681.js} +2 -2
- package/lib/{system.account.e95f40c9.mjs → system.account.9bc40d08.mjs} +230 -230
- package/lib/{system.config.e74cc108.mjs → system.config.8223d495.mjs} +3 -3
- package/lib/{system.config.1164deec.js → system.config.c6e30213.js} +1 -1
- package/lib/{system.datasource.034737e6.mjs → system.datasource.57233650.mjs} +3 -3
- package/lib/{system.datasource.813c512e.js → system.datasource.fd6a4e76.js} +1 -1
- package/lib/{system.dict.9b1038c3.mjs → system.dict.8f95218b.mjs} +115 -89
- package/lib/system.dict.a24f33b0.js +1 -0
- package/lib/{system.duplicatechecking.e5542a97.js → system.duplicatechecking.39293985.js} +1 -1
- package/lib/{system.duplicatechecking.1aac5b8c.mjs → system.duplicatechecking.6b706948.mjs} +17 -9
- package/lib/{system.email.6041b7b0.js → system.email.a2d9a307.js} +2 -2
- package/lib/{system.email.96d35919.mjs → system.email.dae988be.mjs} +4 -4
- package/lib/{system.fieldsecurity.0909e14b.mjs → system.fieldsecurity.02627a7a.mjs} +14 -14
- package/lib/{system.fieldsecurity.eb33e06f.js → system.fieldsecurity.a0cec24d.js} +1 -1
- package/lib/{system.file.507bf874.mjs → system.file.0fa095a9.mjs} +4 -4
- package/lib/{system.file.e37f9bd2.js → system.file.d695ab37.js} +1 -1
- package/lib/{system.log.0c37bd82.mjs → system.log.acb64505.mjs} +2 -2
- package/lib/{system.log.73097e0b.js → system.log.c07ae5db.js} +1 -1
- package/lib/{system.machine.4302c7e3.js → system.machine.7fa3e3d1.js} +1 -1
- package/lib/{system.machine.fb7aa834.mjs → system.machine.fc392d7f.mjs} +2 -2
- package/lib/{system.notice.128ebe61.mjs → system.notice.5ae50bd4.mjs} +5 -5
- package/lib/{system.notice.d92fe0cd.js → system.notice.f18578ae.js} +1 -1
- package/lib/{system.noticereceived.54ac8bcb.mjs → system.noticereceived.1aa70b65.mjs} +4 -4
- package/lib/{system.noticereceived.32361d39.js → system.noticereceived.bfa98a9b.js} +1 -1
- package/lib/{system.onlineuser.2c37c72c.js → system.onlineuser.1c428d05.js} +1 -1
- package/lib/{system.onlineuser.2a4b2db5.mjs → system.onlineuser.3d848a32.mjs} +2 -2
- package/lib/{system.org.df5901a3.js → system.org.5bb36f9c.js} +1 -1
- package/lib/{system.org.146afbe9.mjs → system.org.fcf96d1e.mjs} +3 -3
- package/lib/{system.permissions.5f00b39f.mjs → system.permissions.23f5b097.mjs} +11 -11
- package/lib/{system.permissions.41571e57.js → system.permissions.a1a9505c.js} +2 -2
- package/lib/{system.plugin.ddd4c699.js → system.plugin.b6de4673.js} +1 -1
- package/lib/{system.plugin.9b9c4301.mjs → system.plugin.e37f9dbc.mjs} +4 -4
- package/lib/{system.pos.eb8248c1.mjs → system.pos.1a01fc97.mjs} +3 -3
- package/lib/{system.pos.352032e6.js → system.pos.a4fb19b0.js} +1 -1
- package/lib/system.promptmanagement.290958b1.js +1 -0
- package/lib/{system.promptmanagement.cd36225c.mjs → system.promptmanagement.36a65c51.mjs} +20 -12
- package/lib/{system.role.8d9f0f33.mjs → system.role.68de93ef.mjs} +13 -13
- package/lib/{system.role.656fa7cc.js → system.role.88100f66.js} +1 -1
- package/lib/{system.sumberrules.6eee79be.mjs → system.sumberrules.cdef9308.mjs} +5 -5
- package/lib/system.sumberrules.dd6299e8.js +1 -0
- package/lib/system.team.53d64006.js +1 -0
- package/lib/system.team.ee652fe4.mjs +926 -0
- package/lib/system.teammembers.26a2ba81.mjs +398 -0
- package/lib/system.teammembers.4a3dc336.js +1 -0
- package/lib/{system.timers.f4eaacaf.mjs → system.timers.4efa8a7d.mjs} +16 -16
- package/lib/{system.timers.a348d394.js → system.timers.b9424204.js} +2 -2
- package/lib/{system.translation.00e5bfa2.mjs → system.translation.0a9399b4.mjs} +14 -14
- package/lib/{system.translation.aa511bcb.js → system.translation.21d2fd8b.js} +1 -1
- package/lib/{system.user.eecef7c2.mjs → system.user.4fcfdf99.mjs} +9 -9
- package/lib/{system.user.2a00c354.js → system.user.d48a08db.js} +3 -3
- package/lib/{system.useraffiliation.f986d344.js → system.useraffiliation.a59ce45b.js} +1 -1
- package/lib/{system.useraffiliation.d638afe1.mjs → system.useraffiliation.fb002239.mjs} +7 -7
- package/lib/{system.webresource.5071b3f4.js → system.webresource.3366cc29.js} +1 -1
- package/lib/{system.webresource.d25eab7d.mjs → system.webresource.4df01c92.mjs} +9 -9
- package/lib/{system.welcome.1988f581.mjs → system.welcome.120f4b50.mjs} +2 -2
- package/lib/{system.welcome.b6ec1ec0.js → system.welcome.472f099b.js} +1 -1
- package/locale/el/en_US.js +122 -122
- package/locale/el/id_ID.js +122 -122
- package/locale/el/vi_VN.js +122 -122
- package/locale/el/zh_CN.js +122 -122
- package/locale/en_US.js +17 -2
- package/locale/id_ID.js +17 -2
- package/locale/vi_VN.js +17 -2
- package/locale/zh_CN.js +17 -2
- package/package.json +1 -1
- package/lib/main.d9f793bb.js +0 -1
- package/lib/system.dict.2deb0cde.js +0 -1
- package/lib/system.promptmanagement.25e1639b.js +0 -1
- package/lib/system.sumberrules.0a269af6.js +0 -1
- /package/lib/{element-theme-chalk.ae828c17.js → element-theme-chalk.dee12271.js} +0 -0
- /package/lib/{element-theme-chalk.35b1f600.mjs → element-theme-chalk.fbb1a631.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as i, n as d } from "./chartbi.
|
|
2
|
-
import { t as c, b as u, c as g, d as p, e as f } from "./messages.
|
|
1
|
+
import { m as i, n as d } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { t as c, b as u, c as g, d as p, e as f } from "./messages.d8abe18d.mjs";
|
|
3
3
|
const h = {
|
|
4
4
|
data() {
|
|
5
5
|
return {
|
|
@@ -360,7 +360,7 @@ var y = function() {
|
|
|
360
360
|
b,
|
|
361
361
|
!1,
|
|
362
362
|
null,
|
|
363
|
-
"
|
|
363
|
+
"00d35378",
|
|
364
364
|
null,
|
|
365
365
|
null
|
|
366
366
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("./chartbi.
|
|
1
|
+
"use strict";const d=require("./chartbi.06e48153.js"),l=require("./messages.2fff74f3.js"),c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.sysConfig.name",prop:"name",label:"\u53C2\u6570\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.sysConfig.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.sysConfig.value",prop:"value",label:"\u53C2\u6570\u503C",align:"left"},{transKey:"gd.sysConfig.groupCode",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",type:"slot",slotType:"groupcode",align:"left",showOverflowTooltip:!0},{transKey:"gd.sysConfig.remark",prop:"remark",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.sysConfig.name",effectType:"input",prop:"name",label:"\u53C2\u6570\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.code",effectType:"input",prop:"code",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.systemParameter",prop:"sysflag",label:"\u7CFB\u7EDF\u53C2\u6570",effectType:"radio",disabled:!1,dictData:[{name:"\u662F",code:"Y",transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:"N",transKey:"placeholder.no",prefix:"gd"}],rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.groupCode",effectType:"select",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"consts_type",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.sysConfig.value",effectType:"input",prop:"value",label:"\u53C2\u6570\u503C",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysConfig:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysConfig:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysConfig:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.sysConfig.name",effectType:"input",prop:"name",label:"\u53C2\u6570\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.sysConfig.code",effectType:"input",prop:"code",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.sysConfig.groupCode",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",effectType:"select",dictTypeCode:"consts_type",rules:[]}]}}};const u={name:"GdConfig",props:{height:{type:Number,default:100}},mixins:[l.tablesFilter,c],data(){return{selectedRowKeys:[],selectedRows:[],transKey:"gd.btn.add",formLoading:!1,currentNode:null,loadData:t=>l.sysConfigPage(Object.assign(t,this.queryParam)).then(e=>e.data),queryParam:{},sysFlag:{}}},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(t=>(["\u552F\u4E00\u7F16\u7801","\u6240\u5C5E\u5206\u7C7B","\u7CFB\u7EDF\u53C2\u6570"].includes(t.label)&&(t.disabled=this.sysFlag.sysflag==="Y"),t))},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},mounted(){},methods:{onSelectChange(t,e){this.selectedRows=e,this.selectedRowKeys=t},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.sysFlag=t,this.$refs.editForm.open(Object.assign({...t},{groupcode:String(t.groupcode)}))},saveQueries(t){this.queryParam=t,this.refresh()},add(){this.transKey="gd.btn.add",this.sysFlag={},this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:s},r,a){this.formLoading=!0,(e?l.sysConfigEdit:l.sysConfigAdd)(t).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let r=[];this.selectedRows.forEach(a=>{let o=l.sysConfigDelete(a).then(n=>n);r.push(o)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const o=a.filter(n=>!n.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.refresh()})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var g=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"code",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"code",row:a}})]}},{key:"value",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"value",row:a}})]}},{key:"remark",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"groupcode",fn:function(r){return[s("el-tag",{style:e._f("dictColor")("consts_type",r.row.groupcode),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("consts_type",r.row.groupcode))+" ")])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.sysConfig.name","\u53C2\u6570\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}})],1)},p=[],f=d.normalizeComponent(u,g,p,!1,null,"00d35378",null,null);const i=f.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as l, n as d } from "./chartbi.
|
|
2
|
-
import { t as c } from "./messages.
|
|
1
|
+
import { m as l, n as d } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { t as c } from "./messages.d8abe18d.mjs";
|
|
3
3
|
function u(t) {
|
|
4
4
|
return window.axios({
|
|
5
5
|
url: "/sysDataSource/page",
|
|
@@ -497,7 +497,7 @@ var w = function() {
|
|
|
497
497
|
S,
|
|
498
498
|
!1,
|
|
499
499
|
null,
|
|
500
|
-
"
|
|
500
|
+
"608adc74",
|
|
501
501
|
null,
|
|
502
502
|
null
|
|
503
503
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./chartbi.c211f08d.js"),d=require("./messages.0e2d9d5a.js");function c(t){return window.axios({url:"/sysDataSource/page",method:"get",params:t})}function u(t){return window.axios({url:"/sysDataSource/add",method:"post",data:t})}function p(t){return window.axios({url:"/sysDataSource/delete",method:"post",data:t})}function h(t){return window.axios({url:"/sysDataSource/edit",method:"post",data:t})}function g(t){return window.axios({url:"/sysDataSource/testConnection",method:"post",data:t})}function y(t){return window.axios({url:"/sysDataSource/detail",method:"get",params:t})}function f(t){return window.axios({url:"/sysDataSource/getTableColumns",method:"post",data:t})}const m={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{type:"selection-radio",width:"60",fixed:!0},{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",width:"180",type:"slot",slotType:"datasourcetype",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"selectMultiple",dictTypeCode:"datasourcetype"})},{transKey:"gd.dataSource.host",prop:"host",width:"200",label:"\u4E3B\u673A",align:"left"},{transKey:"gd.dataSource.port",prop:"port",width:"120",label:"\u7AEF\u53E3",align:"left"},{transKey:"gd.dataSource.database",prop:"database",width:"180",label:"\u6570\u636E\u5E93",align:"left"},{transKey:"gd.user.status",prop:"statecodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.dataSource.connectionString",prop:"connectstring",width:"260",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.task.description",prop:"description",width:"260",label:"\u63CF\u8FF0",align:"left"}],formColumns:[{transKey:"gd.dataSource.name",effectType:"input",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",effectType:"select",label:"\u6570\u636E\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"datasourcetype",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.dataSource.host",effectType:"input",prop:"host",label:"\u4E3B\u673A",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.port",effectType:"input",prop:"port",label:"\u7AEF\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.database",effectType:"input",prop:"database",label:"\u6570\u636E\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.userName",effectType:"input",prop:"userid",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.paw",effectType:"input",prop:"password",label:"\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}],type:"slot",slotType:"password"},{transKey:"gd.dataSource.extend",effectType:"input",prop:"extraparm",label:"\u6269\u5C55",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.dataSource.connectionString",effectType:"textarea",prop:"connectstring",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.task.description",effectType:"textarea",prop:"description",label:"\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDataSource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDataSource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDataSource:delete"}],formButtons:[{displayName:"\u6D4B\u8BD5\u8FDE\u63A5",functionName:"handleConnection",show:!0,transKey:"gd.dataSource.testConnection",icon:"el-icon-connection",validate:!0},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",effectType:"selectMultiple",dictTypeCode:"datasourcetype",rules:[]}]}}};const b={name:"GdDataSource",props:{height:{type:Number,default:100},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},mixins:[d.tablesFilter,m],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},type:"password",loadData:t=>c(Object.assign(t,this.queryParam)).then(e=>(e.success&&this.openMode==2&&this.$emit("changeData",e.data.rows),e.data))}},computed:{getTableColumns(){return this.tableColumns.filter(t=>t.type==="selection"?this.openMode==1:t.type==="selection-radio"?this.openMode!=1:!0)},getHeight(){const t=this.openMode==2?80:0;return this.height-t},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{swichType(){this.type=this.type==="password"?"text":"password"},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(t).then(e=>{const a=y({id:t.id});e.done(a),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,a)=>{this.delHand(t,e,a)}})},delHand(t,e,a){if(t!=="confirm"){a();return}let r=[];this.selectedRows.forEach(s=>{let o=p(s).then(n=>n);r.push(o)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(s=>{a();const o=s.filter(n=>!n.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},async edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:a},r,s){let o=a.item.functionName;this[o]&&this[o]({data:t,record:e,btn:a},r,s)},handleSubmit({data:t,record:e,btn:a},r,s){this.formLoading=!0,(e?h:u)(t).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.formLoading=!1})},handleConnection({data:t,record:e,btn:a},r,s){this.formLoading=!0,g(t).then(o=>{o.code===400?this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message):this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.formLoading=!1})},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},dictSwitch(t,e){let a=this.$options.filters.dictData(e).filter(r=>r.code==t)[0];return a!=null&&a.colour?a.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){if(this.openMode==2&&this.record.options.val!==void 0){const t=typeof this.record.options.val;let e=t==="string"||t==="number"?[this.record.options.val]:[...this.record.options.val];this.selectedRowKeys=e.filter(a=>a!=="")}}};var w=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.getTableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"datasourcetype",fn:function({column:r,row:s}){return[e.dictSwitch(s.datasourcetype,"datasourcetype")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.datasourcetype,"datasourcetype")}},[e._v(" "+e._s(e._f("dictType")("datasourcetype",s.datasourcetype))+" ")]):a("span",[e._v(e._s(e._f("dictType")("datasourcetype",s.datasourcetype)))])]}},{key:"statecodes",fn:function({column:r,row:s}){return[e.dictSwitch(s.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.statecodes))+" ")]):a("span",[e._v(e._s(e._f("dictType")("state_code",s.statecodes)))])]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.dataSource.name","\u8FDE\u63A5\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:s}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:s},on:{save:e.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode,needLoad:!0},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"password",fn:function({data:r,column:s}){return[a("el-input",{attrs:{type:e.type,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:r[s.prop],callback:function(o){e.$set(r,s.prop,o)},expression:"data[column.prop]"}},[a("i",{staticClass:"el-input__icon gd-icons",class:e.type==="password"?"gd-icon-icon-test2":"gd-icon-icon-test1",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.swichType},slot:"suffix"})])]}}])})],1)},S=[],K=l.normalizeComponent(b,w,S,!1,null,"3033057f",null,null);const i=K.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;exports.sysDataSourceColumns=f;
|
|
1
|
+
"use strict";const l=require("./chartbi.06e48153.js"),d=require("./messages.2fff74f3.js");function c(t){return window.axios({url:"/sysDataSource/page",method:"get",params:t})}function u(t){return window.axios({url:"/sysDataSource/add",method:"post",data:t})}function p(t){return window.axios({url:"/sysDataSource/delete",method:"post",data:t})}function h(t){return window.axios({url:"/sysDataSource/edit",method:"post",data:t})}function g(t){return window.axios({url:"/sysDataSource/testConnection",method:"post",data:t})}function y(t){return window.axios({url:"/sysDataSource/detail",method:"get",params:t})}function f(t){return window.axios({url:"/sysDataSource/getTableColumns",method:"post",data:t})}const m={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{type:"selection-radio",width:"60",fixed:!0},{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",width:"180",type:"slot",slotType:"datasourcetype",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"selectMultiple",dictTypeCode:"datasourcetype"})},{transKey:"gd.dataSource.host",prop:"host",width:"200",label:"\u4E3B\u673A",align:"left"},{transKey:"gd.dataSource.port",prop:"port",width:"120",label:"\u7AEF\u53E3",align:"left"},{transKey:"gd.dataSource.database",prop:"database",width:"180",label:"\u6570\u636E\u5E93",align:"left"},{transKey:"gd.user.status",prop:"statecodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.dataSource.connectionString",prop:"connectstring",width:"260",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.task.description",prop:"description",width:"260",label:"\u63CF\u8FF0",align:"left"}],formColumns:[{transKey:"gd.dataSource.name",effectType:"input",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",effectType:"select",label:"\u6570\u636E\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"datasourcetype",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.dataSource.host",effectType:"input",prop:"host",label:"\u4E3B\u673A",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.port",effectType:"input",prop:"port",label:"\u7AEF\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.database",effectType:"input",prop:"database",label:"\u6570\u636E\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.userName",effectType:"input",prop:"userid",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.paw",effectType:"input",prop:"password",label:"\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}],type:"slot",slotType:"password"},{transKey:"gd.dataSource.extend",effectType:"input",prop:"extraparm",label:"\u6269\u5C55",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.dataSource.connectionString",effectType:"textarea",prop:"connectstring",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.task.description",effectType:"textarea",prop:"description",label:"\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDataSource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDataSource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDataSource:delete"}],formButtons:[{displayName:"\u6D4B\u8BD5\u8FDE\u63A5",functionName:"handleConnection",show:!0,transKey:"gd.dataSource.testConnection",icon:"el-icon-connection",validate:!0},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",effectType:"selectMultiple",dictTypeCode:"datasourcetype",rules:[]}]}}};const b={name:"GdDataSource",props:{height:{type:Number,default:100},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},mixins:[d.tablesFilter,m],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},type:"password",loadData:t=>c(Object.assign(t,this.queryParam)).then(e=>(e.success&&this.openMode==2&&this.$emit("changeData",e.data.rows),e.data))}},computed:{getTableColumns(){return this.tableColumns.filter(t=>t.type==="selection"?this.openMode==1:t.type==="selection-radio"?this.openMode!=1:!0)},getHeight(){const t=this.openMode==2?80:0;return this.height-t},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{swichType(){this.type=this.type==="password"?"text":"password"},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(t).then(e=>{const a=y({id:t.id});e.done(a),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,a)=>{this.delHand(t,e,a)}})},delHand(t,e,a){if(t!=="confirm"){a();return}let r=[];this.selectedRows.forEach(s=>{let o=p(s).then(n=>n);r.push(o)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(s=>{a();const o=s.filter(n=>!n.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},async edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:a},r,s){let o=a.item.functionName;this[o]&&this[o]({data:t,record:e,btn:a},r,s)},handleSubmit({data:t,record:e,btn:a},r,s){this.formLoading=!0,(e?h:u)(t).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.formLoading=!1})},handleConnection({data:t,record:e,btn:a},r,s){this.formLoading=!0,g(t).then(o=>{o.code===400?this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message):this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.formLoading=!1})},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},dictSwitch(t,e){let a=this.$options.filters.dictData(e).filter(r=>r.code==t)[0];return a!=null&&a.colour?a.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){if(this.openMode==2&&this.record.options.val!==void 0){const t=typeof this.record.options.val;let e=t==="string"||t==="number"?[this.record.options.val]:[...this.record.options.val];this.selectedRowKeys=e.filter(a=>a!=="")}}};var w=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.getTableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"datasourcetype",fn:function({column:r,row:s}){return[e.dictSwitch(s.datasourcetype,"datasourcetype")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.datasourcetype,"datasourcetype")}},[e._v(" "+e._s(e._f("dictType")("datasourcetype",s.datasourcetype))+" ")]):a("span",[e._v(e._s(e._f("dictType")("datasourcetype",s.datasourcetype)))])]}},{key:"statecodes",fn:function({column:r,row:s}){return[e.dictSwitch(s.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.statecodes))+" ")]):a("span",[e._v(e._s(e._f("dictType")("state_code",s.statecodes)))])]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.dataSource.name","\u8FDE\u63A5\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:s}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:s},on:{save:e.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode,needLoad:!0},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"password",fn:function({data:r,column:s}){return[a("el-input",{attrs:{type:e.type,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:r[s.prop],callback:function(o){e.$set(r,s.prop,o)},expression:"data[column.prop]"}},[a("i",{staticClass:"el-input__icon gd-icons",class:e.type==="password"?"gd-icon-icon-test2":"gd-icon-icon-test1",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.swichType},slot:"suffix"})])]}}])})],1)},S=[],K=l.normalizeComponent(b,w,S,!1,null,"608adc74",null,null);const i=K.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;exports.sysDataSourceColumns=f;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as d, n as c } from "./chartbi.
|
|
2
|
-
import { t as u } from "./messages.
|
|
1
|
+
import { m as d, n as c } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { t as u } from "./messages.d8abe18d.mjs";
|
|
3
3
|
function p(t) {
|
|
4
4
|
return window.axios({
|
|
5
5
|
url: "/sysDictType/page",
|
|
@@ -347,7 +347,7 @@ const $ = {
|
|
|
347
347
|
align: "left",
|
|
348
348
|
effectType: "input",
|
|
349
349
|
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
350
|
-
effectType: "
|
|
350
|
+
effectType: "input"
|
|
351
351
|
})
|
|
352
352
|
},
|
|
353
353
|
{
|
|
@@ -410,12 +410,13 @@ const $ = {
|
|
|
410
410
|
placeholderTransKey: "gd.placeholder.input",
|
|
411
411
|
disabled: !1,
|
|
412
412
|
defaultValue: "undefined",
|
|
413
|
+
type: "slot",
|
|
414
|
+
slotType: "code",
|
|
413
415
|
rules: [{
|
|
414
416
|
required: !0,
|
|
415
417
|
message: "\u8BF7\u8F93\u5165",
|
|
416
418
|
transKey: "gd.placeholder.input",
|
|
417
|
-
trigger: "blur"
|
|
418
|
-
type: "number"
|
|
419
|
+
trigger: "blur"
|
|
419
420
|
}]
|
|
420
421
|
}, {
|
|
421
422
|
transKey: "gd.dict.colour",
|
|
@@ -551,14 +552,25 @@ const v = {
|
|
|
551
552
|
queryParam: {},
|
|
552
553
|
loadData: (t) => this.typeId === "" ? new Promise((e, s) => {
|
|
553
554
|
this.disableBtn = ["\u7F16\u8F91", "\u65B0\u589E", "\u5220\u9664", "\u542F\u7528", "\u505C\u7528"], e({ pageNo: 1, pageSize: 40, totalRows: 0, rows: [] });
|
|
554
|
-
}) : (this.disableBtn = this.record.dict_type == 1 ? ["\u65B0\u589E", "\u5220\u9664", "\u542F\u7528", "\u505C\u7528"] : [],
|
|
555
|
+
}) : b(Object.assign(t, this.queryParam, { typeId: this.typeId })).then((e) => (this.disableBtn = this.record.dict_type == 1 ? ["\u65B0\u589E", "\u5220\u9664", "\u542F\u7528", "\u505C\u7528"] : [], e.data)),
|
|
555
556
|
disableBtn: [],
|
|
556
|
-
disableFormBtn: []
|
|
557
|
+
disableFormBtn: [],
|
|
558
|
+
codeRules: !0
|
|
557
559
|
};
|
|
558
560
|
},
|
|
559
561
|
computed: {
|
|
560
562
|
getFormColumns() {
|
|
561
|
-
|
|
563
|
+
const t = {
|
|
564
|
+
required: !0,
|
|
565
|
+
message: "\u8BF7\u8F93\u5165",
|
|
566
|
+
transKey: "gd.placeholder.input",
|
|
567
|
+
trigger: "blur"
|
|
568
|
+
};
|
|
569
|
+
return this.formColumns.filter((e) => (e.disabled = this.disableFormBtn.length !== 0, ["\u989C\u8272", "\u6392\u5E8F"].includes(e.label) && (e.disabled = !1), e.prop === "code" && (e.rules = [
|
|
570
|
+
this.codeRules ? Object.assign({}, t, {
|
|
571
|
+
type: "number"
|
|
572
|
+
}) : t
|
|
573
|
+
]), e));
|
|
562
574
|
},
|
|
563
575
|
getFormButtons() {
|
|
564
576
|
return this.formButtons;
|
|
@@ -569,6 +581,12 @@ const v = {
|
|
|
569
581
|
...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
570
582
|
},
|
|
571
583
|
methods: {
|
|
584
|
+
getInputType(t, e, s) {
|
|
585
|
+
if (!s)
|
|
586
|
+
return !0;
|
|
587
|
+
const i = typeof t[e.prop] == "number", a = isNaN(Number(t[e.prop]));
|
|
588
|
+
return i || !a;
|
|
589
|
+
},
|
|
572
590
|
lookupSeled(t, e, s) {
|
|
573
591
|
e[s.prop] = t.defaulttext;
|
|
574
592
|
},
|
|
@@ -586,9 +604,9 @@ const v = {
|
|
|
586
604
|
this.$message.error(this.$i18nt("gd.https.operableNoTip", "\u4E0D\u53EF\u64CD\u4F5C!"));
|
|
587
605
|
return;
|
|
588
606
|
}
|
|
589
|
-
const s = e.statecodes != 1 ? this.$i18nt("gd.https.enableContent", "\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?") : this.$i18nt("gd.https.deactivateContent", "\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),
|
|
607
|
+
const s = e.statecodes != 1 ? this.$i18nt("gd.https.enableContent", "\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?") : this.$i18nt("gd.https.deactivateContent", "\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"), i = e.statecodes != 1 ? this.$i18nt("gd.https.enableOk", "\u786E\u8BA4\u505C\u7528") : this.$i18nt("gd.https.deactivateOk", "\u786E\u8BA4\u542F\u7528");
|
|
590
608
|
this.$confirm(s, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
591
|
-
confirmButtonText:
|
|
609
|
+
confirmButtonText: i,
|
|
592
610
|
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
593
611
|
showClose: !1,
|
|
594
612
|
confirmButtonLoading: !1,
|
|
@@ -599,8 +617,8 @@ const v = {
|
|
|
599
617
|
customClass: "custom-alert",
|
|
600
618
|
callback: () => {
|
|
601
619
|
},
|
|
602
|
-
beforeClose: (
|
|
603
|
-
if (
|
|
620
|
+
beforeClose: (a, r, n) => {
|
|
621
|
+
if (a !== "confirm") {
|
|
604
622
|
n();
|
|
605
623
|
return;
|
|
606
624
|
}
|
|
@@ -616,8 +634,9 @@ const v = {
|
|
|
616
634
|
refresh() {
|
|
617
635
|
this.$refs.tableManage.refresh();
|
|
618
636
|
},
|
|
619
|
-
editForm(t
|
|
620
|
-
|
|
637
|
+
editForm(t) {
|
|
638
|
+
const e = this.formColumns.filter((s) => s.prop === "code")[0];
|
|
639
|
+
this.codeRules = this.getInputType(t, e, t), this.transKey = "gd.btn.edit", this.$refs.editForm.open(t);
|
|
621
640
|
},
|
|
622
641
|
del() {
|
|
623
642
|
if (this.record.dict_type == 1) {
|
|
@@ -650,18 +669,19 @@ const v = {
|
|
|
650
669
|
s();
|
|
651
670
|
return;
|
|
652
671
|
}
|
|
653
|
-
let
|
|
654
|
-
this.selectedRows.forEach((
|
|
655
|
-
let r = C(
|
|
656
|
-
|
|
657
|
-
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(
|
|
672
|
+
let i = [];
|
|
673
|
+
this.selectedRows.forEach((a) => {
|
|
674
|
+
let r = C(a).then((n) => n);
|
|
675
|
+
i.push(r);
|
|
676
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((a) => {
|
|
658
677
|
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
|
|
659
|
-
const r =
|
|
678
|
+
const r = a.filter((n) => !n.success);
|
|
660
679
|
r.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + r[0].message), this.handleOk();
|
|
661
680
|
});
|
|
662
681
|
},
|
|
663
682
|
add() {
|
|
664
|
-
|
|
683
|
+
const t = this.formColumns.filter((e) => e.prop === "code")[0];
|
|
684
|
+
this.codeRules = this.getInputType({}, t, null), this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
665
685
|
},
|
|
666
686
|
edit() {
|
|
667
687
|
if (this.selectedRowKeys.length === 0) {
|
|
@@ -674,9 +694,9 @@ const v = {
|
|
|
674
694
|
}
|
|
675
695
|
this.editForm(this.selectedRows[0]);
|
|
676
696
|
},
|
|
677
|
-
sbumit({ data: t, record: e, btn: s },
|
|
697
|
+
sbumit({ data: t, record: e, btn: s }, i, a) {
|
|
678
698
|
this.formLoading = !0, (e ? T : w)(Object.assign({ ...t }, { typeid: this.typeId })).then((n) => {
|
|
679
|
-
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")),
|
|
699
|
+
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), a(), this.handleOk()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n.message), this.formLoading = !1;
|
|
680
700
|
});
|
|
681
701
|
},
|
|
682
702
|
handleOk() {
|
|
@@ -696,8 +716,8 @@ const v = {
|
|
|
696
716
|
this.disableBtn = ["\u542F\u7528", "\u505C\u7528"];
|
|
697
717
|
return;
|
|
698
718
|
}
|
|
699
|
-
let
|
|
700
|
-
|
|
719
|
+
let i = e.filter((r) => r.statecodes == 1), a = e.filter((r) => r.statecodes == 0);
|
|
720
|
+
i.length == e.length ? s = ["\u542F\u7528"] : a.length == e.length && (s = ["\u505C\u7528"]), this.disableBtn = s;
|
|
701
721
|
},
|
|
702
722
|
doEvent(t) {
|
|
703
723
|
let e = t.item.functionName;
|
|
@@ -707,28 +727,34 @@ const v = {
|
|
|
707
727
|
};
|
|
708
728
|
var K = function() {
|
|
709
729
|
var e = this, s = e._self._c;
|
|
710
|
-
return s("div", [s("el-divider", { staticClass: "setting-divider" }), s("div", { staticStyle: { "font-size": "16px", "font-weight": "700", color: "#303133", "margin-bottom": "6px" } }, [e._v(" " + e._s(e.$i18nt("gd.dict.dictManagement", "\u5B57\u5178\u503C\u7BA1\u7406")) + " ")]), s("el-divider", { staticClass: "setting-divider" }), s("gd-tables", { ref: "tableManage", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "values", fn: function({ column:
|
|
711
|
-
return [s("gd-tooltip", { attrs: { rowKey: "value", row:
|
|
712
|
-
} }, { key: "stateCodes", fn: function(
|
|
713
|
-
return [s("div", { staticStyle: { cursor: "pointer" }, on: { click: function(
|
|
714
|
-
return
|
|
715
|
-
} } }, [
|
|
716
|
-
} }, { key: "colour", fn: function(
|
|
717
|
-
return [
|
|
718
|
-
} }, { key: "remark", fn: function({ column:
|
|
719
|
-
return [s("gd-tooltip", { attrs: { rowKey: "remark", row:
|
|
730
|
+
return s("div", [s("el-divider", { staticClass: "setting-divider" }), s("div", { staticStyle: { "font-size": "16px", "font-weight": "700", color: "#303133", "margin-bottom": "6px" } }, [e._v(" " + e._s(e.$i18nt("gd.dict.dictManagement", "\u5B57\u5178\u503C\u7BA1\u7406")) + " ")]), s("el-divider", { staticClass: "setting-divider" }), s("gd-tables", { ref: "tableManage", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "values", fn: function({ column: i, row: a }) {
|
|
731
|
+
return [s("gd-tooltip", { attrs: { rowKey: "value", row: a, transKey: `Dynamics.${a.transkey}`, highlight: "" }, on: { click: e.editForm } })];
|
|
732
|
+
} }, { key: "stateCodes", fn: function(i) {
|
|
733
|
+
return [s("div", { staticStyle: { cursor: "pointer" }, on: { click: function(a) {
|
|
734
|
+
return a.stopPropagation(), e.editStateCodes(i);
|
|
735
|
+
} } }, [i.row.statecodes ? s("i", { staticClass: "gd-icons gd-icon-xuanzhong active-color", staticStyle: { "font-size": "18px" } }) : s("i", { staticClass: "gd-icons gd-icon-jinyong1", staticStyle: { "font-size": "20px", color: "#999" } })])];
|
|
736
|
+
} }, { key: "colour", fn: function(i) {
|
|
737
|
+
return [i.row.colour ? s("el-tag", { style: `background-color:${i.row.colour};border-color:${i.row.colour}`, attrs: { effect: "dark" } }, [e._v(" " + e._s(i.row.colour) + " ")]) : e._e()];
|
|
738
|
+
} }, { key: "remark", fn: function({ column: i, row: a }) {
|
|
739
|
+
return [s("gd-tooltip", { attrs: { rowKey: "remark", row: a } })];
|
|
720
740
|
} }, { key: "operator", fn: function() {
|
|
721
|
-
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl" }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.dict.dictValue", "\u5B57\u5178\u503C"), clearable: "" }, nativeOn: { keyup: function(
|
|
722
|
-
return !
|
|
723
|
-
} }, model: { value: e.queryParam.value, callback: function(
|
|
724
|
-
e.$set(e.queryParam, "value",
|
|
741
|
+
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl" }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.dict.dictValue", "\u5B57\u5178\u503C"), clearable: "" }, nativeOn: { keyup: function(i) {
|
|
742
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
743
|
+
} }, model: { value: e.queryParam.value, callback: function(i) {
|
|
744
|
+
e.$set(e.queryParam, "value", i);
|
|
725
745
|
}, expression: "queryParam.value" } }), s("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
726
|
-
}, proxy: !0 }, { key: "filtering", fn: function({ colse:
|
|
727
|
-
return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse:
|
|
728
|
-
} }]) }), s("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.getFormButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode, translationType: e.translationType }, on: { sbumit: e.sbumit }, scopedSlots: e._u([{ key: "value", fn: function({ data:
|
|
729
|
-
return [s("el-input", { directives: [{ name: "show", rawName: "v-show", value: !r, expression: "!record" }], attrs: { disabled:
|
|
730
|
-
e.$set(
|
|
731
|
-
}, expression: "data[column.prop]" } }), r ? s("gd-translation", { ref: "gdTranslation", attrs: { recordData:
|
|
746
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: a }) {
|
|
747
|
+
return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse: i, visible: a }, on: { save: e.saveQueries } })];
|
|
748
|
+
} }]) }), s("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.getFormButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode, translationType: e.translationType }, on: { sbumit: e.sbumit }, scopedSlots: e._u([{ key: "value", fn: function({ data: i, column: a, record: r }) {
|
|
749
|
+
return [s("el-input", { directives: [{ name: "show", rawName: "v-show", value: !r, expression: "!record" }], attrs: { disabled: a.disabled, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: i[a.prop], callback: function(n) {
|
|
750
|
+
e.$set(i, a.prop, n);
|
|
751
|
+
}, expression: "data[column.prop]" } }), r ? s("gd-translation", { ref: "gdTranslation", attrs: { recordData: i, name: "value", type: 2 }, on: { lookupSeled: (n) => e.lookupSeled(n, i, a) } }) : e._e()];
|
|
752
|
+
} }, { key: "code", fn: function({ data: i, column: a, record: r }) {
|
|
753
|
+
return [e.getInputType(i, a, r) ? s("el-input-number", { attrs: { disabled: a.disabled, type: "number", min: a.min || a.min === 0 ? a.min : -1 / 0, max: a.max || a.max === 0 ? a.max : 1 / 0, step: a.step || 1, precision: a.precision || 0, placeholder: e.$i18nt(a.placeholderTransKey, a.placeholder), "controls-position": "right" }, model: { value: i[a.prop], callback: function(n) {
|
|
754
|
+
e.$set(i, a.prop, n);
|
|
755
|
+
}, expression: "data[column.prop]" } }) : s("el-input", { attrs: { disabled: a.disabled, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: i[a.prop], callback: function(n) {
|
|
756
|
+
e.$set(i, a.prop, n);
|
|
757
|
+
}, expression: "data[column.prop]" } })];
|
|
732
758
|
} }]) })], 1);
|
|
733
759
|
}, B = [], _ = /* @__PURE__ */ c(
|
|
734
760
|
v,
|
|
@@ -736,7 +762,7 @@ var K = function() {
|
|
|
736
762
|
B,
|
|
737
763
|
!1,
|
|
738
764
|
null,
|
|
739
|
-
"
|
|
765
|
+
"55b2f52b",
|
|
740
766
|
null,
|
|
741
767
|
null
|
|
742
768
|
);
|
|
@@ -815,9 +841,9 @@ const D = {
|
|
|
815
841
|
this.$message.error(this.$i18nt("gd.https.operableNoTip", "\u4E0D\u53EF\u64CD\u4F5C!"));
|
|
816
842
|
return;
|
|
817
843
|
}
|
|
818
|
-
const s = e.statecodes != 1 ? this.$i18nt("gd.https.enableContent", "\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?") : this.$i18nt("gd.https.deactivateContent", "\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),
|
|
844
|
+
const s = e.statecodes != 1 ? this.$i18nt("gd.https.enableContent", "\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?") : this.$i18nt("gd.https.deactivateContent", "\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"), i = e.statecodes != 1 ? this.$i18nt("gd.https.enableOk", "\u786E\u8BA4\u505C\u7528") : this.$i18nt("gd.https.deactivateOk", "\u786E\u8BA4\u542F\u7528");
|
|
819
845
|
this.$confirm(s, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
820
|
-
confirmButtonText:
|
|
846
|
+
confirmButtonText: i,
|
|
821
847
|
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
822
848
|
showClose: !1,
|
|
823
849
|
confirmButtonLoading: !1,
|
|
@@ -828,8 +854,8 @@ const D = {
|
|
|
828
854
|
customClass: "custom-alert",
|
|
829
855
|
callback: () => {
|
|
830
856
|
},
|
|
831
|
-
beforeClose: (
|
|
832
|
-
if (
|
|
857
|
+
beforeClose: (a, r, n) => {
|
|
858
|
+
if (a !== "confirm") {
|
|
833
859
|
n();
|
|
834
860
|
return;
|
|
835
861
|
}
|
|
@@ -847,12 +873,12 @@ const D = {
|
|
|
847
873
|
});
|
|
848
874
|
},
|
|
849
875
|
onRowSelect(t, e) {
|
|
850
|
-
let s = 0;
|
|
851
|
-
t.length > e.length ? s = t.filter((a) => !e.includes(a))[0] : s = e.filter((a) =>
|
|
876
|
+
let s = 0, i = t[t.length - 1];
|
|
877
|
+
i != null && (t.length > e.length ? s = t.filter((a) => !e.includes(a))[0] : s = e.length > 0 ? e.filter((a) => a.id == i)[0].id : 0, s !== 0 && (this.typeId = s, this.record = e.filter((a) => a.id == i)[0], this.$nextTick(() => {
|
|
852
878
|
setTimeout(() => {
|
|
853
879
|
this.$refs.dictColumn.refreshInit();
|
|
854
880
|
}, 0);
|
|
855
|
-
}));
|
|
881
|
+
})));
|
|
856
882
|
},
|
|
857
883
|
refresh() {
|
|
858
884
|
this.$refs.table.refresh();
|
|
@@ -881,8 +907,8 @@ const D = {
|
|
|
881
907
|
customClass: "custom-alert",
|
|
882
908
|
callback: () => {
|
|
883
909
|
},
|
|
884
|
-
beforeClose: (e, s,
|
|
885
|
-
this.delHand(e, s,
|
|
910
|
+
beforeClose: (e, s, i) => {
|
|
911
|
+
this.delHand(e, s, i);
|
|
886
912
|
}
|
|
887
913
|
});
|
|
888
914
|
},
|
|
@@ -891,16 +917,16 @@ const D = {
|
|
|
891
917
|
s();
|
|
892
918
|
return;
|
|
893
919
|
}
|
|
894
|
-
let
|
|
920
|
+
let i = [];
|
|
895
921
|
this.selectedRows.forEach((r) => {
|
|
896
922
|
let n = f(r).then((o) => o);
|
|
897
|
-
|
|
923
|
+
i.push(n);
|
|
898
924
|
});
|
|
899
|
-
const
|
|
900
|
-
e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(
|
|
925
|
+
const a = this.selectedRowKeys.filter((r) => r === this.typeId)[0];
|
|
926
|
+
e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((r) => {
|
|
901
927
|
s();
|
|
902
928
|
const n = r.filter((o) => !o.success);
|
|
903
|
-
n.length === 0 ? (this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")),
|
|
929
|
+
n.length === 0 ? (this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), a && this.rowClick(null)) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.handleOk();
|
|
904
930
|
});
|
|
905
931
|
},
|
|
906
932
|
add() {
|
|
@@ -917,9 +943,9 @@ const D = {
|
|
|
917
943
|
}
|
|
918
944
|
this.editForm(this.selectedRows[0]);
|
|
919
945
|
},
|
|
920
|
-
sbumit({ data: t, record: e, btn: s },
|
|
946
|
+
sbumit({ data: t, record: e, btn: s }, i, a) {
|
|
921
947
|
this.formLoading = !0, (e ? g : h)(t).then((n) => {
|
|
922
|
-
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")),
|
|
948
|
+
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), a(), this.handleOk()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n.message), this.formLoading = !1;
|
|
923
949
|
});
|
|
924
950
|
},
|
|
925
951
|
cellClassName({ row: t, rowIndex: e }) {
|
|
@@ -929,17 +955,17 @@ const D = {
|
|
|
929
955
|
this.$refs.table.refresh();
|
|
930
956
|
},
|
|
931
957
|
onSelectChange(t, e) {
|
|
932
|
-
if (this.onRowSelect(t,
|
|
958
|
+
if (this.onRowSelect(t, e), this.selectedRowKeys = t, this.selectedRows = e, t.length === 0) {
|
|
933
959
|
this.disableBtn = [];
|
|
934
960
|
return;
|
|
935
961
|
}
|
|
936
|
-
let s = e.filter((o) => o.dict_type == 1),
|
|
962
|
+
let s = e.filter((o) => o.dict_type == 1), i = ["\u5220\u9664", "\u542F\u7528", "\u505C\u7528"];
|
|
937
963
|
if (e.length > 1) {
|
|
938
|
-
this.disableBtn = s.length > 0 ?
|
|
964
|
+
this.disableBtn = s.length > 0 ? i : ["\u542F\u7528", "\u505C\u7528"];
|
|
939
965
|
return;
|
|
940
966
|
}
|
|
941
|
-
let
|
|
942
|
-
r.length == e.length ?
|
|
967
|
+
let a = [], r = e.filter((o) => o.statecodes == 1), n = e.filter((o) => o.statecodes == 0);
|
|
968
|
+
r.length == e.length ? a = s.length > 0 ? i : ["\u542F\u7528"] : n.length == e.length && (a = s.length > 0 ? i : ["\u505C\u7528"]), this.disableBtn = s.length > 0 ? i : a;
|
|
943
969
|
},
|
|
944
970
|
doEvent(t) {
|
|
945
971
|
let e = t.item.functionName;
|
|
@@ -949,30 +975,30 @@ const D = {
|
|
|
949
975
|
};
|
|
950
976
|
var S = function() {
|
|
951
977
|
var e = this, s = e._self._c;
|
|
952
|
-
return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list" }, [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, cellClassName: e.cellClassName, filtering: !0 }, on: { onChange: e.onSelectChange, rowClick: e.rowClick }, scopedSlots: e._u([{ key: "name", fn: function({ column:
|
|
953
|
-
return [s("gd-tooltip", { attrs: { rowKey: "name", row:
|
|
954
|
-
return e.editForm(
|
|
978
|
+
return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list" }, [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, cellClassName: e.cellClassName, filtering: !0 }, on: { onChange: e.onSelectChange, rowClick: e.rowClick }, scopedSlots: e._u([{ key: "name", fn: function({ column: i, row: a }) {
|
|
979
|
+
return [s("gd-tooltip", { attrs: { rowKey: "name", row: a, transKey: `Dynamics.${a.transKey}`, highlight: "" }, on: { click: function(r) {
|
|
980
|
+
return e.editForm(a, i);
|
|
955
981
|
} } })];
|
|
956
|
-
} }, { key: "dictType", fn: function(
|
|
957
|
-
return [
|
|
958
|
-
} }, { key: "stateCodes", fn: function(
|
|
959
|
-
return [s("div", { staticStyle: { cursor: "pointer" }, on: { click: function(
|
|
960
|
-
return
|
|
961
|
-
} } }, [
|
|
962
|
-
} }, { key: "remark", fn: function({ column:
|
|
963
|
-
return [s("gd-tooltip", { attrs: { rowKey: "remark", row:
|
|
982
|
+
} }, { key: "dictType", fn: function(i) {
|
|
983
|
+
return [i.row.dict_type === 1 ? s("el-tag", { staticStyle: { "background-color": "red", "border-color": "red" }, attrs: { effect: "dark" } }, [e._v(" " + e._s(e.$i18nt("gd.dict.systemType", "\u7CFB\u7EDF\u7C7B\u578B")) + " ")]) : s("el-tag", { staticStyle: { "background-color": "#52c41a", "border-color": "#52c41a" }, attrs: { effect: "dark" } }, [e._v(" " + e._s(e.$i18nt("gd.dict.businessType", "\u4E1A\u52A1\u7C7B\u578B")) + " ")])];
|
|
984
|
+
} }, { key: "stateCodes", fn: function(i) {
|
|
985
|
+
return [s("div", { staticStyle: { cursor: "pointer" }, on: { click: function(a) {
|
|
986
|
+
return a.stopPropagation(), e.editStateCodes(i);
|
|
987
|
+
} } }, [i.row.statecodes ? s("i", { staticClass: "gd-icons gd-icon-xuanzhong active-color", staticStyle: { "font-size": "18px" } }) : s("i", { staticClass: "gd-icons gd-icon-jinyong1", staticStyle: { "font-size": "20px", color: "#999" } })])];
|
|
988
|
+
} }, { key: "remark", fn: function({ column: i, row: a }) {
|
|
989
|
+
return [s("gd-tooltip", { attrs: { rowKey: "remark", row: a, prevent: !1 } })];
|
|
964
990
|
} }, { key: "operator", fn: function() {
|
|
965
|
-
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl" }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.dict.displayName", "\u663E\u793A\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(
|
|
966
|
-
return !
|
|
967
|
-
} }, model: { value: e.queryParam.name, callback: function(
|
|
968
|
-
e.$set(e.queryParam, "name",
|
|
991
|
+
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl" }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.dict.displayName", "\u663E\u793A\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(i) {
|
|
992
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
993
|
+
} }, model: { value: e.queryParam.name, callback: function(i) {
|
|
994
|
+
e.$set(e.queryParam, "name", i);
|
|
969
995
|
}, expression: "queryParam.name" } }), s("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
970
|
-
}, proxy: !0 }, { key: "filtering", fn: function({ colse:
|
|
971
|
-
return [s("gd-table-queries-field", { key: "tfiltering", attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse:
|
|
972
|
-
} }]) }), s("dict-column", { ref: "dictColumn", attrs: { typeId: e.typeId, record: e.record, height: e.heightd } })], 1), s("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", labelWidth: e.labelWidth, loading: e.formLoading, transKey: e.transKey, buttons: e.getFormButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode, translationType: e.translationType }, on: { sbumit: e.sbumit }, scopedSlots: e._u([{ key: "name", fn: function({ data:
|
|
973
|
-
return [s("el-input", { directives: [{ name: "show", rawName: "v-show", value: !r, expression: "!record" }], attrs: { disabled:
|
|
974
|
-
e.$set(
|
|
975
|
-
}, expression: "data[column.prop]" } }), r ? s("gd-translation", { ref: "gdTranslation", attrs: { recordData:
|
|
996
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: a }) {
|
|
997
|
+
return [s("gd-table-queries-field", { key: "tfiltering", attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: a }, on: { save: e.saveQueries } })];
|
|
998
|
+
} }]) }), s("dict-column", { ref: "dictColumn", attrs: { typeId: e.typeId, record: e.record, height: e.heightd } })], 1), s("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", labelWidth: e.labelWidth, loading: e.formLoading, transKey: e.transKey, buttons: e.getFormButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode, translationType: e.translationType }, on: { sbumit: e.sbumit }, scopedSlots: e._u([{ key: "name", fn: function({ data: i, column: a, record: r }) {
|
|
999
|
+
return [s("el-input", { directives: [{ name: "show", rawName: "v-show", value: !r, expression: "!record" }], attrs: { disabled: a.disabled, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: i[a.prop], callback: function(n) {
|
|
1000
|
+
e.$set(i, a.prop, n);
|
|
1001
|
+
}, expression: "data[column.prop]" } }), r ? s("gd-translation", { ref: "gdTranslation", attrs: { recordData: i, type: 2 }, on: { lookupSeled: (n) => e.lookupSeled(n, i, a) } }) : e._e()];
|
|
976
1002
|
} }]) })], 1);
|
|
977
1003
|
}, N = [], P = /* @__PURE__ */ c(
|
|
978
1004
|
D,
|
|
@@ -980,7 +1006,7 @@ var S = function() {
|
|
|
980
1006
|
N,
|
|
981
1007
|
!1,
|
|
982
1008
|
null,
|
|
983
|
-
"
|
|
1009
|
+
"3da121a9",
|
|
984
1010
|
null,
|
|
985
1011
|
null
|
|
986
1012
|
);
|