gds-plus-design-vue 1.2.5 → 1.2.6
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.b5b6fdab.js → chartbi.114d32d7.js} +23 -23
- package/lib/{chartbi.b6818e8e.mjs → chartbi.eb4dd0af.mjs} +3598 -3563
- package/lib/gd-initial.js +13 -13
- package/lib/gd-initial.mjs +1331 -1277
- package/lib/{main.b4a303dc.js → main.03984fed.js} +1 -1
- package/lib/{main.f3ae0933.js → main.1050afb3.js} +1 -1
- package/lib/{main.be62e9a4.mjs → main.3caa11e1.mjs} +3 -3
- package/lib/{main.a28f67df.js → main.64122541.js} +1 -1
- package/lib/{main.955f770e.mjs → main.b5a3be02.mjs} +3 -3
- package/lib/{main.6713b76c.js → main.b7d2c6ee.js} +1 -1
- package/lib/{main.4e325110.mjs → main.c41228a0.mjs} +3 -3
- package/lib/{main.c59fc1e8.mjs → main.f0045877.mjs} +7 -7
- package/lib/{messages.1346558e.js → messages.828b6ed8.js} +1 -1
- package/lib/{messages.7e418640.mjs → messages.a739f4fc.mjs} +14 -14
- package/lib/style.css +3 -3
- package/lib/{system.account.7c43a95e.js → system.account.3181bcd6.js} +1 -1
- package/lib/{system.account.64fbdaeb.mjs → system.account.7c6ea20c.mjs} +18 -18
- package/lib/{system.config.93d6cb7d.js → system.config.10f57fa2.js} +1 -1
- package/lib/{system.config.f0d2d130.mjs → system.config.d2ad8c97.mjs} +2 -2
- package/lib/{system.datasource.61ff56ec.mjs → system.datasource.a77831ab.mjs} +2 -2
- package/lib/{system.datasource.4bb39222.js → system.datasource.d5eea7f2.js} +1 -1
- package/lib/{system.dict.a817cf68.mjs → system.dict.cb276470.mjs} +2 -2
- package/lib/{system.dict.5a2e60fe.js → system.dict.d73658f1.js} +1 -1
- package/lib/{system.duplicatechecking.751664ba.mjs → system.duplicatechecking.5c8a3eef.mjs} +2 -2
- package/lib/{system.duplicatechecking.65b77e64.js → system.duplicatechecking.d24ba6ea.js} +1 -1
- package/lib/{system.email.fec5ae26.js → system.email.4bf52f2d.js} +1 -1
- package/lib/{system.email.2f53252e.mjs → system.email.db5da8d7.mjs} +2 -2
- package/lib/{system.fieldsecurity.6feb94c3.mjs → system.fieldsecurity.9d40595f.mjs} +1 -1
- package/lib/{system.fieldsecurity.920adca4.js → system.fieldsecurity.eb217079.js} +1 -1
- package/lib/{system.file.1930d109.mjs → system.file.8064c8e9.mjs} +2 -2
- package/lib/{system.file.5a9a5e0e.js → system.file.c1884db7.js} +1 -1
- package/lib/{system.log.61d303bd.mjs → system.log.2b2fc11a.mjs} +2 -2
- package/lib/{system.log.b309c0e0.js → system.log.389af80d.js} +1 -1
- package/lib/{system.machine.ed69ec93.mjs → system.machine.0130e762.mjs} +1 -1
- package/lib/{system.machine.9368e508.js → system.machine.49fc6405.js} +1 -1
- package/lib/{system.notice.bd18554e.mjs → system.notice.5f8cd020.mjs} +45 -53
- package/lib/system.notice.a89f4826.js +1 -0
- package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.51b6353a.mjs} +3 -3
- package/lib/{system.noticereceived.9550818b.js → system.noticereceived.5e0773c3.js} +1 -1
- package/lib/{system.onlineuser.6cf4fe24.js → system.onlineuser.67733846.js} +1 -1
- package/lib/{system.onlineuser.08a15a71.mjs → system.onlineuser.c0a69360.mjs} +2 -2
- package/lib/{system.org.6e858bf3.mjs → system.org.1169fe47.mjs} +3 -3
- package/lib/{system.org.0c67131d.js → system.org.ff54d620.js} +1 -1
- package/lib/{system.permissions.cc5ac7ac.mjs → system.permissions.cc9a9866.mjs} +3 -3
- package/lib/{system.permissions.af548a3b.js → system.permissions.e6317c5a.js} +1 -1
- package/lib/{system.plugin.83d03fb2.js → system.plugin.3467d572.js} +1 -1
- package/lib/{system.plugin.a1f1c194.mjs → system.plugin.502a69d8.mjs} +2 -2
- package/lib/{system.pos.eae2051e.js → system.pos.4aadf86e.js} +1 -1
- package/lib/{system.pos.eb8fd7dd.mjs → system.pos.8c44c029.mjs} +2 -2
- package/lib/{system.promptmanagement.04501417.js → system.promptmanagement.9ba710d6.js} +1 -1
- package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.d8565db4.mjs} +2 -2
- package/lib/{system.role.d2195303.mjs → system.role.19959d7f.mjs} +197 -145
- package/lib/system.role.890c8ca2.js +1 -0
- package/lib/{system.sumberrules.a01e1805.js → system.sumberrules.068ebe4a.js} +1 -1
- package/lib/{system.sumberrules.141dc00b.mjs → system.sumberrules.087015a4.mjs} +2 -2
- package/lib/{system.team.27a6d5d5.mjs → system.team.27cd57f7.mjs} +2 -2
- package/lib/{system.team.0cebcde7.js → system.team.2b28502b.js} +1 -1
- package/lib/{system.teammembers.d73c659f.mjs → system.teammembers.4056d586.mjs} +3 -3
- package/lib/{system.teammembers.b67f003f.js → system.teammembers.e3baf783.js} +1 -1
- package/lib/{system.timers.4a3dd57d.mjs → system.timers.6f61bfe1.mjs} +2 -2
- package/lib/{system.timers.b27fcb6d.js → system.timers.cb0a3bd0.js} +1 -1
- package/lib/{system.translation.d9488c23.mjs → system.translation.9b88fbf2.mjs} +3 -3
- package/lib/{system.translation.d2c982ed.js → system.translation.f3884a0a.js} +1 -1
- package/lib/{system.user.0664c21c.js → system.user.3bd95871.js} +1 -1
- package/lib/{system.user.6874aa87.mjs → system.user.bdf2613e.mjs} +5 -5
- package/lib/{system.useraffiliation.5e3e2bab.mjs → system.useraffiliation.63b6bb36.mjs} +3 -3
- package/lib/{system.useraffiliation.6b7a1612.js → system.useraffiliation.7db6e13c.js} +1 -1
- package/lib/{system.webresource.204911b7.mjs → system.webresource.c36d6792.mjs} +3 -3
- package/lib/{system.webresource.5de18052.js → system.webresource.ede248a8.js} +1 -1
- package/lib/{system.welcome.79e15015.mjs → system.welcome.14785b50.mjs} +1 -1
- package/lib/{system.welcome.ec7aa744.js → system.welcome.c9eefa06.js} +1 -1
- package/locale/en_US.js +5 -2
- package/locale/id_ID.js +5 -2
- package/locale/vi_VN.js +5 -2
- package/locale/zh_CN.js +4 -1
- package/package.json +1 -1
- package/lib/system.notice.ff62c06a.js +0 -1
- package/lib/system.role.e623c50b.js +0 -1
package/locale/en_US.js
CHANGED
|
@@ -1218,7 +1218,8 @@ export default {
|
|
|
1218
1218
|
xAxisLabelPosition: "X-axis position",
|
|
1219
1219
|
xAxisOffset: "Offset value (current axis)",
|
|
1220
1220
|
xAxisOffsetCaudex: "Offset value (main axis)",
|
|
1221
|
-
topNconfig: "TOP N configuration"
|
|
1221
|
+
topNconfig: "TOP N configuration",
|
|
1222
|
+
numericalSummary: "Numerical Summary",
|
|
1222
1223
|
},
|
|
1223
1224
|
/*团队共享*/
|
|
1224
1225
|
teamSharing: {
|
|
@@ -2565,9 +2566,11 @@ export default {
|
|
|
2565
2566
|
clickDescription: "When clicking on the prompt description",
|
|
2566
2567
|
topBorderLine: "Top border line",
|
|
2567
2568
|
rightArrow: "Right arrow",
|
|
2568
|
-
defaultExpansion: "
|
|
2569
|
+
defaultExpansion: "Default Expand",
|
|
2569
2570
|
week: 'W',
|
|
2570
2571
|
month: 'M',
|
|
2572
|
+
defaultHide: "Default Hide",
|
|
2573
|
+
initialState: "Initial state"
|
|
2571
2574
|
},
|
|
2572
2575
|
/*集群列表 */
|
|
2573
2576
|
colony: {
|
package/locale/id_ID.js
CHANGED
|
@@ -1217,7 +1217,8 @@ export default {
|
|
|
1217
1217
|
xAxisLabelPosition: "Posisi sumbu X",
|
|
1218
1218
|
xAxisOffset: "Nilai offset (sumbu saat ini)",
|
|
1219
1219
|
xAxisOffsetCaudex: "Nilai offset (sumbu utama)",
|
|
1220
|
-
topNconfig: "Konfigurasi TOP N"
|
|
1220
|
+
topNconfig: "Konfigurasi TOP N",
|
|
1221
|
+
numericalSummary: "Ringkasan Numerik",
|
|
1221
1222
|
},
|
|
1222
1223
|
/*团队共享*/
|
|
1223
1224
|
teamSharing: {
|
|
@@ -2566,9 +2567,11 @@ export default {
|
|
|
2566
2567
|
clickDescription: "Saat mengklik pada deskripsi cepat",
|
|
2567
2568
|
topBorderLine: "Garis perbatasan atas",
|
|
2568
2569
|
rightArrow: "Panah kanan",
|
|
2569
|
-
defaultExpansion: "
|
|
2570
|
+
defaultExpansion: "Perluas Default",
|
|
2570
2571
|
week: 'W',
|
|
2571
2572
|
month: 'M',
|
|
2573
|
+
defaultHide: "Sembunyikan Default",
|
|
2574
|
+
initialState: "Negara awal"
|
|
2572
2575
|
},
|
|
2573
2576
|
/*集群列表 */
|
|
2574
2577
|
colony: {
|
package/locale/vi_VN.js
CHANGED
|
@@ -1217,7 +1217,8 @@ export default {
|
|
|
1217
1217
|
xAxisLabelPosition: "Posisi sumbu X",
|
|
1218
1218
|
xAxisOffset: "Nilai offset (sumbu saat ini)",
|
|
1219
1219
|
xAxisOffsetCaudex: "Nilai offset (sumbu utama)",
|
|
1220
|
-
topNconfig: "Konfigurasi TOP N"
|
|
1220
|
+
topNconfig: "Konfigurasi TOP N",
|
|
1221
|
+
numericalSummary: "Tổng hợp số",
|
|
1221
1222
|
},
|
|
1222
1223
|
/*团队共享*/
|
|
1223
1224
|
teamSharing: {
|
|
@@ -2566,9 +2567,11 @@ export default {
|
|
|
2566
2567
|
clickDescription: "Saat mengklik pada deskripsi cepat",
|
|
2567
2568
|
topBorderLine: "Garis perbatasan atas",
|
|
2568
2569
|
rightArrow: "Panah kanan",
|
|
2569
|
-
defaultExpansion: "
|
|
2570
|
+
defaultExpansion: "Mở rộng mặc định",
|
|
2570
2571
|
week: 'W',
|
|
2571
2572
|
month: 'M',
|
|
2573
|
+
defaultHide: "ẩn mặc định",
|
|
2574
|
+
initialState: "Trạng thái ban đầu"
|
|
2572
2575
|
},
|
|
2573
2576
|
/*集群列表 */
|
|
2574
2577
|
colony: {
|
package/locale/zh_CN.js
CHANGED
|
@@ -1218,7 +1218,8 @@ export default {
|
|
|
1218
1218
|
xAxisLabelPosition: "X轴线位置",
|
|
1219
1219
|
xAxisOffset: "偏移值(当前轴)",
|
|
1220
1220
|
xAxisOffsetCaudex: "偏移值(主轴)",
|
|
1221
|
-
topNconfig: "TOP N 配置"
|
|
1221
|
+
topNconfig: "TOP N 配置",
|
|
1222
|
+
numericalSummary: "数值汇总",
|
|
1222
1223
|
},
|
|
1223
1224
|
/*团队共享*/
|
|
1224
1225
|
teamSharing: {
|
|
@@ -2571,6 +2572,8 @@ export default {
|
|
|
2571
2572
|
defaultExpansion: "默认展开",
|
|
2572
2573
|
week: '周',
|
|
2573
2574
|
month: '月',
|
|
2575
|
+
defaultHide: "默认隐藏",
|
|
2576
|
+
initialState: "初始化状态"
|
|
2574
2577
|
},
|
|
2575
2578
|
/*集群列表 */
|
|
2576
2579
|
colony: {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./chartbi.b5b6fdab.js"),y=require("./system.account.7c43a95e.js"),l=require("./messages.1346558e.js"),w=require("./system.fieldsecurity.920adca4.js");require("./system.email.fec5ae26.js");function f(t){return window.axios({url:"/sysNotice/page",method:"get",params:t})}function v(t){return window.axios({url:"/sysNotice/add",method:"post",data:t})}function T(t){return window.axios({url:"/sysNotice/edit",method:"post",data:t})}function $(t){return window.axios({url:"/sysNotice/delete",method:"post",data:t})}function p(t){return window.axios({url:"/sysNotice/detail",method:"get",params:t})}function m(t){return window.axios({url:"/sysNotice/changeStatus",method:"post",data:t})}function R(t){return window.axios({url:"/sysNotice/receiversByTypes",method:"get",params:t})}function C(t){return window.axios({url:"/sysMessage/userMessagesGrouped",method:"get",params:t})}function S(t){return window.axios({url:"/sysMessage/markAllAsRead",method:"post",data:t})}function K(t){return window.axios({url:"/sysMessage/markAsRead",method:"post",data:t})}function L(t,e){return window.axios({url:e||"/sysEvents/month",method:"get",params:t})}const x={name:"GdNoticeDetails",props:{modeType:{type:String,default:"dialog"}},data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"900",confirmLoading:!1,contentRecord:{},sysViewButtons:[],type:"pdf"}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`height:${this.fullscreen?this.screenHeight-80:this.screenHeight-240}px;`},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(t){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(t.id)},sysNoticeDetail(t){this.fullscreen=!1,p({id:t}).then(e=>{e.code===200?(this.contentRecord=e.data,this.$emit("onLoadCompleted"),e.data.attachment&&this.$nextTick(()=>{setTimeout(()=>{let s={name:`${e.data.title}.${this.type}`,fileId:e.data.attachment,fullscreen:!1};this.$refs.filePreview.open(s)},0)})):this.$message.error(e.message),this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var P=function(){var e=this,s=e._self._c;return s("div",[e.modeType==="dialog"?s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{formMode:e.formMode,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",transKey:e.transKey,labelPosition:e.labelPosition,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],class:e.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1):s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1)},k=[],N=o.normalizeComponent(x,P,k,!1,null,"5cb794ba",null,null);const u=N.exports;function F(t){return window.axios({url:"/sysOrg/tree",method:"get",params:t})}function b(t){return window.axios({url:"/sysOrg/page",method:"get",params:t})}function D(t){return window.axios({url:"/sysOrg/add",method:"post",data:t})}function O(t){return window.axios({url:"/sysOrg/edit",method:"post",data:t})}function B(t){return window.axios({url:"/sysOrg/delete",method:"post",data:t})}function z(t){return window.axios({url:"/SysRoleDataControl/detail",method:"get",params:t})}function A(t){return window.axios({url:"/SysRoleDataControl/save",method:"post",data:t})}const H={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.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{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"}],formColumns:[{transKey:"gd.notice.title",effectType:"input",prop:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",effectType:"radio",dictTypeCode:"notice_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],type:"slot",slotType:"notice_type"},{transKey:"gd.notice.noticeBucket",effectType:"editor",prop:"content",label:"\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.attachment",effectType:"file",prop:"fileList",label:"\u9644\u4EF6",accept:".pdf",placeholder:"\u8BF7\u4E0A\u4F20",fileTitle:"\u4E0A\u4F20PDF\u6587\u4EF6",limit:1,rules:[],type:"slot",slotType:"fileList"},{transKey:"gd.notice.notifyTo",effectType:"notifyingPerson",prop:"notifyingPerson",label:"\u6536\u5230\u901A\u77E5\u4EBA",type:"slot",slotType:"notifyingPerson",rules:[],disabled:!1}],noticeFormColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysNotice:add"},{displayName:"\u901A\u77E5\u4EBA",functionName:"notifyingPerson",show:!0,transKey:"gd.notice.notifyingPerson",icon:"el-icon-bell",name:"sysNotice:notifyingPerson"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysNotice:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysNotice:delete"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",name:"sysNotice:changeStatus"},{displayName:"\u64A4\u56DE",functionName:"rollback",show:!0,transKey:"gd.btn.withdraw",icon:"el-icon-refresh-left",btnType:"danger",name:"sysNotice:changeStatus"},{displayName:"\u67E5\u770B",functionName:"read",show:!0,transKey:"gd.btn.view",icon:"el-icon-reading",name:"sysNotice:detail"}],formButtons:[{displayName:"\u5B58\u4E3A\u8349\u7A3F",functionName:"saveDraft",show:!0,transKey:"gd.btn.saveDraft",icon:"el-icon-tickets",validate:!0},{displayName:"\u53D1\u5E03",functionName:"releaseTip",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",validate:!0}],noticeFormButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],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:[]}]}}},M={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"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const E={props:{height:{type:Number,default:0},selectOrgRow:{type:Array,default:()=>[]}},mixins:[l.tablesFilter,M],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>b(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectOrgRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{getHeight(){return this.screenHeight-500},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var q=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,filtering:!1,height:e.getHeight,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}},{key:"orgType",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("org_type",i.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",i.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:n}})]}}])})],1)])},I=[],j=o.normalizeComponent(E,q,I,!1,null,"b1509975",null,null);const U=j.exports;function _(t){return window.axios({url:"/sysApps/page",method:"get",params:t})}function G(t){return window.axios({url:"/sysApps/detail",method:"get",params:t})}function V(t){return window.axios({url:"/sysApps/add",method:"post",data:t})}function Q(t){return window.axios({url:"/sysApps/edit",method:"post",data:t})}function J(t){return window.axios({url:"/sysApps/delete",method:"post",data:t})}function W(t){return window.axios({url:"/SysPublishhistory/add",method:"post",data:t})}function X(t){return window.axios({url:"/SysPublishhistory/list",method:"post",data:t})}const Y={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"200",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",showOverflowTooltip:!0}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const Z={props:{height:{type:Number,default:0},selectRoleRow:{type:Array,default:()=>[]}},mixins:[l.tablesFilter,Y],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{sysAppsId:""},loadData:t=>w.getRolePage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectRoleRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{getHeight(){return this.screenHeight-500},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{getSysAppsPage(){_().then(t=>{t.success&&(this.queryParam.sysAppsId=t.data.rows[0].id)})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getSysAppsPage()}};var ee=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,filtering:!1,height:e.getHeight,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}}])})],1)])},te=[],se=o.normalizeComponent(Z,ee,te,!1,null,"4f37cfa6",null,null);const ie=se.exports,ne={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.teamType",prop:"teamType",label:"\u56E2\u961F\u7C7B\u578B",align:"left",type:"slot",slotType:"teamType",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",type:"slot",slotType:"description",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const re={props:{height:{type:Number,default:0},selectTeamRow:{type:Array,default:()=>[]}},mixins:[l.tablesFilter,ne],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>w.getSysTeamPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectTeamRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{getHeight(){return this.screenHeight-500},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var ae=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,filtering:!1,height:e.getHeight,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.name)+" ")])]}},{key:"teamType",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(e._f("dictType")("TeamType",n.teamtype))+" ")])]}},{key:"description",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.description)+" ")]}}])})],1)])},oe=[],le=o.normalizeComponent(re,ae,oe,!1,null,"1c4840a6",null,null);const ce=le.exports,de={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],tableQueries:[{transKey:"gd.application.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}};const ue={props:{height:{type:Number,default:300},selectUserRow:{type:Array,default:()=>[]}},mixins:[l.tablesFilter,de],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{searchValue:""},loadData:t=>{let e=JSON.parse(JSON.stringify(this.selectUserRow));return y.getUserPage(Object.assign(t,this.queryParam)).then(s=>{let i=[];return e.length>0?i=[...JSON.parse(JSON.stringify(e))].map(String):i=[...JSON.parse(JSON.stringify(this.selectUserRow))].map(String),this.$nextTick(()=>{this.selectedRowKeys=[...i],this.onSelectChange(i,[])}),s.data})},detail:{}}},computed:{getHeight(){return this.screenHeight-500},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},init(t){this.queryParam.searchValue="",this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){}};var he=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,filtering:!1,height:e.getHeight,initialLoading:!0,showPagination:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""}})]}},{key:"gender",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[s("el-tag",{style:e._f("dictColor")("gender",i.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",i.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[i.row.statecodes==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{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.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(i){e.$set(e.queryParam,"searchValue",i)},expression:"queryParam.searchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}])})],1)])},pe=[],ge=o.normalizeComponent(ue,he,pe,!1,null,"b79cacd5",null,null);const fe=ge.exports;const me={data(){return{confirmLoading:!0,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:"noticeuser",fullScreen:!1,width:"1000px",visible:!1,height:300,userRowList:[],teamRowList:[],roleRowList:[],orgRowList:[],recordData:"",enterType:""}},components:{noticeUser:fe,notcieOrg:U,noticeRole:ie,noticeTeam:ce},computed:{getButtons(){return this.sysViewButtons.filter(t=>!(this.enterType=="1"&&t.functionName==="handleSubmit"))},...o.mapGetters(["screenHeight","tableLists","primaryColor"])},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},init(t,e){this.recordData=t,this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type="noticeuser",this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[],this.enterType=e,t&&(this.getData(t,e),setTimeout(()=>{this.$refs.noticeuserRef.init(this.userRowList)},100))},getData(t,e){R({id:e=="1"?t[0]:t}).then(s=>{s.data.receivergroups.forEach(n=>{n.receivertype=="1"&&(this.userRowList=n.receiveridlist),n.receivertype=="2"&&(this.roleRowList=n.receiveridlist),n.receivertype=="3"&&(this.teamRowList=n.receiveridlist),n.receivertype=="4"&&(this.orgRowList=n.receiveridlist)})})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},tabChange(t){this.$nextTick(()=>{setTimeout(()=>{},0)})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[]},handleSubmit(){let t=[{receiverType:"1",receiverIdList:this.userRowList.map(Number)},{receiverType:"2",receiverIdList:this.roleRowList.map(Number)},{receiverType:"3",receiverIdList:this.teamRowList.map(Number)},{receiverType:"4",receiverIdList:this.orgRowList.map(Number)}];this.handleCancel(),this.$emit("ok",t)},selectUser(t){this.userRowList=t},selectTeam(t){this.teamRowList=t},selectRole(t){this.roleRowList=t},selectOrg(t){this.orgRowList=t}}};var ye=function(){var e=this,s=e._self._c;return s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"30px","append-to-body":"","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:`${e.$i18nt("gd.notice.notifyingPerson","\u901A\u77E5")}`,fullscreen:e.fullScreen,buttons:e.getButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.tabChange},model:{value:e.type,callback:function(i){e.type=i},expression:"type"}},[s("el-tab-pane",{attrs:{name:"noticeuser",label:e.$i18nt("gd.fieldSecurity.user","\u7528\u6237")}},[e.type=="noticeuser"?s("noticeUser",{ref:"noticeuserRef",attrs:{selectUserRow:e.userRowList,height:e.height},on:{ok:e.selectUser}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeteam",label:e.$i18nt("gd.fieldSecurity.team","\u56E2\u961F")}},[e.type=="noticeteam"?s("noticeTeam",{ref:"noticeteamRef",attrs:{selectTeamRow:e.teamRowList,height:e.height},on:{ok:e.selectTeam}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticerole",label:e.$i18nt("gd.fieldSecurity.role","\u89D2\u8272")}},[e.type=="noticerole"?s("noticeRole",{ref:"noticeroleRef",attrs:{selectRoleRow:e.roleRowList,height:e.height},on:{ok:e.selectRole}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeorg",label:e.$i18nt("gd.pagecomponents.institution","\u673A\u6784")}},[e.type=="noticeorg"?s("notcieOrg",{ref:"noticeorgRef",attrs:{selectOrgRow:e.orgRowList,height:e.height},on:{ok:e.selectOrg}}):e._e()],1)],1)],1)])],1)},we=[],be=o.normalizeComponent(me,ye,we,!1,null,"62d3bb5d",null,null);const _e=be.exports;const ve={name:"GdNotice",props:{height:{type:Number,default:100}},mixins:[l.tablesFilter,H],data(){return{transKey:"gd.btn.add",loadData:t=>f(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),allData:[],selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,mockData:[],targetKeys:[],noticeUserIdList:[],status:0,type:"noticeUser",confirmLoading:!1,fileType:"pdf",style:"width: 100%; height: 580px;",headers:{"Content-Type":"multipart/form-data"},fileListFile:[],imgList:[],currentImg:"",ruleFormData:{fileList:"",name:"",notifyingPerson:[],fileid:""},record:{},allEmpty:!0,noticeType:"",fileAccept:["application/pdf"]}},components:{detailForm:u,editNoticeForm:_e},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(e=>!(e.prop==="notifyingPerson"&&this.transKey==="gd.btn.add"||(this.noticeType==3&&e.prop==="content"?e.rules=[]:this.noticeType!=3&&e.prop==="content"&&(e.rules=[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]),(this.noticeType==1||this.noticeType==2)&&e.prop==="fileList")))},getButtons(){return this.formButtons.filter(t=>!(this.transKey==="gd.btn.add"&&t.functionName==="releaseTip"))},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},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))},methods:{onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u5220\u9664","\u53D1\u5E03","\u64A4\u56DE","\u7F16\u8F91"],2);return}let s=[],i=e.filter(a=>a.status==0),n=e.filter(a=>a.status==1),r=e.filter(a=>a.status==2);i.length==e.length?s=["\u64A4\u56DE"]:n.length==e.length?s=["\u5220\u9664","\u53D1\u5E03","\u7F16\u8F91"]:r.length==e.length&&(s=["\u64A4\u56DE","\u53D1\u5E03","\u7F16\u8F91"]),this.baseHideBtns(s,2)},baseHideBtns(t,e=1){let s=[...this.tableButtons];s.map(i=>(e===1?i.show=!t.includes(i.id):i.show=!t.includes(i.displayName),i)),this.tableButtons=[...s]},add(){this.transKey="gd.btn.add",this.fileListFile=[],this.ruleFormData={fileList:"",name:"",notifyingPerson:[],fileid:""},this.$refs.editForm.open(null)},noticePerson(t){this.$refs.editNoticeFormRef.init(t.id,"2")},notifyingPerson(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.editNoticeFormRef.init(this.selectedRowKeys,"1")},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.sysNoticeDetail(this.selectedRows[0].id),this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{type:String(this.selectedRows[0].type),content:this.selectedRows[0].content,fileid:this.selectedRows[0].attachment}))},editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},handleOk(t){this.ruleFormData.notifyingPerson=[],this.ruleFormData.notifyingPerson=t,this.allEmpty=Array.isArray(t)?t.every(e=>!e.receiverIdList||e.receiverIdList.length===0):!0},sbumit({data:t,record:e,btn:s},i,n){if(this.status=s.item.functionName=="releaseTip"?1:0,e!=null){let r={id:t.id,content:t.content,status:this.status,title:t.title,type:t.type,receivergroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,T(Object.assign(this.noticeDetail,r)).then(a=>{a.success?(this.status==1&&n(),this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+a.message),this.formLoading=!1,this.refresh()})}else{let r={content:t.content,status:this.status,title:t.title,type:t.type,receiverGroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,v(r).then(a=>{a.success?(this.refresh(),this.status==1?(this.formLoading=!1,n()):setTimeout(()=>{this.$nextTick(()=>{f({pageNo:1,pageSize:50}).then(c=>{this.allData=c.data.rows;const d=this.allData.filter(g=>g.title==t.title&&g.content==t.content);d.length>0&&(this.transKey="gd.btn.edit",this.sysNoticeDetail(d[0].id),this.$refs.editForm.open(Object.assign({...d[0]},{type:String(d[0].type),content:d[0].content,fileid:d[0].attachment}))),this.formLoading=!1})})},10),this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F"))):(this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+a.message),this.refresh(),this.formLoading=!1)})}},saveQueries(t){this.queryParam=t,this.refresh()},read(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.readTip","\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.detailForm.open(this.selectedRows[0])},rollback(){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.$confirm(this.$i18nt("gd.https.withdrawContent","\u786E\u8BA4\u64A4\u56DE?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.withdrawOk","\u7ACB\u5373\u64A4\u56DE!"),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.rollbackHand(t,e,s)}})},rollbackHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let r=m({id:n.id,status:2}).then(a=>a);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const r=n.filter(a=>!a.success);r.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r[0].message),this.refresh()})},release(){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.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03!"),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.releaseHand(t,e,s)}})},releaseHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let r=m({id:n.id,status:1}).then(a=>a);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const r=n.filter(a=>!a.success);r.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r[0].message),this.refresh()})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let r=$(n).then(a=>a);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{s();const r=n.filter(a=>!a.success);r.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+r[0].message),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sysNoticeDetail(t){p({id:t}).then(e=>{this.noticeDetail=e.data,e.data.attachment&&(this.ruleFormData.fileid=e.data.attachment,this.infoDownLoad(e.data.attachment)),this.ruleFormData.notifyingPerson=e.data.receivergroups,this.allEmpty=Array.isArray(this.ruleFormData.notifyingPerson)?this.ruleFormData.notifyingPerson.every(s=>!s.receiverIdList||s.receiverIdList.length===0):!0,this.noticeType=e.data.type})},getMock(t){const e=[],s=[];y.sysUserSelector().then(i=>{this.confirmLoading=!1;for(let n=0;n<i.data.length;n++){const r=i.data[n],a={key:r.id.toString(),label:r.name,description:`description of ${r.name}`};if(t)for(let c=0;c<t.noticeuseridlist.length;c++)a.key===t.noticeuseridlist[c]&&e.push(t.noticeuseridlist[c]);s.push(a)}this.mockData=s,this.targetKeys=e})},handleChange(t){this.targetKeys=t},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},handleFile(t){if(!!["image"].includes("file")&&!t){this.fileList=[];return}},uploadFile(t){if(!this.fileAccept.includes(t.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),t.onError();return}new FormData().append("file",t.file),l.sysFileInfoUploadShop(t).then(i=>{if(i.code===200){const n=i.data.url,a=(this.ruleFormData&&this.ruleFormData.fileList?this.ruleFormData.fileList.split(","):[]).concat([n]);return this.ruleFormData.fileList=a.join(","),this.ruleFormData.name=i.data.fileoriginname.substring(0,i.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=i.data.id.toString(),t.onSuccess(i.data),i.data}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+i.message),t.onError()}).catch(i=>{t.onError(i)})},successFile(t,e,s){},removeFile(t,e){let s=[];e.forEach(i=>{i.response&&i.response.id?s.push(i.response.id):s.push(i.url)}),this.ruleFormData.fileList=s.join(","),this.ruleFormData.name="",this.ruleFormData.fileid=""},previewFile(t){let e="";t.response&&t.response.fileOriginName?(e=t.response.fileOriginName,t.response.url):(e=t.name,t.url);const s=e.substr(e.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","JPG","PNG"].includes(s)?this.imgPreview(t.response.id):this.downFile(t)},imgPreview(t){l.sysFileInfoPreview({id:t}).then(e=>{const s=window.URL.createObjectURL(new Blob([e]));this.imgList=[s],this.currentImg=s,this.$refs.imgPreview.open()})},downFile(t){this.$refs.filePreview.open(Object.assign(t,{fileId:t.response&&t.response.fileoriginname?t.response.id:t.fileId}))},getBlobType(t){let e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";return this.fileType==="pdf"?e="application/pdf":this.fileType==="docx"&&(e="application/msword"),e},infoDownLoad(t){return l.sysFileInfoDetail({id:t}).then(e=>{this.ruleFormData.fileList=e.data.url,this.ruleFormData.name=e.data.fileoriginname.substring(0,e.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=e.data.id.toString(),this.fileListFile=[{name:e.data.fileoriginname,url:e.data.url,response:{id:e.data.id,url:e.data.url,fileoriginname:e.data.fileoriginname}}]})},getDictionary(t){return this.$options.filters.dictData(t)},changeMode(t){this.noticeType=t}}};var Te=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:"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.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.SearchValue,callback:function(i){e.$set(e.queryParam,"SearchValue",i)},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},{key:"title",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"title",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",i.row.type))+" ")])]}},{key:"status",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_status",i.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",i.row.status))+" ")])]}},{key:"filtering",fn:function({colse:i,visible:n}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:n},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"100%",transKey:e.transKey,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,buttons:e.getButtons,loading:e.formLoading},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"targetKeys",fn:function({data:i,column:n}){return[s("el-transfer",{attrs:{data:e.mockData,titles:["\u672A\u9009","\u5DF2\u9009"],filterable:""},on:{change:e.handleChange},model:{value:e.targetKeys,callback:function(r){e.targetKeys=r},expression:"targetKeys"}})]}},{key:"notifyingPerson",fn:function({data:i,column:n}){return[s("el-button",{attrs:{type:e.allEmpty?"danger":"primary"},on:{click:function(r){return e.noticePerson(i)}}},[s("i",{staticClass:"gd-icons el-icon-bell"}),e._v(" "+e._s(e.$i18nt("gd.notice.notice","\u901A\u77E5")))])]}},{key:"notice_type",fn:function({data:i,column:n}){return[s("el-radio-group",{on:{change:e.changeMode},model:{value:i.type,callback:function(r){e.$set(i,"type",r)},expression:"data.type"}},e._l(e.getDictionary("notice_type"),function(r,a){return s("el-radio",{key:r.code,attrs:{label:r.code}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${r.transkey}`,r.name))+" ")])}),1)]}},{key:"fileList",fn:function({data:i,column:n}){return[s("el-upload",{attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:n.limit,accept:n.accept,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile}},[s("el-button",{attrs:{size:"mini",type:"primary"}},[s("i",{staticClass:"gd-icons gd-icon-shangchuan"}),e._v(" "+e._s(e.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]}}])}),s("detailForm",{ref:"detailForm"}),s("editNoticeForm",{ref:"editNoticeFormRef",on:{ok:e.handleOk}}),s("gd-file-preview",{ref:"filePreview"}),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg}})],1)},$e=[],Re=o.normalizeComponent(ve,Te,$e,!1,null,"7a480ef7",null,null);const h=Re.exports;h.install=function(t){t.component(h.name,h)};u.install=function(t){t.component(u.name,u)};exports.GDpackage=h;exports.detailForm=u;exports.getOrgDetail=z;exports.getOrgPage=b;exports.getOrgTree=F;exports.saveOrgDetail=A;exports.sysAppsAdd=V;exports.sysAppsDelete=J;exports.sysAppsDetail=G;exports.sysAppsEdit=Q;exports.sysAppsPage=_;exports.sysMessageMarkAllAsRead=S;exports.sysMessageMarkAsRead=K;exports.sysMessageUserMessagesGrouped=C;exports.sysMonth=L;exports.sysNoticeDetail=p;exports.sysOrgAdd=D;exports.sysOrgDelete=B;exports.sysOrgEdit=O;exports.sysPublishhistoryAdd=W;exports.sysPublishhistoryList=X;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("./system.fieldsecurity.920adca4.js"),c=require("./chartbi.b5b6fdab.js"),b=require("./messages.1346558e.js"),y=require("./system.notice.ff62c06a.js"),g=require("./system.account.7c43a95e.js"),k={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,width:"200",renderHeader:(s,...e)=>this.renderHeader(s,...e,{effectType:"input"})},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",width:"200",renderHeader:(s,...e)=>this.renderHeader(s,...e,{effectType:"input"})},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",width:"260"}],formColumns:[{transKey:"gd.user.roleName",effectType:"input",prop:"name",label:"\u89D2\u8272\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",disabled:!1,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:"sysRole:add"},{displayName:"\u590D\u5236\u89D2\u8272",functionName:"copy",show:!0,transKey:"gd.user.copyRole",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysRole:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userAuthorizationMenu",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-user",name:"sysRole:userMenu"},{displayName:"\u6388\u6743\u6587\u6863",functionName:"documentAuthorizationMenu",show:!0,transKey:"gd.user.documentAuthorization",icon:"el-icon-document",name:"sysRole:documentMenu"},{displayName:"\u6388\u6743\u83DC\u5355",functionName:"grantRoleMenu",show:!0,transKey:"gd.user.menuRole",icon:"el-icon-monitor",name:"sysRole:grantMenu"},{displayName:"\u6388\u6743APP\u83DC\u5355",functionName:"grantRoleAppMenu",show:!0,transKey:"gd.user.menuRoleApp",icon:"el-icon-mobile-phone",name:"sysRole:grantMenu"},{displayName:"\u6388\u6743\u6570\u636E",functionName:"grantRoleGrant",show:!0,transKey:"gd.user.dataRole",icon:"el-icon-tickets",name:"sysRole:grantData"},{displayName:"\u6388\u6743\u89C6\u56FE/\u8868\u5355",functionName:"grantRoleVF",show:!0,transKey:"gd.user.menuRolevf",icon:"el-icon-setting",name:"sysRole:grantMenu"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"input",rules:[]}]}}};const w={data(){return{defaultProps:{children:"children",label:"title"},buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"800px",orgTreeData:[],checkedKeys:[]}},computed:{...c.mapGetters(["screenHeight","tableLists"])},methods:{handleSubmit(){const s=this.$refs.tree.getCheckedKeys();this.$emit("ok",Object.assign({...this.record},{checkedKeys:s})),this.closed()},getOrgData(){this.confirmLoading=!0,y.getOrgTree().then(s=>{s.success&&(this.orgTreeData=s.data,this.confirmLoading=!1)})},open(s){this.record=s,this.checkedKeys=s.checkedKeys,this.visible=!0,this.getOrgData()},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var $=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: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(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.rangeRole","\u6388\u6743\u8303\u56F4"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("el-tree",{ref:"tree",attrs:{data:e.orgTreeData,"show-checkbox":"","node-key":"id","default-expand-all":"","default-checked-keys":e.checkedKeys,props:e.defaultProps}}):e._e()],1)],2)],1)},K=[],C=c.normalizeComponent(w,$,K,!1,null,"2b164094",null,null);const T=C.exports;const R={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"94%",loadData:[],submitData:{},loadSoData:s=>(this.confirmLoading=!0,new Promise((e,t)=>{this.confirmLoading=!1,e({pageNo:1,pageSize:500,totalRows:0,rows:this.loadData})})),columns:[{transKey:"gd.btn.entity",prop:"sysCodeGenName",label:"\u5B9E\u4F53",align:"left",type:"slot",slotType:"sysCodeGenName",width:120},{transKey:"gd.btn.query",prop:"getgrantd",label:"\u67E5\u8BE2",align:"left",type:"slot",slotType:"getgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.add",prop:"addgrantd",label:"\u65B0\u589E",align:"left",type:"slot",slotType:"addgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.edit",prop:"editgrantd",label:"\u7F16\u8F91",align:"left",type:"slot",slotType:"editgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.del",prop:"delgrantd",label:"\u5220\u9664",align:"left",type:"slot",slotType:"delgrantd",width:270,showTooltip:!1},{transKey:"gd.relation.assignment",prop:"allocationgrantd",label:"\u5206\u6D3E",align:"left",type:"slot",slotType:"allocationgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.share",prop:"sharegrantd",label:"\u5171\u4EAB",align:"left",type:"slot",slotType:"sharegrantd",width:270,showTooltip:!1}],currentList:{}}},components:{RoleScope:T},computed:{height(){return this.screenHeight-(this.fullscreen?120:310)},...c.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){this.confirmLoading=!0;let s=this.$refs.table.tableData;s.map(e=>(e.addgrant=e.addgrantd.length>0?e.addgrantd.join(","):null,e.delgrant=e.delgrantd.length>0?e.delgrantd.join(","):null,e.editgrant=e.editgrantd.length>0?e.editgrantd.join(","):null,e.getgrant=e.getgrantd.length>0?e.getgrantd.join(","):null,e.sharegrant=e.sharegrantd.length>0?e.sharegrantd.join(","):null,e.allocationgrant=e.allocationgrantd.length>0?e.allocationgrantd.join(","):null,e)),y.saveOrgDetail(Object.assign({...this.submitData},{grants:s})).then(e=>{this.confirmLoading=!1,e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message)})},setRoleScop(s){this.confirmLoading=!0;const e=this.$refs.table.tableData;e[s.index][s.name]=[...s.checkedKeys].join(","),this.loadData=[...e],this.refresh(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))},openList(s,e,t){const i=this.$refs.table.tableData,n=`${s.prop.replace("grantd","")}custom`,a=i[t][n],l=a?a.split(",").map(Number):[];this.$refs.roleScope.open({index:t,item:s,checkedKeys:l,data:e,name:n})},getUserControlData(){this.confirmLoading=!0,y.getOrgDetail({roleId:this.record.id}).then(s=>{s.success?(s.data.grants.map(e=>(e.addgrantd=e.addgrant?e.addgrant.split(","):[],e.delgrantd=e.delgrant?e.delgrant.split(","):[],e.editgrantd=e.editgrant?e.editgrant.split(","):[],e.getgrantd=e.getgrant?e.getgrant.split(","):[],e.sharegrantd=e.sharegrant?e.sharegrant.split(","):[],e.allocationgrantd=e.allocationgrant?e.allocationgrant.split(","):[],e)),this.loadData=s.data.grants,this.submitData=s.data,this.$nextTick(()=>{setTimeout(()=>{this.refresh(),this.confirmLoading=!0},1e3),setTimeout(()=>{this.confirmLoading=!1},1200)})):(this.$message.error(s.message),this.confirmLoading=!1)})},open(s){this.record=s,this.visible=!0,this.getUserControlData()},closed(){this.fullscreen=!1,this.visible=!1},refresh(s=!0){this.$refs.table?this.$refs.table.refresh(s):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},getDictionary(s){return this.$options.filters.dictData(s)},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var S=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: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(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.dataRole","\u6388\u6743\u6570\u636E"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"margin-top":"-12px"}},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadSoData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.columns,height:e.height,filtering:!1,initialLoading:!1,showPagination:!1,rowKey:"sysCodeGenId",disabledRefresh:"",disabledColumnSettings:""},scopedSlots:e._u([e._l(e.columns,function(i){return{key:i.prop,fn:function({column:n,row:a,index:l}){return[i.prop==="sysCodeGenName"?t("div",[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.syscodegenname))+" ")]):t("div",{staticClass:"grant-select"},[t("el-select",{staticStyle:{flex:"1"},attrs:{placeholder:e.$i18nt("gd.xlsxImport.mapFieldsTip","\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5"),filterable:"",clearable:"",multiple:""},model:{value:a[i.prop],callback:function(r){e.$set(a,i.prop,r)},expression:"row[item.prop]"}},[e._l(e.getDictionary("data_scope_type"),function(r){return[t("el-option",{attrs:{label:e.$i18nt(`Dynamics.${r.transkey}`,r.name),value:r.code}})]})],2),a[i.prop].includes("5")?t("el-button",{staticClass:"active-color flex-center",attrs:{type:"text"},on:{click:function(r){return e.openList(i,a,l)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.view","\u67E5\u770B"))+" ")]):e._e()],1)]}}})],null,!0)}):e._e()],1)],2),t("RoleScope",{ref:"roleScope",on:{ok:e.setRoleScop}})],1)},L=[],I=c.normalizeComponent(R,S,L,!1,null,"39b91bb5",null,null);const x=I.exports;const D={name:"LayoutItem",props:{record:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]}},data(){return{}},computed:{fadeColord(){return this.fadeColor(this.primaryColor,.1)},menusType(){return this.record[0]?this.record[0].menusType:0},...c.mapGetters(["primaryColor"])},methods:{hasAll(s){return!(this.checkedKeys.filter(t=>s.menuBtnIds.includes(t)).length>=s.menuBtnIds.length)},checkedBtn(s,e){this.$emit("checkedBtn",s,e)},change(s,e){this.$emit("change",s,e)},open(s){this.$emit("open",s)},checked(s){return!!this.checkedKeys.filter(t=>t===s.id)[0]},fadeColor(s,e){let t=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),n=parseInt(s.substring(5,7),16);return`rgba(${t},${i},${n},${e})`}}};var P=function(){var e=this,t=e._self._c;return t("div",{style:{"--fadecolor":e.fadeColord}},[e._l(e.record,function(i){return[t("div",{staticClass:"list-item"},[e.menusType===0?t("i",{class:i.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(n){return e.open(i)}}}):e._e(),e.menusType!==2?t("div",{staticClass:"item-name"},[t("el-checkbox",{attrs:{indeterminate:i.isIndeterminate},on:{change:function(n){return e.change(n,[i.id])}},model:{value:i.checked,callback:function(n){e.$set(i,"checked",n)},expression:"item.checked"}},[i.iconClass?t("i",{staticClass:"gd-icons",class:i.iconClass,staticStyle:{"font-size":"15px"}}):e._e(),e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.title))+" ")]),i.children&&i.children.length>0&&e.menusType===1?t("el-button",{staticStyle:{"margin-left":"12px",padding:"5px 15px"},attrs:{size:"mini"}},[e.hasAll(i)?t("span",{on:{click:function(n){return e.checkedBtn(i,1)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")]):t("span",{on:{click:function(n){return e.checkedBtn(i,0)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")])]):e._e()],1):e._e(),t("div",{staticClass:"item-data"},[i.children&&i.children.length>0&&i.children[0].menusType===2?t("div",{staticClass:"item-data-list"},[e._l(i.children,function(n){return[t("div",{staticClass:"item-name item-named",on:{click:function(a){return e.change(!n.checked,[n.id])}}},[n.checked?t("i",{staticClass:"gd-icons gd-icon-quanxuan active-color"}):t("div",{staticClass:"item-named-kuang"}),t("div",{staticClass:"item-named-title",class:n.checked?"active-color":""},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.title))+" ")])])]})],2):e._e()])]),i.children&&i.children.length>0&&i.children[0].menusType!==2?t("div",{staticClass:"list-more"},[i.open?t("LayoutItem",{attrs:{record:i.children,checkedKeys:e.checkedKeys},on:{open:e.open,change:e.change,checkedBtn:e.checkedBtn}}):e._e()],1):e._e()]})],2)},N=[],B=c.normalizeComponent(D,P,N,!1,null,"53cbc9f1",null,null);const v=B.exports;const F={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"94%",menuTreeData:[],checkedKeys:[],list:[],allClose:!1,menuAll:[],systemMenuAll:[],allCheckedKeys:[],appsId:""}},computed:{isIndeterminate(){return this.allClose?!1:this.checkedKeys.length>0},...c.mapGetters(["screenHeight","tableLists"])},components:{LayoutItem:v},methods:{handleSubmit(){this.confirmLoading=!0,h.sysRoleGrantMenu({id:this.record.id,grantmenuidlist:this.checkedKeys}).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+s.message),this.confirmLoading=!1})},checkedItemBtn(s,e){let t=[...this.checkedKeys].filter(i=>!s.menuBtnIds.includes(i));e===1&&(t=t.concat(s.menuBtnIds)),this.checkedKeys=[...t],this.handleItem()},openItem(s){let e=[...this.menuTreeData];const t=i=>(i=i.filter((n,a)=>(n.id===s.id&&(n.open=!n.open),n.children&&n.children.length>0&&(n.children=t(n.children)),!0)),i);t(e),this.menuTreeData=[...e]},changeItem(s,e,t=!0){let i=[...this.checkedKeys];this.checkedKeys.filter(o=>e.includes(o))[0];const n=this.list.filter(o=>e.includes(o.id))[0],a=t&&n?n.menuIds:[];if(s?i=this.checkedKeys.concat(e).concat(a):i=this.checkedKeys.filter(o=>!e.includes(o)).filter(o=>!a.includes(o)),this.checkedKeys=[...i],this.handleItem(),n.menusType===2)return;let l=[];this.findParent(this.menuTreeData,n,l);let r=[],d=[];l.forEach(o=>{this.checkedKeys.filter(f=>o.menuIds.includes(f)).length===o.menuIds.length&&o.menuIds.length>0&&!o.checked?r.push(o.id):d.push(o.id)}),r.forEach(o=>{this.changeItem(!0,[o],!1)}),d.forEach(o=>{this.changeItem(!1,[o],!1)})},handleItem(){let s=[...this.menuTreeData];const e=t=>(t=t.filter((i,n)=>{const a=this.checkedKeys.filter(l=>i.menuIds.includes(l));return this.checkedKeys.includes(i.id)?(i.checked=!0,i.isIndeterminate=!1):(i.checked=!1,i.isIndeterminate=a.length>0&&i.menuIds.length>0),i.children&&i.children.length>0&&(i.children=e(i.children)),!0}),t);e(s),this.menuTreeData=[...s],this.allClose=this.checkedKeys.length===this.allCheckedKeys.length&&this.allCheckedKeys.length>0},changeAll(s){s?this.checkedKeys=[...this.allCheckedKeys]:this.checkedKeys=[],this.handleItem()},init(){this.confirmLoading=!0,Promise.all([this.getMenuTree(),this.expandedMenuKeys(),this.getMenuList()]).then(async s=>{let e=[],t=[];const i=r=>(r=r.filter((d,o)=>{const u=this.checkedKeys.filter(p=>d.id===p)[0];return d.open=!0,d.checked=d.type===1?!!u:!1,d.isIndeterminate=!1,d.menusType=d.type,e.push(d.id),t.push(d),d.children&&d.children.length>0&&(d.children=i(d.children)),!0}),r);let n=this.menuAll.filter(r=>!!this.systemMenuAll.filter(o=>o.id===r.id)[0]);await i(n),this.allCheckedKeys=e;let a=[];t.forEach((r,d)=>{const o=this.getMenuIds(r);t[d].menuIds=o.arr,t[d].menuBtnIds=o.btn,!(this.checkedKeys.filter(f=>o.arr.includes(f)).length===o.arr.length)&&o.arr.length>0&&a.push(r.id)}),this.list=t;const l=this.checkedKeys.filter(r=>e.includes(r)).filter(r=>!a.includes(r)).filter((r,d,o)=>o.indexOf(r)===d);this.checkedKeys=l,this.allClose=this.checkedKeys.length===e.length&&e.length>0,this.menuTreeData=[...n],this.handleItem(),this.confirmLoading=!1})},open(s,e){this.record=s,this.appsId=e||window.$systemInfo.id,this.visible=!0,this.init()},getMenuTree(){return g.SysMenuTreeForGrant({roleId:this.record.id}).then(s=>(s.code===200&&(this.menuAll=s.data),s))},expandedMenuKeys(){return h.sysRoleOwnMenu({id:this.record.id}).then(s=>(s.code===200&&(this.checkedKeys=s.data),s))},getMenuList(){let s={AppsId:this.appsId};return g.sysMenuListByAppsId(s).then(e=>(e.code===200&&(this.systemMenuAll=e.data),e))},getMenuIds(s){let e=[],t=[];const i=n=>(n=n.filter((a,l)=>(a.menusType!==2?e.push(a.id):t.push(a.id),a.children&&a.children.length>0&&(a.children=i(a.children)),!0)),n);return s.children&&i(s.children),{arr:e,btn:t}},findParent(s,e,t){for(let i of s)if(i.id===e.parentId||i.children&&i.children.length>0&&this.findParent(i.children,e,t))return t.unshift(i),!0;return!1},closed(){this.fullscreen=!1,this.visible=!1,this.menuTreeData=[],this.checkedKeys=[]},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var A=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: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(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.dataRole","\u6388\u6743\u6570\u636E"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"400px"}},[e.visible?t("LayoutItem",{attrs:{record:e.menuTreeData,checkedKeys:e.checkedKeys},on:{open:e.openItem,change:e.changeItem,checkedBtn:e.checkedItemBtn}}):e._e()],1),t("template",{slot:"footer"},[t("div",{staticClass:"btoms"},[t("el-checkbox",{attrs:{disabled:e.confirmLoading,indeterminate:e.isIndeterminate},on:{change:e.changeAll},model:{value:e.allClose,callback:function(i){e.allClose=i},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},M=[],E=c.normalizeComponent(F,A,M,!1,null,"d82ecaae",null,null);const O=E.exports;const z={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},openMode:{type:String,default:"page"}},mixins:[b.tablesFilter],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:s=>g.getUserManage({roleId:this.openSelecteKeys[0]}).then(e=>(this.getRowId(e.data),{pageNo:1,pageSize:1e3,totalRows:0,rows:e.data})),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.nickname",prop:"nickname",label:"\u6635\u79F0",align:"left",type:"slot",slotType:"nickname",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"sex",label:"\u6027\u522B",align:"left",type:"slot",slotType:"sex",showOverflowTooltip:!0},{transKey:"gd.user.organization",prop:"orgname",label:"\u6240\u5C5E\u673A\u6784",align:"left",type:"slot",slotType:"orgname",showOverflowTooltip:!0},{transKey:"gd.user.status",prop:"status",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status",showOverflowTooltip:!0}],formColumnsuser:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\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.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"}],disabledRowId:[],sysCodeGenName:"sys_user"}},components:{},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getQueryParam(){let s=new Map;for(let e in this.queryParam)s.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(s)},getFormColumns(){return this.formColumnsuser.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(s=>(s.show=!this.disableBtn.includes(s.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...c.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(s){let e=[];s.filter(t=>!this.disabledRowId.includes(t.id)).forEach(t=>{e.push(t.id)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(s){this.queryParam={...s},this.refresh()},refresh(){this.$refs.table.refresh()},getOrgTree(){y.getOrgTree({}).then(s=>{if(s.code===200){const e=t=>(t=t.filter((i,n)=>(i.value=String(i.value),i.children&&i.children.length>0&&(i.children=e(i.children)),!0)),t);this.orgTree=e(s.data)}this.loading=!1})},handleNodeClick(s){this.queryParam.orgId===s.id?(delete this.queryParam.orgId,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{orgId:s.id}),this.refresh()},handleOk(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()},lookupSeled(s){if(s.fkData.length===0){this.$refs.engineSearch.closed();return}this.$refs.engineSearch.confirmLoading=!0,g.postbindUsersToRole({roleId:this.openSelecteKeys[0],userIdList:s.data}).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let s=this;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:(e,t,i)=>{if(e!=="confirm"){i();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,g.postunbindUsersFromRole({roleId:s.openSelecteKeys[0],userIdList:s.selectedRowKeys}).then(n=>{n.success?(s.$message.success(s.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),s.disabledRowId=s.disabledRowId.filter(a=>!s.selectedRows.filter(r=>r.id===a)[0]),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,i(),s.refresh()):s.$message.error(s.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n.message)})}})}},created(){}};var j=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[t("div",{staticClass:"page-view-list"},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,showPagination:!1,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[t("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.name)+" ")])]}},{key:"nickname",fn:function({column:i,row:n}){return[t("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.nickname)+" ")])]}},{key:"orgname",fn:function({column:i,row:n}){return[t("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.orgname)+" ")])]}},{key:"sex",fn:function({column:i,row:n}){return[t("span",[e._v(" "+e._s(e._f("dictType")("gender",n.gender))+" ")])]}},{key:"status",fn:function({column:i,row:n}){return[t("span",[e._v(" "+e._s(e._f("dictType")("state_code",n.statecodes))+" ")])]}}])}),t("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},q=[],G=c.normalizeComponent(z,j,q,!1,null,"e9dd56ab",null,null);const _=G.exports;const V={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserFormDate:_},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...c.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed(),this.$emit("ok")},open(s){this.record=s,this.visible=!0,this.selectedRowKeys=[s.id],this.$nextTick(()=>{setTimeout(()=>{this.$refs.userForm.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(s){this.selectedRowKeys=s},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var H=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,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.userAuthorization","\u6388\u6743\u7528\u6237"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("UserFormDate",{ref:"userForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},U=[],J=c.normalizeComponent(V,H,U,!1,null,"46b57430",null,null);const Q=J.exports;const W={data(){return{defaultKey:[],buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedPath:"/",pathDialogVisible:!1,tempSelectedPath:"",folderTree:[],treeProps:{label:"name",children:"children"},permissions:{ReadMetaData:"allow",ManagePrem:"deny"},cardList:[{name:"\u901A\u7528\u6743\u9650",transkey:"gd.user.generalPermissions",id:"1",list:[{value:"",name:"\u67E5\u770B",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_readmetadata_Name",code:"readmetadata",icon:"el-icon-view"},{value:"",name:"\u91CD\u547D\u540D",code:"rename",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_rename_Name",icon:"el-icon-edit"},{value:"",name:"\u5220\u9664",code:"delete",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_delete_Name",icon:"el-icon-delete-solid"},{value:"",name:"\u7BA1\u7406\u6743\u9650",code:"manageprem",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_manageprem_Name",icon:"el-icon-user-solid"},{value:"",name:"\u79FB\u52A8",code:"move",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_move_Name",icon:"el-icon-rank"}]},{name:"\u6587\u4EF6\u5939\u7279\u6B8A\u6743\u9650",transkey:"gd.user.folderSpecialPermissions",id:"2",list:[{value:"",name:"\u521B\u5EFA\u6587\u4EF6",code:"createfile",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_createfile_Name",icon:"el-icon-document-add"},{value:"",name:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",code:"createsubfolder",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_createsubfolder_Name",icon:"el-icon-folder-add"}]},{name:"\u6587\u4EF6\u7279\u6B8A\u6743\u9650",transkey:"gd.user.fileSpecialPermissions",id:"3",list:[{value:"",name:"\u4E0B\u8F7D",code:"download",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_download_Name",icon:"el-icon-download"}]}],restaurants:[],objectId:"0",currentPermissions:[],id:""}},components:{UserFormDate:_},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...c.mapGetters(["screenHeight"])},methods:{querySearch(s,e){},createFilter(s){return e=>e.name.toLowerCase().indexOf(s.toLowerCase())===0},handleSelect(s){console.log(s)},keyuprefresh(){},buildTree(s){const e=s.find(a=>a.parentid===null);if(!e)throw new Error("No root node found (parentid: null)");const t={};s.forEach(a=>{t[a.id]={name:a.name,id:a.id,children:[]}}),s.forEach(a=>{if(a.parentid===null)return;const l=t[a.parentid];l?l.children.some(r=>r.id===a.id)||l.children.push(t[a.id]):t[e.id].children.push(t[a.id])});function i(a){a.children&&a.children.length>0&&(a.children.sort((l,r)=>l.name.localeCompare(r.name)),a.children.forEach(l=>i(l)))}const n={name:e.name,id:e.id,children:t[e.id].children};return i(n),[n]},handleSubmit(){this.id!=""?this.edit():this.add()},add(){const e=this.currentPermissions.map(t=>{const i=t.list.reduce((n,a)=>(n[a.code]=a.value,n),{});return{...t,...i}}).map(({list:t,...i})=>i);this.confirmLoading=!0,h.docObjectsRolesGrantDocsPermission(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},edit(){const e=this.currentPermissions.map(t=>{const i=t.list.reduce((n,a)=>(n[a.code]=a.value,n),{});return{...t,...i}}).map(({list:t,...i})=>i);this.confirmLoading=!0,h.docObjectsRolesBatchEdit(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},open(s){this.record=s,this.visible=!0,this.getallTree(),this.getDetail(s)},getDetail(s){h.sysDocObjectsRolesGetByRoleId({roleId:s.id}).then(e=>{if(e.code==200&&(this.currentPermissions=[],this.$refs.elTreeRef&&this.$refs.elTreeRef.setCheckedKeys([]),e.data.length>0)){this.id=e.data[0].id,this.currentPermissions=[];const t=e.data.map(n=>{const a=[{name:"\u67E5\u770B",code:"readmetadata",value:n.readmetadata},{name:"\u91CD\u547D\u540D",code:"rename",value:n.rename},{name:"\u5220\u9664",code:"delete",value:n.delete},{name:"\u7BA1\u7406\u6743\u9650",code:"manageprem",value:n.manageprem},{name:"\u79FB\u52A8",code:"move",value:n.move},{name:"\u521B\u5EFA\u6587\u4EF6",code:"createfile",value:n.createfile},{name:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",code:"createsubfolder",value:n.createsubfolder},{name:"\u4E0B\u8F7D",code:"download",value:n.download}];return{id:n.id,name:n.name,ischeck:!1,sysdocobjectid:n.sysdocobjectid,sysroleid:n.sysroleid,list:a}});this.currentPermissions=t,this.handlePermissionClick(this.currentPermissions[0]);const i=t.map(n=>n.sysdocobjectid);this.$refs.elTreeRef&&this.$refs.elTreeRef.setCheckedKeys(i)}})},getallTree(){h.sysDocObjectsAllDocList().then(s=>{if(s.code==200){this.restaurants=JSON.parse(JSON.stringify(s.data));const e=this.buildTree(JSON.parse(JSON.stringify(s.data)));let t=[];e[0]&&e[0].children&&t.push(e[0].id),this.defaultKey=t,this.folderTree=e,console.log(t),this.selectedPath="/"+s.data[0].name}})},closed(){this.cardList.forEach(s=>{Array.isArray(s.list)&&s.list.forEach(e=>{e.value=""})}),this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()},openPathDialog(){this.pathDialogVisible=!0,this.tempSelectedPath=this.selectedPath},delList(s){let e=this;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,i,n)=>{if(t!=="confirm"){n();return}i.confirmButtonLoading=!0,i.cancelButtonLoading=!0,i.showCancelButton=!1,s.id===0?e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):h.docObjectsRolesDel({ids:s.id}).then(l=>{i.confirmButtonLoading=!1,i.cancelButtonLoading=!1,i.showCancelButton=!0,l.success?e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):e.$message.error(e.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+l.message)}),n();let a=0;for(let l=0;l<e.currentPermissions.length;l++)e.currentPermissions[l].sysdocobjectid===s.sysdocobjectid&&(a=l);console.log(a),e.currentPermissions=e.currentPermissions.filter(l=>l.sysdocobjectid!==s.sysdocobjectid),e.currentPermissions.length==0&&e.cardList.forEach(l=>{Array.isArray(l.list)&&l.list.forEach(r=>{r.value=""})}),e.currentPermissions.length>0&&e.currentPermissions[a-1]?this.handlePermissionClick(e.currentPermissions[a-1]):e.currentPermissions.length>0&&e.currentPermissions[a]&&this.handlePermissionClick(e.currentPermissions[a]),e.cancelNodeCheck(s.sysdocobjectid)}})},cancelNodeCheck(s){const e=this.$refs.elTreeRef;e&&e.setChecked(s,!1)},handlecheck(s){console.log(s)},handleDirectoryCheck(s,e){let t=s.name;if(e){const a=this.restaurants.find(r=>r.id===s.id);let l=a?a.parentid:"";(l!=""||l==0)&&this.restaurants.forEach(r=>{r.id==l&&(t=r.name+"/"+s.name)})}const i=s.id,n=JSON.parse(JSON.stringify(this.currentPermissions)).filter(a=>a.sysdocobjectid===s.id);if(e&&n.length===0){const a={sysdocobjectid:i,sysroleid:this.record.id,name:t,ischeck:!0,id:0,list:[{name:"\u67E5\u770B",code:"readmetadata",value:""},{name:"\u91CD\u547D\u540D",code:"rename",value:""},{name:"\u5220\u9664",code:"delete",value:""},{name:"\u7BA1\u7406\u6743\u9650",code:"manageprem",value:""},{name:"\u79FB\u52A8",code:"move",value:""},{name:"\u521B\u5EFA\u6587\u4EF6",code:"createfile",value:""},{name:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",code:"createsubfolder",value:""},{name:"\u4E0B\u8F7D",code:"download",value:""}]};this.currentPermissions.push(a),this.currentPermissions.forEach(l=>{l.ischeck=!1,l.sysdocobjectid===i&&(l.ischeck=!0)}),this.cardList.forEach(l=>{Array.isArray(l.list)&&l.list.forEach(r=>{r.value=""})})}else if(!e&&n.length>0&&this.currentPermissions.length>0){let a=this;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:(l,r,d)=>{if(l!=="confirm"){d(),setTimeout(()=>{this.$nextTick(()=>{this.$refs.elTreeRef.setChecked(s.id,!0)})});return}r.confirmButtonLoading=!0,r.cancelButtonLoading=!0,r.showCancelButton=!1,n[0].id===0?a.$message.success(a.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):h.docObjectsRolesDel({ids:n[0].id}).then(o=>{r.confirmButtonLoading=!1,r.cancelButtonLoading=!1,r.showCancelButton=!0,o.success?a.$message.success(a.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):a.$message.error(a.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o.message)}),d(),this.nextclickdel(i)}})}},nextclickdel(s){this.currentPermissions=this.currentPermissions.filter(t=>t.sysdocobjectid!==s),this.currentPermissions.forEach(t=>{t.ischeck=!1}),this.currentPermissions[this.currentPermissions.length-1].ischeck=!0;const e={};this.currentPermissions[this.currentPermissions.length-1].list.forEach(t=>{e[t.name]=t.value}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(i=>{i.value=""})}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(i=>{const n=e[i.name];n!==void 0&&n!==""&&n!==null&&(i.value=n.toString())})})},handleNodeClick(s,e){this.objectId=s.id;let t=[],i=e;for(;i;)t.unshift(i.data.name),i=i.parent;this.tempSelectedPath=""+t.join("/")},handlePermissionClick(s){this.currentPermissions.forEach(t=>{t.ischeck=!1}),s.ischeck=!0;const e={};s.list.forEach(t=>{e[t.name]=t.value}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(i=>{i.value=""})}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(i=>{const n=e[i.name];n!=null&&(i.value=n.toString())})})},confirmPath(){this.selectedPath=this.tempSelectedPath,this.pathDialogVisible=!1},handleReadMetaDataChange(s,e){s.target.tagName==="INPUT"&&s.target.type==="radio"&&(e.value===""?e.value=s.target.value:e.value=null,setTimeout(()=>{if(this.currentPermissions.length>0){const t=this.currentPermissions.find(i=>i.ischeck);if(t){const i=t.list.find(n=>n.name===e.name);i&&(i.value=e.value)}}},10))}}};var X=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:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.documentAuthorization","\u6388\u6743\u6587\u6863"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{staticClass:"main-layout"},[t("div",{staticClass:"directory-tree-section"},[t("div",{staticClass:"section-header"},[e._v(e._s(e.$i18nt("gd.user.selectDirectory","\u9009\u62E9\u76EE\u5F55")))]),t("div",{staticClass:"tree-list"},[t("el-tree",{ref:"elTreeRef",attrs:{"check-strictly":"",data:e.folderTree,"node-key":"id","default-expanded-keys":e.defaultKey,"show-checkbox":"",props:e.treeProps},on:{"check-change":e.handleDirectoryCheck,"node-click":e.handleNodeClick}})],1)]),t("div",{staticClass:"directory-list"},[t("div",{staticClass:"preview-card"},[t("el-alert",{attrs:{title:e.$i18nt("gd.user.permissionPreview","\u6743\u9650\u9884\u89C8"),type:"info","show-icon":"",effect:"dark",closable:!1}}),e.currentPermissions.length>0?t("div",{staticClass:"permission-tags"},e._l(e.currentPermissions,function(i){return t("div",{key:i.sysdocobjectid,staticClass:"permission-tags-item",class:{checked:i.ischeck},on:{click:function(n){return e.handlePermissionClick(i)}}},[t("div",{staticClass:"item-name"},[e._v(e._s(i.name))]),t("div",{staticClass:"permission-tags-item-content"},e._l(i.list,function(n,a){return t("div",{key:a},[t("span",[e._v(e._s(n.name))]),n.value=="1"?t("el-tag",{attrs:{type:"success",effect:"dark",size:"mini"}},[e._v(e._s(e.$i18nt("gd.user.allow","\u5141\u8BB8")))]):e._e(),n.value=="2"?t("el-tag",{attrs:{type:"danger",effect:"dark",size:"mini"}},[e._v(e._s(e.$i18nt("gd.user.refuse","\u62D2\u7EDD")))]):e._e()],1)}),0),t("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return e.delList(i)}}})])}),0):t("div",{staticClass:"empty"},[t("div",{staticClass:"empty-item"},[t("div",{staticClass:"empty-icon"},[t("i",{staticClass:"el-icon-receiving"})]),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])])],1),t("div",{staticClass:"permission-section"},[t("el-alert",{attrs:{title:e.$i18nt("gd.user.setOperationPermissions","\u8BBE\u7F6E\u64CD\u4F5C\u6743\u9650"),type:"info","show-icon":"",effect:"dark",closable:!1}}),t("div",{staticClass:"kuang"},e._l(e.cardList,function(i,n){return t("div",{key:n},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("h4",[e._v(e._s(e.$i18nt(i.transkey,i.name)))])]),t("div",{staticClass:"permission-list"},[t("div",{staticClass:"permission-category"},e._l(i.list,function(a,l){return t("el-card",{key:l,staticClass:"permission-item",attrs:{shadow:"hover"}},[t("div",{staticClass:"perm-info"},[t("i",{staticClass:"gd-icons",class:a.icon,staticStyle:{"font-size":"14px","margin-right":"6px"}}),t("div",{staticClass:"perm-name"},[e._v(e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.name)))])]),t("div",{staticClass:"perm-actions"},[t("el-radio-group",{nativeOn:{click:function(r){return e.handleReadMetaDataChange(r,a)}},model:{value:a.value,callback:function(r){e.$set(a,"value",r)},expression:"items.value"}},[t("el-radio",{attrs:{label:"1"}},[t("span",{staticStyle:{color:"rgb(82, 196, 26)"}},[e._v(e._s(e.$i18nt("gd.user.allow","\u5141\u8BB8")))])]),t("el-radio",{attrs:{label:"2"}},[t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.$i18nt("gd.user.refuse","\u62D2\u7EDD")))])])],1)],1)])}),1)])])}),0)],1)])])],2)],1)},Y=[],Z=c.normalizeComponent(W,X,Y,!1,null,"b1dc77ce",null,null);const ee=Z.exports;const te={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"94%",menuTreeData:[],menuTreeDatad:[],checkedKeys:[],list:[],allClose:!1,menuAll:[],systemMenuAll:[],allCheckedKeys:[]}},computed:{isIndeterminate(){return this.allClose?!1:this.checkedKeys.length>0},...c.mapGetters(["screenHeight","tableLists"])},components:{LayoutItem:v},methods:{async handleSubmit(){const s=e=>(e=e.filter((t,i)=>{const n=this.checkedKeys.filter(a=>t.id===a)[0];return t.type=n?1:0,t.formlist&&t.formlist.length>0&&(t.formlist=s(t.formlist)),t.viewlist&&t.viewlist.length>0&&(t.viewlist=s(t.viewlist)),t.btnlist&&t.btnlist.length>0&&(t.btnlist=s(t.btnlist)),!0}),e);this.confirmLoading=!0,await s(this.menuAll),h.sysRoleRoleBindViewOnBtn({roleid:this.record.id,list:this.menuAll}).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.confirmLoading=!1})},checkedItemBtn(s,e){let t=[...this.checkedKeys].filter(i=>!s.menuBtnIds.includes(i));e===1&&(t=t.concat(s.menuBtnIds)),this.checkedKeys=[...t],this.handleItem()},openItem(s){let e=[...this.menuTreeData];const t=i=>(i=i.filter((n,a)=>(n.id===s.id&&(n.open=!n.open),n.children&&n.children.length>0&&(n.children=t(n.children)),!0)),i);t(e),this.menuTreeData=[...e]},changeItem(s,e,t=!0){let i=[...this.checkedKeys];this.checkedKeys.filter(o=>e.includes(o))[0];const n=this.list.filter(o=>e.includes(o.id))[0],a=t&&n?n.menuIds:[];if(s?i=this.checkedKeys.concat(e).concat(a):i=this.checkedKeys.filter(o=>!e.includes(o)).filter(o=>!a.includes(o)),this.checkedKeys=[...i],this.handleItem(),n.menusType===2)return;let l=[];this.findParent(this.menuTreeData,n,l);let r=[],d=[];l.forEach(o=>{this.checkedKeys.filter(f=>o.menuIds.includes(f)).length===o.menuIds.length&&o.menuIds.length>0&&!o.checked?r.push(o.id):d.push(o.id)}),r.forEach(o=>{this.changeItem(!0,[o],!1)}),d.forEach(o=>{this.changeItem(!1,[o],!1)})},handleItem(){let s=[...this.menuTreeData];const e=t=>(t=t.filter((i,n)=>{const a=this.checkedKeys.filter(l=>i.menuIds.includes(l));return this.checkedKeys.includes(i.id)?(i.checked=!0,i.isIndeterminate=!1):(i.checked=!1,i.isIndeterminate=a.length>0&&i.menuIds.length>0),i.children&&i.children.length>0&&(i.children=e(i.children)),!0}),t);e(s),this.menuTreeData=[...s],this.allClose=this.checkedKeys.length===this.allCheckedKeys.length&&this.allCheckedKeys.length>0},changeAll(s){s?this.checkedKeys=[...this.allCheckedKeys]:this.checkedKeys=[],this.handleItem()},init(){this.confirmLoading=!0,Promise.all([this.getList()]).then(async s=>{this.confirmLoading=!1;let e=JSON.parse(JSON.stringify(this.menuTreeDatad)),t=[];const i=a=>(a=a.filter((l,r)=>{const d=this.checkedKeys.filter(o=>l.id===o)[0];return l.open=!0,l.checked=l.menusType===1?!!d:!1,l.isIndeterminate=!1,t.push(l),l.children&&l.children.length>0&&(l.children=i(l.children)),!0}),a);await i(e);let n=[];t.forEach((a,l)=>{const r=this.getMenuIds(a);t[l].menuIds=r.arr,t[l].menuBtnIds=r.btn,!(this.checkedKeys.filter(u=>r.arr.includes(u)).length===r.arr.length)&&r.arr.length>0&&n.push(a.id)}),this.list=t,this.allClose=this.checkedKeys.length===this.allCheckedKeys.length&&this.allCheckedKeys.length>0,this.menuTreeData=[...e],this.handleItem(),console.log(this.menuAll,"123")})},getList(){return h.sysRoleViewOnBtnList({roleId:this.record.id}).then(s=>{if(s.code===200){let e=[],t=[];const i=(a,l)=>(a=a.filter((r,d)=>{r.parentId=l,r.open=!0,r.checked=!1,r.isIndeterminate=!1,r.transkey=r.transkey?r.transkey:null,r.title=r.name,r.menusType=r.formlist&&r.viewlist?0:r.btnlist?1:2,t.push(r.id),r.type===1&&e.push(r.id);let o=[];return r.viewlist&&r.viewlist.length>0&&(r.viewlist.map(u=>(u.iconClass="gd-icon-shitumoshi",u)),o=o.concat(r.viewlist)),r.formlist&&r.formlist.length>0&&(r.formlist.map(u=>(u.iconClass="gd-icon-biaodanmoshi",u)),o=o.concat(r.formlist)),r.btnlist&&r.btnlist.length>0&&(o=o.concat(r.btnlist)),o.length>0&&(r.children=i(o,r.id)),!0}),a);this.menuAll=s.data.list;let n=JSON.parse(JSON.stringify(this.menuAll));i(n,0),this.checkedKeys=e,this.allCheckedKeys=t,this.menuTreeDatad=[...n]}return s})},getMenuIds(s){let e=[],t=[];const i=n=>(n=n.filter((a,l)=>(a.menusType!==2?e.push(a.id):t.push(a.id),a.children&&a.children.length>0&&(a.children=i(a.children)),!0)),n);return s.children&&i(s.children),{arr:e,btn:t}},findParent(s,e,t){for(let i of s)if(i.id===e.parentId||i.children&&i.children.length>0&&this.findParent(i.children,e,t))return t.unshift(i),!0;return!1},open(s){this.record=s,this.visible=!0,this.init()},closed(){this.fullscreen=!1,this.visible=!1,this.menuTreeData=[],this.checkedKeys=[]},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var se=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: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(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.dataRole","\u6388\u6743\u6570\u636E"),buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"400px"}},[e.visible?t("LayoutItem",{attrs:{record:e.menuTreeData,checkedKeys:e.checkedKeys},on:{open:e.openItem,change:e.changeItem,checkedBtn:e.checkedItemBtn}}):e._e()],1),t("template",{slot:"footer"},[t("div",{staticClass:"btoms"},[t("el-checkbox",{attrs:{disabled:e.confirmLoading,indeterminate:e.isIndeterminate},on:{change:e.changeAll},model:{value:e.allClose,callback:function(i){e.allClose=i},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},ie=[],ne=c.normalizeComponent(te,se,ie,!1,null,"e6593396",null,null);const ae=ne.exports;const re={name:"GdRole",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[b.tablesFilter,k],data(){return{appsId:"",transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},allRowData:[],loadData:s=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),h.getRolePage(Object.assign(s,this.queryParam,{sysAppsId:window.$systemInfo.id})).then(e=>(this.allRowData=e.data,e.data))),isDoc:""}},components:{RoleGrant:x,RoleMenu:O,RoleMenuViewForm:ae,UserAuthorization:Q,DocumentAuthorization:ee},computed:{getTableButtons(){return this.tableButtons.filter(s=>s.functionName==="grantRoleAppMenu"?!!this.appsId:s.functionName==="documentAuthorizationMenu"?this.isDoc==1:!0)},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getFormColumns(){return this.formColumns.filter(s=>(s.prop==="code"&&(s.disabled=this.transKey!=="gd.btn.add"),!(this.transKey==="gd.https.copy"&&s.prop==="code")))},getHeight(){return this.height},...c.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getConfigInfo(){let s={code:"GDS_Enable_Doc_Premissions"};g.getConfigInfoByCode(s).then(e=>{e.code===200&&(this.isDoc=e.data.value)})},getAppId(){g.getConfigInfoByCode({code:"App_Id"}).then(s=>{s.code===200&&(this.appsId=s.data?s.data.value:"")})},documentAuthorizationMenu(){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.documentAuthorization.open(this.selectedRows[0])},userAuthorizationMenu(){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.userAuthorization.open(this.selectedRows[0])},grantRoleMenu(){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.roleMenu.open(this.selectedRows[0])},grantRoleAppMenu(){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.roleMenu.open(this.selectedRows[0],this.appsId)},grantRoleGrant(){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.roleGrant.open(this.selectedRows[0])},grantRoleVF(){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.roleMenuViewForm.open(this.selectedRows[0])},saveQueries(s){this.queryParam={...s},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(s)},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:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}let i=[];this.selectedRows.forEach(n=>{let a=h.sysRoleDelete(n).then(l=>l);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{const a=n.filter(l=>!l.success);a.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")+a[0].message),t(),this.refresh(),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])},copy(){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.transKey="gd.https.copy",this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{roleId:this.selectedRows[0].id}))},sbumit({data:s,record:e,btn:t},i,n){this.formLoading=!0;let a=e?this.transKey==="gd.https.copy"?h.sysRoleCopyRole:h.sysRoleEdit:h.sysRoleAddV2;const l=this.transKey!=="gd.https.edit"?Object.assign(s,{sysappsid:window.$systemInfo.id}):s;a(l).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message),this.formLoading=!1})},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e,this.$emit("onSelectChange",s,e,this.allRowData)},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}},created(){this.getAppId(),this.getConfigInfo()}};var le=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,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""},on:{click:e.editForm}})]}},{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.user.roleName","\u89D2\u8272\u540D"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},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"},[e.openMode==="page"?t("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}}):e._e()],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:n}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:n},on:{save:e.saveQueries}})]}}])})],1),t("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}}),t("RoleGrant",{ref:"roleGrant",on:{ok:e.refresh}}),t("RoleMenu",{ref:"roleMenu",on:{ok:e.refresh}}),t("RoleMenuViewForm",{ref:"roleMenuViewForm",on:{ok:e.refresh}}),t("UserAuthorization",{ref:"userAuthorization",on:{ok:e.refresh}}),t("DocumentAuthorization",{ref:"documentAuthorization",on:{ok:e.refresh}})],1)},oe=[],de=c.normalizeComponent(re,le,oe,!1,null,"00f39bc6",null,null);const m=de.exports;m.install=function(s){s.component(m.name,m)};exports.GDpackage=m;
|