gds-plus-design-vue 1.2.3 → 1.2.21
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/gd-initial.js +15 -17
- package/lib/gd-initial.mjs +9476 -13948
- package/lib/{main.4aebe1c9.js → main.2415a49a.js} +1 -1
- package/lib/{main.eb4b260e.mjs → main.2cddfbbd.mjs} +2 -2
- package/lib/main.4c447fc3.js +1 -0
- package/lib/{main.05252737.mjs → main.86fe06d4.mjs} +2 -2
- package/lib/{main.a30b25d6.mjs → main.b2d0a309.mjs} +11 -11
- package/lib/{main.458dc0a0.js → main.d091d06d.js} +1 -1
- package/lib/{messages.30e41348.js → messages.2fff74f3.js} +5 -5
- package/lib/{messages.a1335b0f.mjs → messages.d8abe18d.mjs} +150 -165
- package/lib/style.css +2 -2
- package/lib/{system.account.1ff630c9.js → system.account.8ea53681.js} +1 -1
- package/lib/{system.account.20f9e450.mjs → system.account.9bc40d08.mjs} +9 -9
- package/lib/{system.config.c85c05e9.mjs → system.config.8223d495.mjs} +1 -1
- package/lib/{system.config.532ab3b8.js → system.config.c6e30213.js} +1 -1
- package/lib/{system.datasource.f64a59de.mjs → system.datasource.57233650.mjs} +1 -1
- package/lib/{system.datasource.272f1add.js → system.datasource.fd6a4e76.js} +1 -1
- package/lib/{system.dict.565d69ca.mjs → system.dict.8f95218b.mjs} +3 -3
- package/lib/{system.dict.a23e8cdf.js → system.dict.a24f33b0.js} +1 -1
- package/lib/{system.duplicatechecking.f66790d1.js → system.duplicatechecking.39293985.js} +1 -1
- package/lib/{system.duplicatechecking.268544dd.mjs → system.duplicatechecking.6b706948.mjs} +1 -1
- package/lib/{system.email.00a93855.js → system.email.a2d9a307.js} +1 -1
- package/lib/{system.email.ada25702.mjs → system.email.dae988be.mjs} +1 -1
- package/lib/{system.fieldsecurity.d14384cc.mjs → system.fieldsecurity.02627a7a.mjs} +78 -126
- package/lib/system.fieldsecurity.a0cec24d.js +1 -0
- package/lib/{system.file.a23b3c83.mjs → system.file.0fa095a9.mjs} +3 -3
- package/lib/system.file.d695ab37.js +1 -0
- package/lib/{system.log.8a9f4a4d.mjs → system.log.acb64505.mjs} +1 -1
- package/lib/{system.log.b3666991.js → system.log.c07ae5db.js} +1 -1
- package/lib/system.notice.5ae50bd4.mjs +641 -0
- package/lib/system.notice.f18578ae.js +1 -0
- package/lib/{system.noticereceived.70963f1b.mjs → system.noticereceived.1aa70b65.mjs} +24 -32
- package/lib/system.noticereceived.bfa98a9b.js +1 -0
- package/lib/{system.onlineuser.99e4de37.js → system.onlineuser.1c428d05.js} +1 -1
- package/lib/{system.onlineuser.c58fb6ce.mjs → system.onlineuser.3d848a32.mjs} +1 -1
- package/lib/system.org.5bb36f9c.js +1 -0
- package/lib/{system.org.638db6d1.mjs → system.org.fcf96d1e.mjs} +68 -17
- package/lib/{system.permissions.aa0cc0d6.mjs → system.permissions.23f5b097.mjs} +2 -2
- package/lib/{system.permissions.fcd56f67.js → system.permissions.a1a9505c.js} +1 -1
- package/lib/{system.plugin.b17efa53.js → system.plugin.b6de4673.js} +1 -1
- package/lib/{system.plugin.beb44900.mjs → system.plugin.e37f9dbc.mjs} +1 -1
- package/lib/{system.pos.699e8dd6.mjs → system.pos.1a01fc97.mjs} +1 -1
- package/lib/{system.pos.e8d9c488.js → system.pos.a4fb19b0.js} +1 -1
- package/lib/{system.promptmanagement.109a07f5.js → system.promptmanagement.290958b1.js} +1 -1
- package/lib/{system.promptmanagement.2ce3e426.mjs → system.promptmanagement.36a65c51.mjs} +1 -1
- package/lib/{system.role.230b1445.mjs → system.role.68de93ef.mjs} +354 -845
- package/lib/system.role.88100f66.js +1 -0
- package/lib/{system.sumberrules.fa1aab86.mjs → system.sumberrules.cdef9308.mjs} +1 -1
- package/lib/{system.sumberrules.38017ad1.js → system.sumberrules.dd6299e8.js} +1 -1
- package/lib/{system.team.3826e252.js → system.team.53d64006.js} +1 -1
- package/lib/{system.team.aeaede22.mjs → system.team.ee652fe4.mjs} +1 -1
- package/lib/{system.teammembers.2e3309c3.mjs → system.teammembers.26a2ba81.mjs} +2 -2
- package/lib/{system.teammembers.29128f16.js → system.teammembers.4a3dc336.js} +1 -1
- package/lib/{system.timers.0ec63785.mjs → system.timers.4efa8a7d.mjs} +1 -1
- package/lib/{system.timers.b62568ad.js → system.timers.b9424204.js} +1 -1
- package/lib/{system.translation.e71455aa.mjs → system.translation.0a9399b4.mjs} +2 -2
- package/lib/{system.translation.887fa90d.js → system.translation.21d2fd8b.js} +1 -1
- package/lib/{system.user.84227a85.mjs → system.user.4fcfdf99.mjs} +4 -4
- package/lib/{system.user.bed5f82a.js → system.user.d48a08db.js} +1 -1
- package/lib/{system.useraffiliation.7ec0fcae.js → system.useraffiliation.a59ce45b.js} +1 -1
- package/lib/{system.useraffiliation.b3f03a33.mjs → system.useraffiliation.fb002239.mjs} +2 -2
- package/lib/{system.webresource.f8b78dd0.js → system.webresource.3366cc29.js} +1 -1
- package/lib/{system.webresource.e6cb9173.mjs → system.webresource.4df01c92.mjs} +2 -2
- package/locale/en_US.js +18 -68
- package/locale/id_ID.js +17 -67
- package/locale/vi_VN.js +17 -67
- package/locale/zh_CN.js +17 -67
- package/package.json +1 -1
- package/lib/main.9801708f.js +0 -1
- package/lib/system.fieldsecurity.ede73621.js +0 -1
- package/lib/system.file.aa567566.js +0 -1
- package/lib/system.notice.5fb1485e.js +0 -1
- package/lib/system.notice.6d0aa32c.mjs +0 -1674
- package/lib/system.noticereceived.e5ef5883.js +0 -1
- package/lib/system.org.56151be8.js +0 -1
- package/lib/system.role.f0d4082c.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as l, n
|
|
2
|
-
import { t as
|
|
3
|
-
import { d as c } from "./system.notice.
|
|
1
|
+
import { m as l, n } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { t as o } from "./messages.d8abe18d.mjs";
|
|
3
|
+
import { d as c } from "./system.notice.5ae50bd4.mjs";
|
|
4
4
|
function u(t) {
|
|
5
5
|
return window.axios({
|
|
6
6
|
url: "/sysNotice/received",
|
|
@@ -8,7 +8,7 @@ function u(t) {
|
|
|
8
8
|
params: t
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const p = {
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
tableColumns: [
|
|
@@ -75,7 +75,7 @@ const d = {
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
const
|
|
78
|
+
const d = {
|
|
79
79
|
name: "GdNoticeReceived",
|
|
80
80
|
props: {
|
|
81
81
|
height: {
|
|
@@ -83,16 +83,15 @@ const p = {
|
|
|
83
83
|
default: 100
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
-
mixins: [
|
|
86
|
+
mixins: [o, p],
|
|
87
87
|
data() {
|
|
88
88
|
return {
|
|
89
89
|
transKey: "gd.btn.add",
|
|
90
|
-
loadData: (t) => u(Object.assign(t, this.queryParam)).then((e) =>
|
|
90
|
+
loadData: (t) => u(Object.assign(t, this.queryParam)).then((e) => e.data),
|
|
91
91
|
selectedRowKeys: [],
|
|
92
92
|
selectedRows: [],
|
|
93
93
|
queryParam: {},
|
|
94
|
-
formLoading: !1
|
|
95
|
-
allData: []
|
|
94
|
+
formLoading: !1
|
|
96
95
|
};
|
|
97
96
|
},
|
|
98
97
|
components: {
|
|
@@ -121,46 +120,39 @@ const p = {
|
|
|
121
120
|
let e = t.item.functionName;
|
|
122
121
|
this[e] && this[e]();
|
|
123
122
|
}
|
|
124
|
-
},
|
|
125
|
-
mounted() {
|
|
126
|
-
(this.$route.params.id || this.$route.query.id) && (this.transKey = "gd.notice.detail", setTimeout(() => {
|
|
127
|
-
this.allData.forEach((t) => {
|
|
128
|
-
(t.id == this.$route.params.id || t.id == this.$route.query.id) && this.$refs.detailForm.open(t);
|
|
129
|
-
});
|
|
130
|
-
}, 1e3));
|
|
131
123
|
}
|
|
132
124
|
};
|
|
133
|
-
var
|
|
125
|
+
var y = function() {
|
|
134
126
|
var e = this, r = e._self._c;
|
|
135
127
|
return r("div", { staticClass: "gd-page-view" }, [r("div", { staticClass: "page-view-list" }, [r("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: "operator", fn: function() {
|
|
136
128
|
return [r("div", { staticClass: "gd-table-operator" }, [r("div", { staticClass: "gd-table-operatorl" }, [r("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.notice.title", "\u6807\u9898"), clearable: "" }, nativeOn: { keyup: function(a) {
|
|
137
129
|
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
138
|
-
} }, model: { value: e.queryParam.
|
|
139
|
-
e.$set(e.queryParam, "
|
|
140
|
-
}, expression: "queryParam.
|
|
141
|
-
}, proxy: !0 }, { key: "title", fn: function({ column: a, row:
|
|
142
|
-
return [r("gd-tooltip", { attrs: { rowKey: "title", row:
|
|
130
|
+
} }, model: { value: e.queryParam.title, callback: function(a) {
|
|
131
|
+
e.$set(e.queryParam, "title", a);
|
|
132
|
+
}, expression: "queryParam.title" } }), r("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [r("i", { staticClass: "el-input__icon el-icon-search" })])], 1)])];
|
|
133
|
+
}, proxy: !0 }, { key: "title", fn: function({ column: a, row: s }) {
|
|
134
|
+
return [r("gd-tooltip", { attrs: { rowKey: "title", row: s, highlight: "" }, on: { click: e.editForm } })];
|
|
143
135
|
} }, { key: "type", fn: function(a) {
|
|
144
136
|
return [r("el-tag", { style: e._f("dictColor")("notice_type", a.row.type), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("notice_type", a.row.type)) + " ")])];
|
|
145
137
|
} }, { key: "status", fn: function(a) {
|
|
146
138
|
return [r("el-tag", { style: e._f("dictColor")("notice_status", a.row.status), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("notice_status", a.row.status)) + " ")])];
|
|
147
|
-
} }, { key: "filtering", fn: function({ colse: a, visible:
|
|
148
|
-
return [r("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible:
|
|
139
|
+
} }, { key: "filtering", fn: function({ colse: a, visible: s }) {
|
|
140
|
+
return [r("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible: s }, on: { save: e.saveQueries } })];
|
|
149
141
|
} }]) })], 1), r("detailForm", { ref: "detailForm" })], 1);
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
f,
|
|
142
|
+
}, f = [], m = /* @__PURE__ */ n(
|
|
143
|
+
d,
|
|
153
144
|
y,
|
|
145
|
+
f,
|
|
154
146
|
!1,
|
|
155
147
|
null,
|
|
156
|
-
"
|
|
148
|
+
"e3371c32",
|
|
157
149
|
null,
|
|
158
150
|
null
|
|
159
151
|
);
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
t.component(
|
|
152
|
+
const i = m.exports;
|
|
153
|
+
i.install = function(t) {
|
|
154
|
+
t.component(i.name, i);
|
|
163
155
|
};
|
|
164
156
|
export {
|
|
165
|
-
|
|
157
|
+
i as G
|
|
166
158
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./chartbi.06e48153.js"),n=require("./messages.2fff74f3.js"),o=require("./system.notice.f18578ae.js");function c(t){return window.axios({url:"/sysNotice/received",method:"get",params:t})}const u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",type:"slot",slotType:"title",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type",align:"center",showOverflowTooltip:!0},{transKey:"gd.notice.status",prop:"status",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.publicTime",prop:"publictime",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",label:"\u53D1\u5E03\u4EBA",align:"left"}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const p={name:"GdNoticeReceived",props:{height:{type:Number,default:100}},mixins:[n.tablesFilter,u],data(){return{transKey:"gd.btn.add",loadData:t=>c(Object.assign(t,this.queryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1}},components:{detailForm:o.detailForm},computed:{getHeight(){return this.height},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},saveQueries(t){this.queryParam=t,this.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var d=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list"},[a("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:"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.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.title,callback:function(s){e.$set(e.queryParam,"title",s)},expression:"queryParam.title"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0},{key:"title",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"title",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(s){return[a("el-tag",{style:e._f("dictColor")("notice_type",s.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",s.row.type))+" ")])]}},{key:"status",fn:function(s){return[a("el-tag",{style:e._f("dictColor")("notice_status",s.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",s.row.status))+" ")])]}},{key:"filtering",fn:function({colse:s,visible:r}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:r},on:{save:e.saveQueries}})]}}])})],1),a("detailForm",{ref:"detailForm"})],1)},y=[],f=l.normalizeComponent(p,d,y,!1,null,"e3371c32",null,null);const i=f.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./chartbi.06e48153.js"),o=require("./messages.
|
|
1
|
+
"use strict";const i=require("./chartbi.06e48153.js"),o=require("./messages.2fff74f3.js");function c(t){return window.axios({url:"/sysOnlineUser/page",method:"get",params:t})}function u(t){return window.axios({url:"/sysOnlineUser/forceExist",method:"post",data:t})}const d={data(){return{tableColumns:[{transKey:"gd.onlineUser.account",prop:"account",label:"\u8D26\u53F7",align:"left"},{transKey:"gd.onlineUser.name",prop:"name",label:"\u59D3\u540D",align:"left"},{transKey:"gd.onlineUser.lastLoginIp",prop:"lastloginip",label:"\u767B\u5F55IP",align:"left"},{transKey:"gd.onlineUser.lastTime",prop:"lasttime",label:"\u767B\u5F55\u65F6\u95F4",align:"center"},{transKey:"gd.onlineUser.lastLoginBrowser",prop:"lastloginbrowser",label:"\u6D4F\u89C8\u5668",align:"left"},{transKey:"gd.onlineUser.lastLoginOs",prop:"lastloginos",label:"\u64CD\u4F5C\u7CFB\u7EDF",align:"left"}],tableButtons:[{displayName:"\u5F3A\u5236\u4E0B\u7EBF",functionName:"forceExist",show:!0,transKey:"gd.onlineUser.forceExist",icon:"el-icon-delete",btnType:"danger",name:"sysOnlineUser:forceExist"}],tableQueries:[{transKey:"gd.onlineUser.keywordTip",effectType:"input",prop:"code",label:"\u5173\u952E\u8BCD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.keywordTip",rules:[]}]}}};const g={name:"GdOnlineUser",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,d],data(){return{selectedRowKeys:[],selectedRows:[],queryParam:{},isShow:!1,loadData:t=>c(Object.assign(t,this.queryParam)).then(e=>e.data)}},computed:{getHeight(){return this.height},...i.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(t,e){this.selectedRows=e,this.selectedRowKeys=t},refresh(){this.$refs.table.refresh()},saveQueries(t){this.queryParam={...t},this.refresh()},forceExist(){let t=this;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}t.$confirm(t.$i18nt("gd.onlineUser.forceExistTip","\u662F\u5426\u5F3A\u5236\u4E0B\u7EBF\u8BE5\u7528\u6237?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:t.$i18nt("gd.onlineUser.forceExist","\u5F3A\u5236\u4E0B\u7EBF"),cancelButtonText:t.$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:(e,s,a)=>{if(e!=="confirm")a();else return new Promise((l,m)=>{u().then(n=>{n.success?(t.$message.success(t.$i18nt("gd.https.operateSucc")),t.$refs.table.refresh(!0)):t.$message.error(t.$i18nt("gd.https.operateFail")+n.message),l(),a()}).catch(n=>{t.$message.error(t.$i18nt("gd.error.error")+n.message)})}).catch(()=>console.log("Oops errors!"))}})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var p=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:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.onlineUser.keywordTip","\u8BF7\u8F93\u5165\u8D26\u53F7\u6216\u59D3\u540D"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(a){e.$set(e.queryParam,"searchValue",a)},expression:"queryParam.searchValue"}}),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},e.isShow?{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:l},on:{save:e.saveQueries}})]}}:null],null,!0)})],1)])},f=[],h=i.normalizeComponent(g,p,f,!1,null,null,null,null);const r=h.exports;r.install=function(t){t.component(r.name,r)};exports.GDpackage=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./chartbi.06e48153.js"),u=require("./messages.2fff74f3.js");function d(t){return window.axios({url:"/sysOrg/tree",method:"get",params:t})}function g(t){return window.axios({url:"/sysOrg/page",method:"get",params:t})}function c(t){return window.axios({url:"/sysOrg/add",method:"post",data:t})}function h(t){return window.axios({url:"/sysOrg/edit",method:"post",data:t})}function p(t){return window.axios({url:"/sysOrg/delete",method:"post",data:t})}function f(t){return window.axios({url:"/SysRoleDataControl/detail",method:"get",params:t})}function m(t){return window.axios({url:"/SysRoleDataControl/save",method:"post",data:t})}const y={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.org.type",effectType:"radio",prop:"orgtype",label:"\u673A\u6784\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"org_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.org.displayName",effectType:"input",prop:"name",label:"\u673A\u6784\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.org.code",prop:"code",effectType:"input",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.org.parentBody",prop:"pid",effectType:"selectTree",label:"\u4E0A\u7EA7\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.org.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",type:"number"}]},{transKey:"gd.org.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",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:"sysOrg:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysOrg:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysOrg:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",effectType:"input",rules:[]}]}}};const b={name:"GdOrg",props:{height:{type:Number,default:100}},mixins:[u.tablesFilter,y],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:t=>g(Object.assign(t,this.queryParam)).then(e=>e.data),isFilterWithValue:!0}},computed:{getFormColumns(){let t=[{id:"-1",parentId:"0",title:this.$i18nt("gd.org.topLevel","\u9876\u7EA7"),value:"0",pid:"0",children:[...this.orgTree]}];return this.formColumns.filter(r=>(r.prop==="pid"&&(r.treeOptions=[...t]),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...t},{pid:String(t.pid)}))},getOrgTree(){d({}).then(t=>{if(t.code===200){const e=r=>(r=r.filter((s,a)=>(s.value=String(s.value),s.children&&s.children.length>0&&(s.children=e(s.children)),!0)),r);this.orgTree=e(t.data)}this.loading=!1})},handleNodeClick(t){this.queryParam.pid===t.id?(delete this.queryParam.pid,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{pid:t.id}),this.$refs.table.refresh(!0)},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,r)=>{this.delHand(t,e,r)}})},delHand(t,e,r){if(t!=="confirm"){r();return}let s=[];this.selectedRows.forEach(a=>{let n=p(a).then(i=>i);s.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,r(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const n=a.filter(i=>!i.success);n.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")+n[0].message),this.handleOk()})},add(){this.transKey="gd.btn.add",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:r},s,a){this.formLoading=!0,(e?h:c)(t).then(i=>{i.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")+i.message),this.formLoading=!1})},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var w=function(){var e=this,r=e._self._c;return r("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[r("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),r("div",{staticClass:"page-view-list"},[r("gd-tables",{ref:"table",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:"name",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"orgType",fn:function(s){return[r("el-tag",{style:e._f("dictColor")("org_type",s.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",s.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"operator",fn:function(){return[r("div",{staticClass:"gd-table-operator"},[r("div",{staticClass:"gd-table-operatorl"},[r("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.org.displayName","\u673A\u6784\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(s){e.$set(e.queryParam,"name",s)},expression:"queryParam.name"}}),r("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[r("i",{staticClass:"el-input__icon el-icon-search"})])],1),r("div",{staticClass:"gd-table-operatorr"},[r("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:a}){return[r("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:s,visible:a},on:{save:e.saveQueries}})]}}])})],1),r("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)},K=[],T=o.normalizeComponent(b,w,K,!1,null,"1dfd3a31",null,null);const l=T.exports;l.install=function(t){t.component(l.name,l)};exports.GDpackage=l;exports.getOrgDetail=f;exports.getOrgTree=d;exports.saveOrgDetail=m;
|
|
@@ -1,7 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { m as o, n as d } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { t as u } from "./messages.d8abe18d.mjs";
|
|
3
|
+
function g(t) {
|
|
4
|
+
return window.axios({
|
|
5
|
+
url: "/sysOrg/tree",
|
|
6
|
+
method: "get",
|
|
7
|
+
params: t
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function c(t) {
|
|
11
|
+
return window.axios({
|
|
12
|
+
url: "/sysOrg/page",
|
|
13
|
+
method: "get",
|
|
14
|
+
params: t
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function p(t) {
|
|
18
|
+
return window.axios({
|
|
19
|
+
url: "/sysOrg/add",
|
|
20
|
+
method: "post",
|
|
21
|
+
data: t
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function h(t) {
|
|
25
|
+
return window.axios({
|
|
26
|
+
url: "/sysOrg/edit",
|
|
27
|
+
method: "post",
|
|
28
|
+
data: t
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function m(t) {
|
|
32
|
+
return window.axios({
|
|
33
|
+
url: "/sysOrg/delete",
|
|
34
|
+
method: "post",
|
|
35
|
+
data: t
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function k(t) {
|
|
39
|
+
return window.axios({
|
|
40
|
+
url: "/SysRoleDataControl/detail",
|
|
41
|
+
method: "get",
|
|
42
|
+
params: t
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function C(t) {
|
|
46
|
+
return window.axios({
|
|
47
|
+
url: "/SysRoleDataControl/save",
|
|
48
|
+
method: "post",
|
|
49
|
+
data: t
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
const f = {
|
|
5
53
|
data() {
|
|
6
54
|
return {
|
|
7
55
|
tableColumns: [
|
|
@@ -194,7 +242,7 @@ const y = {
|
|
|
194
242
|
default: 100
|
|
195
243
|
}
|
|
196
244
|
},
|
|
197
|
-
mixins: [
|
|
245
|
+
mixins: [u, f],
|
|
198
246
|
data() {
|
|
199
247
|
return {
|
|
200
248
|
transKey: "gd.btn.add",
|
|
@@ -211,7 +259,7 @@ const y = {
|
|
|
211
259
|
value: "value"
|
|
212
260
|
},
|
|
213
261
|
defaultExpandedKeys: "",
|
|
214
|
-
loadData: (t) =>
|
|
262
|
+
loadData: (t) => c(Object.assign(t, this.queryParam)).then((e) => e.data),
|
|
215
263
|
isFilterWithValue: !0
|
|
216
264
|
};
|
|
217
265
|
},
|
|
@@ -235,7 +283,7 @@ const y = {
|
|
|
235
283
|
styled() {
|
|
236
284
|
return `height:${this.height + 76}px`;
|
|
237
285
|
},
|
|
238
|
-
...
|
|
286
|
+
...o(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
239
287
|
},
|
|
240
288
|
methods: {
|
|
241
289
|
saveQueries(t) {
|
|
@@ -248,7 +296,7 @@ const y = {
|
|
|
248
296
|
this.transKey = "gd.btn.edit", this.$refs.editForm.open(Object.assign({ ...t }, { pid: String(t.pid) }));
|
|
249
297
|
},
|
|
250
298
|
getOrgTree() {
|
|
251
|
-
|
|
299
|
+
g({}).then((t) => {
|
|
252
300
|
if (t.code === 200) {
|
|
253
301
|
const e = (r) => (r = r.filter((s, a) => (s.value = String(s.value), s.children && s.children.length > 0 && (s.children = e(s.children)), !0)), r);
|
|
254
302
|
this.orgTree = e(t.data);
|
|
@@ -292,11 +340,11 @@ const y = {
|
|
|
292
340
|
}
|
|
293
341
|
let s = [];
|
|
294
342
|
this.selectedRows.forEach((a) => {
|
|
295
|
-
let i =
|
|
343
|
+
let i = m(a).then((n) => n);
|
|
296
344
|
s.push(i);
|
|
297
345
|
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((a) => {
|
|
298
346
|
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, r(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
299
|
-
const i = a.filter((
|
|
347
|
+
const i = a.filter((n) => !n.success);
|
|
300
348
|
i.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") + i[0].message), this.handleOk();
|
|
301
349
|
});
|
|
302
350
|
},
|
|
@@ -315,8 +363,8 @@ const y = {
|
|
|
315
363
|
this.editForm(this.selectedRows[0]);
|
|
316
364
|
},
|
|
317
365
|
sbumit({ data: t, record: e, btn: r }, s, a) {
|
|
318
|
-
this.formLoading = !0, (e ?
|
|
319
|
-
|
|
366
|
+
this.formLoading = !0, (e ? h : p)(t).then((n) => {
|
|
367
|
+
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;
|
|
320
368
|
});
|
|
321
369
|
},
|
|
322
370
|
handleOk() {
|
|
@@ -351,7 +399,7 @@ var b = function() {
|
|
|
351
399
|
}, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: a }) {
|
|
352
400
|
return [r("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse: s, visible: a }, on: { save: e.saveQueries } })];
|
|
353
401
|
} }]) })], 1), r("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);
|
|
354
|
-
}, w = [], K = /* @__PURE__ */
|
|
402
|
+
}, w = [], K = /* @__PURE__ */ d(
|
|
355
403
|
y,
|
|
356
404
|
b,
|
|
357
405
|
w,
|
|
@@ -361,10 +409,13 @@ var b = function() {
|
|
|
361
409
|
null,
|
|
362
410
|
null
|
|
363
411
|
);
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
t.component(
|
|
412
|
+
const l = K.exports;
|
|
413
|
+
l.install = function(t) {
|
|
414
|
+
t.component(l.name, l);
|
|
367
415
|
};
|
|
368
416
|
export {
|
|
369
|
-
|
|
417
|
+
l as G,
|
|
418
|
+
k as a,
|
|
419
|
+
g,
|
|
420
|
+
C as s
|
|
370
421
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as commonjsGlobal, a as sysUserOwnRole } from "./system.account.
|
|
2
|
-
import { f as baseFkList } from "./messages.
|
|
1
|
+
import { c as commonjsGlobal, a as sysUserOwnRole } from "./system.account.9bc40d08.mjs";
|
|
2
|
+
import { f as baseFkList } from "./messages.d8abe18d.mjs";
|
|
3
3
|
import { n as normalizeComponent } from "./chartbi.cdd1e365.mjs";
|
|
4
4
|
var md5 = { exports: {} };
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const system_account=require("./system.account.
|
|
1
|
+
"use strict";const system_account=require("./system.account.8ea53681.js"),messages=require("./messages.2fff74f3.js"),chartbi=require("./chartbi.06e48153.js");var md5={exports:{}};/**
|
|
2
2
|
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
3
3
|
*
|
|
4
4
|
* @namespace md5
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./chartbi.06e48153.js"),d=require("./messages.30e41348.js");function u(s){return window.axios({url:"/SysPlugin/page",method:"post",data:s})}function c(s){return window.axios({url:"/SysPlugin/add",method:"post",data:s})}function g(s){return window.axios({url:"/SysPlugin/edit",method:"post",data:s})}function m(s){return window.axios({url:"/SysPlugin/delete",method:"post",data:s})}function h(s){return window.axios({url:"/SysPluginStep/page",method:"post",data:s})}function p(s){return window.axios({url:"/SysPluginStep/add",method:"post",data:s})}function f(s){return window.axios({url:"/SysPluginStep/edit",method:"post",data:s})}function y(s){return window.axios({url:"/SysPluginStep/changeStatus",method:"post",data:s})}function b(s){return window.axios({url:"/SysPluginStep/delete",method:"post",data:s})}function v(s){return window.axios({url:"/SysPluginStep/getNameSpacesDetails",method:"post",data:s})}const w={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.plugin.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(s,...e)=>this.renderHeader(s,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.plugin.status",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left",showOverflowTooltip:!0},{transKey:"gd.plugin.remarks",prop:"description",label:"\u5907\u6CE8",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysPlugin:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysPlugin:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysPlugin:delete"},{displayName:"\u6B65\u9AA4",functionName:"step",show:!0,transKey:"gd.plugin.step",icon:"gd-icons gd-icon-caozuojilu",name:"sysPlugin:step"}],tableQueries:[{transKey:"gd.plugin.name",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}]}}},$={props:{formMode:{type:String,default:"dialog"}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,fileList:[],record:null,title:"",fullscreen:!1,width:"700px",ruleFormData:{}}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"80px"}}},...n.mapGetters(["labelPosition"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(s){this.fullscreen=!1,this.title=s?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E"),this.record=s,this.fileList=[],this.visible=!0,this.sysViewButtons=this.sysViewButtons.map(e=>(e.name=s?"sysPlugin:edit":"sysPlugin:add",e)),s?this.ruleFormData={id:s.id,name:s.name,description:s.description}:this.$nextTick(()=>{this.ruleFormData={},this.$refs.ruleForm.resetFields()})},handleAvatarSuccess(s,e,t){this.$refs.fileUploadBtn.clearFiles()},uploadLogo(s){if(s.file.type=="application/x-msdownload"){if(this.fileList=[s.file],!this.record){let t=s.file.name.lastIndexOf(".");var e=s.file.name.substring(0,t);this.ruleFormData.name=e}}else this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.fileList=[];return!1},handleChange(s,e){if(e.length>1&&e.splice(0,1),s.raw.type=="application/x-msdownload"){if(this.fileList=[s.raw],!this.record){let a=s.raw.name.lastIndexOf(".");var t=s.raw.name.substring(0,a);this.ruleFormData.name=t}}else this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.fileList=[];return!1},handleRemove(s){const e=this.fileList.indexOf(s),t=this.fileList.slice();t.splice(e,1),this.fileList=t},handleSubmit(){this.$refs.ruleForm.validate(s=>{s&&(this.record?this.edit(this.ruleFormData):this.add(this.ruleFormData))})},add(s){this.confirmLoading=!0;let{fileList:e}=this;if(e.length==0)return this.$message.error(this.$i18nt("gd.web.selectFileTip")),this.confirmLoading=!1,!1;{let t=new FormData;t.append("file",e[0]),t.append("name",s.name),c(t).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.handleCancel(),this.$emit("ok",s)):this.$message.error(this.$i18nt("gd.https.addFail")+a.message),this.confirmLoading=!1}).finally(a=>{this.confirmLoading=!1})}},edit(s){this.confirmLoading=!0;let{fileList:e}=this,t=new FormData;t.append("file",e[0]),t.append("description",s.description),t.append("id",s.id),g(t).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.handleCancel(),this.$emit("ok",s)):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+a.message),this.confirmLoading=!1}).finally(a=>{this.confirmLoading=!1})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},selType(s){this.type=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var F=function(){var e=this,t=e._self._c;return t("div",[e.formMode=="dialog"?t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-form-item",{staticStyle:{display:"none"}},[t("el-input",{model:{value:e.ruleFormData.id,callback:function(a){e.$set(e.ruleFormData,"id",a)},expression:"ruleFormData.id"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.name","\u540D\u79F0")}},[t("el-input",{attrs:{disabled:!0},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.plugFile","\u63D2\u4EF6\u6587\u4EF6")}},[t("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".dll","file-list":e.fileList,"on-change":e.handleChange,action:"","show-file-list":!0,"on-remove":e.handleRemove,"auto-upload":!1}},[t("el-button",[t("i",{staticClass:"el-icon-upload2"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.remarks","\u5907\u6CE8")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1):t("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(a){e.visible=a}}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,showFullscreen:!1},on:{changeEvent:e.doEvent},slot:"title"}),t("div",[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-form-item",{staticStyle:{display:"none"}},[t("el-input",{model:{value:e.ruleFormData.id,callback:function(a){e.$set(e.ruleFormData,"id",a)},expression:"ruleFormData.id"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.name","\u540D\u79F0")}},[t("el-input",{attrs:{disabled:!0},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.plugFile","\u63D2\u4EF6\u6587\u4EF6")}},[t("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".dll","file-list":e.fileList,"on-change":e.handleChange,action:"","show-file-list":!0,"on-remove":e.handleRemove,"auto-upload":!1}},[t("el-button",[t("i",{staticClass:"el-icon-upload2"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.remarks","\u5907\u6CE8")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1)],1)},_=[],D=n.normalizeComponent($,F,_,!1,null,null,null,null);const S=D.exports,k={data(){return{visible:!1,confirmLoading:!1,stageId:"",ruleFormData:{},rules:{eventhandler:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],stage:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],entityName:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],sdkmessage:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],eventhandler:[{required:(this.type=="edit",!1),message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",name:"sysPluginStep:edit",icon:"el-icon-document-checked"}],type:null,fullscreen:!1,width:"700px",currentSelectedIcon:"",visibleIcon:!1,sdkEventHandler:[],eventName:""}},computed:{sdkStageType(){return this.getDictionary("Stage")},options(){return this.getDictionary("SdkMessage")},...n.mapGetters(["labelPosition","formMode","tableLists"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},edit(s,e){this.type=e,this.visible=!0,this.fullscreen=!1,this.title=this.type=="edit"?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u5931\u8D25"),this.stageId=s.stage,this.sdkmessageId=s.sdkmessage,this.entityNameId=s.entityname,this.$nextTick(()=>{setTimeout(()=>{this.type=="add"?(this.ruleFormData={sysPluginId:s[0].sysPluginId,pluginName:s[0].name},this.ruleFormData.order=1,this.getEventhandler(s[0].sysPluginId)):this.ruleFormData={id:s.id,sysPluginId:s.syspluginid,entityName:s.entityname,sdkmessage:String(s.sdkmessage),stage:String(s.stage),order:s.order,description:s.description,securityString:s.securitystring,eventhandler:s.eventhandler},this.$refs.ruleForm.resetFields()},0)})},stageremarkFilter(s){const e=this.sdkStageType.filter(t=>t.code==s);if(e.length>0)return e[0].remark},stageNameFilter(s){const e=this.sdkStageType.filter(t=>t.code==s);if(e.length>0)return e[0].code},messageTypeFilter(s){const e=this.options.filter(t=>t.code==s);if(e.length>0)return e[0].name},entityNameFilter(s){const e=this.optionsentityname.filter(t=>t.value==s);if(e.length>0)return e[0].label},handleChange(s){console.log(`selected ${s}`),this.sdkmessageId=s},handleChangeEntityName(s){this.entityNameId=s},getEventhandler(s){v({pluginId:s}).then(t=>{t.success?this.sdkEventHandler=t.data:this.$message.error(this.$i18nt("Locals.common.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message)}).finally(t=>{this.confirmLoading=!1})},sdkEventHandlerType(s){this.eventName=s},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){if(this.confirmLoading=!0,this.type=="edit"){var e=this.stageremarkFilter(this.stageId),t=this.messageTypeFilter(this.sdkmessageId);this.ruleFormData.name=e+this.entityNameId+t,this.ruleFormData.sdkmessage=String(this.sdkmessageId),this.ruleFormData.entityName=this.entityNameId}else this.ruleFormData.name=this.eventName;(this.type=="edit"?f:p)(this.ruleFormData).then(i=>{if(i.success){let l=this.type=="edit"?this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F"):this.$i18nt("Locals.common.https.addSucc","\u65B0\u589E\u6210\u529F");this.$message.success(l),this.visible=!1,this.confirmLoading=!1,this.$emit("ok",this.ruleFormData),this.$refs.ruleForm.resetFields()}else this.type=="edit"?this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25"):this.$i18nt("Locals.common.https.addFail","\u65B0\u589E\u5931\u8D25"),this.$message.error(this.$i18nt("gd.https.editFail")+i.message)}).finally(i=>{this.confirmLoading=!1})}})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},getDictionary(s){return this.$options.filters.dictData(s)},selType(s){this.stageId=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var x=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData,rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-form-item",{staticStyle:{display:"none"}},[t("el-input",{model:{value:e.ruleFormData.sysPluginId,callback:function(a){e.$set(e.ruleFormData,"sysPluginId",a)},expression:"ruleFormData.sysPluginId"}})],1),t("el-form-item",{staticStyle:{display:"none"}},[e.type=="edit"?t("el-input",{model:{value:e.ruleFormData.id,callback:function(a){e.$set(e.ruleFormData,"id",a)},expression:"ruleFormData.id"}}):t("el-input",{model:{value:e.ruleFormData.pluginName,callback:function(a){e.$set(e.ruleFormData,"pluginName",a)},expression:"ruleFormData.pluginName"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.executeMessage","\u6267\u884C\u6D88\u606F"),prop:"sdkmessage"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.handleChange},model:{value:e.ruleFormData.sdkmessage,callback:function(a){e.$set(e.ruleFormData,"sdkmessage",a)},expression:"ruleFormData.sdkmessage"}},e._l(e.options,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:a.name}})}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.entityName","\u5B9E\u4F53\u540D\u79F0"),prop:"entityName"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.handleChangeEntityName},model:{value:e.ruleFormData.entityName,callback:function(a){e.$set(e.ruleFormData,"entityName",a)},expression:"ruleFormData.entityName"}},e._l(e.tableLists,function(a,i){return t("el-option",{key:i,attrs:{label:e.$i18nt(`Dynamics.${a.transkey}`,a.busname),value:a.tablename}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+e._s(a.tablename)+" ")])}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.executePhase","\u6267\u884C\u9636\u6BB5"),prop:"stage"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.stage,callback:function(a){e.$set(e.ruleFormData,"stage",a)},expression:"ruleFormData.stage"}},e._l(e.sdkStageType,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:a.name},on:{click:function(l){return e.selType(a.code)}}})}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.eventHandler","\u4E8B\u4EF6\u5904\u7406\u7A0B\u5E8F"),prop:"eventhandler"}},[e.type=="edit"?t("el-input",{staticStyle:{width:"100%"},attrs:{disabled:!0,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.eventhandler,callback:function(a){e.$set(e.ruleFormData,"eventhandler",a)},expression:"ruleFormData.eventhandler"}}):t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.eventhandler,callback:function(a){e.$set(e.ruleFormData,"eventhandler",a)},expression:"ruleFormData.eventhandler"}},e._l(e.sdkEventHandler,function(a,i){return t("el-option",{key:i,attrs:{value:a.eventHandlerId,label:a.eventHandlerName},nativeOn:{click:function(l){return e.sdkEventHandlerType(a.eventHandlerName)}}})}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.sort","\u6392\u5E8F"),prop:"order"}},[t("el-input-number",{staticStyle:{width:"100px"},attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),min:1,max:1e3,"controls-position":"right"},model:{value:e.ruleFormData.order,callback:function(a){e.$set(e.ruleFormData,"order",a)},expression:"ruleFormData.order"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.secureString","\u5B89\u5168\u5B57\u7B26\u4E32"),prop:"securityString"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.securityString,callback:function(a){e.$set(e.ruleFormData,"securityString",a)},expression:"ruleFormData.securityString"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.remarks","\u5907\u6CE8"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1)},P=[],C=n.normalizeComponent(k,x,P,!1,null,null,null,null);const T=C.exports,N={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{label:"\u5B9E\u4F53\u540D\u79F0",prop:"entityName",type:"slot",slotType:"entityName",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.entityName"},{label:"\u6267\u884C\u6D88\u606F",prop:"sdkMessage",type:"slot",slotType:"sdkMessage",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.executeMessage"},{label:"\u6267\u884C\u9636\u6BB5",prop:"stage",type:"slot",slotType:"stage",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.executePhase"},{label:"\u4E8B\u4EF6\u5904\u7406\u7A0B\u5E8F",prop:"eventHandler",type:"slot",slotType:"eventHandler",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.eventHandler"},{label:"\u6392\u5E8F",prop:"order",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.sort"},{label:"\u72B6\u6001",prop:"stateCodes",type:"slot",slotType:"stateCodes",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.status"}],formColumns:[{transKey:"gd.plugin.executeMessage",effectType:"select",prop:"sdkmessage",label:"\u6267\u884C\u6D88\u606F",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"SdkMessage",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.plugin.executePhase",effectType:"select",prop:"stage",label:"\u6267\u884C\u9636\u6BB5",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"Stage",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysPluginStep:add"},{displayName:"\u91CD\u7F6E",functionName:"reset",show:!0,transKey:"gd.btn.reset",icon:"el-icon-refresh-left",name:"sysPluginStep:delete",btnType:"danger"}]}}};const L={props:{height:{type:Number,default:400}},mixins:[d.tablesFilter,N],components:{editForm:T},data(){return{advanced:!1,queryParam:{},visible:!1,typeId:[],id:[],name:"",loadData:s=>(this.queryParam.typeId=this.id,h(Object.assign(s,this.queryParam)).then(e=>e.data)),selectedRowKeys:[],selectedRows:[],fullscreen:!1,width:"80%",quickQuery:!1,seeQuerys:!1,transKey:"gd.btn.add"}},computed:{sdkStageType(){return this.getDictionary("Stage")},getHeight(){let s=this.fullscreen?170:320;return this.screenHeight-s},...n.mapGetters(["tablePageSize","tableSize","labelPosition","formMode","screenHeight"])},methods:{reset(){this.queryParam={}},editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...s}))},add(){this.transKey="gd.btn.add",this.$refs.editForm.edit(this.typeId,"add")},togglefullscreen(){this.fullscreen=!this.fullscreen},index(s){let e=[];this.fullscreen=!1,this.visible=!0,this.id=s.id,this.queryParam.typeId=s.id,e.push({sysPluginId:s.id,name:s.name}),this.typeId=e,this.$nextTick(()=>{setTimeout(()=>{this.$refs.table&&this.$refs.table.refresh()},0)})},handleCancel(){this.queryParam={},this.visible=!1},editSysDictDataStatus(s,e){y({id:e.id,stateCodes:s==0?1:0}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.table.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message)})},sysDataDelete(s){b(s).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$refs.table.refresh()):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+e.message)}).catch(e=>{this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+e.message)})},toggleAdvanced(){this.advanced=!this.advanced},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(a=>a.code==s)[0];return t&&t.colour?t.colour:null},getDictionary(s){return this.$options.filters.dictData(s)},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}},created(){(this.$hasPerm("sysDictData:edit")||this.$hasPerm("sysDictData:delete"))&&this.tableColumns.push({label:"\u64CD\u4F5C",width:"200px",prop:"action",align:"left",type:"slot",slotType:"action",transKey:"gd.btn.handle"})}};var K=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:"80%",center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.plugin.stepManagement","SDK\u6B65\u9AA4\u7BA1\u7406"),fullscreen:e.fullscreen,buttons:[],emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{staticClass:"gd-dict",class:e.fullscreen?"modal-bodyq":"modal-body"},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"entityName",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"entityname",row:i}})]}},{key:"stateCodes",fn:function(a){return[t("el-popconfirm",{attrs:{title:a.row.statecodes==0?e.$i18nt("gd.btn.enable","\u542F\u7528"):e.$i18nt("gd.btn.deactivate","\u505C\u7528")},on:{confirm:()=>e.editSysDictDataStatus(a.row.statecodes,a.row)}},[t("el-tag",{style:e._f("dictColor")("state_code",a.row.statecodes),attrs:{slot:"reference",effect:"dark"},slot:"reference"},[e._v(" "+e._s(e._f("dictType")("state_code",a.row.statecodes))+" ")])],1)]}},{key:"stage",fn:function(a){return[e.dictSwitch(a.row.stage,"stage")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",size:"mini",color:e.dictSwitch(a.row.stage,"stage")}},[e._v(" "+e._s(e._f("dictType")("stage",a.row.stage))+" ")]):t("div",[e._v(e._s(e._f("dictType")("stage",a.row.stage)))])]}},{key:"sdkMessage",fn:function(a){return[e.dictSwitch(a.row.sdkmessage,"SdkMessage")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",size:"mini",color:e.dictSwitch(a.row.sdkmessage,"SdkMessage")}},[e._v(" "+e._s(e._f("dictType")("SdkMessage",a.row.sdkmessage))+" ")]):t("div",[e._v(e._s(e._f("dictType")("SdkMessage",a.row.stage)))])]}},{key:"eventHandler",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"eventhandler",row:i}})]}},{key:"action",fn:function(a){return[e.$hasPerm("sysPluginStep:edit")?t("a",{on:{click:function(i){return e.$refs.editForm.edit(a.row,"edit")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit"))+" ")]):e._e(),e.$hasPerm("sysPluginStep:edit")?t("el-divider",{attrs:{direction:"vertical"}}):e._e(),e.$hasPerm("sysPluginStep:delete")?t("el-popconfirm",{attrs:{placement:"top-start",title:e.$i18nt("gd.https.delContent")},on:{confirm:()=>e.sysDataDelete(a.row)}},[t("a",{attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.$i18nt("gd.btn.del","\u5220\u9664")))])]):e._e()]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.plugin.eventSteps","\u4E8B\u4EF6\u6B65\u9AA4"),clearable:""},model:{value:e.queryParam.stage,callback:function(a){e.$set(e.queryParam,"stage",a)},expression:"queryParam.stage"}},e._l(e.sdkStageType,function(a,i){return t("el-option",{key:i,attrs:{label:a.value,value:a.code}})}),1),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0}])})],1)],1),t("edit-form",{ref:"editForm",on:{ok:e.refresh}})],1)},I=[],q=n.normalizeComponent(L,K,I,!1,null,"225f7339",null,null);const E=q.exports;const R={name:"GdPlugin",props:{height:{type:Number,default:100}},mixins:[d.tablesFilter,w],data(){return{selectedRowKeys:[],loadData:s=>u(Object.assign(s,this.queryParam)).then(e=>e.data),queryParam:{}}},components:{editForm:S,dataIndex:E},computed:{getHeight(){return this.height},...n.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(s,e){this.selectedRows=e,this.selectedRowKeys=s},editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...s},{status:String(s.status)}))},add(){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])},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:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}let a=[];this.selectedRows.forEach(i=>{let l=m(i).then(o=>o);a.push(l)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(i=>{t();const l=i.filter(o=>!o.success);l.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")+l[0].message),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},saveQueries(s){this.queryParam={...s},this.refresh()},step(){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.$refs.dataIndex.index(this.selectedRows[0])},refresh(){this.$refs.table.refresh()},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var B=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[t("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:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"statecodes",fn:function(a){return[t("el-tag",{style:e._f("dictColor")("state_code",a.row.statecodes),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("state_code",a.row.statecodes))+" ")])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.plugin.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(a){e.$set(e.queryParam,"name",a)},expression:"queryParam.name"}}),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:a,visible:i}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:i},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{formMode:e.formMode},on:{ok:e.refresh}}),t("dataIndex",{ref:"dataIndex",on:{ok:e.refresh}})],1)},O=[],H=n.normalizeComponent(R,B,O,!1,null,"c169d3b5",null,null);const r=H.exports;r.install=function(s){s.component(r.name,r)};exports.GDpackage=r;exports.sysPluginDataPage=u;
|
|
1
|
+
"use strict";const n=require("./chartbi.06e48153.js"),d=require("./messages.2fff74f3.js");function u(s){return window.axios({url:"/SysPlugin/page",method:"post",data:s})}function c(s){return window.axios({url:"/SysPlugin/add",method:"post",data:s})}function g(s){return window.axios({url:"/SysPlugin/edit",method:"post",data:s})}function m(s){return window.axios({url:"/SysPlugin/delete",method:"post",data:s})}function h(s){return window.axios({url:"/SysPluginStep/page",method:"post",data:s})}function p(s){return window.axios({url:"/SysPluginStep/add",method:"post",data:s})}function f(s){return window.axios({url:"/SysPluginStep/edit",method:"post",data:s})}function y(s){return window.axios({url:"/SysPluginStep/changeStatus",method:"post",data:s})}function b(s){return window.axios({url:"/SysPluginStep/delete",method:"post",data:s})}function v(s){return window.axios({url:"/SysPluginStep/getNameSpacesDetails",method:"post",data:s})}const w={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.plugin.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(s,...e)=>this.renderHeader(s,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.plugin.status",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left",showOverflowTooltip:!0},{transKey:"gd.plugin.remarks",prop:"description",label:"\u5907\u6CE8",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysPlugin:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysPlugin:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysPlugin:delete"},{displayName:"\u6B65\u9AA4",functionName:"step",show:!0,transKey:"gd.plugin.step",icon:"gd-icons gd-icon-caozuojilu",name:"sysPlugin:step"}],tableQueries:[{transKey:"gd.plugin.name",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}]}}},$={props:{formMode:{type:String,default:"dialog"}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,fileList:[],record:null,title:"",fullscreen:!1,width:"700px",ruleFormData:{}}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"80px"}}},...n.mapGetters(["labelPosition"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(s){this.fullscreen=!1,this.title=s?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E"),this.record=s,this.fileList=[],this.visible=!0,this.sysViewButtons=this.sysViewButtons.map(e=>(e.name=s?"sysPlugin:edit":"sysPlugin:add",e)),s?this.ruleFormData={id:s.id,name:s.name,description:s.description}:this.$nextTick(()=>{this.ruleFormData={},this.$refs.ruleForm.resetFields()})},handleAvatarSuccess(s,e,t){this.$refs.fileUploadBtn.clearFiles()},uploadLogo(s){if(s.file.type=="application/x-msdownload"){if(this.fileList=[s.file],!this.record){let t=s.file.name.lastIndexOf(".");var e=s.file.name.substring(0,t);this.ruleFormData.name=e}}else this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.fileList=[];return!1},handleChange(s,e){if(e.length>1&&e.splice(0,1),s.raw.type=="application/x-msdownload"){if(this.fileList=[s.raw],!this.record){let a=s.raw.name.lastIndexOf(".");var t=s.raw.name.substring(0,a);this.ruleFormData.name=t}}else this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.fileList=[];return!1},handleRemove(s){const e=this.fileList.indexOf(s),t=this.fileList.slice();t.splice(e,1),this.fileList=t},handleSubmit(){this.$refs.ruleForm.validate(s=>{s&&(this.record?this.edit(this.ruleFormData):this.add(this.ruleFormData))})},add(s){this.confirmLoading=!0;let{fileList:e}=this;if(e.length==0)return this.$message.error(this.$i18nt("gd.web.selectFileTip")),this.confirmLoading=!1,!1;{let t=new FormData;t.append("file",e[0]),t.append("name",s.name),c(t).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.handleCancel(),this.$emit("ok",s)):this.$message.error(this.$i18nt("gd.https.addFail")+a.message),this.confirmLoading=!1}).finally(a=>{this.confirmLoading=!1})}},edit(s){this.confirmLoading=!0;let{fileList:e}=this,t=new FormData;t.append("file",e[0]),t.append("description",s.description),t.append("id",s.id),g(t).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.handleCancel(),this.$emit("ok",s)):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+a.message),this.confirmLoading=!1}).finally(a=>{this.confirmLoading=!1})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},selType(s){this.type=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var F=function(){var e=this,t=e._self._c;return t("div",[e.formMode=="dialog"?t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-form-item",{staticStyle:{display:"none"}},[t("el-input",{model:{value:e.ruleFormData.id,callback:function(a){e.$set(e.ruleFormData,"id",a)},expression:"ruleFormData.id"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.name","\u540D\u79F0")}},[t("el-input",{attrs:{disabled:!0},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.plugFile","\u63D2\u4EF6\u6587\u4EF6")}},[t("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".dll","file-list":e.fileList,"on-change":e.handleChange,action:"","show-file-list":!0,"on-remove":e.handleRemove,"auto-upload":!1}},[t("el-button",[t("i",{staticClass:"el-icon-upload2"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.remarks","\u5907\u6CE8")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1):t("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(a){e.visible=a}}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,showFullscreen:!1},on:{changeEvent:e.doEvent},slot:"title"}),t("div",[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-form-item",{staticStyle:{display:"none"}},[t("el-input",{model:{value:e.ruleFormData.id,callback:function(a){e.$set(e.ruleFormData,"id",a)},expression:"ruleFormData.id"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.name","\u540D\u79F0")}},[t("el-input",{attrs:{disabled:!0},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.plugFile","\u63D2\u4EF6\u6587\u4EF6")}},[t("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".dll","file-list":e.fileList,"on-change":e.handleChange,action:"","show-file-list":!0,"on-remove":e.handleRemove,"auto-upload":!1}},[t("el-button",[t("i",{staticClass:"el-icon-upload2"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.remarks","\u5907\u6CE8")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1)],1)},_=[],D=n.normalizeComponent($,F,_,!1,null,null,null,null);const S=D.exports,k={data(){return{visible:!1,confirmLoading:!1,stageId:"",ruleFormData:{},rules:{eventhandler:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],stage:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],entityName:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],sdkmessage:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],eventhandler:[{required:(this.type=="edit",!1),message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",name:"sysPluginStep:edit",icon:"el-icon-document-checked"}],type:null,fullscreen:!1,width:"700px",currentSelectedIcon:"",visibleIcon:!1,sdkEventHandler:[],eventName:""}},computed:{sdkStageType(){return this.getDictionary("Stage")},options(){return this.getDictionary("SdkMessage")},...n.mapGetters(["labelPosition","formMode","tableLists"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},edit(s,e){this.type=e,this.visible=!0,this.fullscreen=!1,this.title=this.type=="edit"?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u5931\u8D25"),this.stageId=s.stage,this.sdkmessageId=s.sdkmessage,this.entityNameId=s.entityname,this.$nextTick(()=>{setTimeout(()=>{this.type=="add"?(this.ruleFormData={sysPluginId:s[0].sysPluginId,pluginName:s[0].name},this.ruleFormData.order=1,this.getEventhandler(s[0].sysPluginId)):this.ruleFormData={id:s.id,sysPluginId:s.syspluginid,entityName:s.entityname,sdkmessage:String(s.sdkmessage),stage:String(s.stage),order:s.order,description:s.description,securityString:s.securitystring,eventhandler:s.eventhandler},this.$refs.ruleForm.resetFields()},0)})},stageremarkFilter(s){const e=this.sdkStageType.filter(t=>t.code==s);if(e.length>0)return e[0].remark},stageNameFilter(s){const e=this.sdkStageType.filter(t=>t.code==s);if(e.length>0)return e[0].code},messageTypeFilter(s){const e=this.options.filter(t=>t.code==s);if(e.length>0)return e[0].name},entityNameFilter(s){const e=this.optionsentityname.filter(t=>t.value==s);if(e.length>0)return e[0].label},handleChange(s){console.log(`selected ${s}`),this.sdkmessageId=s},handleChangeEntityName(s){this.entityNameId=s},getEventhandler(s){v({pluginId:s}).then(t=>{t.success?this.sdkEventHandler=t.data:this.$message.error(this.$i18nt("Locals.common.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message)}).finally(t=>{this.confirmLoading=!1})},sdkEventHandlerType(s){this.eventName=s},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){if(this.confirmLoading=!0,this.type=="edit"){var e=this.stageremarkFilter(this.stageId),t=this.messageTypeFilter(this.sdkmessageId);this.ruleFormData.name=e+this.entityNameId+t,this.ruleFormData.sdkmessage=String(this.sdkmessageId),this.ruleFormData.entityName=this.entityNameId}else this.ruleFormData.name=this.eventName;(this.type=="edit"?f:p)(this.ruleFormData).then(i=>{if(i.success){let l=this.type=="edit"?this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F"):this.$i18nt("Locals.common.https.addSucc","\u65B0\u589E\u6210\u529F");this.$message.success(l),this.visible=!1,this.confirmLoading=!1,this.$emit("ok",this.ruleFormData),this.$refs.ruleForm.resetFields()}else this.type=="edit"?this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25"):this.$i18nt("Locals.common.https.addFail","\u65B0\u589E\u5931\u8D25"),this.$message.error(this.$i18nt("gd.https.editFail")+i.message)}).finally(i=>{this.confirmLoading=!1})}})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},getDictionary(s){return this.$options.filters.dictData(s)},selType(s){this.stageId=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var x=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData,rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-form-item",{staticStyle:{display:"none"}},[t("el-input",{model:{value:e.ruleFormData.sysPluginId,callback:function(a){e.$set(e.ruleFormData,"sysPluginId",a)},expression:"ruleFormData.sysPluginId"}})],1),t("el-form-item",{staticStyle:{display:"none"}},[e.type=="edit"?t("el-input",{model:{value:e.ruleFormData.id,callback:function(a){e.$set(e.ruleFormData,"id",a)},expression:"ruleFormData.id"}}):t("el-input",{model:{value:e.ruleFormData.pluginName,callback:function(a){e.$set(e.ruleFormData,"pluginName",a)},expression:"ruleFormData.pluginName"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.executeMessage","\u6267\u884C\u6D88\u606F"),prop:"sdkmessage"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.handleChange},model:{value:e.ruleFormData.sdkmessage,callback:function(a){e.$set(e.ruleFormData,"sdkmessage",a)},expression:"ruleFormData.sdkmessage"}},e._l(e.options,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:a.name}})}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.entityName","\u5B9E\u4F53\u540D\u79F0"),prop:"entityName"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.handleChangeEntityName},model:{value:e.ruleFormData.entityName,callback:function(a){e.$set(e.ruleFormData,"entityName",a)},expression:"ruleFormData.entityName"}},e._l(e.tableLists,function(a,i){return t("el-option",{key:i,attrs:{label:e.$i18nt(`Dynamics.${a.transkey}`,a.busname),value:a.tablename}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+e._s(a.tablename)+" ")])}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.executePhase","\u6267\u884C\u9636\u6BB5"),prop:"stage"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.stage,callback:function(a){e.$set(e.ruleFormData,"stage",a)},expression:"ruleFormData.stage"}},e._l(e.sdkStageType,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:a.name},on:{click:function(l){return e.selType(a.code)}}})}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.eventHandler","\u4E8B\u4EF6\u5904\u7406\u7A0B\u5E8F"),prop:"eventhandler"}},[e.type=="edit"?t("el-input",{staticStyle:{width:"100%"},attrs:{disabled:!0,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.eventhandler,callback:function(a){e.$set(e.ruleFormData,"eventhandler",a)},expression:"ruleFormData.eventhandler"}}):t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.eventhandler,callback:function(a){e.$set(e.ruleFormData,"eventhandler",a)},expression:"ruleFormData.eventhandler"}},e._l(e.sdkEventHandler,function(a,i){return t("el-option",{key:i,attrs:{value:a.eventHandlerId,label:a.eventHandlerName},nativeOn:{click:function(l){return e.sdkEventHandlerType(a.eventHandlerName)}}})}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.sort","\u6392\u5E8F"),prop:"order"}},[t("el-input-number",{staticStyle:{width:"100px"},attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),min:1,max:1e3,"controls-position":"right"},model:{value:e.ruleFormData.order,callback:function(a){e.$set(e.ruleFormData,"order",a)},expression:"ruleFormData.order"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.secureString","\u5B89\u5168\u5B57\u7B26\u4E32"),prop:"securityString"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.securityString,callback:function(a){e.$set(e.ruleFormData,"securityString",a)},expression:"ruleFormData.securityString"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.remarks","\u5907\u6CE8"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1)},P=[],C=n.normalizeComponent(k,x,P,!1,null,null,null,null);const T=C.exports,N={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{label:"\u5B9E\u4F53\u540D\u79F0",prop:"entityName",type:"slot",slotType:"entityName",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.entityName"},{label:"\u6267\u884C\u6D88\u606F",prop:"sdkMessage",type:"slot",slotType:"sdkMessage",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.executeMessage"},{label:"\u6267\u884C\u9636\u6BB5",prop:"stage",type:"slot",slotType:"stage",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.executePhase"},{label:"\u4E8B\u4EF6\u5904\u7406\u7A0B\u5E8F",prop:"eventHandler",type:"slot",slotType:"eventHandler",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.eventHandler"},{label:"\u6392\u5E8F",prop:"order",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.sort"},{label:"\u72B6\u6001",prop:"stateCodes",type:"slot",slotType:"stateCodes",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.status"}],formColumns:[{transKey:"gd.plugin.executeMessage",effectType:"select",prop:"sdkmessage",label:"\u6267\u884C\u6D88\u606F",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"SdkMessage",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.plugin.executePhase",effectType:"select",prop:"stage",label:"\u6267\u884C\u9636\u6BB5",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"Stage",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysPluginStep:add"},{displayName:"\u91CD\u7F6E",functionName:"reset",show:!0,transKey:"gd.btn.reset",icon:"el-icon-refresh-left",name:"sysPluginStep:delete",btnType:"danger"}]}}};const L={props:{height:{type:Number,default:400}},mixins:[d.tablesFilter,N],components:{editForm:T},data(){return{advanced:!1,queryParam:{},visible:!1,typeId:[],id:[],name:"",loadData:s=>(this.queryParam.typeId=this.id,h(Object.assign(s,this.queryParam)).then(e=>e.data)),selectedRowKeys:[],selectedRows:[],fullscreen:!1,width:"80%",quickQuery:!1,seeQuerys:!1,transKey:"gd.btn.add"}},computed:{sdkStageType(){return this.getDictionary("Stage")},getHeight(){let s=this.fullscreen?170:320;return this.screenHeight-s},...n.mapGetters(["tablePageSize","tableSize","labelPosition","formMode","screenHeight"])},methods:{reset(){this.queryParam={}},editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...s}))},add(){this.transKey="gd.btn.add",this.$refs.editForm.edit(this.typeId,"add")},togglefullscreen(){this.fullscreen=!this.fullscreen},index(s){let e=[];this.fullscreen=!1,this.visible=!0,this.id=s.id,this.queryParam.typeId=s.id,e.push({sysPluginId:s.id,name:s.name}),this.typeId=e,this.$nextTick(()=>{setTimeout(()=>{this.$refs.table&&this.$refs.table.refresh()},0)})},handleCancel(){this.queryParam={},this.visible=!1},editSysDictDataStatus(s,e){y({id:e.id,stateCodes:s==0?1:0}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.table.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message)})},sysDataDelete(s){b(s).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$refs.table.refresh()):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+e.message)}).catch(e=>{this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+e.message)})},toggleAdvanced(){this.advanced=!this.advanced},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(a=>a.code==s)[0];return t&&t.colour?t.colour:null},getDictionary(s){return this.$options.filters.dictData(s)},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}},created(){(this.$hasPerm("sysDictData:edit")||this.$hasPerm("sysDictData:delete"))&&this.tableColumns.push({label:"\u64CD\u4F5C",width:"200px",prop:"action",align:"left",type:"slot",slotType:"action",transKey:"gd.btn.handle"})}};var K=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:"80%",center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.plugin.stepManagement","SDK\u6B65\u9AA4\u7BA1\u7406"),fullscreen:e.fullscreen,buttons:[],emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{staticClass:"gd-dict",class:e.fullscreen?"modal-bodyq":"modal-body"},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"entityName",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"entityname",row:i}})]}},{key:"stateCodes",fn:function(a){return[t("el-popconfirm",{attrs:{title:a.row.statecodes==0?e.$i18nt("gd.btn.enable","\u542F\u7528"):e.$i18nt("gd.btn.deactivate","\u505C\u7528")},on:{confirm:()=>e.editSysDictDataStatus(a.row.statecodes,a.row)}},[t("el-tag",{style:e._f("dictColor")("state_code",a.row.statecodes),attrs:{slot:"reference",effect:"dark"},slot:"reference"},[e._v(" "+e._s(e._f("dictType")("state_code",a.row.statecodes))+" ")])],1)]}},{key:"stage",fn:function(a){return[e.dictSwitch(a.row.stage,"stage")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",size:"mini",color:e.dictSwitch(a.row.stage,"stage")}},[e._v(" "+e._s(e._f("dictType")("stage",a.row.stage))+" ")]):t("div",[e._v(e._s(e._f("dictType")("stage",a.row.stage)))])]}},{key:"sdkMessage",fn:function(a){return[e.dictSwitch(a.row.sdkmessage,"SdkMessage")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",size:"mini",color:e.dictSwitch(a.row.sdkmessage,"SdkMessage")}},[e._v(" "+e._s(e._f("dictType")("SdkMessage",a.row.sdkmessage))+" ")]):t("div",[e._v(e._s(e._f("dictType")("SdkMessage",a.row.stage)))])]}},{key:"eventHandler",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"eventhandler",row:i}})]}},{key:"action",fn:function(a){return[e.$hasPerm("sysPluginStep:edit")?t("a",{on:{click:function(i){return e.$refs.editForm.edit(a.row,"edit")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit"))+" ")]):e._e(),e.$hasPerm("sysPluginStep:edit")?t("el-divider",{attrs:{direction:"vertical"}}):e._e(),e.$hasPerm("sysPluginStep:delete")?t("el-popconfirm",{attrs:{placement:"top-start",title:e.$i18nt("gd.https.delContent")},on:{confirm:()=>e.sysDataDelete(a.row)}},[t("a",{attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.$i18nt("gd.btn.del","\u5220\u9664")))])]):e._e()]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.plugin.eventSteps","\u4E8B\u4EF6\u6B65\u9AA4"),clearable:""},model:{value:e.queryParam.stage,callback:function(a){e.$set(e.queryParam,"stage",a)},expression:"queryParam.stage"}},e._l(e.sdkStageType,function(a,i){return t("el-option",{key:i,attrs:{label:a.value,value:a.code}})}),1),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0}])})],1)],1),t("edit-form",{ref:"editForm",on:{ok:e.refresh}})],1)},I=[],q=n.normalizeComponent(L,K,I,!1,null,"225f7339",null,null);const E=q.exports;const R={name:"GdPlugin",props:{height:{type:Number,default:100}},mixins:[d.tablesFilter,w],data(){return{selectedRowKeys:[],loadData:s=>u(Object.assign(s,this.queryParam)).then(e=>e.data),queryParam:{}}},components:{editForm:S,dataIndex:E},computed:{getHeight(){return this.height},...n.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(s,e){this.selectedRows=e,this.selectedRowKeys=s},editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...s},{status:String(s.status)}))},add(){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])},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:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}let a=[];this.selectedRows.forEach(i=>{let l=m(i).then(o=>o);a.push(l)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(i=>{t();const l=i.filter(o=>!o.success);l.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")+l[0].message),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},saveQueries(s){this.queryParam={...s},this.refresh()},step(){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.$refs.dataIndex.index(this.selectedRows[0])},refresh(){this.$refs.table.refresh()},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var B=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[t("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:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"statecodes",fn:function(a){return[t("el-tag",{style:e._f("dictColor")("state_code",a.row.statecodes),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("state_code",a.row.statecodes))+" ")])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.plugin.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(a){e.$set(e.queryParam,"name",a)},expression:"queryParam.name"}}),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:a,visible:i}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:i},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{formMode:e.formMode},on:{ok:e.refresh}}),t("dataIndex",{ref:"dataIndex",on:{ok:e.refresh}})],1)},O=[],H=n.normalizeComponent(R,B,O,!1,null,"c169d3b5",null,null);const r=H.exports;r.install=function(s){s.component(r.name,r)};exports.GDpackage=r;exports.sysPluginDataPage=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./chartbi.06e48153.js"),h=require("./messages.
|
|
1
|
+
"use strict";const l=require("./chartbi.06e48153.js"),h=require("./messages.2fff74f3.js");function d(t){return window.axios({url:"/sysPos/page",method:"get",params:t})}function u(t){return window.axios({url:"/sysPos/add",method:"post",data:t})}function c(t){return window.axios({url:"/sysPos/edit",method:"post",data:t})}function g(t){return window.axios({url:"/sysPos/delete",method:"post",data:t})}const p={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.jobTitle",prop:"name",label:"\u804C\u4F4D\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left"},{transKey:"gd.org.sort",prop:"sort",width:"200",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.org.jobTitle",effectType:"input",prop:"name",label:"\u804C\u4F4D\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.org.code",prop:"code",effectType:"input",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.org.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",type:"number"}]},{transKey:"gd.org.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",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:"sysPos:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysPos:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysPos:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.org.jobTitle",prop:"name",label:"\u804C\u4F4D\u540D\u79F0",effectType:"input",rules:[]}]}}};const m={name:"GdPos",props:{height:{type:Number,default:100}},mixins:[h.tablesFilter,p],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>d(Object.assign(t,this.queryParam)).then(e=>e.data)}},computed:{getHeight(){return this.height},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...t},{pid:t.pid==0?"0":t.pid}))},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,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let r=[];this.selectedRows.forEach(a=>{let o=g(a).then(n=>n);r.push(o)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(a=>{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.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",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?c:u)(t).then(n=>{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})},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var f=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:"remark",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{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.org.jobTitle","\u804C\u4F4D\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.formColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}})],1)},y=[],b=l.normalizeComponent(m,f,y,!1,null,"20786b67",null,null);const i=b.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;exports.sysPosAdd=u;exports.sysPosDelete=g;exports.sysPosEdit=c;exports.sysPosPage=d;
|