gds-plus-design-vue 1.2.23 → 1.2.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{chartbi.06e48153.js → chartbi.5eded588.js} +20 -20
- package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
- package/lib/gd-initial.js +17 -15
- package/lib/gd-initial.mjs +23641 -16241
- package/lib/{main.2415a49a.js → main.5b42b006.js} +1 -1
- package/lib/main.6245dcb0.mjs +198 -0
- package/lib/{main.b2d0a309.mjs → main.6d033946.mjs} +24 -46
- package/lib/main.77b653a0.js +1 -0
- package/lib/{main.2cddfbbd.mjs → main.81ceb1d2.mjs} +3 -3
- package/lib/main.b143863e.js +1 -0
- package/lib/main.e7207a58.js +1 -0
- package/lib/main.f5fec475.mjs +123 -0
- package/lib/{messages.d8abe18d.mjs → messages.78d0815c.mjs} +1161 -1116
- package/lib/messages.e7af6cf3.js +9 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.8ea53681.js → system.account.dc88aad7.js} +1 -1
- package/lib/{system.account.9bc40d08.mjs → system.account.feca6fef.mjs} +26 -26
- package/lib/system.config.76fc8a66.js +1 -0
- package/lib/{system.config.8223d495.mjs → system.config.98005c65.mjs} +7 -2
- package/lib/{system.datasource.fd6a4e76.js → system.datasource.83e34499.js} +1 -1
- package/lib/{system.datasource.57233650.mjs → system.datasource.a67e9bce.mjs} +3 -3
- package/lib/{system.dict.a24f33b0.js → system.dict.931dcb56.js} +1 -1
- package/lib/{system.dict.8f95218b.mjs → system.dict.97c057d5.mjs} +4 -4
- package/lib/{system.duplicatechecking.6b706948.mjs → system.duplicatechecking.5bf3e3d9.mjs} +15 -11
- package/lib/{system.duplicatechecking.39293985.js → system.duplicatechecking.785d1b24.js} +1 -1
- package/lib/{system.email.a2d9a307.js → system.email.06fb96a6.js} +1 -1
- package/lib/{system.email.dae988be.mjs → system.email.a938d704.mjs} +2 -2
- package/lib/{system.fieldsecurity.02627a7a.mjs → system.fieldsecurity.9f9f73df.mjs} +127 -79
- package/lib/system.fieldsecurity.d11088e3.js +1 -0
- package/lib/{system.file.0fa095a9.mjs → system.file.6c4d3ece.mjs} +13 -8
- package/lib/system.file.b7ce477b.js +1 -0
- package/lib/system.log.278084ec.js +1 -0
- package/lib/{system.log.acb64505.mjs → system.log.35ddd3bd.mjs} +64 -81
- package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
- package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
- package/lib/system.notice.30231ef5.js +1 -0
- package/lib/system.notice.ce4a4852.mjs +1693 -0
- package/lib/system.noticereceived.a608b96b.js +1 -0
- package/lib/{system.noticereceived.1aa70b65.mjs → system.noticereceived.fc6da6a7.mjs} +45 -34
- package/lib/system.onlineuser.3e1639a3.js +1 -0
- package/lib/{system.onlineuser.3d848a32.mjs → system.onlineuser.be4b1d75.mjs} +22 -15
- package/lib/{system.org.fcf96d1e.mjs → system.org.32183035.mjs} +17 -68
- package/lib/system.org.474be398.js +1 -0
- package/lib/{system.permissions.a1a9505c.js → system.permissions.1f9c7d7d.js} +1 -1
- package/lib/{system.permissions.23f5b097.mjs → system.permissions.28913e80.mjs} +3 -3
- package/lib/{system.plugin.e37f9dbc.mjs → system.plugin.27391ed5.mjs} +2 -2
- package/lib/{system.plugin.b6de4673.js → system.plugin.b60b97c7.js} +1 -1
- package/lib/{system.pos.1a01fc97.mjs → system.pos.2425d5ef.mjs} +2 -2
- package/lib/{system.pos.a4fb19b0.js → system.pos.decf8a63.js} +1 -1
- package/lib/{system.promptmanagement.290958b1.js → system.promptmanagement.09dcec13.js} +1 -1
- package/lib/{system.promptmanagement.36a65c51.mjs → system.promptmanagement.eaabf18d.mjs} +7 -7
- package/lib/system.role.1be25fd7.mjs +2049 -0
- package/lib/system.role.e98ed81e.js +1 -0
- package/lib/{system.sumberrules.dd6299e8.js → system.sumberrules.83d23274.js} +1 -1
- package/lib/{system.sumberrules.cdef9308.mjs → system.sumberrules.9d0efd00.mjs} +2 -2
- package/lib/system.team.cbbde647.js +1 -0
- package/lib/{system.team.ee652fe4.mjs → system.team.db590123.mjs} +318 -244
- package/lib/system.teammembers.9eb94832.js +1 -0
- package/lib/{system.teammembers.26a2ba81.mjs → system.teammembers.fd2452e7.mjs} +78 -40
- package/lib/{system.timers.b9424204.js → system.timers.0af8bf8f.js} +1 -1
- package/lib/{system.timers.4efa8a7d.mjs → system.timers.5ef2cfb4.mjs} +2 -2
- package/lib/{system.translation.0a9399b4.mjs → system.translation.2cb37689.mjs} +7 -7
- package/lib/{system.translation.21d2fd8b.js → system.translation.7b560e17.js} +1 -1
- package/lib/{system.user.4fcfdf99.mjs → system.user.c8ba3724.mjs} +146 -84
- package/lib/{system.user.d48a08db.js → system.user.f2bc316f.js} +5 -5
- package/lib/{system.useraffiliation.fb002239.mjs → system.useraffiliation.1e0edee4.mjs} +3 -3
- package/lib/{system.useraffiliation.a59ce45b.js → system.useraffiliation.617acb38.js} +1 -1
- package/lib/system.webresource.3fdc65fd.js +1 -0
- package/lib/{system.webresource.4df01c92.mjs → system.webresource.88e48862.mjs} +16 -18
- package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
- package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
- package/locale/en_US.js +45 -3
- package/locale/id_ID.js +45 -3
- package/locale/vi_VN.js +1970 -1928
- package/locale/zh_CN.js +44 -2
- package/package.json +1 -1
- package/lib/main.4c447fc3.js +0 -1
- package/lib/main.86fe06d4.mjs +0 -87
- package/lib/main.d091d06d.js +0 -1
- package/lib/messages.2fff74f3.js +0 -9
- package/lib/system.config.c6e30213.js +0 -1
- package/lib/system.fieldsecurity.a0cec24d.js +0 -1
- package/lib/system.file.d695ab37.js +0 -1
- package/lib/system.log.c07ae5db.js +0 -1
- package/lib/system.notice.5ae50bd4.mjs +0 -641
- package/lib/system.notice.f18578ae.js +0 -1
- package/lib/system.noticereceived.bfa98a9b.js +0 -1
- package/lib/system.onlineuser.1c428d05.js +0 -1
- package/lib/system.org.5bb36f9c.js +0 -1
- package/lib/system.role.68de93ef.mjs +0 -1543
- package/lib/system.role.88100f66.js +0 -1
- package/lib/system.team.53d64006.js +0 -1
- package/lib/system.teammembers.4a3dc336.js +0 -1
- package/lib/system.webresource.3366cc29.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./chartbi.5eded588.js"),o=require("./messages.e7af6cf3.js"),c=require("./system.notice.30231ef5.js");function n(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",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",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 d={name:"GdNoticeReceived",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,u],data(){return{transKey:"gd.btn.add",loadData:t=>n(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,allData:[]}},components:{detailForm:c.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]()}},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))}};var p=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-page-view"},[i("div",{staticClass:"page-view-list"},[i("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[i("div",{staticClass:"gd-table-operator"},[i("div",{staticClass:"gd-table-operatorl"},[i("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),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"}}),i("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[i("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0},{key:"title",fn:function({column:a,row:r}){return[i("gd-tooltip",{attrs:{rowKey:"title",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(a){return[i("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))+" ")])]}},{key:"status",fn:function(a){return[i("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))+" ")])]}},{key:"filtering",fn:function({colse:a,visible:r}){return[i("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:r},on:{save:e.saveQueries}})]}}])})],1),i("detailForm",{ref:"detailForm"})],1)},y=[],f=l.normalizeComponent(d,p,y,!1,null,"b4bdcf86",null,null);const s=f.exports;s.install=function(t){t.component(s.name,s)};exports.GDpackage=s;exports.sysNoticeReceived=n;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { m as l, n } from "./chartbi.
|
|
2
|
-
import { t as
|
|
3
|
-
import { d as c } from "./system.notice.
|
|
4
|
-
function
|
|
1
|
+
import { m as l, n as o } from "./chartbi.c3bc6adb.mjs";
|
|
2
|
+
import { t as n } from "./messages.78d0815c.mjs";
|
|
3
|
+
import { d as c } from "./system.notice.ce4a4852.mjs";
|
|
4
|
+
function d(t) {
|
|
5
5
|
return window.axios({
|
|
6
6
|
url: "/sysNotice/received",
|
|
7
7
|
method: "get",
|
|
8
8
|
params: t
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const u = {
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
tableColumns: [
|
|
@@ -21,25 +21,25 @@ const p = {
|
|
|
21
21
|
transKey: "gd.notice.title",
|
|
22
22
|
prop: "title",
|
|
23
23
|
label: "\u6807\u9898",
|
|
24
|
+
width: "260",
|
|
24
25
|
type: "slot",
|
|
25
26
|
slotType: "title",
|
|
26
27
|
align: "left",
|
|
27
|
-
fixed: !0
|
|
28
|
-
showOverflowTooltip: !0
|
|
28
|
+
fixed: !0
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
transKey: "gd.notice.type",
|
|
32
32
|
prop: "type",
|
|
33
|
+
width: "120",
|
|
33
34
|
label: "\u7C7B\u578B",
|
|
34
35
|
align: "left",
|
|
35
36
|
type: "slot",
|
|
36
|
-
slotType: "type"
|
|
37
|
-
align: "center",
|
|
38
|
-
showOverflowTooltip: !0
|
|
37
|
+
slotType: "type"
|
|
39
38
|
},
|
|
40
39
|
{
|
|
41
40
|
transKey: "gd.notice.status",
|
|
42
41
|
prop: "status",
|
|
42
|
+
width: "120",
|
|
43
43
|
label: "\u72B6\u6001",
|
|
44
44
|
align: "left",
|
|
45
45
|
type: "slot",
|
|
@@ -48,12 +48,14 @@ const p = {
|
|
|
48
48
|
{
|
|
49
49
|
transKey: "gd.notice.publicTime",
|
|
50
50
|
prop: "publictime",
|
|
51
|
+
width: "180",
|
|
51
52
|
label: "\u53D1\u5E03\u65F6\u95F4",
|
|
52
53
|
align: "center"
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
56
|
transKey: "gd.notice.publicUserName",
|
|
56
57
|
prop: "publicusername",
|
|
58
|
+
width: "200",
|
|
57
59
|
label: "\u53D1\u5E03\u4EBA",
|
|
58
60
|
align: "left"
|
|
59
61
|
}
|
|
@@ -75,7 +77,7 @@ const p = {
|
|
|
75
77
|
};
|
|
76
78
|
}
|
|
77
79
|
};
|
|
78
|
-
const
|
|
80
|
+
const p = {
|
|
79
81
|
name: "GdNoticeReceived",
|
|
80
82
|
props: {
|
|
81
83
|
height: {
|
|
@@ -83,15 +85,16 @@ const d = {
|
|
|
83
85
|
default: 100
|
|
84
86
|
}
|
|
85
87
|
},
|
|
86
|
-
mixins: [
|
|
88
|
+
mixins: [n, u],
|
|
87
89
|
data() {
|
|
88
90
|
return {
|
|
89
91
|
transKey: "gd.btn.add",
|
|
90
|
-
loadData: (t) =>
|
|
92
|
+
loadData: (t) => d(Object.assign(t, this.queryParam)).then((e) => (this.allData = e.data.rows, e.data)),
|
|
91
93
|
selectedRowKeys: [],
|
|
92
94
|
selectedRows: [],
|
|
93
95
|
queryParam: {},
|
|
94
|
-
formLoading: !1
|
|
96
|
+
formLoading: !1,
|
|
97
|
+
allData: []
|
|
95
98
|
};
|
|
96
99
|
},
|
|
97
100
|
components: {
|
|
@@ -120,39 +123,47 @@ const d = {
|
|
|
120
123
|
let e = t.item.functionName;
|
|
121
124
|
this[e] && this[e]();
|
|
122
125
|
}
|
|
126
|
+
},
|
|
127
|
+
mounted() {
|
|
128
|
+
(this.$route.params.id || this.$route.query.id) && (this.transKey = "gd.notice.detail", setTimeout(() => {
|
|
129
|
+
this.allData.forEach((t) => {
|
|
130
|
+
(t.id == this.$route.params.id || t.id == this.$route.query.id) && this.$refs.detailForm.open(t);
|
|
131
|
+
});
|
|
132
|
+
}, 1e3));
|
|
123
133
|
}
|
|
124
134
|
};
|
|
125
|
-
var
|
|
126
|
-
var e = this,
|
|
127
|
-
return
|
|
128
|
-
return [
|
|
135
|
+
var f = function() {
|
|
136
|
+
var e = this, i = e._self._c;
|
|
137
|
+
return i("div", { staticClass: "gd-page-view" }, [i("div", { staticClass: "page-view-list" }, [i("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() {
|
|
138
|
+
return [i("div", { staticClass: "gd-table-operator" }, [i("div", { staticClass: "gd-table-operatorl" }, [i("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.notice.title", "\u6807\u9898"), clearable: "" }, nativeOn: { keyup: function(a) {
|
|
129
139
|
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
130
|
-
} }, model: { value: e.queryParam.
|
|
131
|
-
e.$set(e.queryParam, "
|
|
132
|
-
}, expression: "queryParam.
|
|
140
|
+
} }, model: { value: e.queryParam.SearchValue, callback: function(a) {
|
|
141
|
+
e.$set(e.queryParam, "SearchValue", a);
|
|
142
|
+
}, expression: "queryParam.SearchValue" } }), i("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [i("i", { staticClass: "el-input__icon el-icon-search" })])], 1)])];
|
|
133
143
|
}, proxy: !0 }, { key: "title", fn: function({ column: a, row: s }) {
|
|
134
|
-
return [
|
|
144
|
+
return [i("gd-tooltip", { attrs: { rowKey: "title", row: s, highlight: "" }, on: { click: e.editForm } })];
|
|
135
145
|
} }, { key: "type", fn: function(a) {
|
|
136
|
-
return [
|
|
146
|
+
return [i("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)) + " ")])];
|
|
137
147
|
} }, { key: "status", fn: function(a) {
|
|
138
|
-
return [
|
|
148
|
+
return [i("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)) + " ")])];
|
|
139
149
|
} }, { key: "filtering", fn: function({ colse: a, visible: s }) {
|
|
140
|
-
return [
|
|
141
|
-
} }]) })], 1),
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
y,
|
|
150
|
+
return [i("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible: s }, on: { save: e.saveQueries } })];
|
|
151
|
+
} }]) })], 1), i("detailForm", { ref: "detailForm" })], 1);
|
|
152
|
+
}, y = [], h = /* @__PURE__ */ o(
|
|
153
|
+
p,
|
|
145
154
|
f,
|
|
155
|
+
y,
|
|
146
156
|
!1,
|
|
147
157
|
null,
|
|
148
|
-
"
|
|
158
|
+
"b4bdcf86",
|
|
149
159
|
null,
|
|
150
160
|
null
|
|
151
161
|
);
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
t.component(
|
|
162
|
+
const r = h.exports;
|
|
163
|
+
r.install = function(t) {
|
|
164
|
+
t.component(r.name, r);
|
|
155
165
|
};
|
|
156
166
|
export {
|
|
157
|
-
|
|
167
|
+
r as G,
|
|
168
|
+
d as s
|
|
158
169
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./chartbi.5eded588.js"),o=require("./messages.e7af6cf3.js");function c(t){return window.axios({url:"/sysOnlineUser/page",method:"get",params:t})}function d(t){return window.axios({url:"/sysOnlineUser/forceExist",method:"post",data:t})}const u={data(){return{tableColumns:[{transKey:"gd.onlineUser.account",prop:"account",width:"200",label:"\u8D26\u53F7",align:"left",fixed:!0},{transKey:"gd.onlineUser.name",prop:"name",width:"200",label:"\u59D3\u540D",align:"left"},{transKey:"gd.onlineUser.lastLoginIp",prop:"lastloginip",width:"160",label:"\u767B\u5F55IP",align:"left"},{transKey:"gd.onlineUser.lastTime",prop:"lasttime",width:"180",label:"\u767B\u5F55\u65F6\u95F4",align:"center"},{transKey:"gd.onlineUser.lastLoginBrowser",prop:"lastloginbrowser",width:"200",label:"\u6D4F\u89C8\u5668",align:"left"},{transKey:"gd.onlineUser.lastLoginOs",prop:"lastloginos",width:"160",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,u],data(){return{selectedRowKeys:[],selectedRows:[],queryParam:{},isShow:!1,loadData:t=>c(Object.assign(t,this.queryParam)).then(e=>e.data)}},computed:{getHeight(){return this.height},...l.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((i,m)=>{d().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),i(),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:i}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:i},on:{save:e.saveQueries}})]}}:null],null,!0)})],1)])},h=[],f=l.normalizeComponent(g,p,h,!1,null,null,null,null);const r=f.exports;r.install=function(t){t.component(r.name,r)};exports.GDpackage=r;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
import { t as c } from "./messages.
|
|
3
|
-
function
|
|
1
|
+
import { m as l, n as o } from "./chartbi.c3bc6adb.mjs";
|
|
2
|
+
import { t as c } from "./messages.78d0815c.mjs";
|
|
3
|
+
function d(t) {
|
|
4
4
|
return window.axios({
|
|
5
5
|
url: "/sysOnlineUser/page",
|
|
6
6
|
method: "get",
|
|
7
7
|
params: t
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function u(t) {
|
|
11
11
|
return window.axios({
|
|
12
12
|
url: "/sysOnlineUser/forceExist",
|
|
13
13
|
method: "post",
|
|
@@ -21,36 +21,43 @@ const g = {
|
|
|
21
21
|
{
|
|
22
22
|
transKey: "gd.onlineUser.account",
|
|
23
23
|
prop: "account",
|
|
24
|
+
width: "200",
|
|
24
25
|
label: "\u8D26\u53F7",
|
|
25
|
-
align: "left"
|
|
26
|
+
align: "left",
|
|
27
|
+
fixed: !0
|
|
26
28
|
},
|
|
27
29
|
{
|
|
28
30
|
transKey: "gd.onlineUser.name",
|
|
29
31
|
prop: "name",
|
|
32
|
+
width: "200",
|
|
30
33
|
label: "\u59D3\u540D",
|
|
31
34
|
align: "left"
|
|
32
35
|
},
|
|
33
36
|
{
|
|
34
37
|
transKey: "gd.onlineUser.lastLoginIp",
|
|
35
38
|
prop: "lastloginip",
|
|
39
|
+
width: "160",
|
|
36
40
|
label: "\u767B\u5F55IP",
|
|
37
41
|
align: "left"
|
|
38
42
|
},
|
|
39
43
|
{
|
|
40
44
|
transKey: "gd.onlineUser.lastTime",
|
|
41
45
|
prop: "lasttime",
|
|
46
|
+
width: "180",
|
|
42
47
|
label: "\u767B\u5F55\u65F6\u95F4",
|
|
43
48
|
align: "center"
|
|
44
49
|
},
|
|
45
50
|
{
|
|
46
51
|
transKey: "gd.onlineUser.lastLoginBrowser",
|
|
47
52
|
prop: "lastloginbrowser",
|
|
53
|
+
width: "200",
|
|
48
54
|
label: "\u6D4F\u89C8\u5668",
|
|
49
55
|
align: "left"
|
|
50
56
|
},
|
|
51
57
|
{
|
|
52
58
|
transKey: "gd.onlineUser.lastLoginOs",
|
|
53
59
|
prop: "lastloginos",
|
|
60
|
+
width: "160",
|
|
54
61
|
label: "\u64CD\u4F5C\u7CFB\u7EDF",
|
|
55
62
|
align: "left"
|
|
56
63
|
}
|
|
@@ -91,14 +98,14 @@ const p = {
|
|
|
91
98
|
selectedRows: [],
|
|
92
99
|
queryParam: {},
|
|
93
100
|
isShow: !1,
|
|
94
|
-
loadData: (t) =>
|
|
101
|
+
loadData: (t) => d(Object.assign(t, this.queryParam)).then((e) => e.data)
|
|
95
102
|
};
|
|
96
103
|
},
|
|
97
104
|
computed: {
|
|
98
105
|
getHeight() {
|
|
99
106
|
return this.height;
|
|
100
107
|
},
|
|
101
|
-
...
|
|
108
|
+
...l(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
102
109
|
},
|
|
103
110
|
methods: {
|
|
104
111
|
onSelectChange(t, e) {
|
|
@@ -139,7 +146,7 @@ const p = {
|
|
|
139
146
|
a();
|
|
140
147
|
else
|
|
141
148
|
return new Promise((r, y) => {
|
|
142
|
-
|
|
149
|
+
u().then((n) => {
|
|
143
150
|
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), r(), a();
|
|
144
151
|
}).catch((n) => {
|
|
145
152
|
t.$message.error(t.$i18nt("gd.error.error") + n.message);
|
|
@@ -154,7 +161,7 @@ const p = {
|
|
|
154
161
|
}
|
|
155
162
|
}
|
|
156
163
|
};
|
|
157
|
-
var
|
|
164
|
+
var h = function() {
|
|
158
165
|
var e = this, s = e._self._c;
|
|
159
166
|
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() {
|
|
160
167
|
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) {
|
|
@@ -165,20 +172,20 @@ var f = function() {
|
|
|
165
172
|
}, proxy: !0 }, e.isShow ? { key: "filtering", fn: function({ colse: a, visible: r }) {
|
|
166
173
|
return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible: r }, on: { save: e.saveQueries } })];
|
|
167
174
|
} } : null], null, !0) })], 1)]);
|
|
168
|
-
},
|
|
175
|
+
}, f = [], m = /* @__PURE__ */ o(
|
|
169
176
|
p,
|
|
170
|
-
f,
|
|
171
177
|
h,
|
|
178
|
+
f,
|
|
172
179
|
!1,
|
|
173
180
|
null,
|
|
174
181
|
null,
|
|
175
182
|
null,
|
|
176
183
|
null
|
|
177
184
|
);
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
t.component(
|
|
185
|
+
const i = m.exports;
|
|
186
|
+
i.install = function(t) {
|
|
187
|
+
t.component(i.name, i);
|
|
181
188
|
};
|
|
182
189
|
export {
|
|
183
|
-
|
|
190
|
+
i as G
|
|
184
191
|
};
|
|
@@ -1,55 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
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 = {
|
|
1
|
+
import { g as o, a as d, s as g, b as u, c } from "./system.notice.ce4a4852.mjs";
|
|
2
|
+
import { m as p, n as h } from "./chartbi.c3bc6adb.mjs";
|
|
3
|
+
import { t as f } from "./messages.78d0815c.mjs";
|
|
4
|
+
const m = {
|
|
53
5
|
data() {
|
|
54
6
|
return {
|
|
55
7
|
tableColumns: [
|
|
@@ -242,7 +194,7 @@ const y = {
|
|
|
242
194
|
default: 100
|
|
243
195
|
}
|
|
244
196
|
},
|
|
245
|
-
mixins: [
|
|
197
|
+
mixins: [f, m],
|
|
246
198
|
data() {
|
|
247
199
|
return {
|
|
248
200
|
transKey: "gd.btn.add",
|
|
@@ -259,7 +211,7 @@ const y = {
|
|
|
259
211
|
value: "value"
|
|
260
212
|
},
|
|
261
213
|
defaultExpandedKeys: "",
|
|
262
|
-
loadData: (t) =>
|
|
214
|
+
loadData: (t) => o(Object.assign(t, this.queryParam)).then((e) => e.data),
|
|
263
215
|
isFilterWithValue: !0
|
|
264
216
|
};
|
|
265
217
|
},
|
|
@@ -283,7 +235,7 @@ const y = {
|
|
|
283
235
|
styled() {
|
|
284
236
|
return `height:${this.height + 76}px`;
|
|
285
237
|
},
|
|
286
|
-
...
|
|
238
|
+
...p(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
287
239
|
},
|
|
288
240
|
methods: {
|
|
289
241
|
saveQueries(t) {
|
|
@@ -296,7 +248,7 @@ const y = {
|
|
|
296
248
|
this.transKey = "gd.btn.edit", this.$refs.editForm.open(Object.assign({ ...t }, { pid: String(t.pid) }));
|
|
297
249
|
},
|
|
298
250
|
getOrgTree() {
|
|
299
|
-
|
|
251
|
+
d({}).then((t) => {
|
|
300
252
|
if (t.code === 200) {
|
|
301
253
|
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);
|
|
302
254
|
this.orgTree = e(t.data);
|
|
@@ -340,11 +292,11 @@ const y = {
|
|
|
340
292
|
}
|
|
341
293
|
let s = [];
|
|
342
294
|
this.selectedRows.forEach((a) => {
|
|
343
|
-
let i =
|
|
295
|
+
let i = g(a).then((l) => l);
|
|
344
296
|
s.push(i);
|
|
345
297
|
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((a) => {
|
|
346
298
|
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, r(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
347
|
-
const i = a.filter((
|
|
299
|
+
const i = a.filter((l) => !l.success);
|
|
348
300
|
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();
|
|
349
301
|
});
|
|
350
302
|
},
|
|
@@ -363,8 +315,8 @@ const y = {
|
|
|
363
315
|
this.editForm(this.selectedRows[0]);
|
|
364
316
|
},
|
|
365
317
|
sbumit({ data: t, record: e, btn: r }, s, a) {
|
|
366
|
-
this.formLoading = !0, (e ?
|
|
367
|
-
|
|
318
|
+
this.formLoading = !0, (e ? u : c)(t).then((l) => {
|
|
319
|
+
l.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") + l.message), this.formLoading = !1;
|
|
368
320
|
});
|
|
369
321
|
},
|
|
370
322
|
handleOk() {
|
|
@@ -399,7 +351,7 @@ var b = function() {
|
|
|
399
351
|
}, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: a }) {
|
|
400
352
|
return [r("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse: s, visible: a }, on: { save: e.saveQueries } })];
|
|
401
353
|
} }]) })], 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);
|
|
402
|
-
}, w = [], K = /* @__PURE__ */
|
|
354
|
+
}, w = [], K = /* @__PURE__ */ h(
|
|
403
355
|
y,
|
|
404
356
|
b,
|
|
405
357
|
w,
|
|
@@ -409,13 +361,10 @@ var b = function() {
|
|
|
409
361
|
null,
|
|
410
362
|
null
|
|
411
363
|
);
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
t.component(
|
|
364
|
+
const n = K.exports;
|
|
365
|
+
n.install = function(t) {
|
|
366
|
+
t.component(n.name, n);
|
|
415
367
|
};
|
|
416
368
|
export {
|
|
417
|
-
|
|
418
|
-
k as a,
|
|
419
|
-
g,
|
|
420
|
-
C as s
|
|
369
|
+
n as G
|
|
421
370
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./system.notice.30231ef5.js"),d=require("./chartbi.5eded588.js"),c=require("./messages.e7af6cf3.js"),u={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 g={name:"GdOrg",props:{height:{type:Number,default:100}},mixins:[c.tablesFilter,u],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=>n.getOrgPage(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`},...d.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(){n.getOrgTree({}).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 l=n.sysOrgDelete(a).then(i=>i);s.push(l)}),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 l=a.filter(i=>!i.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.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?n.sysOrgEdit:n.sysOrgAdd)(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 h=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)},p=[],f=d.normalizeComponent(g,h,p,!1,null,"1dfd3a31",null,null);const o=f.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const system_account=require("./system.account.
|
|
1
|
+
"use strict";const system_account=require("./system.account.dc88aad7.js"),messages=require("./messages.e7af6cf3.js"),chartbi=require("./chartbi.5eded588.js");var md5={exports:{}};/**
|
|
2
2
|
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
3
3
|
*
|
|
4
4
|
* @namespace md5
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as commonjsGlobal, a as sysUserOwnRole } from "./system.account.
|
|
2
|
-
import { f as baseFkList } from "./messages.
|
|
3
|
-
import { n as normalizeComponent } from "./chartbi.
|
|
1
|
+
import { c as commonjsGlobal, a as sysUserOwnRole } from "./system.account.feca6fef.mjs";
|
|
2
|
+
import { f as baseFkList } from "./messages.78d0815c.mjs";
|
|
3
|
+
import { n as normalizeComponent } from "./chartbi.c3bc6adb.mjs";
|
|
4
4
|
var md5 = { exports: {} };
|
|
5
5
|
/**
|
|
6
6
|
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as n, n as r } from "./chartbi.
|
|
2
|
-
import { t as u } from "./messages.
|
|
1
|
+
import { m as n, n as r } from "./chartbi.c3bc6adb.mjs";
|
|
2
|
+
import { t as u } from "./messages.78d0815c.mjs";
|
|
3
3
|
function c(s) {
|
|
4
4
|
return window.axios({
|
|
5
5
|
url: "/SysPlugin/page",
|