gds-plus-design-vue 1.2.63 → 1.2.71
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/{addPermission.9fc97a47.mjs → addPermission.179a09f4.mjs} +127 -105
- package/lib/addPermission.c72ebbe0.js +1 -0
- package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b550187.mjs} +7 -7
- package/lib/approvalModel.7cfcac3c.js +1 -0
- package/lib/attribute.3fed1dd9.js +1 -0
- package/lib/attribute.e9a8faa1.mjs +367 -0
- package/lib/businessRules.cf106f09.js +1 -0
- package/lib/{businessRules.db6ba874.mjs → businessRules.d7d35011.mjs} +191 -190
- package/lib/buttonRule.2afe380d.mjs +396 -0
- package/lib/buttonRule.737e8e3f.js +1 -0
- package/lib/chartDisplayRules.370065e8.mjs +288 -0
- package/lib/chartDisplayRules.c9162f81.js +1 -0
- package/lib/components.chartbi.3bbac955.js +8 -0
- package/lib/components.chartbi.571c5ff5.mjs +1813 -0
- package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.06cf0433.mjs} +2 -2
- package/lib/{components.coloreditor.779a9419.js → components.coloreditor.f81d322a.js} +1 -1
- package/lib/{components.dataassign.56632583.mjs → components.dataassign.21d3938b.mjs} +3 -3
- package/lib/{components.dataassign.1853ed5c.js → components.dataassign.565d22c0.js} +1 -1
- package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.490abdfa.mjs} +416 -399
- package/lib/components.echarts.fe84f881.js +4 -0
- package/lib/{components.exception.3cc33e29.js → components.exception.374f2ad9.js} +1 -1
- package/lib/{components.exception.cc2f4ca3.mjs → components.exception.ee1c4f83.mjs} +1 -1
- package/lib/{components.form.91d5ed3e.js → components.form.5533a8c3.js} +19 -19
- package/lib/{components.form.3344c817.mjs → components.form.db8af727.mjs} +1118 -1090
- package/lib/{components.globalheader.07a90c4b.js → components.globalheader.2eb787a4.js} +1 -1
- package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.b3b35343.mjs} +3 -3
- package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.8940b1a9.mjs} +7 -3
- package/lib/components.iconselector.f5a58033.js +1 -0
- package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.d97cf25c.js} +1 -1
- package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.f05b3e06.mjs} +4 -4
- package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.18f84642.js} +1 -1
- package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.2a097955.mjs} +1 -1
- package/lib/components.middleware.43b9b264.js +1 -0
- package/lib/{components.middleware.457b1182.mjs → components.middleware.de012955.mjs} +5 -4
- package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.5060623f.mjs} +1 -1
- package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.957cab33.js} +1 -1
- package/lib/{components.multitab.8441aa6b.mjs → components.multitab.5eb6edff.mjs} +1 -1
- package/lib/{components.multitab.82fd0544.js → components.multitab.80eeb3ae.js} +1 -1
- package/lib/{components.selecttree.d710a362.js → components.selecttree.2fe70d88.js} +1 -1
- package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.756c4d22.mjs} +1 -1
- package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.29dbc31e.mjs} +21 -21
- package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.8c12650b.js} +1 -1
- package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.0673fe0a.mjs} +2 -2
- package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.240dfde7.js} +1 -1
- package/lib/components.sidenavmenu.b1330d69.js +1 -0
- package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.fa81ff82.mjs} +448 -632
- package/lib/{components.statuschange.ed1218a4.js → components.statuschange.858b72e8.js} +1 -1
- package/lib/{components.statuschange.15938660.mjs → components.statuschange.fae4adba.mjs} +3 -3
- package/lib/{components.table.17c02054.js → components.table.1e338902.js} +3 -3
- package/lib/{components.table.e3e5e3bc.mjs → components.table.9ed77207.mjs} +331 -316
- package/lib/components.tableumy.1d804d70.js +1 -0
- package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.3e1c9a5b.mjs} +7 -4
- package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.66890b2c.mjs} +7 -4
- package/lib/components.tablevirtual.8e21a6e7.js +1 -0
- package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.3a17ddc0.mjs} +3 -3
- package/lib/{components.teamsharing.05503821.js → components.teamsharing.89e668fd.js} +1 -1
- package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.0ea7e2b1.js} +1 -1
- package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.376d95fe.mjs} +1 -1
- package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0a5a1608.mjs} +2 -2
- package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.8e0e702c.js} +1 -1
- package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.bc160e00.js} +1 -1
- package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.decb0360.mjs} +2 -2
- package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.140533c7.js} +1 -1
- package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.7091b10b.mjs} +1 -1
- package/lib/components.viewformdetails.940addba.js +1 -0
- package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.d241c652.mjs} +94 -61
- package/lib/components.viewloading.1e9f4b3c.js +1 -0
- package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.aae3aab4.mjs} +54 -51
- package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.2ec3260c.mjs} +1 -1
- package/lib/{components.watermark.da3d7220.js → components.watermark.d9ec8130.js} +1 -1
- package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.0d1553b1.js} +1 -1
- package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.c33f83ca.mjs} +4 -4
- package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.81df7841.mjs} +541 -532
- package/lib/components.xlsximport.8c209857.js +1 -0
- package/lib/copy.8db86d9f.mjs +572 -0
- package/lib/copy.a8753f38.js +1 -0
- package/lib/createFile.04a6b293.js +1 -0
- package/lib/createFile.4cac1673.mjs +439 -0
- package/lib/createSubfolders.e105fa86.js +1 -0
- package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.eac5ccae.mjs} +7 -7
- package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.bf435838.mjs} +2 -2
- package/lib/{dialogLayout.08823bb7.js → dialogLayout.f0779aed.js} +1 -1
- package/lib/drawerContainer.6ab3df46.mjs +163 -0
- package/lib/drawerContainer.8f9df583.js +1 -0
- package/lib/{drawerLayout.36cf4d05.js → drawerLayout.b6c7c3c6.js} +1 -1
- package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.e3c0164d.mjs} +2 -2
- package/lib/editForm.0f3fd3b0.js +1 -0
- package/lib/editForm.aef93ed0.mjs +434 -0
- package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
- package/lib/extendedAttributes.ef3ead02.js +1 -0
- package/lib/fileSearch.43465e1c.js +1 -0
- package/lib/{fileSearch.86c356fe.mjs → fileSearch.5c8a883d.mjs} +140 -115
- package/lib/{flow.designer.6da03949.mjs → flow.designer.81c29f62.mjs} +3184 -3197
- package/lib/flow.designer.ffd0aa8b.js +1 -0
- package/lib/flow.list.4c05f2f0.js +1 -0
- package/lib/{flow.list.03694808.mjs → flow.list.ab420927.mjs} +234 -232
- package/lib/form.build.724d3357.js +1 -0
- package/lib/{form.build.b768d613.mjs → form.build.d04773f0.mjs} +22 -14
- package/lib/form.designer.build.c82cb559.mjs +2529 -0
- package/lib/form.designer.build.dac501fa.js +1 -0
- package/lib/formFiled.4b5062d7.js +1 -0
- package/lib/{formFiled.fe7d9df3.mjs → formFiled.c949a27f.mjs} +15 -13
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +231 -207
- package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
- package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
- package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
- package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
- package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
- package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
- package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
- package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
- package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
- package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
- package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
- package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
- package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
- package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
- package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
- package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
- package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
- package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
- package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
- package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
- package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
- package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
- package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
- package/lib/index.9deaa991.mjs +25906 -0
- package/lib/index.d95c407c.js +8 -0
- package/lib/layoutBlocks.26e1b57b.js +1 -0
- package/lib/layoutBlocks.31454610.mjs +413 -0
- package/lib/layoutItem.c1c836a1.js +1 -0
- package/lib/layoutItem.cf18143e.mjs +71 -0
- package/lib/{layouts.a6a36612.js → layouts.2d06f3e9.js} +2 -2
- package/lib/{layouts.051a0bba.mjs → layouts.3b383d04.mjs} +19 -22
- package/lib/main.09d48801.js +1 -0
- package/lib/main.28b7c398.js +1 -0
- package/lib/main.29e204f9.mjs +166 -0
- package/lib/main.33443996.mjs +231 -0
- package/lib/main.357c50d2.js +1 -0
- package/lib/{main.7f44e3bf.mjs → main.3e886f21.mjs} +40 -50
- package/lib/{main.c1df94d8.mjs → main.419a7b42.mjs} +2 -2
- package/lib/main.4a38d5f8.js +1 -0
- package/lib/{main.70357352.mjs → main.60329866.mjs} +6 -6
- package/lib/{main.ad1e8d4d.js → main.60c2a1a2.js} +1 -1
- package/lib/main.61c9e5c6.mjs +537 -0
- package/lib/main.643d21a0.mjs +552 -0
- package/lib/main.64ddb5f6.mjs +189 -0
- package/lib/main.728eaf53.js +1 -0
- package/lib/{main.8a2a590d.js → main.892caa37.js} +1 -1
- package/lib/main.aea9b6a8.mjs +323 -0
- package/lib/main.b7a5a02b.js +1 -0
- package/lib/main.c71e5b11.js +1 -0
- package/lib/main.edc0b23b.js +1 -0
- package/lib/{main.b0e5e1b0.mjs → main.f520fcf5.mjs} +2 -2
- package/lib/manage.101f1aa9.js +1 -0
- package/lib/{manage.a1df9b88.mjs → manage.f4000654.mjs} +162 -140
- package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
- package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
- package/lib/messages.messagetemplate.32273e00.js +7 -0
- package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
- package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
- package/lib/messages.sendplan.fbac188d.js +1 -0
- package/lib/messages.sendrecord.ef80d44a.js +2 -0
- package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
- package/lib/messages.templatelibrary.ec512390.js +2 -0
- package/lib/messages.templatelibrary.ff151513.mjs +808 -0
- package/lib/mobile.designer.componentstree.03f61105.js +1 -0
- package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
- package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
- package/lib/mobile.designer.menutree.97bb4046.js +1 -0
- package/lib/moveFile.335ebc8d.js +1 -0
- package/lib/moveFile.d71c0824.mjs +276 -0
- package/lib/{page.build.685c1e15.mjs → page.build.376104d5.mjs} +607 -601
- package/lib/{page.build.846096e6.js → page.build.37b26617.js} +3 -3
- package/lib/page.designer.componentstree.0ffc933d.js +1 -0
- package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
- package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
- package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
- package/lib/page.designer.menutree.c49d9ee6.js +1 -0
- package/lib/page.designer.operation.6179b661.js +1 -0
- package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
- package/lib/page.designer.page.09402332.js +1 -0
- package/lib/page.designer.page.6d8232c7.mjs +10638 -0
- package/lib/personal.echarts.414b7e3d.mjs +268 -0
- package/lib/personal.echarts.b7ee86f4.js +1 -0
- package/lib/result.0c089066.mjs +639 -0
- package/lib/result.9282a717.js +1 -0
- package/lib/router.config.68077a12.js +1 -0
- package/lib/router.config.86225b11.mjs +1424 -0
- package/lib/solution.application.d459e382.js +1 -0
- package/lib/solution.application.e0d58df1.mjs +548 -0
- package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
- package/lib/solution.applicationmenu.ae295083.js +1 -0
- package/lib/solution.approvalflow.436b3502.js +1 -0
- package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
- package/lib/solution.dict.acbe9c55.js +1 -0
- package/lib/solution.dict.ef98b194.mjs +769 -0
- package/lib/solution.menu.5c17348f.mjs +432 -0
- package/lib/solution.menu.cca5e1f9.js +1 -0
- package/lib/solution.plugin.90f8dcc1.mjs +347 -0
- package/lib/solution.plugin.f9a8063f.js +1 -0
- package/lib/solution.processflow.2692dac6.js +1 -0
- package/lib/solution.processflow.c1544b05.mjs +392 -0
- package/lib/solution.role.b1ab40dd.mjs +456 -0
- package/lib/solution.role.b28c4dbe.js +1 -0
- package/lib/solution.webresources.0b51beba.mjs +379 -0
- package/lib/solution.webresources.6961cc68.js +1 -0
- package/lib/solution.workflow.11e49e25.js +1 -0
- package/lib/solution.workflow.c48545d1.mjs +395 -0
- package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.014f3e0b.mjs → system.account.1cadbf03.mjs} +877 -881
- package/lib/{system.account.0d4f1fdc.js → system.account.5cc9fe8d.js} +7 -7
- package/lib/{system.config.210f516c.js → system.config.a0b94e40.js} +1 -1
- package/lib/{system.config.0899edb8.mjs → system.config.a9a1ee96.mjs} +1 -1
- package/lib/{system.datasource.82492d27.js → system.datasource.6c30ce25.js} +1 -1
- package/lib/{system.datasource.986768c9.mjs → system.datasource.c103a9c2.mjs} +1 -1
- package/lib/{system.dict.ef24873d.mjs → system.dict.0c229d1c.mjs} +264 -260
- package/lib/system.dict.6b000092.js +1 -0
- package/lib/system.document.f67c2994.mjs +667 -0
- package/lib/system.document.f8fd7af0.js +1 -0
- package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.94c7ce17.mjs} +245 -265
- package/lib/system.duplicatechecking.f4cab147.js +1 -0
- package/lib/system.email.11ab6f31.js +1 -0
- package/lib/{system.email.252fd642.mjs → system.email.13823361.mjs} +10 -15
- package/lib/system.fieldsecurity.2ef2881c.js +1 -0
- package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.d35acd97.mjs} +370 -361
- package/lib/{system.file.73eeb731.mjs → system.file.30d3e7bc.mjs} +81 -149
- package/lib/system.file.b9f8320c.js +1 -0
- package/lib/{system.log.fc60f5e6.js → system.log.470d3efd.js} +1 -1
- package/lib/{system.log.b86cf57f.mjs → system.log.815840d8.mjs} +1 -1
- package/lib/{system.machine.0114001b.mjs → system.machine.1665954f.mjs} +1 -1
- package/lib/{system.machine.f1d95c86.js → system.machine.f8aff893.js} +1 -1
- package/lib/{system.notice.25ea8dca.mjs → system.notice.bef6c23c.mjs} +994 -992
- package/lib/system.notice.db26f308.js +1 -0
- package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.0d293a87.mjs} +10 -11
- package/lib/system.noticereceived.84b88b9a.js +1 -0
- package/lib/system.onlineuser.985621a6.js +1 -0
- package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.bccb1cd9.mjs} +37 -26
- package/lib/{system.org.c20fe6b2.mjs → system.org.92f4d7f1.mjs} +2 -2
- package/lib/{system.org.79ee5bd6.js → system.org.9f87a010.js} +1 -1
- package/lib/system.permissions.15e6b8b7.js +1 -0
- package/lib/system.permissions.be9238ee.mjs +972 -0
- package/lib/system.plugin.0bccfec4.js +1 -0
- package/lib/{system.plugin.45a0f530.mjs → system.plugin.af27d7ac.mjs} +500 -479
- package/lib/{system.pos.0a3d2a37.js → system.pos.61e58a92.js} +1 -1
- package/lib/{system.pos.7946a99c.mjs → system.pos.fe067063.mjs} +1 -1
- package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.0b9083c5.mjs} +246 -243
- package/lib/system.promptmanagement.e750de82.js +1 -0
- package/lib/{system.role.75da7929.mjs → system.role.67f62146.mjs} +511 -488
- package/lib/system.role.e86b60f1.js +1 -0
- package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.093d998e.mjs} +168 -165
- package/lib/system.sumberrules.810f7b55.js +1 -0
- package/lib/system.team.58ee701b.js +1 -0
- package/lib/{system.team.e6a9608e.mjs → system.team.8911fd95.mjs} +163 -161
- package/lib/system.teammembers.1880f962.js +1 -0
- package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.35564a00.mjs} +203 -198
- package/lib/{system.timers.eb0b6f3e.mjs → system.timers.4b2d509f.mjs} +2261 -2213
- package/lib/system.timers.9e956553.js +38 -0
- package/lib/system.translation.26b6bb39.js +1 -0
- package/lib/{system.translation.e34f0891.mjs → system.translation.60ec676c.mjs} +435 -429
- package/lib/system.user.134a3988.js +14 -0
- package/lib/{system.user.fa2d2997.mjs → system.user.9a02295e.mjs} +1082 -1026
- package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.96695aeb.mjs} +418 -412
- package/lib/system.useraffiliation.c2421c7e.js +1 -0
- package/lib/{system.webresource.469db736.mjs → system.webresource.016d0000.mjs} +179 -179
- package/lib/system.webresource.e92e8a8f.js +1 -0
- package/lib/{system.welcome.191e98f5.mjs → system.welcome.127b5dd4.mjs} +1 -1
- package/lib/{system.welcome.f64e49f8.js → system.welcome.ff0c85e2.js} +1 -1
- package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
- package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
- package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
- package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
- package/lib/tableDescriptions.a4196776.mjs +80 -0
- package/lib/tableDescriptions.b9b0d7fa.js +1 -0
- package/lib/tcheckboxs.7ea99d35.js +1 -0
- package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.999b7c2e.mjs} +2 -2
- package/lib/tcurrency.4afb9192.mjs +85 -0
- package/lib/tcurrency.8a2361f2.js +1 -0
- package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.606214fa.mjs} +2 -2
- package/lib/{tdatepicker.b19e689d.js → tdatepicker.8e94a60c.js} +1 -1
- package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.ccbdd153.js} +1 -1
- package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.e016d4cf.mjs} +2 -2
- package/lib/{tfile.72925615.mjs → tfile.3f39223d.mjs} +2 -2
- package/lib/{tfile.1bc381f9.js → tfile.b3ebdc71.js} +1 -1
- package/lib/{tparticipants.ca5b556c.mjs → tparticipants.5fe27540.mjs} +2 -2
- package/lib/{tparticipants.77b876e2.js → tparticipants.78c8c175.js} +1 -1
- package/lib/{translation.mains.278e4ba6.mjs → translation.mains.2688be5b.mjs} +7 -7
- package/lib/{translation.mains.1ce7e110.js → translation.mains.a6f19343.js} +1 -1
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.333daba2.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/versionControl.46a7f31a.js +1 -0
- package/lib/versionControl.c53bfb5d.mjs +488 -0
- package/lib/versionEdit.4246d5db.js +1 -0
- package/lib/versionEdit.5a8292ec.mjs +452 -0
- package/lib/view.build.85732408.mjs +1578 -0
- package/lib/view.build.e43a2077.js +1 -0
- package/lib/viewList.868edcd7.js +1 -0
- package/lib/{viewList.5a25c4b6.mjs → viewList.978b72c5.mjs} +70 -92
- package/lib/viewTree.7497ff90.js +1 -0
- package/lib/viewTree.bde43a3b.mjs +409 -0
- package/locale/en_US.js +45 -6
- package/locale/id_ID.js +45 -6
- package/locale/vi_VN.js +45 -6
- package/locale/zh_CN.js +45 -5
- package/package.json +1 -1
- package/lib/addPermission.5036013c.js +0 -1
- package/lib/approvalModel.66f49dfb.js +0 -1
- package/lib/attribute.318f485c.js +0 -1
- package/lib/attribute.a06ac9e7.mjs +0 -237
- package/lib/buildItem.6a834227.js +0 -1
- package/lib/buildItem.fd8634ab.mjs +0 -205
- package/lib/businessRules.0e4dbb3a.js +0 -1
- package/lib/components.chartbi.b043dcdc.mjs +0 -1729
- package/lib/components.chartbi.e4680eaa.js +0 -7
- package/lib/components.echarts.e4d6b13e.js +0 -3
- package/lib/components.iconselector.d712170f.js +0 -1
- package/lib/components.middleware.3bad5748.js +0 -1
- package/lib/components.sidenavmenu.b9bb9304.js +0 -1
- package/lib/components.tableumy.9cf33062.js +0 -1
- package/lib/components.tablevirtual.38d4d3d8.js +0 -1
- package/lib/components.viewformdetails.1621bc18.js +0 -1
- package/lib/components.viewloading.807bbf68.js +0 -1
- package/lib/components.xlsximport.dbd826bb.js +0 -1
- package/lib/createFile.6b37ecf2.js +0 -1
- package/lib/createFile.82d6e415.mjs +0 -239
- package/lib/createSubfolders.47af629c.js +0 -1
- package/lib/drawerContainer.604a1271.mjs +0 -146
- package/lib/drawerContainer.6a9813ce.js +0 -1
- package/lib/fileSearch.65311ded.js +0 -1
- package/lib/flow.designer.1ba3a90d.js +0 -1
- package/lib/flow.list.4eb10554.js +0 -1
- package/lib/form.build.51bd261e.js +0 -1
- package/lib/form.designer.build.5a950455.js +0 -1
- package/lib/form.designer.build.e521c9c6.mjs +0 -5091
- package/lib/formFiled.464856f5.js +0 -1
- package/lib/http.filedocument.7c656b91.js +0 -1
- package/lib/http.filedocument.d456d26a.mjs +0 -156
- package/lib/http.rolemanage.03363732.js +0 -1
- package/lib/index.69ad4631.mjs +0 -44291
- package/lib/index.cca024bf.js +0 -8
- package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
- package/lib/layoutBlocks.5e6be06f.js +0 -1
- package/lib/main.457f4326.js +0 -1
- package/lib/main.4fff412e.js +0 -1
- package/lib/main.77373aa4.mjs +0 -441
- package/lib/main.c3726602.js +0 -1
- package/lib/manage.5bb4f719.js +0 -1
- package/lib/messages.7b74736f.js +0 -9
- package/lib/messages.ad082386.mjs +0 -4889
- package/lib/moveFile.0ce803e0.js +0 -1
- package/lib/moveFile.8310ea94.mjs +0 -254
- package/lib/personal.echarts.b22fba61.mjs +0 -701
- package/lib/personal.echarts.f77bfc9e.js +0 -1
- package/lib/result.19351665.mjs +0 -526
- package/lib/result.e59c0e40.js +0 -1
- package/lib/router.config.2501ec51.js +0 -1
- package/lib/router.config.98a73167.mjs +0 -3172
- package/lib/solution.58580123.js +0 -1
- package/lib/solution.890ff164.mjs +0 -6942
- package/lib/store.config.3cb11578.js +0 -1
- package/lib/system.dict.f5708400.js +0 -1
- package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
- package/lib/system.email.070ab2be.js +0 -1
- package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
- package/lib/system.file.17a7f2ed.js +0 -1
- package/lib/system.notice.96c770a6.js +0 -1
- package/lib/system.noticereceived.dfe4ecc7.js +0 -1
- package/lib/system.onlineuser.e2e39bdc.js +0 -1
- package/lib/system.permissions.90f73461.js +0 -9
- package/lib/system.permissions.c3d34921.mjs +0 -213
- package/lib/system.plugin.b34a3b47.js +0 -1
- package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
- package/lib/system.role.03be0982.js +0 -1
- package/lib/system.sumberrules.bb228fce.js +0 -1
- package/lib/system.team.32183b63.js +0 -1
- package/lib/system.teammembers.847d8ea7.js +0 -1
- package/lib/system.timers.28691ce4.js +0 -38
- package/lib/system.translation.6237f071.js +0 -1
- package/lib/system.user.fca3f2d6.js +0 -14
- package/lib/system.useraffiliation.7547b9c7.js +0 -1
- package/lib/system.webresource.12712b90.js +0 -1
- package/lib/tcheckboxs.99361be3.js +0 -1
- package/lib/tcurrency.0ddac2f8.mjs +0 -92
- package/lib/tcurrency.62763c6d.js +0 -1
- package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
- package/lib/utils.datepicker.js.8576e2fc.js +0 -1
- package/lib/utils.util.js.50d1ec9c.js +0 -1
- package/lib/utils.util.js.82cd8447.mjs +0 -424
- package/lib/view.build.b44fd7d7.js +0 -1
- package/lib/view.build.f2a9fcfb.mjs +0 -2727
- package/lib/viewList.be5a5ec5.js +0 -1
|
@@ -1,4889 +0,0 @@
|
|
|
1
|
-
import { m as f, n as p } from "./components.chartbi.b043dcdc.mjs";
|
|
2
|
-
import { m as F, a as j, b as R, c as I, d as x, e as N, f as M, g as q, h as V, i as B, j as A, k as z, l as W, n as H, o as J, p as Q, q as G, r as U, s as X, t as Y, u as Z, v as ee } from "./http.message.5004bf60.mjs";
|
|
3
|
-
import { t as _ } from "./utils.mixins.js.be01e599.mjs";
|
|
4
|
-
import { s as te, a as P } from "./http.filemanage.c0de21d6.mjs";
|
|
5
|
-
import { o as v } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
|
|
6
|
-
import { c as se, e as S } from "./http.codegeneratemanage.2f925b10.mjs";
|
|
7
|
-
import { a as g } from "./http.main.40657f51.mjs";
|
|
8
|
-
import { E as $ } from "./components.xlsximport.cffa88fe.mjs";
|
|
9
|
-
import { u as y } from "./utils.util.js.82cd8447.mjs";
|
|
10
|
-
import { s as L } from "./http.configmanage.c23c7fa8.mjs";
|
|
11
|
-
const ae = {
|
|
12
|
-
data() {
|
|
13
|
-
return {
|
|
14
|
-
tableColumns: [
|
|
15
|
-
{
|
|
16
|
-
type: "selection",
|
|
17
|
-
width: "60",
|
|
18
|
-
fixed: !0
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
transKey: "gd.msg.temPlate.name",
|
|
22
|
-
prop: "name",
|
|
23
|
-
label: "\u540D\u79F0",
|
|
24
|
-
width: "160",
|
|
25
|
-
type: "slot",
|
|
26
|
-
slotType: "name",
|
|
27
|
-
align: "left",
|
|
28
|
-
fixed: !0,
|
|
29
|
-
showOverflowTooltip: !0
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
transKey: "gd.msg.temPlate.temPlate",
|
|
33
|
-
prop: "msg_TemplateLibraryId",
|
|
34
|
-
width: "120",
|
|
35
|
-
label: "\u6A21\u677F\u5E93",
|
|
36
|
-
type: "slot",
|
|
37
|
-
slotType: "msg_TemplateLibraryId",
|
|
38
|
-
align: "left",
|
|
39
|
-
showOverflowTooltip: !0
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
transKey: "gd.msg.temPlate.diagram",
|
|
43
|
-
prop: "example",
|
|
44
|
-
width: "160",
|
|
45
|
-
label: "\u793A\u4F8B\u56FE",
|
|
46
|
-
align: "left",
|
|
47
|
-
type: "slot",
|
|
48
|
-
slotType: "example"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
transKey: "gd.msg.temPlate.state",
|
|
52
|
-
prop: "stateCodes",
|
|
53
|
-
width: "160",
|
|
54
|
-
label: "\u72B6\u6001",
|
|
55
|
-
type: "slot",
|
|
56
|
-
slotType: "stateCodes",
|
|
57
|
-
align: "left"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
transKey: "gd.msg.temPlate.creationTime",
|
|
61
|
-
prop: "createdtime",
|
|
62
|
-
width: "160",
|
|
63
|
-
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
64
|
-
align: "center"
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
formColumns: [
|
|
68
|
-
{
|
|
69
|
-
transKey: "gd.msg.temPlate.name",
|
|
70
|
-
prop: "name",
|
|
71
|
-
label: "\u540D\u79F0",
|
|
72
|
-
effectType: "input",
|
|
73
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
74
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
75
|
-
disabled: !1,
|
|
76
|
-
rules: [{
|
|
77
|
-
required: !0,
|
|
78
|
-
message: "\u8BF7\u8F93\u5165",
|
|
79
|
-
transKey: "gd.placeholder.input",
|
|
80
|
-
trigger: "change"
|
|
81
|
-
}]
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
transKey: "gd.msg.temPlate.temPlate",
|
|
85
|
-
effectType: "selectFkMultiple",
|
|
86
|
-
prop: "msg_TemplateLibraryId",
|
|
87
|
-
label: "\u6A21\u677F\u5E93",
|
|
88
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
89
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
90
|
-
fkEntityName: "Msg_TemplateLibrary",
|
|
91
|
-
disabled: !1,
|
|
92
|
-
multiple: !1,
|
|
93
|
-
rules: []
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
transKey: "gd.msg.temPlate.diagram",
|
|
97
|
-
effectType: "image",
|
|
98
|
-
prop: "example",
|
|
99
|
-
label: "\u793A\u4F8B\u56FE",
|
|
100
|
-
placeholder: "\u8BF7\u4E0A\u4F20",
|
|
101
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
102
|
-
limit: 1,
|
|
103
|
-
rules: [{
|
|
104
|
-
required: !1,
|
|
105
|
-
message: "\u8BF7\u4E0A\u4F20",
|
|
106
|
-
transKey: "gd.placeholder.input",
|
|
107
|
-
trigger: "change"
|
|
108
|
-
}]
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
tableButtons: [
|
|
112
|
-
{
|
|
113
|
-
displayName: "\u65B0\u589E",
|
|
114
|
-
functionName: "add",
|
|
115
|
-
show: !0,
|
|
116
|
-
transKey: "gd.btn.add",
|
|
117
|
-
icon: "el-icon-plus",
|
|
118
|
-
name: "sysMsgTemPlate:add"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
displayName: "\u7F16\u8F91",
|
|
122
|
-
functionName: "edit",
|
|
123
|
-
show: !0,
|
|
124
|
-
transKey: "gd.btn.edit",
|
|
125
|
-
icon: "el-icon-edit",
|
|
126
|
-
name: "sysMsgTemPlate:edit"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
displayName: "\u5220\u9664",
|
|
130
|
-
functionName: "del",
|
|
131
|
-
show: !0,
|
|
132
|
-
transKey: "gd.btn.del",
|
|
133
|
-
icon: "el-icon-delete",
|
|
134
|
-
btnType: "danger",
|
|
135
|
-
name: "sysMsgTemPlate:delete"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
displayName: "\u590D\u5236",
|
|
139
|
-
functionName: "copy",
|
|
140
|
-
show: !0,
|
|
141
|
-
transKey: "gd.btn.copy",
|
|
142
|
-
icon: "el-icon-document-copy",
|
|
143
|
-
name: "sysMsgTemPlate:copy"
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
formButtons: [{
|
|
147
|
-
displayName: "\u786E\u5B9A",
|
|
148
|
-
functionName: "handleSubmit",
|
|
149
|
-
show: !0,
|
|
150
|
-
transKey: "gd.btn.confirm",
|
|
151
|
-
icon: "el-icon-document-checked",
|
|
152
|
-
validate: !0
|
|
153
|
-
}],
|
|
154
|
-
tableQueries: [{
|
|
155
|
-
transKey: "gd.msg.temPlate.name",
|
|
156
|
-
prop: "name",
|
|
157
|
-
label: "\u540D\u79F0",
|
|
158
|
-
effectType: "input",
|
|
159
|
-
rules: []
|
|
160
|
-
}, {
|
|
161
|
-
transKey: "gd.msg.temPlate.temPlate",
|
|
162
|
-
prop: "msg_TemplateLibraryId",
|
|
163
|
-
label: "\u6A21\u677F\u5E93",
|
|
164
|
-
effectType: "selectFkMultiple",
|
|
165
|
-
fkEntityName: "Msg_TemplateLibrary",
|
|
166
|
-
rules: []
|
|
167
|
-
}, {
|
|
168
|
-
transKey: "gd.msg.temPlate.state",
|
|
169
|
-
prop: "stateCodes",
|
|
170
|
-
label: "\u72B6\u6001",
|
|
171
|
-
effectType: "selectMultiple",
|
|
172
|
-
dictTypeCode: "state_code",
|
|
173
|
-
rules: []
|
|
174
|
-
}]
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
const ie = [
|
|
179
|
-
{
|
|
180
|
-
id: 1,
|
|
181
|
-
code: "code",
|
|
182
|
-
name: "\u552F\u4E00\u7F16\u7801",
|
|
183
|
-
transkey: "gd.msg.temPlate.dicCode"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
id: 2,
|
|
187
|
-
code: "id",
|
|
188
|
-
name: "ID",
|
|
189
|
-
transkey: "gd.msg.temPlate.dicId"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
id: 3,
|
|
193
|
-
code: "value",
|
|
194
|
-
name: "\u5B57\u5178\u503C",
|
|
195
|
-
transkey: "gd.msg.temPlate.dicName"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
id: 4,
|
|
199
|
-
code: "remark",
|
|
200
|
-
name: "\u5907\u6CE8",
|
|
201
|
-
transkey: "gd.msg.temPlate.dicRemark"
|
|
202
|
-
}
|
|
203
|
-
], le = {
|
|
204
|
-
name: "composeMiddleConnect",
|
|
205
|
-
props: {
|
|
206
|
-
record: {
|
|
207
|
-
type: Object,
|
|
208
|
-
required: !0
|
|
209
|
-
},
|
|
210
|
-
field: {
|
|
211
|
-
type: Object,
|
|
212
|
-
default: () => {
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
statu: {
|
|
216
|
-
type: Boolean,
|
|
217
|
-
default: !1
|
|
218
|
-
},
|
|
219
|
-
mode: {
|
|
220
|
-
type: String,
|
|
221
|
-
default: "add"
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
data() {
|
|
225
|
-
return {
|
|
226
|
-
dicData: ie,
|
|
227
|
-
fieldData: [],
|
|
228
|
-
fetching: !1,
|
|
229
|
-
languages: "zh_CN",
|
|
230
|
-
fieldName: "",
|
|
231
|
-
fieldDicName: "",
|
|
232
|
-
load: !1
|
|
233
|
-
};
|
|
234
|
-
},
|
|
235
|
-
components: {
|
|
236
|
-
EffectTypeIcon: $
|
|
237
|
-
},
|
|
238
|
-
computed: {
|
|
239
|
-
getFieldData() {
|
|
240
|
-
let a = this.fieldData.filter((e) => e.columnname === this.fieldName)[0];
|
|
241
|
-
return a === void 0 ? {} : a;
|
|
242
|
-
},
|
|
243
|
-
show() {
|
|
244
|
-
let a = this.record.fieldvalue;
|
|
245
|
-
return a.length == 0 || !a[0].fieldtype ? !1 : a[0].fieldtype != 1;
|
|
246
|
-
},
|
|
247
|
-
getSysTable() {
|
|
248
|
-
let a = this.field.fkentityname ? this.field.fkentityname.split(",") : [];
|
|
249
|
-
return this.tableLists.filter((t) => a.includes(t.tablename));
|
|
250
|
-
},
|
|
251
|
-
getSysDictionary() {
|
|
252
|
-
return this.$options.filters.dictDataAll().filter((t) => t.code === this.field.dicttypecode);
|
|
253
|
-
},
|
|
254
|
-
...f(["language", "tableLists"])
|
|
255
|
-
},
|
|
256
|
-
methods: {
|
|
257
|
-
operateField() {
|
|
258
|
-
this.load || this.mode === "edit" && this.getField();
|
|
259
|
-
},
|
|
260
|
-
seeField() {
|
|
261
|
-
this.load = !1, this.record.fieldtype == 2 ? (this.fieldDicName = this.record.fieldvalue[0].fieldname, this.languages = this.record.fieldvalue[0].language, this.fieldName = this.record.fieldname) : this.record.fieldtype == 3 ? (this.fieldName = this.record.fieldvalue[0].fieldname, this.tableListData = [...this.tableLists], this.fieldData = [JSON.parse(this.record.fieldvalue[0].uiconfig)]) : (this.record.fieldtype == 4 || this.record.fieldtype == 5) && this.record.fieldvalue.forEach((a, e) => {
|
|
262
|
-
this.record.fieldvalue[e] = Object.assign(a, {
|
|
263
|
-
fielddata: []
|
|
264
|
-
});
|
|
265
|
-
});
|
|
266
|
-
},
|
|
267
|
-
init() {
|
|
268
|
-
if (this.record.fieldtype == 2) {
|
|
269
|
-
this.fieldDicName = "code", this.languages = "zh_CN", this.selDict();
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
this.record.fieldtype == 3 && (this.fieldName = "", this.getField());
|
|
273
|
-
},
|
|
274
|
-
selDict() {
|
|
275
|
-
let a = this.record.fieldvalue[0], e = Object.assign(a, {
|
|
276
|
-
id: y(),
|
|
277
|
-
tablevalue: "sysDictType",
|
|
278
|
-
fieldname: this.fieldDicName,
|
|
279
|
-
language: this.languages,
|
|
280
|
-
uiconfig: null
|
|
281
|
-
});
|
|
282
|
-
this.record.fieldValue = [e];
|
|
283
|
-
},
|
|
284
|
-
changeField(a) {
|
|
285
|
-
let e = this.fieldData.filter((n) => n.columnname === a)[0], t = this.getFieldType(e), s = y(), i = {
|
|
286
|
-
columncomment: e.columncomment,
|
|
287
|
-
columnname: e.columnname,
|
|
288
|
-
fkentityname: e.fkentityname,
|
|
289
|
-
dicttypecode: e.dicttypecode,
|
|
290
|
-
transkey: e.transkey,
|
|
291
|
-
effecttype: e.effecttype
|
|
292
|
-
}, l = {
|
|
293
|
-
fieldtype: t.code,
|
|
294
|
-
fieldname: a,
|
|
295
|
-
title: e.columncomment,
|
|
296
|
-
transkey: e.transkey,
|
|
297
|
-
fieldvalue: [],
|
|
298
|
-
id: s,
|
|
299
|
-
tablevalue: this.getSysTable[0].tablename,
|
|
300
|
-
uiconfig: JSON.stringify(i),
|
|
301
|
-
language: null
|
|
302
|
-
};
|
|
303
|
-
if (t.code != 1) {
|
|
304
|
-
let n = {
|
|
305
|
-
id: "",
|
|
306
|
-
pid: s,
|
|
307
|
-
title: "",
|
|
308
|
-
tablevalue: null,
|
|
309
|
-
fieldname: null,
|
|
310
|
-
fieldtype: null,
|
|
311
|
-
varnumber: 1e4,
|
|
312
|
-
vartype: this.record.vartype,
|
|
313
|
-
sysvalue: "",
|
|
314
|
-
transkey: null,
|
|
315
|
-
fieldvalue: [],
|
|
316
|
-
uiconfig: null,
|
|
317
|
-
language: null
|
|
318
|
-
};
|
|
319
|
-
l = Object.assign(l, {
|
|
320
|
-
fieldvalue: [n]
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
this.record.fieldvalue = [Object.assign(this.record.fieldvalue[0], l)], this.$nextTick(() => {
|
|
324
|
-
setTimeout(() => {
|
|
325
|
-
this.$refs.composeMiddleConnect && this.$refs.composeMiddleConnect.init();
|
|
326
|
-
}, 0);
|
|
327
|
-
});
|
|
328
|
-
},
|
|
329
|
-
getField() {
|
|
330
|
-
this.load = !0, this.fetching = !0;
|
|
331
|
-
let a = {
|
|
332
|
-
codeGenId: this.getSysTable[0].id
|
|
333
|
-
}, e = ["about", "participants", "fk", "user"];
|
|
334
|
-
v(a).then((t) => {
|
|
335
|
-
if (t.code === 200) {
|
|
336
|
-
let s = t.data.filter((i) => !e.includes(i.effecttype));
|
|
337
|
-
this.fieldData = s;
|
|
338
|
-
}
|
|
339
|
-
this.fetching = !1;
|
|
340
|
-
});
|
|
341
|
-
},
|
|
342
|
-
getFieldType(a) {
|
|
343
|
-
return this.getDictionary("Msg_VariableValueType").filter((s) => s.remark.split(",").includes(a.effecttype))[0];
|
|
344
|
-
},
|
|
345
|
-
getDictionary(a) {
|
|
346
|
-
return this.$options.filters.dictData(a);
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
mounted() {
|
|
350
|
-
this.statu && this.seeField();
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
var ne = function() {
|
|
354
|
-
var e = this, t = e._self._c;
|
|
355
|
-
return t("div", [e.record.fieldtype == 2 ? t("div", { staticClass: "msgfield" }, [t("div", { staticClass: "r" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.field.dicttypecode, callback: function(s) {
|
|
356
|
-
e.$set(e.field, "dicttypecode", s);
|
|
357
|
-
}, expression: "field.dicttypecode" } }, e._l(e.getSysDictionary, function(s) {
|
|
358
|
-
return t("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } }, [t("span", [e._v(e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " " + e._s(s.code))])]);
|
|
359
|
-
}), 1)], 1), t("div", { staticClass: "r" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.statu }, on: { change: e.selDict }, model: { value: e.fieldDicName, callback: function(s) {
|
|
360
|
-
e.fieldDicName = s;
|
|
361
|
-
}, expression: "fieldDicName" } }, e._l(e.dicData, function(s) {
|
|
362
|
-
return t("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } }, [t("span", [e._v(e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " " + e._s(s.code))])]);
|
|
363
|
-
}), 1)], 1), t("div", { staticClass: "r" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.statu }, on: { change: e.selDict }, model: { value: e.languages, callback: function(s) {
|
|
364
|
-
e.languages = s;
|
|
365
|
-
}, expression: "languages" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.settings.chineseLanguage", "\u7B80\u4F53\u4E2D\u6587"), value: "zh_CN" } }), t("el-option", { attrs: { label: e.$i18nt("gd.settings.englishLanguage", "English (USA)"), value: "en_US" } }), t("el-option", { attrs: { label: e.$i18nt("gd.settings.vietnamLanguage", "Ti\u1EBFng Vi\u1EC7t"), value: "vi_VN" } }), t("el-option", { attrs: { label: e.$i18nt("gd.settings.indonesiaLanguage", "Indonesia"), value: "id_ID" } })], 1)], 1)]) : e._e(), e.record.fieldtype == 3 ? [t("div", { staticClass: "msgfield" }, [t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.field.fkentityname, callback: function(s) {
|
|
366
|
-
e.$set(e.field, "fkentityname", s);
|
|
367
|
-
}, expression: "field.fkentityname" } }, e._l(e.getSysTable, function(s) {
|
|
368
|
-
return t("el-option", { key: s.tablename, attrs: { value: s.tablename, label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
369
|
-
}), 1)], 1), t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.statu }, on: { focus: e.operateField, change: e.changeField }, model: { value: e.fieldName, callback: function(s) {
|
|
370
|
-
e.fieldName = s;
|
|
371
|
-
}, expression: "fieldName" } }, e._l(e.fieldData, function(s) {
|
|
372
|
-
return t("el-option", { key: s.columnname, attrs: { value: s.columnname, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1);
|
|
373
|
-
}), 1)], 1)]), e.show ? t("composeMiddleConnect", { ref: "composeMiddleConnect", attrs: { record: e.record.fieldvalue[0], field: e.getFieldData, statu: e.statu, mode: e.mode } }) : e._e()] : e._e()], 2);
|
|
374
|
-
}, re = [], oe = /* @__PURE__ */ p(
|
|
375
|
-
le,
|
|
376
|
-
ne,
|
|
377
|
-
re,
|
|
378
|
-
!1,
|
|
379
|
-
null,
|
|
380
|
-
"9a781ce0",
|
|
381
|
-
null,
|
|
382
|
-
null
|
|
383
|
-
);
|
|
384
|
-
const de = oe.exports;
|
|
385
|
-
const ce = {
|
|
386
|
-
name: "composeAbout",
|
|
387
|
-
props: {
|
|
388
|
-
record: {
|
|
389
|
-
type: Object,
|
|
390
|
-
required: !0
|
|
391
|
-
},
|
|
392
|
-
field: {
|
|
393
|
-
type: Object,
|
|
394
|
-
default: () => {
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
statu: {
|
|
398
|
-
type: Boolean,
|
|
399
|
-
default: !1
|
|
400
|
-
},
|
|
401
|
-
mode: {
|
|
402
|
-
type: String,
|
|
403
|
-
default: "add"
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
components: {
|
|
407
|
-
composeMiddleConnect: de,
|
|
408
|
-
EffectTypeIcon: $
|
|
409
|
-
},
|
|
410
|
-
data() {
|
|
411
|
-
return {
|
|
412
|
-
fkEntityName: [],
|
|
413
|
-
selShow: !0,
|
|
414
|
-
fetching: !1,
|
|
415
|
-
fieldData: [],
|
|
416
|
-
fieldValue: [],
|
|
417
|
-
tableName: "",
|
|
418
|
-
showRecord: !1,
|
|
419
|
-
load: []
|
|
420
|
-
};
|
|
421
|
-
},
|
|
422
|
-
computed: {
|
|
423
|
-
getSysTable() {
|
|
424
|
-
let a = this.fkEntityName.filter((t) => this.fieldValue.filter((i) => i.tablevalue === t)[0] === void 0);
|
|
425
|
-
return this.tableLists.filter((t) => a.includes(t.tablename));
|
|
426
|
-
},
|
|
427
|
-
show() {
|
|
428
|
-
return !(this.fieldValue.length >= this.fkEntityName.length);
|
|
429
|
-
},
|
|
430
|
-
...f(["language", "tableLists"])
|
|
431
|
-
},
|
|
432
|
-
methods: {
|
|
433
|
-
operateField(a, e) {
|
|
434
|
-
if (this.load.filter((i) => i.ind == e)[0] !== void 0 || this.mode !== "edit")
|
|
435
|
-
return;
|
|
436
|
-
let s = this.tableLists.filter((i) => i.tablename == a.tablevalue)[0];
|
|
437
|
-
this.getField(s, e);
|
|
438
|
-
},
|
|
439
|
-
delItem(a) {
|
|
440
|
-
this.record.fieldvalue = this.record.fieldvalue.filter((e, t) => t !== a), this.fieldValue = this.fieldValue.filter((e, t) => t !== a);
|
|
441
|
-
},
|
|
442
|
-
getFieldData(a) {
|
|
443
|
-
let e = this.record.fieldvalue[a].fieldname, t = this.fieldValue[a].fielddata.filter((s) => s.columnname === e)[0];
|
|
444
|
-
return t === void 0 ? {} : t;
|
|
445
|
-
},
|
|
446
|
-
selectTable(a) {
|
|
447
|
-
let e = this.tableLists.filter((s) => s.tablename == a)[0], t = {
|
|
448
|
-
id: y(),
|
|
449
|
-
pid: this.record.id,
|
|
450
|
-
title: "",
|
|
451
|
-
tablevalue: e.tablename,
|
|
452
|
-
fieldname: "",
|
|
453
|
-
fieldtype: null,
|
|
454
|
-
varnumber: 1e4,
|
|
455
|
-
vartype: this.record.vartype,
|
|
456
|
-
sysvalue: "",
|
|
457
|
-
transkey: null,
|
|
458
|
-
fieldvalue: []
|
|
459
|
-
};
|
|
460
|
-
this.fieldValue = this.fieldValue.concat([
|
|
461
|
-
Object.assign(
|
|
462
|
-
{
|
|
463
|
-
...t
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
fielddata: []
|
|
467
|
-
}
|
|
468
|
-
)
|
|
469
|
-
]), this.record.fieldvalue = this.record.fieldvalue.concat([t]), this.getField(e, this.fieldValue.length - 1), this.selShow = !0, this.tableName = "";
|
|
470
|
-
},
|
|
471
|
-
changeField(a, e) {
|
|
472
|
-
let t = this.fieldValue[e].fielddata.filter((o) => o.columnname === a)[0], s = this.getFieldType(t), i = this.record.fieldvalue[e], l = y(), n = {
|
|
473
|
-
columncomment: t.columncomment,
|
|
474
|
-
columnname: t.columnname,
|
|
475
|
-
fkentityname: t.fkentityname,
|
|
476
|
-
dicttypecode: t.dicttypecode,
|
|
477
|
-
transkey: t.transkey,
|
|
478
|
-
effecttype: t.effecttype
|
|
479
|
-
}, r = {
|
|
480
|
-
fieldtype: s.code,
|
|
481
|
-
fieldname: a,
|
|
482
|
-
title: t.columncomment,
|
|
483
|
-
transkey: t.transkey,
|
|
484
|
-
fieldvalue: [],
|
|
485
|
-
id: l,
|
|
486
|
-
uiconfig: JSON.stringify(n),
|
|
487
|
-
language: null
|
|
488
|
-
};
|
|
489
|
-
if (s.code != 1) {
|
|
490
|
-
let o = {
|
|
491
|
-
id: "",
|
|
492
|
-
pid: l,
|
|
493
|
-
title: "",
|
|
494
|
-
tablevalue: null,
|
|
495
|
-
fieldname: null,
|
|
496
|
-
fieldtype: null,
|
|
497
|
-
varnumber: 1e4,
|
|
498
|
-
vartype: i.vartype,
|
|
499
|
-
sysvalue: "",
|
|
500
|
-
transkey: null,
|
|
501
|
-
fieldvalue: [],
|
|
502
|
-
language: null
|
|
503
|
-
};
|
|
504
|
-
r = Object.assign(r, {
|
|
505
|
-
fieldvalue: [o]
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
this.record.fieldvalue[e] = Object.assign(this.record.fieldvalue[e], r), this.$nextTick(() => {
|
|
509
|
-
setTimeout(() => {
|
|
510
|
-
let o = `composeMiddle${e}`;
|
|
511
|
-
this.$refs[o] && this.$refs[o][0] && this.$refs[o][0].init();
|
|
512
|
-
}, 0);
|
|
513
|
-
});
|
|
514
|
-
},
|
|
515
|
-
getField(a, e) {
|
|
516
|
-
let t = this.load.filter((i) => i.ind != e);
|
|
517
|
-
this.load = t.concat({
|
|
518
|
-
ind: e
|
|
519
|
-
}), this.fetchings = !0, this.mode === "add" && (this.fieldValue[e].fielddata = []);
|
|
520
|
-
let s = {
|
|
521
|
-
codeGenId: a.id
|
|
522
|
-
};
|
|
523
|
-
v(s).then((i) => {
|
|
524
|
-
if (i.code === 200) {
|
|
525
|
-
let l = i.data.filter((n) => !(n.effecttype === "about" || n.effecttype === "participants"));
|
|
526
|
-
this.fieldValue[e].fielddata = l;
|
|
527
|
-
}
|
|
528
|
-
this.fetchings = !1;
|
|
529
|
-
});
|
|
530
|
-
},
|
|
531
|
-
getFieldType(a) {
|
|
532
|
-
return this.getDictionary("Msg_VariableValueType").filter((s) => s.remark.split(",").includes(a.effecttype))[0];
|
|
533
|
-
},
|
|
534
|
-
mouseover() {
|
|
535
|
-
this.selShow = !1;
|
|
536
|
-
},
|
|
537
|
-
init() {
|
|
538
|
-
let a = this.field.fkentityname.split(",");
|
|
539
|
-
this.fkEntityName = a, this.fieldValue = [], this.record.fieldvalue = [];
|
|
540
|
-
},
|
|
541
|
-
seeField() {
|
|
542
|
-
this.load = [];
|
|
543
|
-
let a = JSON.parse(this.record.uiconfig);
|
|
544
|
-
this.fkEntityName = a.fkentityname.split(",");
|
|
545
|
-
let e = [];
|
|
546
|
-
this.record.fieldvalue.forEach((t) => {
|
|
547
|
-
e.push(
|
|
548
|
-
Object.assign(
|
|
549
|
-
{
|
|
550
|
-
...t
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
fielddata: [JSON.parse(t.uiconfig)]
|
|
554
|
-
}
|
|
555
|
-
)
|
|
556
|
-
);
|
|
557
|
-
}), this.fieldValue = e, this.showRecord = !0;
|
|
558
|
-
},
|
|
559
|
-
getDictionary(a) {
|
|
560
|
-
return this.$options.filters.dictData(a);
|
|
561
|
-
}
|
|
562
|
-
},
|
|
563
|
-
created() {
|
|
564
|
-
this.statu ? this.seeField() : (this.showRecord = !0, this.init());
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
var ue = function() {
|
|
568
|
-
var e = this, t = e._self._c;
|
|
569
|
-
return e.showRecord ? t("div", [e._l(e.record.fieldvalue, function(s, i) {
|
|
570
|
-
return t("div", { key: i }, [t("div", { staticClass: "msgfield" }, [t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: s.tablevalue, callback: function(l) {
|
|
571
|
-
e.$set(s, "tablevalue", l);
|
|
572
|
-
}, expression: "item.tablevalue" } }, e._l(e.tableLists, function(l) {
|
|
573
|
-
return t("el-option", { key: l.tablename, attrs: { value: l.tablename, label: e.$i18nt(`Dynamics.${l.transkey}`, l.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.busname)) + " " + e._s(l.tablename) + " ")]);
|
|
574
|
-
}), 1)], 1), t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.statu }, on: { focus: function(l) {
|
|
575
|
-
return e.operateField(s, i);
|
|
576
|
-
}, change: function(l) {
|
|
577
|
-
return e.changeField(l, i);
|
|
578
|
-
} }, model: { value: s.fieldname, callback: function(l) {
|
|
579
|
-
e.$set(s, "fieldname", l);
|
|
580
|
-
}, expression: "item.fieldname" } }, e._l(e.fieldValue[i].fielddata, function(l) {
|
|
581
|
-
return t("el-option", { key: l.columnname, attrs: { value: l.columnname, label: l.columncomment } }, [t("EffectTypeIcon", { attrs: { effectType: l.effecttype } }), t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)) + " (" + e._s(l.columnname) + ") ")])], 1);
|
|
582
|
-
}), 1)], 1), e.statu ? e._e() : t("div", { staticClass: "del" }, [t("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "16px", color: "#ff4d4f" }, on: { click: function(l) {
|
|
583
|
-
return e.delItem(i);
|
|
584
|
-
} } })])]), s.fieldvalue && s.fieldvalue.length > 0 ? t("div", { staticClass: "msgfieldb" }, [t("span", { staticClass: "gd-icons gd-icon-icon_shangxiaji", staticStyle: { "font-size": "24px" } }), t("div", { staticClass: "r" }, [t("composeMiddleConnect", { ref: `composeMiddle${i}`, refInFor: !0, attrs: { record: s, field: e.getFieldData(i), statu: e.statu, mode: e.mode } })], 1)]) : e._e()]);
|
|
585
|
-
}), e.show && !e.statu ? t("div", [e.selShow ? t("a", { staticClass: "add", on: { mouseover: e.mouseover } }, [e._v(e._s(e.$i18nt("gd.btn.choice", "\u9009\u62E9")))]) : t("div", { staticClass: "msgfield" }, [t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.selectTable }, model: { value: e.tableName, callback: function(s) {
|
|
586
|
-
e.tableName = s;
|
|
587
|
-
}, expression: "tableName" } }, e._l(e.getSysTable, function(s) {
|
|
588
|
-
return t("el-option", { key: s.tablename, attrs: { value: s.tablename, label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
589
|
-
}), 1)], 1)])]) : e._e()], 2) : e._e();
|
|
590
|
-
}, pe = [], fe = /* @__PURE__ */ p(
|
|
591
|
-
ce,
|
|
592
|
-
ue,
|
|
593
|
-
pe,
|
|
594
|
-
!1,
|
|
595
|
-
null,
|
|
596
|
-
"b020c40b",
|
|
597
|
-
null,
|
|
598
|
-
null
|
|
599
|
-
);
|
|
600
|
-
const me = fe.exports;
|
|
601
|
-
const he = [
|
|
602
|
-
{
|
|
603
|
-
id: 1,
|
|
604
|
-
code: "code",
|
|
605
|
-
name: "\u552F\u4E00\u7F16\u7801",
|
|
606
|
-
transkey: "gd.msg.temPlate.dicCode"
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
id: 2,
|
|
610
|
-
code: "id",
|
|
611
|
-
name: "ID",
|
|
612
|
-
transkey: "gd.msg.temPlate.dicId"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
id: 3,
|
|
616
|
-
code: "value",
|
|
617
|
-
name: "\u5B57\u5178\u503C",
|
|
618
|
-
transkey: "gd.msg.temPlate.dicName"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
id: 4,
|
|
622
|
-
code: "remark",
|
|
623
|
-
name: "\u5907\u6CE8",
|
|
624
|
-
transkey: "gd.msg.temPlate.dicRemark"
|
|
625
|
-
}
|
|
626
|
-
], ge = {
|
|
627
|
-
name: "composeMiddle",
|
|
628
|
-
props: {
|
|
629
|
-
record: {
|
|
630
|
-
type: Object,
|
|
631
|
-
required: !0
|
|
632
|
-
},
|
|
633
|
-
field: {
|
|
634
|
-
type: Object,
|
|
635
|
-
default: () => {
|
|
636
|
-
}
|
|
637
|
-
},
|
|
638
|
-
statu: {
|
|
639
|
-
type: Boolean,
|
|
640
|
-
default: !1
|
|
641
|
-
},
|
|
642
|
-
mode: {
|
|
643
|
-
type: String,
|
|
644
|
-
default: "add"
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
data() {
|
|
648
|
-
return {
|
|
649
|
-
dicData: he,
|
|
650
|
-
fieldData: [],
|
|
651
|
-
fetching: !1,
|
|
652
|
-
languages: "zh_CN",
|
|
653
|
-
fieldName: "",
|
|
654
|
-
fieldDicName: "",
|
|
655
|
-
load: !1
|
|
656
|
-
};
|
|
657
|
-
},
|
|
658
|
-
components: {
|
|
659
|
-
composeAbout: me,
|
|
660
|
-
EffectTypeIcon: $
|
|
661
|
-
},
|
|
662
|
-
computed: {
|
|
663
|
-
getFieldData() {
|
|
664
|
-
if (this.fieldData.length === 0)
|
|
665
|
-
return {};
|
|
666
|
-
let a = this.fieldData.filter((e) => e.columnname === this.fieldName)[0];
|
|
667
|
-
return a || {};
|
|
668
|
-
},
|
|
669
|
-
show() {
|
|
670
|
-
let a = this.record.fieldvalue;
|
|
671
|
-
return a.length == 0 || !a[0].fieldtype ? !1 : a[0].fieldtype != 1;
|
|
672
|
-
},
|
|
673
|
-
getSysTable() {
|
|
674
|
-
let a = this.field.fkentityname ? this.field.fkentityname.split(",") : [];
|
|
675
|
-
return this.tableLists.filter((t) => a.includes(t.tablename));
|
|
676
|
-
},
|
|
677
|
-
getSysDictionary() {
|
|
678
|
-
return this.$options.filters.dictDataAll().filter((t) => t.code === this.field.dicttypecode);
|
|
679
|
-
},
|
|
680
|
-
...f(["language", "tableLists"])
|
|
681
|
-
},
|
|
682
|
-
methods: {
|
|
683
|
-
operateField() {
|
|
684
|
-
this.load || this.mode === "edit" && this.getField();
|
|
685
|
-
},
|
|
686
|
-
seeField() {
|
|
687
|
-
this.load = !1, this.record.fieldtype == 2 ? (this.fieldDicName = this.record.fieldvalue[0].fieldname, this.languages = this.record.fieldvalue[0].language, this.fieldName = this.record.fieldname) : this.record.fieldtype == 3 ? (this.fieldName = this.record.fieldvalue[0].fieldname, this.tableListData = [...this.tableLists], this.fieldData = [JSON.parse(this.record.fieldvalue[0].uiconfig)]) : (this.record.fieldtype == 4 || this.record.fieldtype == 5) && this.record.fieldvalue.forEach((a, e) => {
|
|
688
|
-
this.record.fieldvalue[e] = Object.assign(a, {
|
|
689
|
-
fielddata: []
|
|
690
|
-
});
|
|
691
|
-
});
|
|
692
|
-
},
|
|
693
|
-
init() {
|
|
694
|
-
if (console.log(this.record, this.field), this.record.fieldtype == 2) {
|
|
695
|
-
this.fieldDicName = "code", this.languages = "zh_CN", this.selDict();
|
|
696
|
-
return;
|
|
697
|
-
}
|
|
698
|
-
this.record.fieldtype == 3 && (this.fieldName = "", this.getField());
|
|
699
|
-
},
|
|
700
|
-
selDict() {
|
|
701
|
-
let a = this.record.fieldvalue[0], e = Object.assign(a, {
|
|
702
|
-
id: y(),
|
|
703
|
-
tablevalue: "sysDictType",
|
|
704
|
-
fieldname: this.fieldDicName,
|
|
705
|
-
language: this.languages,
|
|
706
|
-
uiconfig: null
|
|
707
|
-
});
|
|
708
|
-
this.record.fieldvalue = [e];
|
|
709
|
-
},
|
|
710
|
-
changeField(a) {
|
|
711
|
-
let e = this.fieldData.filter((n) => n.columnname === a)[0], t = this.getFieldType(e), s = y(), i = {
|
|
712
|
-
columncomment: e.columncomment,
|
|
713
|
-
columnname: e.columnname,
|
|
714
|
-
fkentityname: e.fkentityname,
|
|
715
|
-
dicttypecode: e.dicttypecode,
|
|
716
|
-
transkey: e.transkey,
|
|
717
|
-
effecttype: e.effecttype
|
|
718
|
-
}, l = {
|
|
719
|
-
fieldtype: t.code,
|
|
720
|
-
fieldname: a,
|
|
721
|
-
title: e.columncomment,
|
|
722
|
-
transkey: e.transkey,
|
|
723
|
-
fieldvalue: [],
|
|
724
|
-
id: s,
|
|
725
|
-
tablevalue: this.getSysTable[0].tablename,
|
|
726
|
-
uiconfig: JSON.stringify(i),
|
|
727
|
-
language: null
|
|
728
|
-
};
|
|
729
|
-
if (t.code != 1) {
|
|
730
|
-
let n = {
|
|
731
|
-
id: "",
|
|
732
|
-
pid: s,
|
|
733
|
-
title: "",
|
|
734
|
-
tablevalue: null,
|
|
735
|
-
fieldname: null,
|
|
736
|
-
fieldtype: null,
|
|
737
|
-
varnumber: 1e3,
|
|
738
|
-
vartype: this.record.vartype,
|
|
739
|
-
sysvalue: "",
|
|
740
|
-
transkey: null,
|
|
741
|
-
fieldvalue: [],
|
|
742
|
-
language: null,
|
|
743
|
-
uiconfig: null
|
|
744
|
-
};
|
|
745
|
-
l = Object.assign(l, {
|
|
746
|
-
fieldvalue: [n]
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
this.record.fieldvalue = [Object.assign(this.record.fieldvalue[0], l)], this.$nextTick(() => {
|
|
750
|
-
setTimeout(() => {
|
|
751
|
-
this.$refs.composeMiddle && this.$refs.composeMiddle.init();
|
|
752
|
-
}, 0);
|
|
753
|
-
});
|
|
754
|
-
},
|
|
755
|
-
getField(a) {
|
|
756
|
-
this.load = !0, this.fetching = !0;
|
|
757
|
-
let e = {
|
|
758
|
-
codeGenId: a || this.getSysTable[0].id
|
|
759
|
-
};
|
|
760
|
-
v(e).then((t) => {
|
|
761
|
-
if (t.code === 200) {
|
|
762
|
-
let s = t.data.filter((i) => !(i.effecttype == "about" && i.columnname == (i.relations + "_AboutTable").toLowerCase()));
|
|
763
|
-
this.fieldData = s;
|
|
764
|
-
}
|
|
765
|
-
this.fetching = !1;
|
|
766
|
-
});
|
|
767
|
-
},
|
|
768
|
-
getFieldType(a) {
|
|
769
|
-
return this.getDictionary("Msg_VariableValueType").filter((s) => s.remark.split(",").includes(a.effecttype))[0];
|
|
770
|
-
},
|
|
771
|
-
getDictionary(a) {
|
|
772
|
-
return this.$options.filters.dictData(a);
|
|
773
|
-
},
|
|
774
|
-
filterOption(a, e) {
|
|
775
|
-
return e.componentOptions.children[0].text.toLowerCase().indexOf(a.toLowerCase()) >= 0;
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
mounted() {
|
|
779
|
-
this.statu && this.seeField();
|
|
780
|
-
}
|
|
781
|
-
};
|
|
782
|
-
var ye = function() {
|
|
783
|
-
var e = this, t = e._self._c;
|
|
784
|
-
return t("div", [e.record.fieldtype == 2 ? t("div", { staticClass: "msgfield" }, [t("div", { staticClass: "r" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.field.dicttypecode, callback: function(s) {
|
|
785
|
-
e.$set(e.field, "dicttypecode", s);
|
|
786
|
-
}, expression: "field.dicttypecode" } }, e._l(e.getSysDictionary, function(s) {
|
|
787
|
-
return t("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
788
|
-
}), 1)], 1), t("div", { staticClass: "r" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.statu }, on: { change: e.selDict }, model: { value: e.fieldDicName, callback: function(s) {
|
|
789
|
-
e.fieldDicName = s;
|
|
790
|
-
}, expression: "fieldDicName" } }, e._l(e.dicData, function(s) {
|
|
791
|
-
return t("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
792
|
-
}), 1)], 1), t("div", { staticClass: "r" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.statu }, on: { change: e.selDict }, model: { value: e.languages, callback: function(s) {
|
|
793
|
-
e.languages = s;
|
|
794
|
-
}, expression: "languages" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.settings.chineseLanguage", "\u7B80\u4F53\u4E2D\u6587"), value: "zh_CN" } }), t("el-option", { attrs: { label: e.$i18nt("gd.settings.englishLanguage", "English (USA)"), value: "en_US" } }), t("el-option", { attrs: { label: e.$i18nt("gd.settings.vietnamLanguage", "Ti\u1EBFng Vi\u1EC7t"), value: "vi_VN" } }), t("el-option", { attrs: { label: e.$i18nt("gd.settings.indonesiaLanguage", "Indonesia"), value: "id_ID" } })], 1)], 1)]) : e._e(), e.record.fieldtype == 3 ? [t("div", { staticClass: "msgfield" }, [t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.field.fkentityname, callback: function(s) {
|
|
795
|
-
e.$set(e.field, "fkentityname", s);
|
|
796
|
-
}, expression: "field.fkentityname" } }, e._l(e.getSysTable, function(s) {
|
|
797
|
-
return t("el-option", { key: s.tablename, attrs: { value: s.tablename, label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
798
|
-
}), 1)], 1), t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.statu }, on: { focus: e.operateField, change: e.changeField }, model: { value: e.fieldName, callback: function(s) {
|
|
799
|
-
e.fieldName = s;
|
|
800
|
-
}, expression: "fieldName" } }, e._l(e.fieldData, function(s) {
|
|
801
|
-
return t("el-option", { key: s.columnname, attrs: { value: s.columnname, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1);
|
|
802
|
-
}), 1)], 1)]), t("div", { staticStyle: { "padding-left": "12px" } }, [e.show ? t("composeMiddle", { ref: "composeMiddle", attrs: { record: e.record.fieldvalue[0], field: e.getFieldData, statu: e.statu, mode: e.mode } }) : e._e()], 1)] : e._e(), e.record.fieldtype == 4 || e.record.fieldtype == 5 ? t("composeAbout", { attrs: { record: e.record, field: e.field, statu: e.statu, mode: e.mode } }) : e._e()], 2);
|
|
803
|
-
}, be = [], ve = /* @__PURE__ */ p(
|
|
804
|
-
ge,
|
|
805
|
-
ye,
|
|
806
|
-
be,
|
|
807
|
-
!1,
|
|
808
|
-
null,
|
|
809
|
-
"94c5bf09",
|
|
810
|
-
null,
|
|
811
|
-
null
|
|
812
|
-
);
|
|
813
|
-
const _e = ve.exports;
|
|
814
|
-
const $e = {
|
|
815
|
-
props: {
|
|
816
|
-
statu: {
|
|
817
|
-
type: Boolean,
|
|
818
|
-
default: !1
|
|
819
|
-
},
|
|
820
|
-
record: {
|
|
821
|
-
type: Object,
|
|
822
|
-
default: () => {
|
|
823
|
-
}
|
|
824
|
-
},
|
|
825
|
-
mode: {
|
|
826
|
-
type: String,
|
|
827
|
-
default: "add"
|
|
828
|
-
}
|
|
829
|
-
},
|
|
830
|
-
data() {
|
|
831
|
-
return {
|
|
832
|
-
ind: 0,
|
|
833
|
-
varType: "1",
|
|
834
|
-
sysValue: "",
|
|
835
|
-
tableValue: "",
|
|
836
|
-
field: "",
|
|
837
|
-
tableListData: [],
|
|
838
|
-
fetching: !1,
|
|
839
|
-
fetchings: !1,
|
|
840
|
-
fieldValue: [],
|
|
841
|
-
id: "",
|
|
842
|
-
fieldData: [],
|
|
843
|
-
load: !1,
|
|
844
|
-
sysConfigDate: [],
|
|
845
|
-
sysconfigid: "",
|
|
846
|
-
cachekey: ""
|
|
847
|
-
};
|
|
848
|
-
},
|
|
849
|
-
components: {
|
|
850
|
-
composeMiddle: _e,
|
|
851
|
-
EffectTypeIcon: $
|
|
852
|
-
},
|
|
853
|
-
computed: {
|
|
854
|
-
getMsgTemp() {
|
|
855
|
-
return this.getDictionary("msg_temp").filter((e) => this.statu ? e.code == this.varType : !0);
|
|
856
|
-
},
|
|
857
|
-
getFieldData() {
|
|
858
|
-
if (this.fieldData.length === 0)
|
|
859
|
-
return {};
|
|
860
|
-
let a = this.fieldData.filter((e) => e.columnname === this.field)[0];
|
|
861
|
-
return a === void 0 ? {} : a;
|
|
862
|
-
},
|
|
863
|
-
show() {
|
|
864
|
-
return this.fieldValue.length == 0 || !this.fieldValue[0].fieldtype ? !1 : this.fieldValue[0].fieldtype != 1;
|
|
865
|
-
},
|
|
866
|
-
...f(["language", "tableLists"])
|
|
867
|
-
},
|
|
868
|
-
methods: {
|
|
869
|
-
operateField() {
|
|
870
|
-
this.load || this.mode === "edit" && this.getField();
|
|
871
|
-
},
|
|
872
|
-
changeField(a) {
|
|
873
|
-
let e = this.fieldData.filter((n) => n.columnname === a)[0], t = this.getFieldType(e), s = this.fieldValue[0], i = {
|
|
874
|
-
columncomment: e.columncomment,
|
|
875
|
-
columnname: e.columnname,
|
|
876
|
-
fkentityname: e.fkentityname,
|
|
877
|
-
dicttypecode: e.dicttypecode,
|
|
878
|
-
transkey: e.transkey,
|
|
879
|
-
effecttype: e.effecttype
|
|
880
|
-
}, l = {
|
|
881
|
-
fieldtype: t.code,
|
|
882
|
-
fieldname: a,
|
|
883
|
-
title: e.columncomment,
|
|
884
|
-
transkey: e.transkey,
|
|
885
|
-
fieldvalue: [],
|
|
886
|
-
uiconfig: JSON.stringify(i),
|
|
887
|
-
language: null
|
|
888
|
-
};
|
|
889
|
-
if (t.code != 1) {
|
|
890
|
-
let n = {
|
|
891
|
-
id: "",
|
|
892
|
-
pid: s.id,
|
|
893
|
-
title: "",
|
|
894
|
-
tablevalue: null,
|
|
895
|
-
fieldname: null,
|
|
896
|
-
fieldtype: "1",
|
|
897
|
-
varnumber: 1e4,
|
|
898
|
-
vartype: s.vartype,
|
|
899
|
-
sysvalue: "",
|
|
900
|
-
transkey: null,
|
|
901
|
-
fieldvalue: [],
|
|
902
|
-
language: null
|
|
903
|
-
};
|
|
904
|
-
l = Object.assign(l, {
|
|
905
|
-
fieldvalue: [n]
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
this.fieldValue = [Object.assign(this.fieldValue[0], l)], this.$nextTick(() => {
|
|
909
|
-
setTimeout(() => {
|
|
910
|
-
this.$refs.composeMiddle && this.$refs.composeMiddle.init();
|
|
911
|
-
}, 0);
|
|
912
|
-
});
|
|
913
|
-
},
|
|
914
|
-
getField(a) {
|
|
915
|
-
this.load = !0, this.fieldData = [];
|
|
916
|
-
let e = this.tableLists.filter((s) => s.tablename == this.fieldValue[0].tablevalue)[0], t = {
|
|
917
|
-
codeGenId: a || e.id
|
|
918
|
-
};
|
|
919
|
-
v(t).then((s) => {
|
|
920
|
-
if (s.code === 200) {
|
|
921
|
-
let i = s.data.filter((l) => !(l.effecttype == "about" && l.columnname == (l.relations + "_AboutTable").toLowerCase()));
|
|
922
|
-
this.fieldData = i;
|
|
923
|
-
}
|
|
924
|
-
});
|
|
925
|
-
},
|
|
926
|
-
changeTable(a) {
|
|
927
|
-
let e = this.tableLists.filter((s) => s.tablename == a)[0], t = {
|
|
928
|
-
id: y(),
|
|
929
|
-
pid: 0,
|
|
930
|
-
title: "",
|
|
931
|
-
tablevalue: e.tablename,
|
|
932
|
-
fieldname: null,
|
|
933
|
-
fieldtype: null,
|
|
934
|
-
varnumber: 1e4,
|
|
935
|
-
vartype: this.varType,
|
|
936
|
-
sysvalue: "",
|
|
937
|
-
transkey: null,
|
|
938
|
-
fieldvalue: []
|
|
939
|
-
};
|
|
940
|
-
this.fieldValue = [t], this.field = "", this.getField();
|
|
941
|
-
},
|
|
942
|
-
searchTable(a) {
|
|
943
|
-
return this.fetching = !0, this.tableListData = [], se({
|
|
944
|
-
busName: a
|
|
945
|
-
}).then((e) => {
|
|
946
|
-
this.fetching = !1, this.tableListData = e.data;
|
|
947
|
-
});
|
|
948
|
-
},
|
|
949
|
-
selectSys(a) {
|
|
950
|
-
let e = this.getDictionary("msg_type_sys").filter((s) => s.code == a)[0], t = {
|
|
951
|
-
id: y(),
|
|
952
|
-
pid: 0,
|
|
953
|
-
title: e.name,
|
|
954
|
-
tablevalue: "",
|
|
955
|
-
fieldtype: null,
|
|
956
|
-
fieldname: null,
|
|
957
|
-
varnumber: 1e4,
|
|
958
|
-
vartype: this.varType,
|
|
959
|
-
sysvalue: a,
|
|
960
|
-
transkey: e.transkey,
|
|
961
|
-
fieldvalue: [],
|
|
962
|
-
uiconfig: ""
|
|
963
|
-
};
|
|
964
|
-
this.fieldValue = [t], this.fieldValue[0].sysvalue == 5 ? (this.fieldValue[0].cachekey = "", this.cachekey = "") : this.fieldValue[0].sysvalue == 4 && (this.fieldValue[0].cachekey = "", this.cachekey = "", this.fieldValue[0].sysconfigid = "", this.sysconfigid = "", L({ pageNo: 1, pageSize: 100 }).then((s) => {
|
|
965
|
-
s.code === 200 && (this.sysConfigDate = s.data.rows);
|
|
966
|
-
}));
|
|
967
|
-
},
|
|
968
|
-
addField(a) {
|
|
969
|
-
this.fieldData = [], this.fieldValue = [], this.varType = "1", this.sysValue = "", this.tableValue = "", this.field = "", this.ind = a, this.tableListData = [...this.tableLists];
|
|
970
|
-
},
|
|
971
|
-
seeField() {
|
|
972
|
-
this.load = !1, this.varType = String(this.record.vartype), this.sysValue = this.record.sysvalue ? this.record.sysvalue : "", this.tableValue = this.record.tablevalue ? this.record.tablevalue : "", this.field = this.record.fieldname, this.fieldValue = [this.record], this.tableListData = [...this.tableLists], this.fieldData = this.record.uiconfig ? [JSON.parse(this.record.uiconfig)] : [], this.fieldValue[0].sysvalue == 5 ? this.cachekey = this.fieldValue[0].cachekey ? this.fieldValue[0].cachekey : "" : this.fieldValue[0].sysvalue == 4 && (this.sysconfigid = this.fieldValue[0].sysconfigid ? this.fieldValue[0].sysconfigid : "", L({ pageNo: 1, pageSize: 100 }).then((a) => {
|
|
973
|
-
a.code === 200 && (this.sysConfigDate = a.data.rows);
|
|
974
|
-
}));
|
|
975
|
-
},
|
|
976
|
-
getFieldType(a) {
|
|
977
|
-
return this.getDictionary("Msg_VariableValueType").filter((s) => s.remark.split(",").includes(a.effecttype))[0];
|
|
978
|
-
},
|
|
979
|
-
getDictionary(a) {
|
|
980
|
-
return this.$options.filters.dictData(a);
|
|
981
|
-
},
|
|
982
|
-
selectSysvartype() {
|
|
983
|
-
this.fieldValue[0].sysconfigid = this.sysconfigid;
|
|
984
|
-
},
|
|
985
|
-
handleCacheKeyChange() {
|
|
986
|
-
this.fieldValue[0].cachekey = this.cachekey;
|
|
987
|
-
}
|
|
988
|
-
},
|
|
989
|
-
mounted() {
|
|
990
|
-
this.statu && this.seeField();
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
var we = function() {
|
|
994
|
-
var e = this, t = e._self._c;
|
|
995
|
-
return t("div", [t("div", { staticClass: "vartype" }, [t("el-radio-group", { attrs: { "button-style": "solid" }, model: { value: e.varType, callback: function(s) {
|
|
996
|
-
e.varType = s;
|
|
997
|
-
}, expression: "varType" } }, [e._l(e.getMsgTemp, function(s) {
|
|
998
|
-
return [t("el-radio-button", { attrs: { label: s.code } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " ")])];
|
|
999
|
-
})], 2), t("div", [e._t("operate")], 2)], 1), e.varType == 2 ? [t("div", { staticClass: "msgfield" }, [t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.varType, callback: function(s) {
|
|
1000
|
-
e.varType = s;
|
|
1001
|
-
}, expression: "varType" } }, e._l(e.getDictionary("msg_temp"), function(s, i) {
|
|
1002
|
-
return t("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
1003
|
-
}), 1)], 1), t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.statu, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.selectSys }, model: { value: e.sysValue, callback: function(s) {
|
|
1004
|
-
e.sysValue = s;
|
|
1005
|
-
}, expression: "sysValue" } }, e._l(e.getDictionary("msg_type_sys"), function(s, i) {
|
|
1006
|
-
return t("el-option", { key: i, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
1007
|
-
}), 1)], 1)])] : e._e(), e.varType == 2 ? t("div", { staticClass: "msgsys" }, [e.fieldValue.length > 0 && e.fieldValue[0].sysvalue == 5 ? t("div", [t("el-input", { staticStyle: { width: "100%" }, attrs: { disabled: e.statu, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, on: { change: e.handleCacheKeyChange }, model: { value: e.cachekey, callback: function(s) {
|
|
1008
|
-
e.cachekey = s;
|
|
1009
|
-
}, expression: "cachekey" } })], 1) : e._e(), e.fieldValue.length > 0 && e.fieldValue[0].sysvalue == 4 ? t("div", [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.statu, filterable: "" }, on: { change: e.selectSysvartype }, model: { value: e.sysconfigid, callback: function(s) {
|
|
1010
|
-
e.sysconfigid = s;
|
|
1011
|
-
}, expression: "sysconfigid" } }, e._l(e.sysConfigDate, function(s) {
|
|
1012
|
-
return t("el-option", { key: s.id, attrs: { value: s.id, label: s.name } }, [t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(s.name) + " ")])]);
|
|
1013
|
-
}), 1)], 1) : e._e()]) : e._e(), e.varType == 1 ? [t("div", { staticClass: "msgfield" }, [t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", clearable: "", disabled: e.statu, "remote-method": e.searchTable }, on: { change: e.changeTable }, model: { value: e.tableValue, callback: function(s) {
|
|
1014
|
-
e.tableValue = s;
|
|
1015
|
-
}, expression: "tableValue" } }, e._l(e.tableListData, function(s, i) {
|
|
1016
|
-
return t("el-option", { key: s.tablename, attrs: { value: s.tablename, label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
1017
|
-
}), 1)], 1), t("div", { staticClass: "l" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.statu || !e.tableValue }, on: { focus: e.operateField, change: e.changeField }, model: { value: e.field, callback: function(s) {
|
|
1018
|
-
e.field = s;
|
|
1019
|
-
}, expression: "field" } }, e._l(e.fieldData, function(s) {
|
|
1020
|
-
return t("el-option", { key: s.columnname, attrs: { value: s.columnname, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1);
|
|
1021
|
-
}), 1)], 1)])] : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: e.varType == 1, expression: "varType == 1" }], staticStyle: { "padding-left": "12px" } }, [e.show ? t("composeMiddle", { ref: "composeMiddle", attrs: { record: e.fieldValue[0], field: e.getFieldData, statu: e.statu, mode: e.mode } }) : e._e()], 1)], 2);
|
|
1022
|
-
}, ke = [], Te = /* @__PURE__ */ p(
|
|
1023
|
-
$e,
|
|
1024
|
-
we,
|
|
1025
|
-
ke,
|
|
1026
|
-
!1,
|
|
1027
|
-
null,
|
|
1028
|
-
"96e1ac4a",
|
|
1029
|
-
null,
|
|
1030
|
-
null
|
|
1031
|
-
);
|
|
1032
|
-
const K = Te.exports;
|
|
1033
|
-
const De = {
|
|
1034
|
-
props: {
|
|
1035
|
-
tempData: {
|
|
1036
|
-
type: Array,
|
|
1037
|
-
required: !0
|
|
1038
|
-
}
|
|
1039
|
-
},
|
|
1040
|
-
components: {
|
|
1041
|
-
composeField: K
|
|
1042
|
-
},
|
|
1043
|
-
data() {
|
|
1044
|
-
return {
|
|
1045
|
-
sysViewButtons: [
|
|
1046
|
-
{
|
|
1047
|
-
displayName: "\u786E\u5B9A",
|
|
1048
|
-
functionName: "handleSubmit",
|
|
1049
|
-
transKey: "gd.btn.confirm",
|
|
1050
|
-
icon: "el-icon-document-checked",
|
|
1051
|
-
show: !0
|
|
1052
|
-
}
|
|
1053
|
-
],
|
|
1054
|
-
spinning: !1,
|
|
1055
|
-
visible: !1,
|
|
1056
|
-
confirmLoading: !1,
|
|
1057
|
-
width: "800",
|
|
1058
|
-
fullscreen: !1,
|
|
1059
|
-
title: this.$i18nt("gd.msg.temPlate.fieldConfiguration", "\u5B57\u6BB5\u914D\u7F6E")
|
|
1060
|
-
};
|
|
1061
|
-
},
|
|
1062
|
-
computed: {},
|
|
1063
|
-
methods: {
|
|
1064
|
-
toggleFullscreen() {
|
|
1065
|
-
this.fullscreen = !this.fullscreen;
|
|
1066
|
-
},
|
|
1067
|
-
addField(a) {
|
|
1068
|
-
this.fullscreen = !1, this.visible = !0, this.$nextTick(() => {
|
|
1069
|
-
setTimeout(() => {
|
|
1070
|
-
this.$refs.composeField.addField(a);
|
|
1071
|
-
}, 0);
|
|
1072
|
-
});
|
|
1073
|
-
},
|
|
1074
|
-
handleSubmit() {
|
|
1075
|
-
let a = this.traverseData();
|
|
1076
|
-
if (!this.isChecked(a.list)) {
|
|
1077
|
-
this.$message.error(this.$i18nt("gd.flow.approval.replenishData"));
|
|
1078
|
-
return;
|
|
1079
|
-
}
|
|
1080
|
-
if (!this.isCheckedSys(a.list) && (a.arr.sysvalue == 4 || a.arr.sysvalue == 5)) {
|
|
1081
|
-
this.$message.error(this.$i18nt("gd.flow.approval.replenishData"));
|
|
1082
|
-
return;
|
|
1083
|
-
}
|
|
1084
|
-
this.$emit("ok", {
|
|
1085
|
-
data: JSON.stringify(this.$refs.composeField.fieldValue),
|
|
1086
|
-
item: a.arr
|
|
1087
|
-
}), this.closed();
|
|
1088
|
-
},
|
|
1089
|
-
isChecked(a) {
|
|
1090
|
-
return a.every((e, t, s) => {
|
|
1091
|
-
let i = e.vartype == 1 ? e.tablevalue : e.sysvalue, l = e.vartype == 1 ? e.fieldname : e.sysvalue;
|
|
1092
|
-
return !!(i && l);
|
|
1093
|
-
});
|
|
1094
|
-
},
|
|
1095
|
-
isCheckedSys(a) {
|
|
1096
|
-
return a.every((e, t, s) => {
|
|
1097
|
-
let i = "";
|
|
1098
|
-
return e.vartype == 2 && e.sysvalue == 4 && e.sysconfigid !== "" && (i = e.sysconfigid), e.vartype == 2 && e.sysvalue == 5 && e.cachekey !== "" && (i = e.cachekey), !!i;
|
|
1099
|
-
});
|
|
1100
|
-
},
|
|
1101
|
-
traverseData() {
|
|
1102
|
-
let a = [], e = this.$refs.composeField.fieldValue[0], t = ["2", "4", "5"], s = !t.includes(e.fieldtype);
|
|
1103
|
-
const i = (l) => (l = l.filter((n, r) => (n.fieldvalue && n.fieldvalue.length === 1 && s && (e = n.fieldtype === "3" ? n.fieldvalue[0] : n), s && (s = !t.includes(n.fieldtype)), a.push(n), n.fieldvalue = i(n.fieldvalue), !0)), l);
|
|
1104
|
-
return i(this.$refs.composeField.fieldValue), {
|
|
1105
|
-
list: a,
|
|
1106
|
-
arr: e
|
|
1107
|
-
};
|
|
1108
|
-
},
|
|
1109
|
-
doEvent(a) {
|
|
1110
|
-
let e = a.item.functionName;
|
|
1111
|
-
this[e]();
|
|
1112
|
-
},
|
|
1113
|
-
closed() {
|
|
1114
|
-
this.visible = !1;
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
};
|
|
1118
|
-
var Ce = function() {
|
|
1119
|
-
var e = this, t = e._self._c;
|
|
1120
|
-
return t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(s) {
|
|
1121
|
-
e.visible = s;
|
|
1122
|
-
}, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent }, slot: "title" }), t("div", { class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [t("composeField", { ref: "composeField" })], 1)], 1);
|
|
1123
|
-
}, Se = [], Le = /* @__PURE__ */ p(
|
|
1124
|
-
De,
|
|
1125
|
-
Ce,
|
|
1126
|
-
Se,
|
|
1127
|
-
!1,
|
|
1128
|
-
null,
|
|
1129
|
-
"1d56a99e",
|
|
1130
|
-
null,
|
|
1131
|
-
null
|
|
1132
|
-
);
|
|
1133
|
-
const Fe = Le.exports;
|
|
1134
|
-
const xe = {
|
|
1135
|
-
props: {
|
|
1136
|
-
item: {
|
|
1137
|
-
type: Object,
|
|
1138
|
-
required: !0
|
|
1139
|
-
}
|
|
1140
|
-
},
|
|
1141
|
-
components: {
|
|
1142
|
-
composeField: K
|
|
1143
|
-
},
|
|
1144
|
-
data() {
|
|
1145
|
-
return {
|
|
1146
|
-
statu: !0,
|
|
1147
|
-
list: [],
|
|
1148
|
-
fullscreen: !1,
|
|
1149
|
-
width: "700px"
|
|
1150
|
-
};
|
|
1151
|
-
},
|
|
1152
|
-
computed: {
|
|
1153
|
-
styled() {
|
|
1154
|
-
return `color:${this.primaryColor};`;
|
|
1155
|
-
},
|
|
1156
|
-
...f(["primaryColor"])
|
|
1157
|
-
},
|
|
1158
|
-
methods: {
|
|
1159
|
-
edit(a, e) {
|
|
1160
|
-
let t = this.list.filter((i) => i.index !== e);
|
|
1161
|
-
this.list = t.concat({
|
|
1162
|
-
index: e,
|
|
1163
|
-
data: JSON.stringify(a)
|
|
1164
|
-
});
|
|
1165
|
-
let s = [...this.item.fieldjsons];
|
|
1166
|
-
s[e].statu = !1, this.item.fieldjsons = [...s];
|
|
1167
|
-
},
|
|
1168
|
-
cancel(a, e) {
|
|
1169
|
-
let t = this.list.filter((l) => l.index === e);
|
|
1170
|
-
this.list = this.list.filter((l) => l.index !== e);
|
|
1171
|
-
let s = [...this.item.fieldjsons];
|
|
1172
|
-
s[e] = Object.assign(JSON.parse(t[0].data), {
|
|
1173
|
-
statu: !0
|
|
1174
|
-
}), this.item.fieldjsons = [...s];
|
|
1175
|
-
let i = `composeField${e}`;
|
|
1176
|
-
this.$nextTick(() => {
|
|
1177
|
-
setTimeout(() => {
|
|
1178
|
-
this.$refs[i][0].seeField();
|
|
1179
|
-
}, 0);
|
|
1180
|
-
});
|
|
1181
|
-
},
|
|
1182
|
-
save(a, e) {
|
|
1183
|
-
let t = `composeField${e}`, s = JSON.stringify(this.$refs[t][0].fieldValue[0]), i = this.traverseData(e), l = this.list.filter((m) => m.index === e)[0], n = JSON.parse(l.data), r = `[${n.varnumber}-${n.title}]`;
|
|
1184
|
-
if (!this.isChecked(i.list)) {
|
|
1185
|
-
this.$message.error(this.$i18nt("gd.flow.approval.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
1186
|
-
return;
|
|
1187
|
-
}
|
|
1188
|
-
let o = [...this.item.fieldjsons];
|
|
1189
|
-
o[e] = Object.assign(JSON.parse(s), {
|
|
1190
|
-
statu: !0,
|
|
1191
|
-
varnumber: n.varnumber,
|
|
1192
|
-
title: i.arr.title,
|
|
1193
|
-
transkey: i.arr.transkey
|
|
1194
|
-
}), this.item.fieldjsons = [...o];
|
|
1195
|
-
let c = this.item.content.replace(r, `[${n.varnumber}-${i.arr.title}]`), u = c.replace(/\[/g, "<a class='varkey'>[");
|
|
1196
|
-
this.item.content = c, this.item.html = u.replace(/\]/g, "]</a>"), this.list = this.list.filter((m) => m.index !== e), this.$nextTick(() => {
|
|
1197
|
-
setTimeout(() => {
|
|
1198
|
-
this.$refs[t][0].seeField();
|
|
1199
|
-
}, 10);
|
|
1200
|
-
});
|
|
1201
|
-
},
|
|
1202
|
-
isChecked(a) {
|
|
1203
|
-
return a.every((e, t, s) => {
|
|
1204
|
-
let i = e.vartype == 1 ? e.tablevalue : e.sysvalue, l = e.vartype == 1 ? e.fieldname : e.sysvalue;
|
|
1205
|
-
return !!(i && l);
|
|
1206
|
-
});
|
|
1207
|
-
},
|
|
1208
|
-
traverseData(a) {
|
|
1209
|
-
let e = [], t = `composeField${a}`, s = this.$refs[t][0].fieldValue[0], i = ["2", "4", "5"], l = !i.includes(String(s.fieldtype));
|
|
1210
|
-
const n = (r) => (r = r.filter((o, c) => (o.fieldvalue && o.fieldvalue.length === 1 && l && (s = String(o.fieldtype) === "3" ? o.fieldvalue[0] : o), l && (l = !i.includes(String(o.fieldtype))), e.push(o), o.fieldvalue = n(o.fieldvalue), !0)), r);
|
|
1211
|
-
return n(this.$refs[t][0].fieldValue), {
|
|
1212
|
-
list: e,
|
|
1213
|
-
arr: s
|
|
1214
|
-
};
|
|
1215
|
-
},
|
|
1216
|
-
headerTitle(a) {
|
|
1217
|
-
return this.$i18nt(`Dynamics.${a.transkey}`, a.title);
|
|
1218
|
-
},
|
|
1219
|
-
closed(a) {
|
|
1220
|
-
if (this.item.fieldjsons) {
|
|
1221
|
-
let e = [...this.item.fieldjsons];
|
|
1222
|
-
e.forEach((t, s) => {
|
|
1223
|
-
if (t.statu !== void 0 && !t.statu) {
|
|
1224
|
-
let i = this.list.filter((l) => l.index === s)[0];
|
|
1225
|
-
e[s] = Object.assign(JSON.parse(i.data), {
|
|
1226
|
-
statu: !0
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
}), this.item.fieldjsons = [...e];
|
|
1230
|
-
}
|
|
1231
|
-
this.list = [], this.$emit("close");
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
};
|
|
1235
|
-
var Ne = function() {
|
|
1236
|
-
var e = this, t = e._self._c;
|
|
1237
|
-
return t("el-drawer", { attrs: { title: e.item.name, size: "560px", visible: e.item.showfield, "close-on-press-escape": !1, "append-to-body": !0, "modal-append-to-body": !1, "custom-class": "gd-drawer" }, on: { close: e.closed } }, [t("el-card", { attrs: { shadow: "hover" } }, [t("el-collapse", { staticStyle: { border: "0" } }, e._l(e.item.fieldjsons, function(s, i) {
|
|
1238
|
-
return t("el-collapse-item", { key: i, staticClass: "showdoc", attrs: { title: `${s.varnumber}-${e.headerTitle(s)}` } }, [e.item.showfield ? t("composeField", { ref: `composeField${i}`, refInFor: !0, attrs: { record: s, statu: s.statu === void 0 ? !0 : s.statu, mode: s.statu === void 0 || s.statu ? "look" : "edit" } }, [t("template", { slot: "operate" }, [s.statu === void 0 || s.statu ? t("el-button", { attrs: { type: "primary", icon: "el-icon-edit", size: "mini" }, on: { click: function(l) {
|
|
1239
|
-
return e.edit(s, i);
|
|
1240
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")]) : e._e(), s.statu !== void 0 && !s.statu ? t("el-button", { staticStyle: { "margin-right": "10px" }, attrs: { size: "mini", icon: "el-icon-back" }, on: { click: function(l) {
|
|
1241
|
-
return e.cancel(s, i);
|
|
1242
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")]) : e._e(), s.statu !== void 0 && !s.statu ? t("el-button", { attrs: { type: "primary", size: "mini", icon: "el-icon-document-checked" }, on: { click: function(l) {
|
|
1243
|
-
return e.save(s, i);
|
|
1244
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.confirm", "\u786E\u5B9A")) + " ")]) : e._e()], 1)], 2) : e._e(), t("div", { staticClass: "flex-between" })], 1);
|
|
1245
|
-
}), 1)], 1)], 1);
|
|
1246
|
-
}, Pe = [], Ke = /* @__PURE__ */ p(
|
|
1247
|
-
xe,
|
|
1248
|
-
Ne,
|
|
1249
|
-
Pe,
|
|
1250
|
-
!1,
|
|
1251
|
-
null,
|
|
1252
|
-
"fad4cb10",
|
|
1253
|
-
null,
|
|
1254
|
-
null
|
|
1255
|
-
);
|
|
1256
|
-
const Oe = Ke.exports;
|
|
1257
|
-
const Ee = {
|
|
1258
|
-
props: {
|
|
1259
|
-
record: {
|
|
1260
|
-
type: Object,
|
|
1261
|
-
required: !0
|
|
1262
|
-
},
|
|
1263
|
-
ind: {
|
|
1264
|
-
type: [String, Number],
|
|
1265
|
-
default: "0"
|
|
1266
|
-
},
|
|
1267
|
-
detail: {
|
|
1268
|
-
type: Array,
|
|
1269
|
-
default: () => []
|
|
1270
|
-
}
|
|
1271
|
-
},
|
|
1272
|
-
data() {
|
|
1273
|
-
return {
|
|
1274
|
-
selIndex: 0,
|
|
1275
|
-
splitList: [],
|
|
1276
|
-
ofieldValue: ""
|
|
1277
|
-
};
|
|
1278
|
-
},
|
|
1279
|
-
watch: {
|
|
1280
|
-
record: {
|
|
1281
|
-
handler(a) {
|
|
1282
|
-
this.$nextTick(() => {
|
|
1283
|
-
setTimeout(() => {
|
|
1284
|
-
this.analysis(a);
|
|
1285
|
-
}, 10);
|
|
1286
|
-
});
|
|
1287
|
-
},
|
|
1288
|
-
deep: !0,
|
|
1289
|
-
immediate: !0
|
|
1290
|
-
}
|
|
1291
|
-
},
|
|
1292
|
-
computed: {
|
|
1293
|
-
ids() {
|
|
1294
|
-
return `fieldInfos-${this.ind}`;
|
|
1295
|
-
},
|
|
1296
|
-
style() {
|
|
1297
|
-
return {
|
|
1298
|
-
"--background-color-hover": this.primaryColor
|
|
1299
|
-
};
|
|
1300
|
-
},
|
|
1301
|
-
...f(["primaryColor"])
|
|
1302
|
-
},
|
|
1303
|
-
methods: {
|
|
1304
|
-
getField(a, e) {
|
|
1305
|
-
return new Promise((t, s) => {
|
|
1306
|
-
let i = this.splitList.filter((u) => u.selIndex == this.selIndex)[0].fieldvalue, l = document.querySelectorAll(`.${this.ids}>.splicing>.splicing-l>.el-input>.el-input__inner`)[this.selIndex].selectionStart, n = i.slice(0, l), r = i.slice(l), o = "", c = [];
|
|
1307
|
-
this.splitList.forEach((u) => {
|
|
1308
|
-
if (u.type === 1)
|
|
1309
|
-
u.selIndex == this.selIndex ? (o += n, o += `[${a.varnumber}-${a.title}]`, o += r, c.push(
|
|
1310
|
-
Object.assign(
|
|
1311
|
-
{
|
|
1312
|
-
...e
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
varnumber: a.varnumber,
|
|
1316
|
-
title: a.title,
|
|
1317
|
-
transkey: a.transkey
|
|
1318
|
-
}
|
|
1319
|
-
)
|
|
1320
|
-
)) : o += u.fieldvalue;
|
|
1321
|
-
else if (u.type === 2) {
|
|
1322
|
-
o += `[${u.varnumber}-${u.title}]`;
|
|
1323
|
-
let m = this.record.fieldjsons.filter((d) => `[${d.varnumber}-${d.title}]` == `[${u.varnumber}-${u.title}]`)[0];
|
|
1324
|
-
m !== void 0 && c.push(m);
|
|
1325
|
-
}
|
|
1326
|
-
}), t({
|
|
1327
|
-
fieldinfos: c,
|
|
1328
|
-
content: o
|
|
1329
|
-
});
|
|
1330
|
-
});
|
|
1331
|
-
},
|
|
1332
|
-
addFocused(a) {
|
|
1333
|
-
let e = a ? this.splitList.length - 1 : 0;
|
|
1334
|
-
this.$refs[`splicing${e}`][0].blur(), this.$refs[`splicing${e}`][0].focus(), !a && (this.$refs[`splicing${e}`][0].$refs.input.setSelectionRange(0, 0), this.selIndex = e);
|
|
1335
|
-
},
|
|
1336
|
-
mergeFocused(a, e) {
|
|
1337
|
-
let t = `splicing${e - 1}`;
|
|
1338
|
-
this.$refs[t][0].blur(), this.$refs[t][0].focus(), this.$refs[t][0].$refs.input.setSelectionRange(a, a), this.selIndex = this.splitList[e - 1].selIndex;
|
|
1339
|
-
},
|
|
1340
|
-
addField(a) {
|
|
1341
|
-
let e = this.splitList.filter((o) => o.selIndex == this.selIndex)[0].fieldvalue, t = document.querySelectorAll(`.${this.ids}>.splicing>.splicing-l>.el-input`)[this.selIndex].selectionStart, s = e.slice(0, t), i = e.slice(t), l = "", n = 1, r = [];
|
|
1342
|
-
this.splitList.forEach((o) => {
|
|
1343
|
-
if (o.type === 1)
|
|
1344
|
-
o.selIndex == this.selIndex ? (l += s, l += `[${varnumber}-${a.title}]`, l += i, r.push(
|
|
1345
|
-
Object.assign(a, {
|
|
1346
|
-
varnumber: n
|
|
1347
|
-
})
|
|
1348
|
-
), n += 1) : l += o.fieldValue;
|
|
1349
|
-
else if (o.type === 2) {
|
|
1350
|
-
l += `[${n}-${o.title}]`;
|
|
1351
|
-
let c = this.record.fieldJsons.filter((u) => `[${u.varnumber}-${u.title}]` == `[${o.varnumber}-${o.title}]`)[0];
|
|
1352
|
-
c !== void 0 && (r.push(
|
|
1353
|
-
Object.assign(c, {
|
|
1354
|
-
varnumber: n
|
|
1355
|
-
})
|
|
1356
|
-
), n += 1);
|
|
1357
|
-
}
|
|
1358
|
-
}), this.$nextTick(() => {
|
|
1359
|
-
setTimeout(() => {
|
|
1360
|
-
this.record.content = l, this.record.fieldjsons = r;
|
|
1361
|
-
let o = l.replace(/\[/g, "<a class='varkey'>[");
|
|
1362
|
-
this.record.html = o.replace(/\]/g, "]</a>");
|
|
1363
|
-
}, 100);
|
|
1364
|
-
});
|
|
1365
|
-
},
|
|
1366
|
-
styled(a) {
|
|
1367
|
-
return `${String(a).length * 11 + 4}px`;
|
|
1368
|
-
},
|
|
1369
|
-
analysis(a) {
|
|
1370
|
-
let e = {
|
|
1371
|
-
title: "",
|
|
1372
|
-
fieldvalue: "",
|
|
1373
|
-
varnumber: 0,
|
|
1374
|
-
type: 1,
|
|
1375
|
-
wid: "4px",
|
|
1376
|
-
selIndex: -1,
|
|
1377
|
-
transkey: null
|
|
1378
|
-
}, t = 0, s = a.content, i = [];
|
|
1379
|
-
[...a.fieldjsons].forEach((n, r) => {
|
|
1380
|
-
let o = `[${n.varnumber}-${n.title}]`, c = s.split(o);
|
|
1381
|
-
c.forEach((u, m) => {
|
|
1382
|
-
m < c.length - 1 && (i = i.concat([
|
|
1383
|
-
Object.assign(
|
|
1384
|
-
{
|
|
1385
|
-
...e
|
|
1386
|
-
},
|
|
1387
|
-
{
|
|
1388
|
-
fieldvalue: `${c[m]}`,
|
|
1389
|
-
wid: this.styled(c[m]),
|
|
1390
|
-
selIndex: t,
|
|
1391
|
-
type: 1
|
|
1392
|
-
}
|
|
1393
|
-
)
|
|
1394
|
-
]).concat([
|
|
1395
|
-
Object.assign(
|
|
1396
|
-
{
|
|
1397
|
-
...e
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
title: n.title,
|
|
1401
|
-
transkey: n.transkey,
|
|
1402
|
-
type: 2,
|
|
1403
|
-
varnumber: n.varnumber
|
|
1404
|
-
}
|
|
1405
|
-
)
|
|
1406
|
-
]), t += 1);
|
|
1407
|
-
}), s = c[c.length - 1] ? c[c.length - 1] : "";
|
|
1408
|
-
}), i = i.concat([
|
|
1409
|
-
Object.assign(
|
|
1410
|
-
{
|
|
1411
|
-
...e
|
|
1412
|
-
},
|
|
1413
|
-
{
|
|
1414
|
-
fieldvalue: s,
|
|
1415
|
-
wid: "4px",
|
|
1416
|
-
selIndex: t,
|
|
1417
|
-
type: 1
|
|
1418
|
-
}
|
|
1419
|
-
)
|
|
1420
|
-
]), this.splitList = [...i], this.selIndex = t;
|
|
1421
|
-
},
|
|
1422
|
-
delItem(a) {
|
|
1423
|
-
this.$emit("delItem", this.splitList[a]);
|
|
1424
|
-
},
|
|
1425
|
-
selData(a) {
|
|
1426
|
-
this.selIndex = a.selIndex, this.$emit("selData", a);
|
|
1427
|
-
},
|
|
1428
|
-
changeInput(a, e, t) {
|
|
1429
|
-
console.log(a, e, t, this.detail);
|
|
1430
|
-
let s = a, i = [];
|
|
1431
|
-
this.detail.forEach((r) => {
|
|
1432
|
-
r.fieldjsons.forEach((o) => {
|
|
1433
|
-
let c = `[${o.varnumber}-${o.title}]`;
|
|
1434
|
-
s.split(c).length > 1 && (i.push(
|
|
1435
|
-
Object.assign(
|
|
1436
|
-
{
|
|
1437
|
-
...o
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
varnumber: 1e4
|
|
1441
|
-
}
|
|
1442
|
-
)
|
|
1443
|
-
), s = s.replace(c, `[10000-${o.title}]`));
|
|
1444
|
-
});
|
|
1445
|
-
});
|
|
1446
|
-
let l = "";
|
|
1447
|
-
this.splitList.forEach((r, o) => {
|
|
1448
|
-
r.type === 1 ? (l += o == e ? s : r.fieldvalue, this.splitList[o].fieldvalue = o == e ? s : r.fieldvalue) : r.type === 2 && (l += `[${r.varnumber}-${r.title}]`);
|
|
1449
|
-
}), this.record.content = l, this.record.fieldjsons = this.record.fieldjsons.concat(i);
|
|
1450
|
-
let n = l.replace(/\[/g, "<a class='varkey'>[");
|
|
1451
|
-
this.record.html = n.replace(/\]/g, "]</a>"), t.wid = this.styled(s), i.length > 0 && this.$emit("addFieldJsons", i);
|
|
1452
|
-
},
|
|
1453
|
-
pressEnter(a, e, t) {
|
|
1454
|
-
let s = document.querySelectorAll(`.${this.ids}>.splicing>.splicing-l>.el-input>.el-input__inner`)[t.selIndex].selectionStart, i = t.fieldvalue.slice(0, s), l = t.fieldvalue.slice(s);
|
|
1455
|
-
this.$emit("add", {
|
|
1456
|
-
qtitle: i,
|
|
1457
|
-
hTitle: l,
|
|
1458
|
-
i: e,
|
|
1459
|
-
item: t,
|
|
1460
|
-
splitList: this.splitList
|
|
1461
|
-
});
|
|
1462
|
-
},
|
|
1463
|
-
keydown(a, e, t) {
|
|
1464
|
-
this.ofieldValue = t.fieldvalue;
|
|
1465
|
-
},
|
|
1466
|
-
keyup(a, e, t) {
|
|
1467
|
-
if (e !== 0 && e !== this.splitList.length - 1)
|
|
1468
|
-
return;
|
|
1469
|
-
let s = document.querySelectorAll(`.${this.ids}>.splicing>.splicing-l>.el-input>.el-input__inner`)[t.selIndex].selectionStart, i = t.fieldvalue.slice(0, s);
|
|
1470
|
-
t.fieldvalue.slice(s), e === 0 && a.keyCode === 8 && i == "" && this.ofieldValue === t.fieldvalue && s === 0 && this.$emit("merge", this.splitList);
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
};
|
|
1474
|
-
var je = function() {
|
|
1475
|
-
var e = this, t = e._self._c;
|
|
1476
|
-
return t("div", { class: e.ids, staticStyle: { padding: "1px 0" } }, [t("div", { staticClass: "splicing pa" }, [e._l(e.splitList, function(s, i) {
|
|
1477
|
-
return [s.type == 1 ? t("div", { staticClass: "splicing-l pa", on: { click: function(l) {
|
|
1478
|
-
return e.selData(s);
|
|
1479
|
-
} } }, [t("div", { staticClass: "splicing-zhan line1" }, [e._v(e._s(s.fieldvalue))]), t("el-input", { ref: `splicing${i}`, refInFor: !0, on: { change: function(l) {
|
|
1480
|
-
return e.changeInput(l, i, s);
|
|
1481
|
-
} }, nativeOn: { keyup: [function(l) {
|
|
1482
|
-
return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.pressEnter(l, i, s);
|
|
1483
|
-
}, function(l) {
|
|
1484
|
-
return e.keyup(l, i, s);
|
|
1485
|
-
}], keydown: function(l) {
|
|
1486
|
-
return e.keydown(l, i, s);
|
|
1487
|
-
} }, model: { value: s.fieldvalue, callback: function(l) {
|
|
1488
|
-
e.$set(s, "fieldvalue", l);
|
|
1489
|
-
}, expression: "item.fieldvalue" } })], 1) : e._e(), s.type == 2 ? [t("div", { staticClass: "splicing-l pa" }, [t("div", { staticClass: "splicing-d" }, [t("span", { staticClass: "splicing-tilte" }, [e._v("[" + e._s(s.varnumber) + "-" + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.title)) + "]")]), t("i", { staticClass: "el-icon-close close", on: { click: function(l) {
|
|
1490
|
-
return e.delItem(i);
|
|
1491
|
-
} } })])])] : e._e()];
|
|
1492
|
-
})], 2)]);
|
|
1493
|
-
}, Re = [], Ie = /* @__PURE__ */ p(
|
|
1494
|
-
Ee,
|
|
1495
|
-
je,
|
|
1496
|
-
Re,
|
|
1497
|
-
!1,
|
|
1498
|
-
null,
|
|
1499
|
-
"485073dc",
|
|
1500
|
-
null,
|
|
1501
|
-
null
|
|
1502
|
-
);
|
|
1503
|
-
const Me = Ie.exports;
|
|
1504
|
-
const qe = {
|
|
1505
|
-
props: {
|
|
1506
|
-
record: {
|
|
1507
|
-
type: Object,
|
|
1508
|
-
required: !0
|
|
1509
|
-
},
|
|
1510
|
-
ind: {
|
|
1511
|
-
type: [String, Number],
|
|
1512
|
-
default: "0"
|
|
1513
|
-
}
|
|
1514
|
-
},
|
|
1515
|
-
data() {
|
|
1516
|
-
return {
|
|
1517
|
-
selIndex: -1,
|
|
1518
|
-
splitList: []
|
|
1519
|
-
};
|
|
1520
|
-
},
|
|
1521
|
-
computed: {
|
|
1522
|
-
style() {
|
|
1523
|
-
return {
|
|
1524
|
-
"--background-color-hover": this.primaryColor
|
|
1525
|
-
};
|
|
1526
|
-
},
|
|
1527
|
-
...f(["primaryColor"])
|
|
1528
|
-
},
|
|
1529
|
-
watch: {
|
|
1530
|
-
record: {
|
|
1531
|
-
handler(a) {
|
|
1532
|
-
this.$nextTick(() => {
|
|
1533
|
-
setTimeout(() => {
|
|
1534
|
-
this.analysis(a);
|
|
1535
|
-
}, 10);
|
|
1536
|
-
});
|
|
1537
|
-
},
|
|
1538
|
-
deep: !0,
|
|
1539
|
-
immediate: !0
|
|
1540
|
-
}
|
|
1541
|
-
},
|
|
1542
|
-
components: {
|
|
1543
|
-
fieldConcatenation: Me
|
|
1544
|
-
},
|
|
1545
|
-
methods: {
|
|
1546
|
-
addFieldJsons(a, e) {
|
|
1547
|
-
let t = "";
|
|
1548
|
-
`${a[0].varnumber}${a[0].title}`;
|
|
1549
|
-
let s = [];
|
|
1550
|
-
this.splitList.forEach((l, n) => {
|
|
1551
|
-
n !== 0 && (t += `
|
|
1552
|
-
`), t += l.content, s = s.concat(l.fieldjsons);
|
|
1553
|
-
});
|
|
1554
|
-
let i = [];
|
|
1555
|
-
s.forEach((l, n) => {
|
|
1556
|
-
let r = `[${l.varnumber}-${l.title}]`;
|
|
1557
|
-
t = t.replace(r, `[${n + 1}-${l.title}]`), i.push(
|
|
1558
|
-
Object.assign(
|
|
1559
|
-
{
|
|
1560
|
-
...l
|
|
1561
|
-
},
|
|
1562
|
-
{
|
|
1563
|
-
varnumber: n + 1
|
|
1564
|
-
}
|
|
1565
|
-
)
|
|
1566
|
-
);
|
|
1567
|
-
}), this.record.content = t, this.record.fieldjsons = i;
|
|
1568
|
-
},
|
|
1569
|
-
addField(a) {
|
|
1570
|
-
let e = JSON.parse(a.data)[0], t = a.item;
|
|
1571
|
-
e = Object.assign(
|
|
1572
|
-
{
|
|
1573
|
-
...e
|
|
1574
|
-
},
|
|
1575
|
-
{
|
|
1576
|
-
pid: 0,
|
|
1577
|
-
title: t.title
|
|
1578
|
-
}
|
|
1579
|
-
);
|
|
1580
|
-
let i = `dismantle${this.selIndex === -1 ? this.splitList.length - 1 : this.selIndex}`;
|
|
1581
|
-
this.$refs[i][0].getField(t, e).then((l) => {
|
|
1582
|
-
this.addFieldCount(a, l);
|
|
1583
|
-
});
|
|
1584
|
-
},
|
|
1585
|
-
addFieldCount(a, e) {
|
|
1586
|
-
let t = this.selIndex === -1 ? this.splitList.length - 1 : this.selIndex, s = "", i = [];
|
|
1587
|
-
this.splitList.forEach((r, o) => {
|
|
1588
|
-
o !== 0 && (s += `
|
|
1589
|
-
`), o == t ? (s += e.content, i = i.concat(e.fieldinfos)) : (s += r.content, i = i.concat(r.fieldjsons));
|
|
1590
|
-
});
|
|
1591
|
-
let l = [], n = [];
|
|
1592
|
-
i.forEach((r, o) => {
|
|
1593
|
-
n.push({
|
|
1594
|
-
oval: `[${r.varnumber}-${r.title}-${o + 1}]`,
|
|
1595
|
-
nval: `[${o + 1}-${r.title}]`
|
|
1596
|
-
}), s = s.replace(`[${r.varnumber}-${r.title}]`, `[${r.varnumber}-${r.title}-${o + 1}]`), l.push(
|
|
1597
|
-
Object.assign(
|
|
1598
|
-
{
|
|
1599
|
-
...r
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
varnumber: o + 1
|
|
1603
|
-
}
|
|
1604
|
-
)
|
|
1605
|
-
);
|
|
1606
|
-
}), n.forEach((r) => {
|
|
1607
|
-
s = s.replace(r.oval, r.nval);
|
|
1608
|
-
}), this.record.content = s, this.record.fieldjsons = [...l];
|
|
1609
|
-
},
|
|
1610
|
-
selData(a, e) {
|
|
1611
|
-
this.selIndex = e;
|
|
1612
|
-
},
|
|
1613
|
-
delItem(a, e) {
|
|
1614
|
-
let t = "", s = `[${a.varnumber}-${a.title}]`, i = [];
|
|
1615
|
-
this.splitList.forEach((l, n) => {
|
|
1616
|
-
if (n !== 0 && (t += `
|
|
1617
|
-
`), n == e) {
|
|
1618
|
-
t += l.content.replace(s, "");
|
|
1619
|
-
let r = l.fieldjsons.filter((o) => `[${o.varnumber}-${o.title}]` !== s);
|
|
1620
|
-
i = i.concat(r);
|
|
1621
|
-
} else
|
|
1622
|
-
t += l.content, i = i.concat(l.fieldjsons);
|
|
1623
|
-
}), i.map((l, n) => {
|
|
1624
|
-
let r = `[${l.varnumber}-${l.title}]`;
|
|
1625
|
-
return t = t.replace(r, `[${n + 1}-${l.title}]`), l.varnumber = n + 1, l;
|
|
1626
|
-
}), this.record.content = t, this.record.fieldjsons = i;
|
|
1627
|
-
},
|
|
1628
|
-
add(a, e) {
|
|
1629
|
-
let t = [], s = [], i = [], l = [], n = [], r = "", o = "";
|
|
1630
|
-
a.splitList.forEach((d, h) => {
|
|
1631
|
-
h < a.i ? s.push(d) : h === a.i ? a.qtitle === "" && a.hTitle !== "" ? (i.push(
|
|
1632
|
-
Object.assign(
|
|
1633
|
-
{
|
|
1634
|
-
...d
|
|
1635
|
-
},
|
|
1636
|
-
{
|
|
1637
|
-
fieldvalue: ""
|
|
1638
|
-
}
|
|
1639
|
-
)
|
|
1640
|
-
), i.push(
|
|
1641
|
-
Object.assign(
|
|
1642
|
-
{
|
|
1643
|
-
...d
|
|
1644
|
-
},
|
|
1645
|
-
{
|
|
1646
|
-
fieldvalue: a.hTitle
|
|
1647
|
-
}
|
|
1648
|
-
)
|
|
1649
|
-
)) : a.hTitle === "" ? s.push(
|
|
1650
|
-
Object.assign(
|
|
1651
|
-
{
|
|
1652
|
-
...d
|
|
1653
|
-
},
|
|
1654
|
-
{
|
|
1655
|
-
fieldvalue: a.qtitle
|
|
1656
|
-
}
|
|
1657
|
-
)
|
|
1658
|
-
) : (s.push(
|
|
1659
|
-
Object.assign(
|
|
1660
|
-
{
|
|
1661
|
-
...d
|
|
1662
|
-
},
|
|
1663
|
-
{
|
|
1664
|
-
fieldvalue: a.qtitle
|
|
1665
|
-
}
|
|
1666
|
-
)
|
|
1667
|
-
), i.push(
|
|
1668
|
-
Object.assign(
|
|
1669
|
-
{
|
|
1670
|
-
...d
|
|
1671
|
-
},
|
|
1672
|
-
{
|
|
1673
|
-
fieldvalue: a.hTitle
|
|
1674
|
-
}
|
|
1675
|
-
)
|
|
1676
|
-
)) : i.push(d);
|
|
1677
|
-
}), s.forEach((d) => {
|
|
1678
|
-
if (d.type === 1)
|
|
1679
|
-
r += d.fieldvalue;
|
|
1680
|
-
else if (d.type === 2) {
|
|
1681
|
-
r += `[${d.varnumber}-${d.title}]`;
|
|
1682
|
-
let h = this.record.fieldjsons.filter((b) => `[${d.varnumber}-${d.title}]` == `[${b.varnumber}-${b.title}]`)[0];
|
|
1683
|
-
l.push(h);
|
|
1684
|
-
}
|
|
1685
|
-
}), i.forEach((d) => {
|
|
1686
|
-
if (d.type === 1)
|
|
1687
|
-
o += d.fieldvalue;
|
|
1688
|
-
else if (d.type === 2) {
|
|
1689
|
-
o += `[${d.varnumber}-${d.title}]`;
|
|
1690
|
-
let h = this.record.fieldjsons.filter((b) => `[${d.varnumber}-${d.title}]` == `[${b.varnumber}-${b.title}]`)[0];
|
|
1691
|
-
n.push(h);
|
|
1692
|
-
}
|
|
1693
|
-
});
|
|
1694
|
-
let c = !0, u = e;
|
|
1695
|
-
this.splitList.forEach((d, h) => {
|
|
1696
|
-
s.length === 0 ? (h === e && t.push(
|
|
1697
|
-
Object.assign(
|
|
1698
|
-
{
|
|
1699
|
-
...d
|
|
1700
|
-
},
|
|
1701
|
-
{
|
|
1702
|
-
content: "",
|
|
1703
|
-
fieldjsons: []
|
|
1704
|
-
}
|
|
1705
|
-
)
|
|
1706
|
-
), t.push(d), u = i.filter((w) => w.type == 2 ? !0 : w.type == 1 && w.fieldvalue !== "").length === 0 ? e + 1 : u) : i.length === 0 ? (t.push(d), h === e && t.push(
|
|
1707
|
-
Object.assign(
|
|
1708
|
-
{
|
|
1709
|
-
...d
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
content: "",
|
|
1713
|
-
fieldjsons: []
|
|
1714
|
-
}
|
|
1715
|
-
)
|
|
1716
|
-
), u = e + 1) : h === e ? (t.push(
|
|
1717
|
-
Object.assign(
|
|
1718
|
-
{
|
|
1719
|
-
...d
|
|
1720
|
-
},
|
|
1721
|
-
{
|
|
1722
|
-
content: r,
|
|
1723
|
-
fieldjsons: l
|
|
1724
|
-
}
|
|
1725
|
-
)
|
|
1726
|
-
), t.push(
|
|
1727
|
-
Object.assign(
|
|
1728
|
-
{
|
|
1729
|
-
...d
|
|
1730
|
-
},
|
|
1731
|
-
{
|
|
1732
|
-
content: o,
|
|
1733
|
-
fieldjsons: n
|
|
1734
|
-
}
|
|
1735
|
-
)
|
|
1736
|
-
)) : t.push(d);
|
|
1737
|
-
}), this.splitList = [...t];
|
|
1738
|
-
let m = `dismantle${u}`;
|
|
1739
|
-
this.$nextTick(() => {
|
|
1740
|
-
setTimeout(() => {
|
|
1741
|
-
this.$refs[m][0].addFocused(c), this.selData(null, u);
|
|
1742
|
-
}, 30);
|
|
1743
|
-
});
|
|
1744
|
-
},
|
|
1745
|
-
merge(a, e) {
|
|
1746
|
-
if (e === 0)
|
|
1747
|
-
return;
|
|
1748
|
-
let t = [], s = "";
|
|
1749
|
-
a.forEach((r) => {
|
|
1750
|
-
r.type === 1 ? s += r.fieldvalue : r.type === 2 && (s += `[${r.varnumber}-${r.title}]`);
|
|
1751
|
-
}), this.splitList.forEach((r, o) => {
|
|
1752
|
-
o !== e ? t.push(r) : (t[t.length - 1].fieldjsons = t[t.length - 1].fieldjsons.concat(r.fieldjsons), t[t.length - 1].content = t[t.length - 1].content + s);
|
|
1753
|
-
});
|
|
1754
|
-
let i = `dismantle${e - 1}`, l = this.$refs[i][0].splitList.length, n = this.$refs[i][0].splitList[l - 1].fieldvalue.split("").length;
|
|
1755
|
-
this.splitList = [...t], this.$nextTick(() => {
|
|
1756
|
-
setTimeout(() => {
|
|
1757
|
-
this.$refs[i][0].mergeFocused(n, l), this.selData(null, e - 1);
|
|
1758
|
-
}, 30);
|
|
1759
|
-
});
|
|
1760
|
-
},
|
|
1761
|
-
analysis(a) {
|
|
1762
|
-
let e = [];
|
|
1763
|
-
this.record.content.replace(/\\n/g, `
|
|
1764
|
-
`).split(`
|
|
1765
|
-
`).forEach((s) => {
|
|
1766
|
-
e.push(
|
|
1767
|
-
Object.assign(
|
|
1768
|
-
{
|
|
1769
|
-
...this.record
|
|
1770
|
-
},
|
|
1771
|
-
{
|
|
1772
|
-
content: s,
|
|
1773
|
-
fieldjsons: this.getFieldInfos(s)
|
|
1774
|
-
}
|
|
1775
|
-
)
|
|
1776
|
-
);
|
|
1777
|
-
}), this.splitList = e;
|
|
1778
|
-
},
|
|
1779
|
-
getFieldInfos(a) {
|
|
1780
|
-
let e = [];
|
|
1781
|
-
return (this.record.fieldjsons ? this.record.fieldjsons : []).forEach((s) => {
|
|
1782
|
-
let i = `[${s.varnumber}-${s.title}]`;
|
|
1783
|
-
a.split(i).length > 1 && e.push(s);
|
|
1784
|
-
}), e;
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
};
|
|
1788
|
-
var Ve = function() {
|
|
1789
|
-
var e = this, t = e._self._c;
|
|
1790
|
-
return t("div", { staticClass: "dismantle pa", style: e.style }, [e._l(e.splitList, function(s, i) {
|
|
1791
|
-
return [t("fieldConcatenation", { ref: `dismantle${i}`, refInFor: !0, attrs: { record: s, ind: `${e.ind}_${i}`, detail: e.splitList }, on: { merge: (l) => e.merge(l, i, s), add: (l) => e.add(l, i), delItem: (l) => e.delItem(l, i), selData: (l) => e.selData(l, i), addFieldJsons: (l) => e.addFieldJsons(l, i) } })];
|
|
1792
|
-
})], 2);
|
|
1793
|
-
}, Be = [], Ae = /* @__PURE__ */ p(
|
|
1794
|
-
qe,
|
|
1795
|
-
Ve,
|
|
1796
|
-
Be,
|
|
1797
|
-
!1,
|
|
1798
|
-
null,
|
|
1799
|
-
"0e46c479",
|
|
1800
|
-
null,
|
|
1801
|
-
null
|
|
1802
|
-
);
|
|
1803
|
-
const ze = Ae.exports;
|
|
1804
|
-
const We = {
|
|
1805
|
-
data() {
|
|
1806
|
-
return {
|
|
1807
|
-
ruleFormData: {},
|
|
1808
|
-
id: "",
|
|
1809
|
-
spinning: !1,
|
|
1810
|
-
tempData: [],
|
|
1811
|
-
otempData: [],
|
|
1812
|
-
currentFieldIdx: 0
|
|
1813
|
-
};
|
|
1814
|
-
},
|
|
1815
|
-
components: {
|
|
1816
|
-
fieldConfiguration: Fe,
|
|
1817
|
-
fieldLook: Oe,
|
|
1818
|
-
dismantle: ze
|
|
1819
|
-
},
|
|
1820
|
-
computed: {
|
|
1821
|
-
styled() {
|
|
1822
|
-
return `color:${this.primaryColor};`;
|
|
1823
|
-
},
|
|
1824
|
-
varkey() {
|
|
1825
|
-
return `color:${this.primaryColor};`;
|
|
1826
|
-
},
|
|
1827
|
-
...f(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
|
|
1828
|
-
},
|
|
1829
|
-
methods: {
|
|
1830
|
-
getHtml(a) {
|
|
1831
|
-
let e = a.html;
|
|
1832
|
-
return (a.fieldjsons ? a.fieldjsons : []).forEach((s) => {
|
|
1833
|
-
let i = this.$i18nt(`Dynamics.${s.transkey}`, s.title);
|
|
1834
|
-
e = e.replace(`[${s.varnumber}-${s.title}]`, `[${s.varnumber}-${i}]`);
|
|
1835
|
-
}), e;
|
|
1836
|
-
},
|
|
1837
|
-
handleSubmitOk(a) {
|
|
1838
|
-
let e = `fieldConcatenation${this.currentFieldIdx}`;
|
|
1839
|
-
this.$refs[e][0].addField(a);
|
|
1840
|
-
},
|
|
1841
|
-
changeUsables(a, e) {
|
|
1842
|
-
this.tempData[e].isUsables = a;
|
|
1843
|
-
},
|
|
1844
|
-
setTempData(a) {
|
|
1845
|
-
this.spinning = !0, this.tempData = a.msg_templatedetailedlist.map((e) => (e.isusables = e.isusable == 1, e.showedit = !1, e.showfield = !1, e.isdisplay = 1, e)), this.spinning = !1;
|
|
1846
|
-
},
|
|
1847
|
-
getTemplateDetailed(a) {
|
|
1848
|
-
if (a == "") {
|
|
1849
|
-
this.tempData = [];
|
|
1850
|
-
return;
|
|
1851
|
-
}
|
|
1852
|
-
this.id = a, this.spinning = !0, F({
|
|
1853
|
-
id: a
|
|
1854
|
-
}).then((e) => {
|
|
1855
|
-
let t = [];
|
|
1856
|
-
e.data.msg_templatedetailedlist.forEach((s) => {
|
|
1857
|
-
if (s.isdisplay == 1) {
|
|
1858
|
-
let i = {
|
|
1859
|
-
name: s.name,
|
|
1860
|
-
content: s.content,
|
|
1861
|
-
color: "",
|
|
1862
|
-
showedit: !1,
|
|
1863
|
-
html: s.content,
|
|
1864
|
-
showfield: !1,
|
|
1865
|
-
fieldinfos: [],
|
|
1866
|
-
fieldjsons: [],
|
|
1867
|
-
isdisplay: s.isdisplay,
|
|
1868
|
-
isusable: 1,
|
|
1869
|
-
isusables: !0
|
|
1870
|
-
};
|
|
1871
|
-
t.push(i);
|
|
1872
|
-
}
|
|
1873
|
-
}), this.tempData = t, this.spinning = !1;
|
|
1874
|
-
});
|
|
1875
|
-
},
|
|
1876
|
-
addField(a) {
|
|
1877
|
-
let e = 0;
|
|
1878
|
-
this.$refs.fieldConfiguration.addField(a, e), this.currentFieldIdx = a;
|
|
1879
|
-
},
|
|
1880
|
-
confirmText(a) {
|
|
1881
|
-
let e = [...this.tempData], t = `fieldConcatenation${a}`, s = this.$refs[t][0].splitList;
|
|
1882
|
-
console.log(s);
|
|
1883
|
-
let i = "", l = [];
|
|
1884
|
-
s.forEach((r, o) => {
|
|
1885
|
-
o !== 0 && (i += `
|
|
1886
|
-
`), i += r.content, l = l.concat(r.fieldjsons);
|
|
1887
|
-
});
|
|
1888
|
-
let n = i.replace(/\[/g, "<a class='varkey'>[");
|
|
1889
|
-
e[a] = Object.assign(e[a], {
|
|
1890
|
-
html: n.replace(/\]/g, "]</a>"),
|
|
1891
|
-
content: i,
|
|
1892
|
-
showedit: !1,
|
|
1893
|
-
fieldjsons: l
|
|
1894
|
-
}), this.tempData = [...e];
|
|
1895
|
-
},
|
|
1896
|
-
showField(a) {
|
|
1897
|
-
let e = [...this.tempData];
|
|
1898
|
-
e[a].showfield = !e[a].showfield, this.tempData = [...e];
|
|
1899
|
-
},
|
|
1900
|
-
showEdit(a) {
|
|
1901
|
-
let e = this.otempData.filter((t) => t.ind !== a);
|
|
1902
|
-
this.otempData = e.concat({
|
|
1903
|
-
ind: a,
|
|
1904
|
-
data: JSON.stringify(this.tempData[a])
|
|
1905
|
-
}), this.tempData[a].showedit = !this.tempData[a].showedit;
|
|
1906
|
-
},
|
|
1907
|
-
hideEdit(a) {
|
|
1908
|
-
let e = this.otempData.filter((i) => i.ind === a)[0], t = JSON.parse(e.data), s = [...this.tempData];
|
|
1909
|
-
s.forEach((i, l) => {
|
|
1910
|
-
l === a && (s[l] = Object.assign(
|
|
1911
|
-
{
|
|
1912
|
-
...i
|
|
1913
|
-
},
|
|
1914
|
-
t,
|
|
1915
|
-
{
|
|
1916
|
-
showedit: !1
|
|
1917
|
-
}
|
|
1918
|
-
));
|
|
1919
|
-
}), this.tempData = [...s];
|
|
1920
|
-
},
|
|
1921
|
-
getDictionary(a) {
|
|
1922
|
-
return this.$options.filters.dictData(a);
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
};
|
|
1926
|
-
var He = function() {
|
|
1927
|
-
var e = this, t = e._self._c;
|
|
1928
|
-
return t("div", [t("el-form", { ref: "ruleForm", attrs: { "label-width": "110px", "label-position": e.labelPosition }, nativeOn: { submit: function(s) {
|
|
1929
|
-
s.preventDefault();
|
|
1930
|
-
} } }, [t("el-row", { attrs: { gutter: 24 } }, e._l(e.tempData, function(s, i) {
|
|
1931
|
-
return t("el-col", { key: i, attrs: { span: 24 } }, [t("el-form-item", { attrs: { label: s.name } }, [t("el-button", { directives: [{ name: "show", rawName: "v-show", value: !s.showedit, expression: "!item.showedit" }], staticStyle: { "font-size": "14px", padding: "6px 8px", "margin-left": "0px" }, attrs: { type: "primary", icon: "el-icon-edit", size: "mini" }, on: { click: function(l) {
|
|
1932
|
-
return e.showEdit(i);
|
|
1933
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")]), s.noable ? e._e() : [t("el-checkbox", { directives: [{ name: "show", rawName: "v-show", value: !s.showedit, expression: "!item.showedit" }], staticStyle: { "margin-left": "30px" }, on: { change: function(l) {
|
|
1934
|
-
return e.changeUsables(l, i);
|
|
1935
|
-
} }, model: { value: s.isusables, callback: function(l) {
|
|
1936
|
-
e.$set(s, "isusables", l);
|
|
1937
|
-
}, expression: "item.isusables" } }, [e._v(" " + e._s(e.$i18nt("gd.msg.temPlate.isEnabled", "\u662F\u5426\u542F\u7528")) + " ")])], t("div", { staticClass: "showdoc", domProps: { innerHTML: e._s(e.getHtml(s)) }, on: { click: function(l) {
|
|
1938
|
-
return e.showField(i);
|
|
1939
|
-
} } }), t("div", { directives: [{ name: "show", rawName: "v-show", value: s.showedit, expression: "item.showedit" }], staticClass: "inputbox" }, [t("dismantle", { ref: `fieldConcatenation${i}`, refInFor: !0, attrs: { record: s, ind: i } }), t("div", { staticClass: "flex-between" }, [t("div", { staticClass: "left-btn" }, [t("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px", "margin-left": "0px" }, attrs: { type: "primary", icon: "el-icon-plus", size: "mini" }, on: { click: function(l) {
|
|
1940
|
-
return e.addField(i);
|
|
1941
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.msg.temPlate.addField", "\u6DFB\u52A0\u5B57\u6BB5")) + " ")])], 1), t("div", { staticClass: "right-btn" }, [t("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px" }, attrs: { size: "mini", icon: "el-icon-back", type: "info" }, on: { click: function(l) {
|
|
1942
|
-
return e.hideEdit(i);
|
|
1943
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")]), t("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px", "margin-left": "1px" }, attrs: { type: "primary", size: "mini", icon: "el-icon-document-checked" }, on: { click: function(l) {
|
|
1944
|
-
return e.confirmText(i);
|
|
1945
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.confirm", "\u786E\u5B9A")) + " ")])], 1)])], 1), t("fieldLook", { attrs: { item: s }, on: { close: function(l) {
|
|
1946
|
-
return e.showField(i);
|
|
1947
|
-
} } })], 2)], 1);
|
|
1948
|
-
}), 1)], 1), t("fieldConfiguration", { ref: "fieldConfiguration", attrs: { tempData: e.tempData }, on: { ok: e.handleSubmitOk } })], 1);
|
|
1949
|
-
}, Je = [], Qe = /* @__PURE__ */ p(
|
|
1950
|
-
We,
|
|
1951
|
-
He,
|
|
1952
|
-
Je,
|
|
1953
|
-
!1,
|
|
1954
|
-
null,
|
|
1955
|
-
"4bad43e9",
|
|
1956
|
-
null,
|
|
1957
|
-
null
|
|
1958
|
-
);
|
|
1959
|
-
const Ge = Qe.exports;
|
|
1960
|
-
const Ue = {
|
|
1961
|
-
data() {
|
|
1962
|
-
return {
|
|
1963
|
-
fullscreen: !1,
|
|
1964
|
-
visible: !1,
|
|
1965
|
-
confirmLoading: !1,
|
|
1966
|
-
showWeCom: !1,
|
|
1967
|
-
showWeOfficial: !1,
|
|
1968
|
-
weComList: [],
|
|
1969
|
-
weComAppList: [],
|
|
1970
|
-
weOfficialList: [],
|
|
1971
|
-
sysViewButtons: [
|
|
1972
|
-
{
|
|
1973
|
-
displayName: "\u786E\u5B9A",
|
|
1974
|
-
functionName: "handleSubmit",
|
|
1975
|
-
show: !0,
|
|
1976
|
-
transKey: "gd.btn.confirm",
|
|
1977
|
-
icon: "el-icon-document-checked"
|
|
1978
|
-
}
|
|
1979
|
-
],
|
|
1980
|
-
title: "",
|
|
1981
|
-
loading: !1,
|
|
1982
|
-
rules: {
|
|
1983
|
-
name: [
|
|
1984
|
-
{
|
|
1985
|
-
required: !0,
|
|
1986
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
1987
|
-
trigger: "change"
|
|
1988
|
-
}
|
|
1989
|
-
],
|
|
1990
|
-
msg_templatelibraryid: [
|
|
1991
|
-
{
|
|
1992
|
-
required: !0,
|
|
1993
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
1994
|
-
trigger: "change"
|
|
1995
|
-
}
|
|
1996
|
-
]
|
|
1997
|
-
},
|
|
1998
|
-
ruleFormData: {
|
|
1999
|
-
id: 0,
|
|
2000
|
-
name: "",
|
|
2001
|
-
msg_templatelibraryid: "",
|
|
2002
|
-
example: ""
|
|
2003
|
-
},
|
|
2004
|
-
fkEntityName: "msg_templatelibrary",
|
|
2005
|
-
firstLoading: !1,
|
|
2006
|
-
parseData: [],
|
|
2007
|
-
showParseInfo: !1,
|
|
2008
|
-
width: "1000px",
|
|
2009
|
-
dataList: [],
|
|
2010
|
-
fileList: [],
|
|
2011
|
-
filePath: "",
|
|
2012
|
-
detail: {},
|
|
2013
|
-
imgList: [],
|
|
2014
|
-
currentImg: ""
|
|
2015
|
-
};
|
|
2016
|
-
},
|
|
2017
|
-
computed: {
|
|
2018
|
-
...f(["tablePageSize", "tableSize", "tableLists", "screenHeight", "labelPosition", "formMode"])
|
|
2019
|
-
},
|
|
2020
|
-
components: {
|
|
2021
|
-
plateTemp: Ge
|
|
2022
|
-
},
|
|
2023
|
-
methods: {
|
|
2024
|
-
lookupSeled(a) {
|
|
2025
|
-
this.dataList = a.fkData, this.ruleFormData.msg_templatelibraryid = a.data[0], this.changeTemplate(a.data[0]);
|
|
2026
|
-
},
|
|
2027
|
-
lookup(a) {
|
|
2028
|
-
let e = a, t = {
|
|
2029
|
-
effectType: "fk",
|
|
2030
|
-
fkEntityName: "SysMsgTemplateLibrary",
|
|
2031
|
-
val: e || []
|
|
2032
|
-
};
|
|
2033
|
-
this.$refs.msgSearch.open(t);
|
|
2034
|
-
},
|
|
2035
|
-
copyInit(a) {
|
|
2036
|
-
this.parameterData = {}, this.fullScreen = !1, this.visible = !0, this.detail = a, this.type = 1, this.title = this.$i18nt("gd.https.copy", "\u590D\u5236\u65B0\u589E"), this.getDetail(!1);
|
|
2037
|
-
},
|
|
2038
|
-
open(a) {
|
|
2039
|
-
this.visible = !0, this.detail = a || [], this.title = a ? this.$i18nt("gd.btn.edit") : this.$i18nt("gd.btn.add"), this.type = a ? 2 : 1, a ? this.getDetail() : (this.searchData(""), this.$nextTick(() => {
|
|
2040
|
-
setTimeout(() => {
|
|
2041
|
-
this.ruleFormData.name = "", this.ruleFormData.msg_templatelibraryid = "";
|
|
2042
|
-
}, 0);
|
|
2043
|
-
}));
|
|
2044
|
-
},
|
|
2045
|
-
getDetail(a) {
|
|
2046
|
-
this.confirmLoading = !0, j({
|
|
2047
|
-
id: this.detail.id
|
|
2048
|
-
}).then((e) => {
|
|
2049
|
-
if (e.code === 200) {
|
|
2050
|
-
this.parameterData = e.data.msg_templatelibrary;
|
|
2051
|
-
let t = e.data.msg_templatelibrary;
|
|
2052
|
-
t.example != "" && t.example != null ? this.sysFileInfoPreview(t.example) : this.fileList = [];
|
|
2053
|
-
let s = {
|
|
2054
|
-
name: t.name,
|
|
2055
|
-
msg_templatelibraryid: t.msg_templatelibraryid ? t.msg_templatelibraryid : "",
|
|
2056
|
-
example: t.example
|
|
2057
|
-
};
|
|
2058
|
-
a && (s = Object.assign(s, {
|
|
2059
|
-
id: t.id
|
|
2060
|
-
})), this.ruleFormData = s, e.data.msg_templatedetailedlist.length > 0 && this.$refs.plateTemp.setTempData(e.data), t.msg_templatelibraryid ? (this.searchId(t.msg_templatelibraryid), this.confirmLoading = !1) : (this.searchData(""), this.confirmLoading = !1);
|
|
2061
|
-
} else
|
|
2062
|
-
this.confirmLoading = !1;
|
|
2063
|
-
});
|
|
2064
|
-
},
|
|
2065
|
-
changeTemplate(a) {
|
|
2066
|
-
this.$refs.plateTemp.getTemplateDetailed(a);
|
|
2067
|
-
},
|
|
2068
|
-
searchList() {
|
|
2069
|
-
this.firstLoading || (this.searchData(""), this.firstLoading = !0);
|
|
2070
|
-
},
|
|
2071
|
-
searchData(a) {
|
|
2072
|
-
this.dataList = [], g({
|
|
2073
|
-
fkEntityName: this.fkEntityName,
|
|
2074
|
-
name: a
|
|
2075
|
-
}).then((e) => {
|
|
2076
|
-
this.dataList = e.success ? e.data.map((t) => (t.tableName = this.fkEntityName, t)) : [];
|
|
2077
|
-
});
|
|
2078
|
-
},
|
|
2079
|
-
searchId(a) {
|
|
2080
|
-
return this.dataList = [], this.fetching = !0, g({
|
|
2081
|
-
fkEntityName: this.fkEntityName,
|
|
2082
|
-
id: a
|
|
2083
|
-
}).then((e) => (this.dataList = e.success ? e.data.map((t) => (t.tableName = this.fkEntityName, t)) : [], this.fetching = !1, e));
|
|
2084
|
-
},
|
|
2085
|
-
closed() {
|
|
2086
|
-
this.$refs.ruleForm.resetFields(), this.visible = !1, this.showParseInfo = !1, this.fullscreen = !1, this.parseData = [];
|
|
2087
|
-
},
|
|
2088
|
-
toggleFullscreen() {
|
|
2089
|
-
this.fullscreen = !this.fullscreen;
|
|
2090
|
-
},
|
|
2091
|
-
handleSubmit() {
|
|
2092
|
-
this.confirmLoading = !0, this.$refs.ruleForm.validate((a) => {
|
|
2093
|
-
if (a) {
|
|
2094
|
-
let e = this.$refs.plateTemp.tempData, t = JSON.parse(JSON.stringify(e));
|
|
2095
|
-
t.forEach((l, n) => (l.isusable = l.isusables ? 1 : 0, l.templatejson = JSON.stringify(l.fieldjsons), l));
|
|
2096
|
-
let s;
|
|
2097
|
-
this.type == 1 ? s = Object.assign(this.ruleFormData, {
|
|
2098
|
-
msg_messagetemplatedetailed_msg_messagetemplateid: t
|
|
2099
|
-
}) : s = Object.assign(this.parameterData, this.ruleFormData, {
|
|
2100
|
-
msg_messagetemplatedetailed_msg_messagetemplateid: t
|
|
2101
|
-
}), (this.type == 1 ? R : I)(s).then((l) => {
|
|
2102
|
-
l.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok", s), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + l.message), this.confirmLoading = !1;
|
|
2103
|
-
});
|
|
2104
|
-
} else
|
|
2105
|
-
this.confirmLoading = !1;
|
|
2106
|
-
});
|
|
2107
|
-
},
|
|
2108
|
-
successImg(a, e, t) {
|
|
2109
|
-
this.ruleFormData.example = a.id;
|
|
2110
|
-
},
|
|
2111
|
-
removeImg() {
|
|
2112
|
-
this.ruleFormData.example = "";
|
|
2113
|
-
},
|
|
2114
|
-
previewImg(a) {
|
|
2115
|
-
this.imgList = [a.url], this.currentImg = a.url, this.$refs.imgPreview.open();
|
|
2116
|
-
},
|
|
2117
|
-
uploadImg(a) {
|
|
2118
|
-
new FormData().append("file", a.file), te(a).then((t) => {
|
|
2119
|
-
t.code === 200 ? a.onSuccess(t.data) : (this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25:") + t.message), a.onError());
|
|
2120
|
-
}).catch((t) => {
|
|
2121
|
-
a.onError(t);
|
|
2122
|
-
});
|
|
2123
|
-
},
|
|
2124
|
-
sysFileInfoPreview(a) {
|
|
2125
|
-
P({
|
|
2126
|
-
id: a
|
|
2127
|
-
}).then((e) => {
|
|
2128
|
-
this.confirmLoading = !1, this.downloadfile(e);
|
|
2129
|
-
}).catch((e) => {
|
|
2130
|
-
this.confirmLoading = !1, this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + e.message);
|
|
2131
|
-
});
|
|
2132
|
-
},
|
|
2133
|
-
downloadfile(a) {
|
|
2134
|
-
const e = new Blob([a]);
|
|
2135
|
-
this.filePath = window.URL.createObjectURL(e), this.fileList = [
|
|
2136
|
-
{
|
|
2137
|
-
name: y(),
|
|
2138
|
-
url: this.filePath
|
|
2139
|
-
}
|
|
2140
|
-
];
|
|
2141
|
-
},
|
|
2142
|
-
doEvent(a) {
|
|
2143
|
-
let e = a.item.functionName;
|
|
2144
|
-
this[e] && this[e]();
|
|
2145
|
-
},
|
|
2146
|
-
getDictionary(a) {
|
|
2147
|
-
return this.$options.filters.dictData(a);
|
|
2148
|
-
}
|
|
2149
|
-
}
|
|
2150
|
-
};
|
|
2151
|
-
var Xe = function() {
|
|
2152
|
-
var e = this, t = e._self._c;
|
|
2153
|
-
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(s) {
|
|
2154
|
-
e.visible = s;
|
|
2155
|
-
}, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "b" }, [t("el-form", { ref: "ruleForm", attrs: { "label-width": "110px", "label-position": e.labelPosition, model: e.ruleFormData, rules: e.rules }, nativeOn: { submit: function(s) {
|
|
2156
|
-
s.preventDefault();
|
|
2157
|
-
} } }, [t("el-row", { attrs: { gutter: 20 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.temPlate.name", "\u540D\u79F0"), prop: "name" } }, [t("el-input", { model: { value: e.ruleFormData.name, callback: function(s) {
|
|
2158
|
-
e.$set(e.ruleFormData, "name", s);
|
|
2159
|
-
}, expression: "ruleFormData.name" } })], 1)], 1), t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.temPlate.temPlate", "\u6A21\u677F\u5E93"), prop: "msg_templatelibraryid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": e.searchData, "collapse-tags": !0 }, on: { focus: e.searchList, change: e.changeTemplate }, model: { value: e.ruleFormData.msg_templatelibraryid, callback: function(s) {
|
|
2160
|
-
e.$set(e.ruleFormData, "msg_templatelibraryid", s);
|
|
2161
|
-
}, expression: "ruleFormData.msg_templatelibraryid" } }, e._l(e.dataList, function(s) {
|
|
2162
|
-
return t("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
|
|
2163
|
-
}), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
2164
|
-
return s.stopPropagation(), e.lookup(e.ruleFormData.msg_templatelibraryid);
|
|
2165
|
-
} } })])], 1)])], 1)], 1), t("el-row", { attrs: { gutter: 20 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.temPlate.diagram", "\u793A\u4F8B\u56FE"), prop: "example" } }, [t("el-upload", { staticClass: "upload-demo", class: e.ruleFormData.example ? "hide-demo" : "", attrs: { action: "", "list-type": "picture-card", "on-preview": e.previewImg, "on-remove": e.removeImg, limit: 1, "http-request": e.uploadImg, "on-success": e.successImg, "file-list": e.fileList, accept: "image/gif, image/jpeg, image/png" } }, [t("i", { staticClass: "el-icon-plus", staticStyle: { "font-size": "18px" } })])], 1)], 1)], 1)], 1), e.visible ? t("plateTemp", { ref: "plateTemp" }) : e._e()], 1)], 1), t("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } }), t("gd-img-preview", { ref: "imgPreview", attrs: { filePreviewShow: e.imgList.length > 0, imgList: e.imgList, currentImg: e.currentImg } })], 1);
|
|
2166
|
-
}, Ye = [], Ze = /* @__PURE__ */ p(
|
|
2167
|
-
Ue,
|
|
2168
|
-
Xe,
|
|
2169
|
-
Ye,
|
|
2170
|
-
!1,
|
|
2171
|
-
null,
|
|
2172
|
-
"ad6c78fa",
|
|
2173
|
-
null,
|
|
2174
|
-
null
|
|
2175
|
-
);
|
|
2176
|
-
const O = Ze.exports;
|
|
2177
|
-
const et = {
|
|
2178
|
-
data() {
|
|
2179
|
-
return {
|
|
2180
|
-
fullscreen: !1,
|
|
2181
|
-
visible: !1,
|
|
2182
|
-
confirmLoading: !1,
|
|
2183
|
-
showWeCom: !1,
|
|
2184
|
-
showWeOfficial: !1,
|
|
2185
|
-
weComList: [],
|
|
2186
|
-
weComAppList: [],
|
|
2187
|
-
weOfficialList: [],
|
|
2188
|
-
sysViewButtons: [
|
|
2189
|
-
{
|
|
2190
|
-
displayName: "\u786E\u5B9A",
|
|
2191
|
-
functionName: "handleSubmit",
|
|
2192
|
-
show: !0,
|
|
2193
|
-
transKey: "gd.btn.confirm",
|
|
2194
|
-
icon: "el-icon-document-checked"
|
|
2195
|
-
}
|
|
2196
|
-
],
|
|
2197
|
-
title: "",
|
|
2198
|
-
loading: !1,
|
|
2199
|
-
rules: {
|
|
2200
|
-
name: [
|
|
2201
|
-
{
|
|
2202
|
-
required: !0,
|
|
2203
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
2204
|
-
trigger: "change"
|
|
2205
|
-
}
|
|
2206
|
-
],
|
|
2207
|
-
templatetype: [
|
|
2208
|
-
{
|
|
2209
|
-
required: !0,
|
|
2210
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
2211
|
-
trigger: "change"
|
|
2212
|
-
}
|
|
2213
|
-
],
|
|
2214
|
-
enterprisewechatid: [
|
|
2215
|
-
{
|
|
2216
|
-
required: !0,
|
|
2217
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
2218
|
-
trigger: "change"
|
|
2219
|
-
}
|
|
2220
|
-
],
|
|
2221
|
-
enterprisewechatappid: [
|
|
2222
|
-
{
|
|
2223
|
-
required: !0,
|
|
2224
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
2225
|
-
trigger: "change"
|
|
2226
|
-
}
|
|
2227
|
-
],
|
|
2228
|
-
wechatpublicaccountid: [
|
|
2229
|
-
{
|
|
2230
|
-
required: !0,
|
|
2231
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
2232
|
-
trigger: "change"
|
|
2233
|
-
}
|
|
2234
|
-
]
|
|
2235
|
-
},
|
|
2236
|
-
ruleFormData: {
|
|
2237
|
-
id: 0,
|
|
2238
|
-
name: "",
|
|
2239
|
-
templatetype: "",
|
|
2240
|
-
enterprisewechatid: "",
|
|
2241
|
-
enterprisewechatappid: "",
|
|
2242
|
-
content: "",
|
|
2243
|
-
wechatpublicaccountid: ""
|
|
2244
|
-
},
|
|
2245
|
-
fkEntity: [
|
|
2246
|
-
{
|
|
2247
|
-
field: "enterprisewechatid",
|
|
2248
|
-
fkEntityName: "bas_enterprisewechat",
|
|
2249
|
-
filterd: []
|
|
2250
|
-
},
|
|
2251
|
-
{
|
|
2252
|
-
field: "enterprisewechatappid",
|
|
2253
|
-
fkEntityName: "bas_enterprisewechatapp",
|
|
2254
|
-
filterd: []
|
|
2255
|
-
},
|
|
2256
|
-
{
|
|
2257
|
-
field: "wechatpublicaccountid",
|
|
2258
|
-
fkEntityName: "bas_wechatpublicaccount",
|
|
2259
|
-
filterd: []
|
|
2260
|
-
}
|
|
2261
|
-
],
|
|
2262
|
-
firstLoading: !1,
|
|
2263
|
-
firstWeComApp: !1,
|
|
2264
|
-
firstWeOfficial: !1,
|
|
2265
|
-
parseData: [],
|
|
2266
|
-
showParseInfo: !1,
|
|
2267
|
-
width: "1000px"
|
|
2268
|
-
};
|
|
2269
|
-
},
|
|
2270
|
-
computed: {
|
|
2271
|
-
getSendType() {
|
|
2272
|
-
let a = [], e = [];
|
|
2273
|
-
return this.getDictionary("SendType").map((s) => (s.disabled = s.statecodes != 1, s.disabled ? e.push(s) : a.push(s), s)), this.type == 1 ? a : a.concat(e);
|
|
2274
|
-
},
|
|
2275
|
-
...f(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
2276
|
-
},
|
|
2277
|
-
methods: {
|
|
2278
|
-
lookupSeled(a) {
|
|
2279
|
-
this.lookField === "enterprisewechatid" ? (this.ruleFormData.enterprisewechatid = a.data[0], this.weComList = a.fkData) : this.lookField === "enterprisewechatappid" ? (this.ruleFormData.enterprisewechatappid = a.data[0], this.weComAppList = a.fkData) : this.lookField === "wechatpublicaccountid" && (this.ruleFormData.wechatpublicaccountid = a.data[0], this.weOfficialLis = a.fkData);
|
|
2280
|
-
},
|
|
2281
|
-
lookup(a, e) {
|
|
2282
|
-
this.lookField = e;
|
|
2283
|
-
let t = a, s = this.fkEntity.filter((n) => n.field === e)[0], i = s.filterd.filter((n) => n.fieldValue !== ""), l = {
|
|
2284
|
-
effectType: "fk",
|
|
2285
|
-
fkEntityName: s.fkEntityName,
|
|
2286
|
-
val: t || []
|
|
2287
|
-
};
|
|
2288
|
-
e === "enterprisewechatappid" && (l = Object.assign(l, {
|
|
2289
|
-
filterList: i
|
|
2290
|
-
})), this.$refs.msgSearch.open(l);
|
|
2291
|
-
},
|
|
2292
|
-
open(a) {
|
|
2293
|
-
this.visible = !0, this.detail = a || [], this.title = a ? this.$i18nt("gd.btn.edit") : this.$i18nt("gd.btn.add"), this.type = a ? 2 : 1, this.loadWeCom = !1, this.loadWeComApp = !1, this.loadWeOfficial = !1, this.showWeCom = !1, this.showWeOfficial = !1, a ? this.getDetail() : this.ruleFormData = {
|
|
2294
|
-
id: 0,
|
|
2295
|
-
name: "",
|
|
2296
|
-
templatetype: "",
|
|
2297
|
-
enterprisewechatid: "",
|
|
2298
|
-
enterprisewechatappid: "",
|
|
2299
|
-
content: "",
|
|
2300
|
-
wechatpublicaccountid: ""
|
|
2301
|
-
};
|
|
2302
|
-
},
|
|
2303
|
-
getDetail() {
|
|
2304
|
-
this.confirmLoading = !0, F({
|
|
2305
|
-
id: this.detail.id
|
|
2306
|
-
}).then((a) => {
|
|
2307
|
-
if (a.code === 200) {
|
|
2308
|
-
let e = a.data.msg_templatelibrary, t = {
|
|
2309
|
-
id: e.id,
|
|
2310
|
-
name: e.name,
|
|
2311
|
-
bas_wechatappid: e.bas_wechatappid ? e.bas_wechatappid : void 0,
|
|
2312
|
-
content: e.content,
|
|
2313
|
-
templatetype: e.templatetype != null ? String(e.templatetype) : void 0
|
|
2314
|
-
}, s = a.data.msg_templatedetailedlist ? a.data.msg_templatedetailedlist : [];
|
|
2315
|
-
this.parseData = s.map((i) => (i.isdisplays = i.isdisplay === 1, i)), this.showParseInfo = s.length != 0, e.templatetype == 1 ? (this.showWeCom = !0, t = Object.assign(t, {
|
|
2316
|
-
enterprisewechatid: e.enterprisewechatid,
|
|
2317
|
-
enterprisewechatappid: e.enterprisewechatappid
|
|
2318
|
-
}), this.getWechatData(e, ["bas_enterprisewechat", "bas_enterprisewechatapp"]), this.loadWeCom = !0, this.loadWeComApp = !0) : e.templatetype == 3 ? (this.showWeOfficial = !0, t = Object.assign(t, {
|
|
2319
|
-
wechatpublicaccountid: e.wechatpublicaccountid
|
|
2320
|
-
}), this.getWechatData(e, ["bas_wechatpublicaccount"]), this.loadWeOfficial = !0) : this.confirmLoading = !1, this.$nextTick(() => {
|
|
2321
|
-
setTimeout(() => {
|
|
2322
|
-
this.ruleFormData = Object.assign({
|
|
2323
|
-
...t
|
|
2324
|
-
});
|
|
2325
|
-
}, 0);
|
|
2326
|
-
});
|
|
2327
|
-
} else
|
|
2328
|
-
this.confirmLoading = !1;
|
|
2329
|
-
});
|
|
2330
|
-
},
|
|
2331
|
-
getWechatData(a, e) {
|
|
2332
|
-
let t = [];
|
|
2333
|
-
this.fkEntity.filter((i) => e.includes(i.fkEntityName)).forEach((i) => {
|
|
2334
|
-
let l = i.filterd.filter((o) => o.fieldValue !== ""), n = {
|
|
2335
|
-
fkEntityName: i.fkEntityName,
|
|
2336
|
-
filter: l,
|
|
2337
|
-
id: a[i.field] ? a[i.field] : ""
|
|
2338
|
-
}, r = this.searchFk(n);
|
|
2339
|
-
t.push(r);
|
|
2340
|
-
}), Promise.all(t).then(() => {
|
|
2341
|
-
this.confirmLoading = !1;
|
|
2342
|
-
});
|
|
2343
|
-
},
|
|
2344
|
-
searchFk(a) {
|
|
2345
|
-
return this.weComList = a.fkEntityName === "bas_enterprisewechat" ? [] : this.weComList, this.weComAppList = a.fkEntityName === "bas_enterprisewechatapp" ? [] : this.weComAppList, this.weOfficialList = a.fkEntityName === "bas_wechatpublicaccount" ? [] : this.weOfficialList, g(a).then((e) => {
|
|
2346
|
-
let t = e.success ? e.data.map((s) => (s.tableName = a.fkEntityName, s)) : [];
|
|
2347
|
-
return this.weComList = a.fkEntityName === "bas_enterprisewechat" ? t : this.weComList, this.weComAppList = a.fkEntityName === "bas_enterprisewechatapp" ? t : this.weComAppList, this.weOfficialList = a.fkEntityName === "bas_wechatpublicaccount" ? t : this.weOfficialList, e;
|
|
2348
|
-
});
|
|
2349
|
-
},
|
|
2350
|
-
selTemplateType(a) {
|
|
2351
|
-
this.showWeCom = a == 1, this.showWeOfficial = a == 3;
|
|
2352
|
-
},
|
|
2353
|
-
changeWeCom(a) {
|
|
2354
|
-
let e = {
|
|
2355
|
-
fieldName: "enterprisewechatid",
|
|
2356
|
-
operator: "equal",
|
|
2357
|
-
columnName: "enterprisewechatid",
|
|
2358
|
-
fieldValue: a || ""
|
|
2359
|
-
}, t = [...this.fkEntity];
|
|
2360
|
-
t.map((s) => (s.field === "enterprisewechatappid" && (s.filterd = [e]), s)), this.fkEntity = [...t], this.loadWeComApp = !1;
|
|
2361
|
-
},
|
|
2362
|
-
fkSearch() {
|
|
2363
|
-
this.firstLoading || (this.searchData(""), this.firstLoading = !0);
|
|
2364
|
-
},
|
|
2365
|
-
searchData(a) {
|
|
2366
|
-
let e = this.fkEntity.filter((t) => t.field === "enterprisewechatid")[0];
|
|
2367
|
-
this.weComList = [], g({
|
|
2368
|
-
fkEntityName: e.fkEntityName,
|
|
2369
|
-
name: a
|
|
2370
|
-
}).then((t) => {
|
|
2371
|
-
this.weComList = t.success ? t.data.map((s) => (s.tableName = e.fkEntityName, s)) : [], this.loadWeCom = !0;
|
|
2372
|
-
});
|
|
2373
|
-
},
|
|
2374
|
-
fkSearchWech() {
|
|
2375
|
-
this.firstWeComApp || (this.searchWeComApp(""), this.firstWeComApp = !0);
|
|
2376
|
-
},
|
|
2377
|
-
searchWeComApp(a) {
|
|
2378
|
-
let e = this.fkEntity.filter((s) => s.field === "enterprisewechatappid")[0], t = e.filterd.filter((s) => s.fieldValue !== "");
|
|
2379
|
-
this.weComAppList = [], g({
|
|
2380
|
-
fkEntityName: e.fkEntityName,
|
|
2381
|
-
name: a,
|
|
2382
|
-
filter: t
|
|
2383
|
-
}).then((s) => {
|
|
2384
|
-
this.weComAppList = s.success ? s.data.map((i) => (i.tableName = e.fkEntityName, i)) : [], this.fetching = !1, this.loadWeComApp = !0;
|
|
2385
|
-
});
|
|
2386
|
-
},
|
|
2387
|
-
searchWeOff() {
|
|
2388
|
-
this.firstWeOfficial || (this.searchWeOfficial(""), this.firstWeOfficial = !0);
|
|
2389
|
-
},
|
|
2390
|
-
searchWeOfficial(a) {
|
|
2391
|
-
let e = this.fkEntity.filter((s) => s.field === "wechatpublicaccountid")[0], t = e.filterd.filter((s) => s.fieldValue !== "");
|
|
2392
|
-
this.weOfficialList = [], this.fetching = !0, g({
|
|
2393
|
-
fkEntityName: e.fkEntityName,
|
|
2394
|
-
name: a,
|
|
2395
|
-
filter: t
|
|
2396
|
-
}).then((s) => {
|
|
2397
|
-
this.weOfficialList = s.success ? s.data.map((i) => (i.tableName = e.fkEntityName, i)) : [], this.fetching = !1, this.loadWeOfficial = !0;
|
|
2398
|
-
});
|
|
2399
|
-
},
|
|
2400
|
-
selData(a) {
|
|
2401
|
-
if (a === "enterprisewechatid" && !this.loadWeCom) {
|
|
2402
|
-
this.searchWeCom("");
|
|
2403
|
-
return;
|
|
2404
|
-
}
|
|
2405
|
-
if (a === "enterprisewechatappid" && !this.loadWeComApp) {
|
|
2406
|
-
this.searchWeComApp("");
|
|
2407
|
-
return;
|
|
2408
|
-
}
|
|
2409
|
-
if (a === "wechatpublicaccountid" && !this.loadWeOfficial) {
|
|
2410
|
-
this.searchWeOfficial("");
|
|
2411
|
-
return;
|
|
2412
|
-
}
|
|
2413
|
-
},
|
|
2414
|
-
contentBlur() {
|
|
2415
|
-
this.analysis();
|
|
2416
|
-
},
|
|
2417
|
-
analysis() {
|
|
2418
|
-
let a = this.ruleFormData.content;
|
|
2419
|
-
if (console.log(a, "jsonData"), !a) {
|
|
2420
|
-
this.parseDataparseData = [], this.showParseInfo = !1;
|
|
2421
|
-
return;
|
|
2422
|
-
}
|
|
2423
|
-
let e = new RegExp(/\{\{(.+?)\}\}/g), t = a.match(e);
|
|
2424
|
-
if (!t)
|
|
2425
|
-
return;
|
|
2426
|
-
let s = [];
|
|
2427
|
-
t.forEach((i) => {
|
|
2428
|
-
let l = i.substring(2, i.length - 2), n = this.parseData.filter((r) => r.name == l)[0];
|
|
2429
|
-
n ? s.push(n) : s.push({
|
|
2430
|
-
name: l,
|
|
2431
|
-
content: "",
|
|
2432
|
-
isdisplays: !0,
|
|
2433
|
-
isdisplay: 1
|
|
2434
|
-
});
|
|
2435
|
-
}), this.parseData = s, this.showParseInfo = !0;
|
|
2436
|
-
},
|
|
2437
|
-
closed() {
|
|
2438
|
-
this.$refs.ruleForm.resetFields(), this.visible = !1, this.showParseInfo = !1, this.fullscreen = !1, this.parseData = [];
|
|
2439
|
-
},
|
|
2440
|
-
toggleFullscreen() {
|
|
2441
|
-
this.fullscreen = !this.fullscreen;
|
|
2442
|
-
},
|
|
2443
|
-
handleSubmit() {
|
|
2444
|
-
this.$refs.ruleForm.validate((a) => {
|
|
2445
|
-
if (a) {
|
|
2446
|
-
this.confirmLoading = !0;
|
|
2447
|
-
let e = {
|
|
2448
|
-
...this.ruleFormData
|
|
2449
|
-
}, t = [...this.parseData].map((l) => (l.isdisplay = l.isdisplays ? 1 : 0, l)), s = Object.assign(e, {
|
|
2450
|
-
msg_templatedetailed_msg_templatelibraryid: t
|
|
2451
|
-
});
|
|
2452
|
-
(this.type == 1 ? x : N)(s).then((l) => {
|
|
2453
|
-
l.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok", s), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + l.message), this.confirmLoading = !1;
|
|
2454
|
-
});
|
|
2455
|
-
}
|
|
2456
|
-
});
|
|
2457
|
-
},
|
|
2458
|
-
doEvent(a) {
|
|
2459
|
-
let e = a.item.functionName;
|
|
2460
|
-
this[e] && this[e]();
|
|
2461
|
-
},
|
|
2462
|
-
getDictionary(a) {
|
|
2463
|
-
return this.$options.filters.dictData(a);
|
|
2464
|
-
}
|
|
2465
|
-
}
|
|
2466
|
-
};
|
|
2467
|
-
var tt = function() {
|
|
2468
|
-
var e = this, t = e._self._c;
|
|
2469
|
-
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(s) {
|
|
2470
|
-
e.visible = s;
|
|
2471
|
-
}, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent }, slot: "title" }), t("div", { staticClass: "b" }, [t("el-form", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], ref: "ruleForm", attrs: { "label-width": "110px", "label-position": e.labelPosition, model: e.ruleFormData, rules: e.rules }, nativeOn: { submit: function(s) {
|
|
2472
|
-
s.preventDefault();
|
|
2473
|
-
} } }, [t("el-row", { attrs: { gutter: 20 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.name", "\u540D\u79F0"), prop: "name" } }, [t("el-input", { model: { value: e.ruleFormData.name, callback: function(s) {
|
|
2474
|
-
e.$set(e.ruleFormData, "name", s);
|
|
2475
|
-
}, expression: "ruleFormData.name" } })], 1)], 1), t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.sendType", "\u6A21\u677F\u7C7B\u522B"), prop: "templatetype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.selTemplateType }, model: { value: e.ruleFormData.templatetype, callback: function(s) {
|
|
2476
|
-
e.$set(e.ruleFormData, "templatetype", s);
|
|
2477
|
-
}, expression: "ruleFormData.templatetype" } }, e._l(e.getSendType, function(s, i) {
|
|
2478
|
-
return t("el-option", { key: i, attrs: { label: s.name, value: s.code, disabled: s.disabled } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " ")]);
|
|
2479
|
-
}), 1)], 1)], 1)], 1), e.showWeCom ? t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.weChatName", "\u4F01\u4E1A\u5FAE\u4FE1"), prop: "enterprisewechatid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": e.searchData, "collapse-tags": !0 }, on: { focus: e.fkSearch, change: e.changeWeCom }, model: { value: e.ruleFormData.enterprisewechatid, callback: function(s) {
|
|
2480
|
-
e.$set(e.ruleFormData, "enterprisewechatid", s);
|
|
2481
|
-
}, expression: "ruleFormData.enterprisewechatid" } }, e._l(e.weComList, function(s) {
|
|
2482
|
-
return t("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
|
|
2483
|
-
}), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
2484
|
-
return s.stopPropagation(), e.lookup(e.ruleFormData.enterprisewechatid, "enterprisewechatid");
|
|
2485
|
-
} } })])], 1)])], 1), t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.weChatApplicationName", "\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"), prop: "enterprisewechatappid" } }, [t("div", { staticClass: "cao_about", on: { click: function(s) {
|
|
2486
|
-
return e.selData("enterprisewechatappid");
|
|
2487
|
-
} } }, [t("el-select", { staticClass: "cao_input", staticStyle: { flex: "1", overflow: "hidden" }, attrs: { "reserve-keyword": "", filterable: "", remote: "", clearable: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "remote-method": e.searchWeComApp }, on: { focus: e.fkSearchWech }, model: { value: e.ruleFormData.enterprisewechatappid, callback: function(s) {
|
|
2488
|
-
e.$set(e.ruleFormData, "enterprisewechatappid", s);
|
|
2489
|
-
}, expression: "ruleFormData.enterprisewechatappid" } }, e._l(e.weComAppList, function(s, i) {
|
|
2490
|
-
return t("el-option", { key: i, attrs: { label: s.name, value: s.id } }, [e._v(" " + e._s(s.name) + " ")]);
|
|
2491
|
-
}), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
2492
|
-
return s.stopPropagation(), e.lookup(e.ruleFormData.enterprisewechatappid, "enterprisewechatappid");
|
|
2493
|
-
} } })])], 1)])], 1)], 1) : e._e(), e.showWeOfficial ? t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.weChatOfficialAccounts"), prop: "wechatpublicaccountid" } }, [t("div", { staticClass: "cao_about", on: { click: function(s) {
|
|
2494
|
-
return e.selData("wechatpublicaccountid");
|
|
2495
|
-
} } }, [t("el-select", { staticClass: "cao_input", staticStyle: { flex: "1", overflow: "hidden" }, attrs: { "reserve-keyword": "", filterable: "", remote: "", clearable: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "remote-method": e.searchWeOfficial }, on: { focus: e.searchWeOff }, model: { value: e.ruleFormData.wechatpublicaccountid, callback: function(s) {
|
|
2496
|
-
e.$set(e.ruleFormData, "wechatpublicaccountid", s);
|
|
2497
|
-
}, expression: "ruleFormData.wechatpublicaccountid" } }, e._l(e.weOfficialList, function(s, i) {
|
|
2498
|
-
return t("el-option", { key: i, attrs: { label: s.name, value: s.id } });
|
|
2499
|
-
}), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
2500
|
-
return s.stopPropagation(), e.lookup(e.ruleFormData.wechatpublicaccountid, "wechatpublicaccountid");
|
|
2501
|
-
} } })])], 1)])], 1)], 1) : e._e(), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 24, md: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.content"), prop: "content" } }, [t("el-input", { attrs: { autosize: { minRows: 10, maxRows: 16 }, type: "textarea", placeholder: e.$i18nt("gd.placeholder.input") }, on: { blur: e.contentBlur }, model: { value: e.ruleFormData.content, callback: function(s) {
|
|
2502
|
-
e.$set(e.ruleFormData, "content", s);
|
|
2503
|
-
}, expression: "ruleFormData.content" } })], 1)], 1), t("el-col", { attrs: { span: 24, md: 24 } }, [t("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px", float: "right" }, attrs: { type: "primary", size: "mini", icon: "el-icon-notebook-2" }, on: { click: e.analysis } }, [e._v(" " + e._s(e.$i18nt("gd.msg.templateLibrary.analysis")) + " ")])], 1)], 1), e.showParseInfo ? t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 24 } }, e._l(e.parseData, function(s, i) {
|
|
2504
|
-
return t("el-form-item", { key: i, attrs: { label: s.name } }, [t("el-input", { staticStyle: { width: "450px" }, attrs: { type: "textarea", autosize: { minRows: 3, maxRows: 6 } }, model: { value: s.content, callback: function(l) {
|
|
2505
|
-
e.$set(s, "content", l);
|
|
2506
|
-
}, expression: "item.content" } }), t("el-checkbox", { staticStyle: { "margin-left": "30px" }, model: { value: s.isdisplays, callback: function(l) {
|
|
2507
|
-
e.$set(s, "isdisplays", l);
|
|
2508
|
-
}, expression: "item.isdisplays" } }, [e._v(" " + e._s(e.$i18nt("gd.msg.templateLibrary.display", "\u662F\u5426\u663E\u793A")) + " ")])], 1);
|
|
2509
|
-
}), 1)], 1) : e._e()], 1)], 1)], 1), t("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
2510
|
-
}, st = [], at = /* @__PURE__ */ p(
|
|
2511
|
-
et,
|
|
2512
|
-
tt,
|
|
2513
|
-
st,
|
|
2514
|
-
!1,
|
|
2515
|
-
null,
|
|
2516
|
-
"55c6ff7d",
|
|
2517
|
-
null,
|
|
2518
|
-
null
|
|
2519
|
-
);
|
|
2520
|
-
const E = at.exports;
|
|
2521
|
-
const it = {
|
|
2522
|
-
props: {
|
|
2523
|
-
height: {
|
|
2524
|
-
type: Number,
|
|
2525
|
-
default: 0
|
|
2526
|
-
}
|
|
2527
|
-
},
|
|
2528
|
-
name: "GdSysMsgTemPlate",
|
|
2529
|
-
mixins: [_, ae],
|
|
2530
|
-
data() {
|
|
2531
|
-
return {
|
|
2532
|
-
formLoading: !1,
|
|
2533
|
-
send: null,
|
|
2534
|
-
selectedRowKeys: [],
|
|
2535
|
-
isLoading: !1,
|
|
2536
|
-
pageSize: 10,
|
|
2537
|
-
isChangeSize: !1,
|
|
2538
|
-
ppShow: !0,
|
|
2539
|
-
advanced: !1,
|
|
2540
|
-
queryParam: {},
|
|
2541
|
-
oselectedRowKeys: [],
|
|
2542
|
-
transKey: "gd.btn.edit",
|
|
2543
|
-
imgList: [],
|
|
2544
|
-
currentImg: "",
|
|
2545
|
-
loadData: (a, e) => {
|
|
2546
|
-
this.sorter = e;
|
|
2547
|
-
let t = [...this.oselectedRowKeys];
|
|
2548
|
-
return this.isLoading = !0, M(Object.assign(a, this.getQueryParam)).then((s) => (this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1, s.success && this.openMode == 2 && (this.$emit("changeData", s.data.rows), setTimeout(() => {
|
|
2549
|
-
this.$refs.table && this.$refs.table.updateSelect(t, []), this.selectedRowKeys = [...t], this.onSelectChange(t, []);
|
|
2550
|
-
}, 10)), s.data));
|
|
2551
|
-
},
|
|
2552
|
-
visible: !1
|
|
2553
|
-
};
|
|
2554
|
-
},
|
|
2555
|
-
computed: {
|
|
2556
|
-
getHeight() {
|
|
2557
|
-
return this.height;
|
|
2558
|
-
},
|
|
2559
|
-
getQueryParam() {
|
|
2560
|
-
let a = /* @__PURE__ */ new Map();
|
|
2561
|
-
for (let e in this.queryParam)
|
|
2562
|
-
this.queryParam[e] && e === "msg_TemplateLibraryId" ? a.set(e, this.queryParam[e].join(",")) : a.set(e, this.queryParam[e]);
|
|
2563
|
-
return Object.fromEntries(a);
|
|
2564
|
-
},
|
|
2565
|
-
...f(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
2566
|
-
},
|
|
2567
|
-
components: {
|
|
2568
|
-
editForm: O,
|
|
2569
|
-
editFormTemplate: E
|
|
2570
|
-
},
|
|
2571
|
-
methods: {
|
|
2572
|
-
templateLibrary(a) {
|
|
2573
|
-
this.$refs.editFormTemplate.open({
|
|
2574
|
-
id: a.msg_templatelibraryid
|
|
2575
|
-
});
|
|
2576
|
-
},
|
|
2577
|
-
templateOk(a) {
|
|
2578
|
-
this.refresh();
|
|
2579
|
-
},
|
|
2580
|
-
showImg(a) {
|
|
2581
|
-
P({
|
|
2582
|
-
id: a.example
|
|
2583
|
-
}).then((e) => {
|
|
2584
|
-
const t = window.URL.createObjectURL(new Blob([e]));
|
|
2585
|
-
this.imgList = [t], this.currentImg = t, this.$refs.imgPreview.open();
|
|
2586
|
-
});
|
|
2587
|
-
},
|
|
2588
|
-
saveQueries(a) {
|
|
2589
|
-
this.queryParam = {
|
|
2590
|
-
...a
|
|
2591
|
-
}, this.refresh();
|
|
2592
|
-
},
|
|
2593
|
-
editForm(a) {
|
|
2594
|
-
this.transKey = "gd.btn.edit", this.$refs.editForm.open(
|
|
2595
|
-
Object.assign(
|
|
2596
|
-
{
|
|
2597
|
-
...a
|
|
2598
|
-
},
|
|
2599
|
-
{
|
|
2600
|
-
sendtype: String(a.sendtype),
|
|
2601
|
-
msgstatus: String(a.msgstatus)
|
|
2602
|
-
}
|
|
2603
|
-
)
|
|
2604
|
-
);
|
|
2605
|
-
},
|
|
2606
|
-
add() {
|
|
2607
|
-
this.transKey = "gd.btn.add", this.visible = !0, this.$refs.editForm.open(null);
|
|
2608
|
-
},
|
|
2609
|
-
edit() {
|
|
2610
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2611
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
2612
|
-
return;
|
|
2613
|
-
}
|
|
2614
|
-
if (this.selectedRowKeys.length > 1) {
|
|
2615
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
2616
|
-
return;
|
|
2617
|
-
}
|
|
2618
|
-
this.editForm(this.selectedRows[0]);
|
|
2619
|
-
},
|
|
2620
|
-
copy() {
|
|
2621
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2622
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E"));
|
|
2623
|
-
return;
|
|
2624
|
-
}
|
|
2625
|
-
if (this.selectedRowKeys.length > 1) {
|
|
2626
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
|
|
2627
|
-
return;
|
|
2628
|
-
}
|
|
2629
|
-
this.$refs.editForm.copyInit(this.selectedRows[0]);
|
|
2630
|
-
},
|
|
2631
|
-
del() {
|
|
2632
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2633
|
-
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
2634
|
-
return;
|
|
2635
|
-
}
|
|
2636
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
2637
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
2638
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
2639
|
-
showClose: !1,
|
|
2640
|
-
confirmButtonLoading: !1,
|
|
2641
|
-
cancelButtonLoading: !1,
|
|
2642
|
-
closeOnClickModal: !1,
|
|
2643
|
-
type: "warning",
|
|
2644
|
-
confirmButtonClass: "el-button--danger",
|
|
2645
|
-
customClass: "custom-alert",
|
|
2646
|
-
callback: () => {
|
|
2647
|
-
},
|
|
2648
|
-
beforeClose: (a, e, t) => {
|
|
2649
|
-
this.delHand(a, e, t);
|
|
2650
|
-
}
|
|
2651
|
-
});
|
|
2652
|
-
},
|
|
2653
|
-
delHand(a, e, t) {
|
|
2654
|
-
if (a !== "confirm") {
|
|
2655
|
-
t();
|
|
2656
|
-
return;
|
|
2657
|
-
}
|
|
2658
|
-
let s = [], i = q({
|
|
2659
|
-
ids: this.selectedRowKeys.join(",")
|
|
2660
|
-
}).then((l) => l);
|
|
2661
|
-
s.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
|
|
2662
|
-
t();
|
|
2663
|
-
const n = l.filter((r) => !r.success);
|
|
2664
|
-
n.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
2665
|
-
});
|
|
2666
|
-
},
|
|
2667
|
-
enabling(a) {
|
|
2668
|
-
},
|
|
2669
|
-
enabHand(a, e, t, s) {
|
|
2670
|
-
if (a !== "confirm") {
|
|
2671
|
-
t();
|
|
2672
|
-
return;
|
|
2673
|
-
}
|
|
2674
|
-
let i = [], l = V(s).then((n) => n);
|
|
2675
|
-
i.push(l), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
|
|
2676
|
-
t();
|
|
2677
|
-
const r = n.filter((o) => !o.success);
|
|
2678
|
-
r.length === 0 ? this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + r[0].message), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
2679
|
-
});
|
|
2680
|
-
},
|
|
2681
|
-
onSelectChange(a, e) {
|
|
2682
|
-
this.selectedRowKeys = a, this.selectedRows = e, this.isChangeSize || (this.oselectedRowKeys = a), this.$emit("onSelectChange", a, e);
|
|
2683
|
-
},
|
|
2684
|
-
refresh() {
|
|
2685
|
-
this.$refs.table.refresh();
|
|
2686
|
-
},
|
|
2687
|
-
dictSwitch(a, e) {
|
|
2688
|
-
let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
|
|
2689
|
-
return t && t.colour ? t.colour : null;
|
|
2690
|
-
},
|
|
2691
|
-
getDict(a) {
|
|
2692
|
-
return this.$options.filters.dictData(a);
|
|
2693
|
-
},
|
|
2694
|
-
doEvent(a) {
|
|
2695
|
-
let e = a.item.functionName;
|
|
2696
|
-
this[e] && this[e]();
|
|
2697
|
-
}
|
|
2698
|
-
}
|
|
2699
|
-
};
|
|
2700
|
-
var lt = function() {
|
|
2701
|
-
var e = this, t = e._self._c;
|
|
2702
|
-
return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
2703
|
-
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.msg.templateLibrary.name", "\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
2704
|
-
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
2705
|
-
} }, model: { value: e.queryParam.name, callback: function(s) {
|
|
2706
|
-
e.$set(e.queryParam, "name", s);
|
|
2707
|
-
}, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
2708
|
-
}, proxy: !0 }, { key: "name", fn: function({ column: s, row: i }) {
|
|
2709
|
-
return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
2710
|
-
} }, { key: "msg_TemplateLibraryId", fn: function({ column: s, row: i }) {
|
|
2711
|
-
return [t("gd-tooltip", { attrs: { rowKey: "msg_templatelibraryidname", row: i, highlight: "" }, on: { click: function(l) {
|
|
2712
|
-
return e.templateLibrary(i);
|
|
2713
|
-
} } })];
|
|
2714
|
-
} }, { key: "example", fn: function(s) {
|
|
2715
|
-
return [s.row.example ? t("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "primary" }, on: { click: function(i) {
|
|
2716
|
-
return e.showImg(s.row);
|
|
2717
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.viewPicture")) + " ")]) : e._e()];
|
|
2718
|
-
} }, { key: "stateCodes", fn: function(s) {
|
|
2719
|
-
return [e.dictSwitch(s.row.statecodes, "state_code") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.statecodes, "state_code") }, on: { click: function(i) {
|
|
2720
|
-
return e.enabling(s.row);
|
|
2721
|
-
} } }, [e._v(" " + e._s(e._f("dictType")("state_code", s.row.statecodes)) + " ")]) : t("span", { on: { click: function(i) {
|
|
2722
|
-
return e.enabling(s.row);
|
|
2723
|
-
} } }, [e._v(e._s(e._f("dictType")("state_code", s.row.statecodes)))])];
|
|
2724
|
-
} }, { key: "filtering", fn: function({ colse: s, visible: i }) {
|
|
2725
|
-
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: i }, on: { save: e.saveQueries } })];
|
|
2726
|
-
} }]) })], 1), t("editForm", { ref: "editForm", on: { ok: e.refresh } }), t("editFormTemplate", { ref: "editFormTemplate", on: { ok: e.templateOk } }), t("gd-img-preview", { ref: "imgPreview", attrs: { filePreviewShow: e.imgList.length > 0, imgList: e.imgList, currentImg: e.currentImg } })], 1);
|
|
2727
|
-
}, nt = [], rt = /* @__PURE__ */ p(
|
|
2728
|
-
it,
|
|
2729
|
-
lt,
|
|
2730
|
-
nt,
|
|
2731
|
-
!1,
|
|
2732
|
-
null,
|
|
2733
|
-
"56a42211",
|
|
2734
|
-
null,
|
|
2735
|
-
null
|
|
2736
|
-
);
|
|
2737
|
-
const k = rt.exports;
|
|
2738
|
-
k.install = function(a) {
|
|
2739
|
-
a.component(k.name, k);
|
|
2740
|
-
};
|
|
2741
|
-
const ot = {
|
|
2742
|
-
data() {
|
|
2743
|
-
return {
|
|
2744
|
-
tableColumns: [
|
|
2745
|
-
{
|
|
2746
|
-
type: "selection",
|
|
2747
|
-
width: "60",
|
|
2748
|
-
fixed: !0
|
|
2749
|
-
},
|
|
2750
|
-
{
|
|
2751
|
-
transKey: "gd.msg.sendPlan.name",
|
|
2752
|
-
prop: "name",
|
|
2753
|
-
label: "\u540D\u79F0",
|
|
2754
|
-
width: "160",
|
|
2755
|
-
type: "slot",
|
|
2756
|
-
slotType: "name",
|
|
2757
|
-
align: "left",
|
|
2758
|
-
fixed: !0,
|
|
2759
|
-
showOverflowTooltip: !0,
|
|
2760
|
-
renderHeader: (a, ...e) => this.renderHeader(a, ...e, {
|
|
2761
|
-
effectType: "input"
|
|
2762
|
-
})
|
|
2763
|
-
},
|
|
2764
|
-
{
|
|
2765
|
-
transKey: "gd.msg.sendPlan.messagetemPlate",
|
|
2766
|
-
prop: "msg_MessagetemplateIdName",
|
|
2767
|
-
width: "160",
|
|
2768
|
-
label: "\u6D88\u606F\u6A21\u7248",
|
|
2769
|
-
type: "slot",
|
|
2770
|
-
slotType: "msg_MessagetemplateIdName",
|
|
2771
|
-
align: "left",
|
|
2772
|
-
showOverflowTooltip: !0
|
|
2773
|
-
},
|
|
2774
|
-
{
|
|
2775
|
-
transKey: "gd.msg.sendPlan.sendObject",
|
|
2776
|
-
prop: "sendObject",
|
|
2777
|
-
width: "200",
|
|
2778
|
-
label: "\u63D0\u9192\u5BF9\u8C61",
|
|
2779
|
-
align: "left",
|
|
2780
|
-
type: "slot",
|
|
2781
|
-
slotType: "sendObject"
|
|
2782
|
-
},
|
|
2783
|
-
{
|
|
2784
|
-
transKey: "gd.msg.sendPlan.alertDate",
|
|
2785
|
-
prop: "alertdate",
|
|
2786
|
-
width: "160",
|
|
2787
|
-
label: "\u63D0\u9192\u65F6\u95F4",
|
|
2788
|
-
align: "center",
|
|
2789
|
-
showOverflowTooltip: !0
|
|
2790
|
-
},
|
|
2791
|
-
{
|
|
2792
|
-
transKey: "gd.msg.sendPlan.advanceDays",
|
|
2793
|
-
prop: "advanceday",
|
|
2794
|
-
label: "\u63D0\u524D\u5929",
|
|
2795
|
-
align: "left",
|
|
2796
|
-
showOverflowTooltip: !0
|
|
2797
|
-
},
|
|
2798
|
-
{
|
|
2799
|
-
transKey: "gd.msg.sendPlan.advanceHour",
|
|
2800
|
-
prop: "advancehours",
|
|
2801
|
-
width: "120",
|
|
2802
|
-
label: "\u63D0\u524D\u5C0F\u65F6",
|
|
2803
|
-
align: "left"
|
|
2804
|
-
},
|
|
2805
|
-
{
|
|
2806
|
-
transKey: "gd.msg.sendPlan.advanceMin",
|
|
2807
|
-
prop: "advanceminute",
|
|
2808
|
-
width: "120",
|
|
2809
|
-
label: "\u63D0\u524D\u5206\u949F",
|
|
2810
|
-
align: "left"
|
|
2811
|
-
},
|
|
2812
|
-
{
|
|
2813
|
-
transKey: "gd.msg.sendPlan.delayDays",
|
|
2814
|
-
prop: "delayedday",
|
|
2815
|
-
width: "120",
|
|
2816
|
-
label: "\u5EF6\u540E\u5929",
|
|
2817
|
-
align: "left"
|
|
2818
|
-
},
|
|
2819
|
-
{
|
|
2820
|
-
transKey: "gd.msg.sendPlan.delayHour",
|
|
2821
|
-
prop: "delayedhours",
|
|
2822
|
-
width: "120",
|
|
2823
|
-
label: "\u5EF6\u540E\u5C0F\u65F6",
|
|
2824
|
-
align: "center"
|
|
2825
|
-
},
|
|
2826
|
-
{
|
|
2827
|
-
transKey: "gd.msg.sendPlan.delayMin",
|
|
2828
|
-
prop: "delayedminute",
|
|
2829
|
-
width: "120",
|
|
2830
|
-
label: "\u5EF6\u540E\u5206\u949F",
|
|
2831
|
-
align: "left"
|
|
2832
|
-
},
|
|
2833
|
-
{
|
|
2834
|
-
transKey: "gd.msg.sendPlan.remark",
|
|
2835
|
-
prop: "remark",
|
|
2836
|
-
width: "160",
|
|
2837
|
-
label: "\u5907\u6CE8",
|
|
2838
|
-
align: "left",
|
|
2839
|
-
type: "slot",
|
|
2840
|
-
slotType: "remark"
|
|
2841
|
-
},
|
|
2842
|
-
{
|
|
2843
|
-
transKey: "gd.msg.sendPlan.creationTime",
|
|
2844
|
-
prop: "createdtime",
|
|
2845
|
-
width: "160",
|
|
2846
|
-
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
2847
|
-
align: "center"
|
|
2848
|
-
}
|
|
2849
|
-
],
|
|
2850
|
-
formColumns: [
|
|
2851
|
-
{
|
|
2852
|
-
transKey: "gd.msg.sendPlan.name",
|
|
2853
|
-
prop: "name",
|
|
2854
|
-
label: "\u540D\u79F0",
|
|
2855
|
-
effectType: "input",
|
|
2856
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
2857
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
2858
|
-
disabled: !1,
|
|
2859
|
-
rules: [{
|
|
2860
|
-
required: !0,
|
|
2861
|
-
message: "\u8BF7\u8F93\u5165",
|
|
2862
|
-
transKey: "gd.placeholder.input",
|
|
2863
|
-
trigger: "change"
|
|
2864
|
-
}]
|
|
2865
|
-
},
|
|
2866
|
-
{
|
|
2867
|
-
transKey: "gd.msg.sendPlan.msgAlertRuleType",
|
|
2868
|
-
effectType: "select",
|
|
2869
|
-
prop: "msgAlertRuleType",
|
|
2870
|
-
label: "\u7C7B\u578B",
|
|
2871
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
2872
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
2873
|
-
dictTypeCode: "MsgAlertRuleType",
|
|
2874
|
-
disabled: !1,
|
|
2875
|
-
rules: [{
|
|
2876
|
-
required: !0,
|
|
2877
|
-
message: "\u8BF7\u9009\u62E9",
|
|
2878
|
-
transKey: "gd.placeholder.select",
|
|
2879
|
-
trigger: "change"
|
|
2880
|
-
}]
|
|
2881
|
-
},
|
|
2882
|
-
{
|
|
2883
|
-
transKey: "gd.msg.sendPlan.msgTemplate",
|
|
2884
|
-
effectType: "selectFkMultiple",
|
|
2885
|
-
prop: "msg_MessagetemplateId",
|
|
2886
|
-
label: "\u6D88\u606F\u6A21\u677F",
|
|
2887
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
2888
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
2889
|
-
fkEntityName: "Msg_MessagetemPlate",
|
|
2890
|
-
disabled: !1,
|
|
2891
|
-
multiple: !1,
|
|
2892
|
-
options: {
|
|
2893
|
-
trigger: "selectFk"
|
|
2894
|
-
},
|
|
2895
|
-
rules: []
|
|
2896
|
-
},
|
|
2897
|
-
{
|
|
2898
|
-
transKey: "gd.msg.sendPlan.sendObject",
|
|
2899
|
-
effectType: "selectFkMultiple",
|
|
2900
|
-
prop: "sendObject",
|
|
2901
|
-
label: "\u63D0\u9192\u5BF9\u8C61",
|
|
2902
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
2903
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
2904
|
-
fkEntityName: "sys_employees",
|
|
2905
|
-
disabled: !1,
|
|
2906
|
-
multiple: !0,
|
|
2907
|
-
rules: [{
|
|
2908
|
-
required: !0,
|
|
2909
|
-
message: "\u8BF7\u9009\u62E9",
|
|
2910
|
-
transKey: "gd.placeholder.select",
|
|
2911
|
-
trigger: "change"
|
|
2912
|
-
}]
|
|
2913
|
-
},
|
|
2914
|
-
{
|
|
2915
|
-
transKey: "gd.msg.sendPlan.content",
|
|
2916
|
-
effectType: "textarea",
|
|
2917
|
-
prop: "content",
|
|
2918
|
-
label: "\u5185\u5BB9",
|
|
2919
|
-
disabled: !1,
|
|
2920
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
2921
|
-
rules: [{
|
|
2922
|
-
required: !0,
|
|
2923
|
-
message: "\u8BF7\u8F93\u5165",
|
|
2924
|
-
transKey: "gd.placeholder.input",
|
|
2925
|
-
trigger: "change"
|
|
2926
|
-
}],
|
|
2927
|
-
autosize: {
|
|
2928
|
-
minRows: 4,
|
|
2929
|
-
maxRows: 6
|
|
2930
|
-
}
|
|
2931
|
-
},
|
|
2932
|
-
{
|
|
2933
|
-
transKey: "gd.msg.sendPlan.remark",
|
|
2934
|
-
effectType: "textarea",
|
|
2935
|
-
prop: "remark",
|
|
2936
|
-
label: "\u5907\u6CE8",
|
|
2937
|
-
disabled: !1,
|
|
2938
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
2939
|
-
rules: [],
|
|
2940
|
-
autosize: {
|
|
2941
|
-
minRows: 4,
|
|
2942
|
-
maxRows: 6
|
|
2943
|
-
}
|
|
2944
|
-
},
|
|
2945
|
-
{
|
|
2946
|
-
transKey: "gd.user.alertDate",
|
|
2947
|
-
prop: "alertDate",
|
|
2948
|
-
effectType: "datetime",
|
|
2949
|
-
label: "\u65F6\u95F4",
|
|
2950
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
2951
|
-
valueFormat: "yyyy-MM-DD HH:mm:ss",
|
|
2952
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
2953
|
-
rules: [{
|
|
2954
|
-
required: !0,
|
|
2955
|
-
message: "\u8BF7\u9009\u62E9",
|
|
2956
|
-
transKey: "gd.placeholder.select",
|
|
2957
|
-
trigger: "change"
|
|
2958
|
-
}]
|
|
2959
|
-
}
|
|
2960
|
-
],
|
|
2961
|
-
formColumnsArr: [{
|
|
2962
|
-
transKey: "gd.user.advanceDays",
|
|
2963
|
-
prop: "advanceDay",
|
|
2964
|
-
effectType: "inputnumber",
|
|
2965
|
-
label: "\u63D0\u524D\u5929",
|
|
2966
|
-
defaultValue: 0,
|
|
2967
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
2968
|
-
rules: [{
|
|
2969
|
-
required: !0,
|
|
2970
|
-
message: "\u8BF7\u8F93\u5165",
|
|
2971
|
-
transKey: "gd.placeholder.input",
|
|
2972
|
-
trigger: "change",
|
|
2973
|
-
type: "number"
|
|
2974
|
-
}]
|
|
2975
|
-
}, {
|
|
2976
|
-
transKey: "gd.user.advanceHour",
|
|
2977
|
-
prop: "advanceHours",
|
|
2978
|
-
effectType: "inputnumber",
|
|
2979
|
-
label: "\u63D0\u524D\u5C0F\u65F6",
|
|
2980
|
-
defaultValue: 0,
|
|
2981
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
2982
|
-
rules: [{
|
|
2983
|
-
required: !0,
|
|
2984
|
-
message: "\u8BF7\u8F93\u5165",
|
|
2985
|
-
transKey: "gd.placeholder.input",
|
|
2986
|
-
trigger: "change",
|
|
2987
|
-
type: "number"
|
|
2988
|
-
}]
|
|
2989
|
-
}, {
|
|
2990
|
-
transKey: "gd.user.advanceMin",
|
|
2991
|
-
prop: "advanceMinute",
|
|
2992
|
-
effectType: "inputnumber",
|
|
2993
|
-
label: "\u63D0\u524D\u5206\u949F",
|
|
2994
|
-
defaultValue: 0,
|
|
2995
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
2996
|
-
rules: [{
|
|
2997
|
-
required: !0,
|
|
2998
|
-
message: "\u8BF7\u8F93\u5165",
|
|
2999
|
-
transKey: "gd.placeholder.input",
|
|
3000
|
-
trigger: "change",
|
|
3001
|
-
type: "number"
|
|
3002
|
-
}]
|
|
3003
|
-
}, {
|
|
3004
|
-
transKey: "gd.user.delayedDays",
|
|
3005
|
-
prop: "delayedDay",
|
|
3006
|
-
effectType: "inputnumber",
|
|
3007
|
-
defaultValue: 0,
|
|
3008
|
-
label: "\u5EF6\u540E\u5929",
|
|
3009
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
3010
|
-
rules: [{
|
|
3011
|
-
required: !0,
|
|
3012
|
-
message: "\u8BF7\u8F93\u5165",
|
|
3013
|
-
transKey: "gd.placeholder.input",
|
|
3014
|
-
trigger: "change",
|
|
3015
|
-
type: "number"
|
|
3016
|
-
}]
|
|
3017
|
-
}, {
|
|
3018
|
-
transKey: "gd.user.delayHour",
|
|
3019
|
-
prop: "delayedHours",
|
|
3020
|
-
effectType: "inputnumber",
|
|
3021
|
-
defaultValue: 0,
|
|
3022
|
-
label: "\u5EF6\u540E\u5C0F\u65F6",
|
|
3023
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
3024
|
-
rules: [{
|
|
3025
|
-
required: !0,
|
|
3026
|
-
message: "\u8BF7\u8F93\u5165",
|
|
3027
|
-
transKey: "gd.placeholder.input",
|
|
3028
|
-
trigger: "change",
|
|
3029
|
-
type: "number"
|
|
3030
|
-
}]
|
|
3031
|
-
}, {
|
|
3032
|
-
transKey: "gd.user.delayMin",
|
|
3033
|
-
prop: "delayedMinute",
|
|
3034
|
-
effectType: "inputnumber",
|
|
3035
|
-
defaultValue: 0,
|
|
3036
|
-
label: "\u5EF6\u540E\u5206\u949F",
|
|
3037
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
3038
|
-
rules: [{
|
|
3039
|
-
required: !0,
|
|
3040
|
-
message: "\u8BF7\u8F93\u5165",
|
|
3041
|
-
transKey: "gd.placeholder.input",
|
|
3042
|
-
trigger: "change",
|
|
3043
|
-
type: "number"
|
|
3044
|
-
}]
|
|
3045
|
-
}],
|
|
3046
|
-
tableButtons: [
|
|
3047
|
-
{
|
|
3048
|
-
displayName: "\u65B0\u589E",
|
|
3049
|
-
functionName: "add",
|
|
3050
|
-
show: !0,
|
|
3051
|
-
transKey: "gd.btn.add",
|
|
3052
|
-
icon: "el-icon-plus",
|
|
3053
|
-
name: "sysMsgSendPlan:add"
|
|
3054
|
-
},
|
|
3055
|
-
{
|
|
3056
|
-
displayName: "\u7F16\u8F91",
|
|
3057
|
-
functionName: "edit",
|
|
3058
|
-
show: !0,
|
|
3059
|
-
transKey: "gd.btn.edit",
|
|
3060
|
-
icon: "el-icon-edit",
|
|
3061
|
-
name: "sysMsgSendPlan:edit"
|
|
3062
|
-
},
|
|
3063
|
-
{
|
|
3064
|
-
displayName: "\u5220\u9664",
|
|
3065
|
-
functionName: "del",
|
|
3066
|
-
show: !0,
|
|
3067
|
-
transKey: "gd.btn.del",
|
|
3068
|
-
icon: "el-icon-delete",
|
|
3069
|
-
btnType: "danger",
|
|
3070
|
-
name: "sysMsgSendPlan:delete"
|
|
3071
|
-
}
|
|
3072
|
-
],
|
|
3073
|
-
formButtons: [{
|
|
3074
|
-
displayName: "\u786E\u5B9A",
|
|
3075
|
-
functionName: "handleSubmit",
|
|
3076
|
-
show: !0,
|
|
3077
|
-
transKey: "gd.btn.confirm",
|
|
3078
|
-
icon: "el-icon-document-checked",
|
|
3079
|
-
validate: !0
|
|
3080
|
-
}],
|
|
3081
|
-
tableQueries: [{
|
|
3082
|
-
transKey: "gd.msg.sendPlan.name",
|
|
3083
|
-
prop: "name",
|
|
3084
|
-
label: "\u540D\u79F0",
|
|
3085
|
-
effectType: "input",
|
|
3086
|
-
rules: []
|
|
3087
|
-
}, {
|
|
3088
|
-
transKey: "gd.msg.sendPlan.msgAlertRuleType",
|
|
3089
|
-
prop: "msgAlertRuleType",
|
|
3090
|
-
label: "\u6240\u5C5E\u7C7B\u578B",
|
|
3091
|
-
effectType: "selectMultiple",
|
|
3092
|
-
dictTypeCode: "MsgAlertRuleType",
|
|
3093
|
-
rules: []
|
|
3094
|
-
}, {
|
|
3095
|
-
transKey: "gd.msg.sendPlan.messagetemPlate",
|
|
3096
|
-
prop: "msg_MessagetemplateId",
|
|
3097
|
-
label: "\u6D88\u606F\u6A21\u7248",
|
|
3098
|
-
effectType: "selectFkMultiple",
|
|
3099
|
-
fkEntityName: "Msg_MessagetemPlate",
|
|
3100
|
-
rules: []
|
|
3101
|
-
}]
|
|
3102
|
-
};
|
|
3103
|
-
}
|
|
3104
|
-
};
|
|
3105
|
-
const dt = {
|
|
3106
|
-
props: {
|
|
3107
|
-
fieldData: {
|
|
3108
|
-
type: Array,
|
|
3109
|
-
default: () => []
|
|
3110
|
-
}
|
|
3111
|
-
},
|
|
3112
|
-
data() {
|
|
3113
|
-
return {
|
|
3114
|
-
visible: !1,
|
|
3115
|
-
confirmLoading: !1,
|
|
3116
|
-
visibleDef: !1,
|
|
3117
|
-
loading: !1,
|
|
3118
|
-
title: "",
|
|
3119
|
-
sysViewButtons: [
|
|
3120
|
-
{
|
|
3121
|
-
displayName: "\u786E\u5B9A",
|
|
3122
|
-
functionName: "handleSubmit",
|
|
3123
|
-
show: !0,
|
|
3124
|
-
transKey: "gd.btn.confirm",
|
|
3125
|
-
icon: "el-icon-document-checked",
|
|
3126
|
-
name: "sysMsgSendPlan:edit"
|
|
3127
|
-
}
|
|
3128
|
-
],
|
|
3129
|
-
times: [],
|
|
3130
|
-
format: "HH:mm:ss",
|
|
3131
|
-
type: 1,
|
|
3132
|
-
detail: {},
|
|
3133
|
-
fullscreen: !1,
|
|
3134
|
-
width: "70%",
|
|
3135
|
-
parameterData: {},
|
|
3136
|
-
fetching: !1,
|
|
3137
|
-
dataList: [],
|
|
3138
|
-
sendObjectList: [],
|
|
3139
|
-
msgAlertRuleType: "",
|
|
3140
|
-
lookType: "",
|
|
3141
|
-
oldfkData: [],
|
|
3142
|
-
ruleFormData: {
|
|
3143
|
-
msg_messagetemplateid: null
|
|
3144
|
-
},
|
|
3145
|
-
rules: {
|
|
3146
|
-
name: [
|
|
3147
|
-
{
|
|
3148
|
-
required: !0,
|
|
3149
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
3150
|
-
trigger: "change"
|
|
3151
|
-
}
|
|
3152
|
-
],
|
|
3153
|
-
msgalertruletype: [
|
|
3154
|
-
{
|
|
3155
|
-
required: !0,
|
|
3156
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
3157
|
-
trigger: "change"
|
|
3158
|
-
}
|
|
3159
|
-
],
|
|
3160
|
-
msg_messagetemplateid: [
|
|
3161
|
-
{
|
|
3162
|
-
required: !0,
|
|
3163
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
3164
|
-
trigger: "change"
|
|
3165
|
-
}
|
|
3166
|
-
],
|
|
3167
|
-
templatetype: [
|
|
3168
|
-
{
|
|
3169
|
-
required: !0,
|
|
3170
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
3171
|
-
trigger: "change"
|
|
3172
|
-
}
|
|
3173
|
-
],
|
|
3174
|
-
sendobject: [
|
|
3175
|
-
{
|
|
3176
|
-
required: !0,
|
|
3177
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
3178
|
-
trigger: "change"
|
|
3179
|
-
}
|
|
3180
|
-
],
|
|
3181
|
-
alertdate: [
|
|
3182
|
-
{
|
|
3183
|
-
required: !0,
|
|
3184
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
3185
|
-
trigger: "change"
|
|
3186
|
-
}
|
|
3187
|
-
],
|
|
3188
|
-
content: [
|
|
3189
|
-
{
|
|
3190
|
-
required: !0,
|
|
3191
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
3192
|
-
trigger: "change"
|
|
3193
|
-
}
|
|
3194
|
-
],
|
|
3195
|
-
advanceday: [
|
|
3196
|
-
{
|
|
3197
|
-
required: !0,
|
|
3198
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
3199
|
-
trigger: "change"
|
|
3200
|
-
}
|
|
3201
|
-
],
|
|
3202
|
-
advancehours: [
|
|
3203
|
-
{
|
|
3204
|
-
required: !0,
|
|
3205
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
3206
|
-
trigger: "change"
|
|
3207
|
-
}
|
|
3208
|
-
],
|
|
3209
|
-
advanceminute: [
|
|
3210
|
-
{
|
|
3211
|
-
required: !0,
|
|
3212
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
3213
|
-
trigger: "change"
|
|
3214
|
-
}
|
|
3215
|
-
],
|
|
3216
|
-
delayedday: [
|
|
3217
|
-
{
|
|
3218
|
-
required: !0,
|
|
3219
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
3220
|
-
trigger: "change"
|
|
3221
|
-
}
|
|
3222
|
-
],
|
|
3223
|
-
delayedhours: [
|
|
3224
|
-
{
|
|
3225
|
-
required: !0,
|
|
3226
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
3227
|
-
trigger: "change"
|
|
3228
|
-
}
|
|
3229
|
-
],
|
|
3230
|
-
delayedminute: [
|
|
3231
|
-
{
|
|
3232
|
-
required: !0,
|
|
3233
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
3234
|
-
trigger: "change"
|
|
3235
|
-
}
|
|
3236
|
-
]
|
|
3237
|
-
}
|
|
3238
|
-
};
|
|
3239
|
-
},
|
|
3240
|
-
computed: {
|
|
3241
|
-
fkEntityName() {
|
|
3242
|
-
let a = this.fieldData.filter((e) => e.columname === "msg_messagetemplateid")[0];
|
|
3243
|
-
return a && a.fkentityname ? a.fkentityname : "msg_messagetemplate";
|
|
3244
|
-
},
|
|
3245
|
-
fksEntityName() {
|
|
3246
|
-
let a = this.fieldData.filter((e) => e.columname === "sendobject")[0];
|
|
3247
|
-
return a && a.fkentityname ? a.fkentityname : "sys_employees";
|
|
3248
|
-
},
|
|
3249
|
-
style() {
|
|
3250
|
-
return {
|
|
3251
|
-
display: "flex",
|
|
3252
|
-
marginBottom: "12px"
|
|
3253
|
-
};
|
|
3254
|
-
},
|
|
3255
|
-
disabled() {
|
|
3256
|
-
return this.type != 1;
|
|
3257
|
-
},
|
|
3258
|
-
getSendType() {
|
|
3259
|
-
let a = [], e = [];
|
|
3260
|
-
return this.getDictionary("SendType").map((s) => (s.disabled = s.statecodes != 1, s.disabled ? e.push(s) : a.push(s), s)), a.concat(e);
|
|
3261
|
-
},
|
|
3262
|
-
...f(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
3263
|
-
},
|
|
3264
|
-
methods: {
|
|
3265
|
-
selectRuleType(a) {
|
|
3266
|
-
this.msgAlertRuleType = a;
|
|
3267
|
-
},
|
|
3268
|
-
lookupSeled(a) {
|
|
3269
|
-
this.lookType !== "msg_messagetemplateid" && (this.sendObjectList = a.fkData, this.oldfkData = a.fkData, this.ruleFormData.sendobject = a.data);
|
|
3270
|
-
},
|
|
3271
|
-
lookup(a, e) {
|
|
3272
|
-
let t = e;
|
|
3273
|
-
this.lookType = a;
|
|
3274
|
-
let s = a === "msg_messagetemplateid" ? this.fkEntityName : this.fksEntityName, i = {
|
|
3275
|
-
effectType: a === "msg_messagetemplateid" ? "fk" : "participants",
|
|
3276
|
-
fkEntityName: s,
|
|
3277
|
-
fkData: a === "msg_messagetemplateid" ? this.dataList : this.sendObjectList,
|
|
3278
|
-
val: t || ""
|
|
3279
|
-
};
|
|
3280
|
-
this.$refs.msgSearch.open(i);
|
|
3281
|
-
},
|
|
3282
|
-
toggleFullscreen() {
|
|
3283
|
-
this.fullscreen = !this.fullscreen;
|
|
3284
|
-
},
|
|
3285
|
-
open(a) {
|
|
3286
|
-
this.oldfkData = [], this.fullscreen = !1, this.visible = !0, this.detail = a || {}, this.type = a ? 2 : 1, this.title = a ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), a ? this.getDetail() : (this.sendData(""), this.times = [], this.msgAlertRuleType = "", this.sendObjectList = [], this.$nextTick(() => {
|
|
3287
|
-
setTimeout(() => {
|
|
3288
|
-
this.ruleFormData = {
|
|
3289
|
-
advanceday: 0,
|
|
3290
|
-
advancehours: 0,
|
|
3291
|
-
advanceminute: 0,
|
|
3292
|
-
delayedday: 0,
|
|
3293
|
-
delayedhours: 0,
|
|
3294
|
-
delayedminute: 0,
|
|
3295
|
-
msg_messagetemplateid: null
|
|
3296
|
-
};
|
|
3297
|
-
}, 0);
|
|
3298
|
-
}));
|
|
3299
|
-
},
|
|
3300
|
-
getDetail() {
|
|
3301
|
-
this.confirmLoading = !0, B({
|
|
3302
|
-
id: this.detail.id
|
|
3303
|
-
}).then((a) => {
|
|
3304
|
-
if (a.code === 200) {
|
|
3305
|
-
let e = [];
|
|
3306
|
-
(a.data.msg_templatedetailedlist ? a.data.msg_templatedetailedlist : []).forEach((l) => {
|
|
3307
|
-
let n = {
|
|
3308
|
-
starttime: l.starttime.split(" ")[1],
|
|
3309
|
-
endtime: l.endtime.split(" ")[1]
|
|
3310
|
-
};
|
|
3311
|
-
e.push(n);
|
|
3312
|
-
}), this.times = e;
|
|
3313
|
-
let s = a.data.msg_templatelibrary;
|
|
3314
|
-
this.msgAlertRuleType = s.msgalertruletype ? s.msgalertruletype : "";
|
|
3315
|
-
let i = {
|
|
3316
|
-
id: s.id,
|
|
3317
|
-
name: s.name,
|
|
3318
|
-
advanceday: s.advanceday,
|
|
3319
|
-
advancehours: s.advancehours,
|
|
3320
|
-
advanceminute: s.advanceminute,
|
|
3321
|
-
delayedday: s.delayedday,
|
|
3322
|
-
delayedhours: s.delayedhours,
|
|
3323
|
-
delayedminute: s.delayedminute,
|
|
3324
|
-
msgalertruletype: s.msgalertruletype ? String(s.msgalertruletype) : "",
|
|
3325
|
-
templatetype: a.data.templatetype ? String(a.data.templatetype) : ""
|
|
3326
|
-
};
|
|
3327
|
-
if (this.msgAlertRuleType == 1) {
|
|
3328
|
-
this.inittype(String(a.data.templatetype));
|
|
3329
|
-
let l = s.sendobject ? JSON.parse(s.sendobject) : [], n = [];
|
|
3330
|
-
l.forEach((r) => {
|
|
3331
|
-
n.push(r.id);
|
|
3332
|
-
}), this.sendObjectList = [...l], this.oldfkData = [...l], i = Object.assign(
|
|
3333
|
-
{
|
|
3334
|
-
...i
|
|
3335
|
-
},
|
|
3336
|
-
{
|
|
3337
|
-
sendobject: s.sendobject ? n : void 0,
|
|
3338
|
-
alertdate: s.alertdate ? s.alertdate : void 0,
|
|
3339
|
-
msg_messagetemplateid: s.msg_messagetemplateid ? s.msg_messagetemplateid : void 0,
|
|
3340
|
-
content: s.content ? s.content : "",
|
|
3341
|
-
remark: s.remark ? s.remark : ""
|
|
3342
|
-
}
|
|
3343
|
-
);
|
|
3344
|
-
}
|
|
3345
|
-
s.msg_messagetemplateid, this.sendObjectList.length, this.$nextTick(() => {
|
|
3346
|
-
setTimeout(() => {
|
|
3347
|
-
this.ruleFormData = i;
|
|
3348
|
-
}, 100);
|
|
3349
|
-
}), this.confirmLoading = !1;
|
|
3350
|
-
}
|
|
3351
|
-
});
|
|
3352
|
-
},
|
|
3353
|
-
handleSubmit() {
|
|
3354
|
-
this.$refs.ruleForm.validate((a) => {
|
|
3355
|
-
if (a) {
|
|
3356
|
-
let e = {
|
|
3357
|
-
...this.ruleFormData
|
|
3358
|
-
};
|
|
3359
|
-
if (this.times.length > 0 && !this.isChecked()) {
|
|
3360
|
-
this.$message.warning(this.$i18nt("gd.msg.sendPlan.completeTimeTip"));
|
|
3361
|
-
return;
|
|
3362
|
-
}
|
|
3363
|
-
if (this.times.length > 0 && !this.isCheckedLong()) {
|
|
3364
|
-
this.$message.warning(this.$i18nt("gd.msg.sendPlan.correctTimeTip"));
|
|
3365
|
-
return;
|
|
3366
|
-
}
|
|
3367
|
-
let t = Object.assign(
|
|
3368
|
-
{
|
|
3369
|
-
...e
|
|
3370
|
-
},
|
|
3371
|
-
{
|
|
3372
|
-
msg_messagesendexcludedate_msg_messagesendplanid: this.times
|
|
3373
|
-
}
|
|
3374
|
-
);
|
|
3375
|
-
if (this.msgAlertRuleType == 1) {
|
|
3376
|
-
let i = this.oldfkData.filter((l) => e.sendobject.includes(l.id));
|
|
3377
|
-
t = Object.assign(
|
|
3378
|
-
{
|
|
3379
|
-
...t
|
|
3380
|
-
},
|
|
3381
|
-
{
|
|
3382
|
-
sendobject: JSON.stringify(i)
|
|
3383
|
-
}
|
|
3384
|
-
);
|
|
3385
|
-
} else
|
|
3386
|
-
t = Object.assign(
|
|
3387
|
-
{
|
|
3388
|
-
...t
|
|
3389
|
-
},
|
|
3390
|
-
{
|
|
3391
|
-
sendobject: null,
|
|
3392
|
-
alertdate: null,
|
|
3393
|
-
msg_messagetemplateid: null,
|
|
3394
|
-
content: "",
|
|
3395
|
-
remark: ""
|
|
3396
|
-
}
|
|
3397
|
-
);
|
|
3398
|
-
(this.type == 1 ? A : z)(t).then((i) => {
|
|
3399
|
-
i.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok", t), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + i.message), this.confirmLoading = !1;
|
|
3400
|
-
});
|
|
3401
|
-
}
|
|
3402
|
-
});
|
|
3403
|
-
},
|
|
3404
|
-
isChecked() {
|
|
3405
|
-
return this.times.every((a, e, t) => a.starttime !== "" && a.endtime !== "");
|
|
3406
|
-
},
|
|
3407
|
-
isCheckedLong() {
|
|
3408
|
-
return this.times.every((a, e, t) => {
|
|
3409
|
-
let s = a.endtime.split(":").join("") * 1, i = a.starttime.split(":").join("") * 1;
|
|
3410
|
-
return s - i >= 0;
|
|
3411
|
-
});
|
|
3412
|
-
},
|
|
3413
|
-
sendCick(a) {
|
|
3414
|
-
this.firstLoading || (this.sendData(""), this.firstLoading = !0);
|
|
3415
|
-
},
|
|
3416
|
-
sendData(a) {
|
|
3417
|
-
this.dataList = [], this.fetching = !0;
|
|
3418
|
-
let e = [...this.oldfkData];
|
|
3419
|
-
g({
|
|
3420
|
-
fkEntityName: "sys_employees",
|
|
3421
|
-
name: a
|
|
3422
|
-
}).then((t) => {
|
|
3423
|
-
let s = t.success ? t.data.map((r) => (r.tableName = "sys_employees", r)) : [], i = e.concat(s), l = [], n = [];
|
|
3424
|
-
for (let r = 0; r < i.length; r++)
|
|
3425
|
-
l.indexOf(i[r].id) <= -1 && (l.push(i[r].id), n.push(i[r])), this.oldfkData = [...n];
|
|
3426
|
-
this.sendObjectList = [...s];
|
|
3427
|
-
});
|
|
3428
|
-
},
|
|
3429
|
-
searchList() {
|
|
3430
|
-
this.firstLoading1 || (this.temPlate(""), this.firstLoading1 = !0);
|
|
3431
|
-
},
|
|
3432
|
-
temPlate(a) {
|
|
3433
|
-
this.dataList = [], this.fetching = !0, [...this.oldfkData], g({
|
|
3434
|
-
fkEntityName: "msg_messagetemplate",
|
|
3435
|
-
name: a
|
|
3436
|
-
}).then((e) => {
|
|
3437
|
-
let t = e.success ? e.data.map((s) => (s.tableName = "msg_messagetemplate", s)) : [];
|
|
3438
|
-
this.dataList = [...t];
|
|
3439
|
-
});
|
|
3440
|
-
},
|
|
3441
|
-
searchData(a, e) {
|
|
3442
|
-
this.dataList = [], this.fetching = !0;
|
|
3443
|
-
const t = e === "msg_messagetemplateid" ? this.fkEntityName : this.fksEntityName.split(",")[0];
|
|
3444
|
-
return g({
|
|
3445
|
-
fkEntityName: t,
|
|
3446
|
-
id: a
|
|
3447
|
-
}).then((s) => (this.dataList = s.success ? s.data.map((i) => (i.tableName = t, i)) : [], this.fetching = !1, s));
|
|
3448
|
-
},
|
|
3449
|
-
closed() {
|
|
3450
|
-
this.$refs.ruleForm.resetFields(), this.times = [], this.visible = !1;
|
|
3451
|
-
},
|
|
3452
|
-
getDictionary(a) {
|
|
3453
|
-
return this.$options.filters.dictData(a);
|
|
3454
|
-
},
|
|
3455
|
-
doEvent(a) {
|
|
3456
|
-
let e = a.item.functionName;
|
|
3457
|
-
this[e] && this[e]();
|
|
3458
|
-
},
|
|
3459
|
-
selTemplateType() {
|
|
3460
|
-
this.dataList = [], S({
|
|
3461
|
-
templateType: this.ruleFormData.templatetype
|
|
3462
|
-
}).then((a) => {
|
|
3463
|
-
this.dataList = a.data, this.$nextTick(() => {
|
|
3464
|
-
this.ruleFormData.msg_messagetemplateid = null;
|
|
3465
|
-
});
|
|
3466
|
-
});
|
|
3467
|
-
},
|
|
3468
|
-
inittype(a) {
|
|
3469
|
-
this.dataList = [], S({
|
|
3470
|
-
templateType: a
|
|
3471
|
-
}).then((e) => {
|
|
3472
|
-
this.dataList = e.data;
|
|
3473
|
-
});
|
|
3474
|
-
}
|
|
3475
|
-
}
|
|
3476
|
-
};
|
|
3477
|
-
var ct = function() {
|
|
3478
|
-
var e = this, t = e._self._c;
|
|
3479
|
-
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(s) {
|
|
3480
|
-
e.visible = s;
|
|
3481
|
-
}, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent }, slot: "title" }), t("div", { class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [t("el-form", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], ref: "ruleForm", attrs: { "label-width": "110px", "label-position": e.labelPosition, model: e.ruleFormData, rules: e.rules }, nativeOn: { submit: function(s) {
|
|
3482
|
-
s.preventDefault();
|
|
3483
|
-
} } }, [t("el-form-item", { staticStyle: { display: "none" } }, [e.type == 2 ? t("el-input", { model: { value: e.ruleFormData.id, callback: function(s) {
|
|
3484
|
-
e.$set(e.ruleFormData, "id", s);
|
|
3485
|
-
}, expression: "ruleFormData.id" } }) : e._e()], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.name"), prop: "name" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input") }, model: { value: e.ruleFormData.name, callback: function(s) {
|
|
3486
|
-
e.$set(e.ruleFormData, "name", s);
|
|
3487
|
-
}, expression: "ruleFormData.name" } })], 1)], 1), t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.msgAlertRuleType"), prop: "msgalertruletype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, on: { change: e.selectRuleType }, model: { value: e.ruleFormData.msgalertruletype, callback: function(s) {
|
|
3488
|
-
e.$set(e.ruleFormData, "msgalertruletype", s);
|
|
3489
|
-
}, expression: "ruleFormData.msgalertruletype" } }, e._l(e.getDictionary("msgalertruletype"), function(s, i) {
|
|
3490
|
-
return t("el-option", { key: i, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
3491
|
-
}), 1)], 1)], 1)], 1), e.msgAlertRuleType == 1 ? [t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u578B"), prop: "templatetype" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.selTemplateType }, model: { value: e.ruleFormData.templatetype, callback: function(s) {
|
|
3492
|
-
e.$set(e.ruleFormData, "templatetype", s);
|
|
3493
|
-
}, expression: "ruleFormData.templatetype" } }, e._l(e.getSendType, function(s, i) {
|
|
3494
|
-
return t("el-option", { key: i, attrs: { label: s.name, value: s.code, disabled: s.disabled } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " ")]);
|
|
3495
|
-
}), 1)], 1)])], 1), t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u7C7B\u578B"), prop: "msg_messagetemplateid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: e.ruleFormData.msg_messagetemplateid, callback: function(s) {
|
|
3496
|
-
e.$set(e.ruleFormData, "msg_messagetemplateid", s);
|
|
3497
|
-
}, expression: "ruleFormData.msg_messagetemplateid" } }, e._l(e.dataList, function(s) {
|
|
3498
|
-
return t("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
|
|
3499
|
-
}), 1)], 1)])], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.sendObject"), prop: "sendobject" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": e.sendData, "collapse-tags": !0, multiple: "" }, on: { focus: e.sendCick }, model: { value: e.ruleFormData.sendobject, callback: function(s) {
|
|
3500
|
-
e.$set(e.ruleFormData, "sendobject", s);
|
|
3501
|
-
}, expression: "ruleFormData.sendobject" } }, e._l(e.sendObjectList, function(s) {
|
|
3502
|
-
return t("el-option", { key: s.id, attrs: { value: s.id, label: s.name } });
|
|
3503
|
-
}), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
3504
|
-
return e.lookup("sendobject", e.ruleFormData.sendobject);
|
|
3505
|
-
} } })])], 1)])], 1), t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.alertDate"), prop: "alertdate" } }, [t("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "datetime", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "value-format": "yyyy-MM-dd hh:mm:ss", format: "yyyy-MM-dd hh:mm:ss" }, model: { value: e.ruleFormData.alertdate, callback: function(s) {
|
|
3506
|
-
e.$set(e.ruleFormData, "alertdate", s);
|
|
3507
|
-
}, expression: "ruleFormData.alertdate" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.content"), prop: "content" } }, [t("el-input", { attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.input"), "auto-size": { minRows: 3, maxRows: 5 } }, model: { value: e.ruleFormData.content, callback: function(s) {
|
|
3508
|
-
e.$set(e.ruleFormData, "content", s);
|
|
3509
|
-
}, expression: "ruleFormData.content" } })], 1)], 1), t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.remark"), prop: "remark" } }, [t("el-input", { attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.input"), "auto-size": { minRows: 3, maxRows: 5 } }, model: { value: e.ruleFormData.remark, callback: function(s) {
|
|
3510
|
-
e.$set(e.ruleFormData, "remark", s);
|
|
3511
|
-
}, expression: "ruleFormData.remark" } })], 1)], 1)], 1)] : e._e(), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 8, sm: 24 } }, [t("el-form-item", { attrs: { prop: "advanceday" } }, [t("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.advanceDays")) + "\xA0 "), t("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.advanceDaysTip"), placement: "top" } }, [t("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.advanceday, callback: function(s) {
|
|
3512
|
-
e.$set(e.ruleFormData, "advanceday", s);
|
|
3513
|
-
}, expression: "ruleFormData.advanceday" } })], 1)], 1), t("el-col", { attrs: { md: 8, sm: 24 } }, [t("el-form-item", { attrs: { prop: "advancehours" } }, [t("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.advanceHour")) + "\xA0 "), t("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.advanceHourTip"), placement: "top" } }, [t("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.advancehours, callback: function(s) {
|
|
3514
|
-
e.$set(e.ruleFormData, "advancehours", s);
|
|
3515
|
-
}, expression: "ruleFormData.advancehours" } })], 1)], 1), t("el-col", { attrs: { md: 8, sm: 24 } }, [t("el-form-item", { attrs: { prop: "advanceminute" } }, [t("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.advanceMin")) + "\xA0 "), t("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.advanceMinTip"), placement: "top" } }, [t("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.advanceminute, callback: function(s) {
|
|
3516
|
-
e.$set(e.ruleFormData, "advanceminute", s);
|
|
3517
|
-
}, expression: "ruleFormData.advanceminute" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 8, sm: 24 } }, [t("el-form-item", { attrs: { prop: "delayedday" } }, [t("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.delayDays")) + "\xA0 "), t("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.delayDaysTip"), placement: "top" } }, [t("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.delayedday, callback: function(s) {
|
|
3518
|
-
e.$set(e.ruleFormData, "delayedday", s);
|
|
3519
|
-
}, expression: "ruleFormData.delayedday" } })], 1)], 1), t("el-col", { attrs: { md: 8, sm: 24 } }, [t("el-form-item", { attrs: { prop: "delayedhours" } }, [t("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.delayHour")) + "\xA0 "), t("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.delayHourTip"), placement: "top" } }, [t("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.delayedhours, callback: function(s) {
|
|
3520
|
-
e.$set(e.ruleFormData, "delayedhours", s);
|
|
3521
|
-
}, expression: "ruleFormData.delayedhours" } })], 1)], 1), t("el-col", { attrs: { md: 8, sm: 24 } }, [t("el-form-item", { attrs: { prop: "delayedminute" } }, [t("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.delayMin")) + "\xA0 "), t("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.delayMinTip"), placement: "top" } }, [t("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.delayedminute, callback: function(s) {
|
|
3522
|
-
e.$set(e.ruleFormData, "delayedminute", s);
|
|
3523
|
-
}, expression: "ruleFormData.delayedminute" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 24 } }, [t("el-form-item", [t("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.exclusionTime")) + "\xA0 "), t("el-tooltip", [t("template", { slot: "content" }, [t("p", [e._v(e._s(e.$i18nt("gd.msg.sendPlan.exclusionTimeTip", "\u5982\u9700\u8DE8\u5929,\u8BF7\u586B\u5199\u4E24\u6BB5\u65F6\u95F4\u6BB5\uFF0C\u5982\uFF1A")))]), t("p", [e._v(e._s(e.$i18nt("gd.msg.sendPlan.exclusionTimeTi", "\u7B2C\u4E00\u6BB5 22:00:00-23:59:59")))]), t("p", [e._v(e._s(e.$i18nt("gd.msg.sendPlan.exclusionTimeT", "\u7B2C\u4E8C\u6BB5 00:00:00-8:00:00")))])]), t("i", { staticClass: "gd-icons gd-icon-question-line" })], 2)], 1), t("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px", "margin-left": "1px" }, attrs: { type: "primary", size: "mini", icon: "el-icon-plus" }, on: { click: function(s) {
|
|
3524
|
-
return e.times.push({ startTime: "", endTime: "" });
|
|
3525
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.addTime")) + " ")]), t("div", { staticClass: "time-list" }, e._l(e.times, function(s, i) {
|
|
3526
|
-
return t("div", { key: i, staticClass: "time-item" }, [t("el-time-picker", { attrs: { "value-format": e.format, format: e.format, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: s.starttime, callback: function(l) {
|
|
3527
|
-
e.$set(s, "starttime", l);
|
|
3528
|
-
}, expression: "item.starttime" } }), t("span", { staticStyle: { padding: "0 10px" } }, [e._v("-")]), t("el-time-picker", { attrs: { "value-format": e.format, format: e.format, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: s.endtime, callback: function(l) {
|
|
3529
|
-
e.$set(s, "endtime", l);
|
|
3530
|
-
}, expression: "item.endtime" } })], 1);
|
|
3531
|
-
}), 0)], 1)], 1)], 1)], 2)], 1)], 1), t("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
3532
|
-
}, ut = [], pt = /* @__PURE__ */ p(
|
|
3533
|
-
dt,
|
|
3534
|
-
ct,
|
|
3535
|
-
ut,
|
|
3536
|
-
!1,
|
|
3537
|
-
null,
|
|
3538
|
-
"b3d2d9e7",
|
|
3539
|
-
null,
|
|
3540
|
-
null
|
|
3541
|
-
);
|
|
3542
|
-
const ft = pt.exports;
|
|
3543
|
-
const mt = {
|
|
3544
|
-
props: {
|
|
3545
|
-
height: {
|
|
3546
|
-
type: Number,
|
|
3547
|
-
default: 0
|
|
3548
|
-
}
|
|
3549
|
-
},
|
|
3550
|
-
name: "GdSysMsgSendPlan",
|
|
3551
|
-
mixins: [_, ot],
|
|
3552
|
-
data() {
|
|
3553
|
-
return {
|
|
3554
|
-
statu: !1,
|
|
3555
|
-
fieldData: [],
|
|
3556
|
-
formLoading: !1,
|
|
3557
|
-
send: null,
|
|
3558
|
-
selectedRowKeys: [],
|
|
3559
|
-
isLoading: !1,
|
|
3560
|
-
pageSize: 10,
|
|
3561
|
-
isChangeSize: !1,
|
|
3562
|
-
ppShow: !0,
|
|
3563
|
-
advanced: !1,
|
|
3564
|
-
queryParam: {},
|
|
3565
|
-
oselectedRowKeys: [],
|
|
3566
|
-
sendObjectList: [],
|
|
3567
|
-
oldfkData: [],
|
|
3568
|
-
transKey: "gd.btn.edit",
|
|
3569
|
-
loadData: (a, e) => {
|
|
3570
|
-
this.sorter = e;
|
|
3571
|
-
let t = [...this.oselectedRowKeys];
|
|
3572
|
-
return this.isLoading = !0, W(Object.assign(a, this.getQueryParam)).then((s) => {
|
|
3573
|
-
this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1;
|
|
3574
|
-
let i = s.data && s.data.rows ? s.data.rows : [];
|
|
3575
|
-
i.forEach((n, r) => {
|
|
3576
|
-
i[r].sendObjectList = n.sendobject ? JSON.parse(n.sendobject) : [];
|
|
3577
|
-
});
|
|
3578
|
-
let l = Object.assign(
|
|
3579
|
-
{
|
|
3580
|
-
...s.data
|
|
3581
|
-
},
|
|
3582
|
-
{
|
|
3583
|
-
rows: i
|
|
3584
|
-
}
|
|
3585
|
-
);
|
|
3586
|
-
return s.success && this.openMode == 2 && (this.$emit("changeData", i), setTimeout(() => {
|
|
3587
|
-
this.$refs.table && this.$refs.table.updateSelect(t, []), this.selectedRowKeys = [...t], this.onSelectChange(t, []);
|
|
3588
|
-
}, 10)), l;
|
|
3589
|
-
});
|
|
3590
|
-
}
|
|
3591
|
-
};
|
|
3592
|
-
},
|
|
3593
|
-
computed: {
|
|
3594
|
-
getHeight() {
|
|
3595
|
-
return this.height;
|
|
3596
|
-
},
|
|
3597
|
-
getQueryParam() {
|
|
3598
|
-
let a = /* @__PURE__ */ new Map();
|
|
3599
|
-
for (let e in this.queryParam)
|
|
3600
|
-
this.queryParam[e] && ["msgAlertRuleType", "msg_MessagetemplateId"].includes(e) ? a.set(e, this.queryParam[e].join(",")) : a.set(e, this.queryParam[e]);
|
|
3601
|
-
return Object.fromEntries(a);
|
|
3602
|
-
},
|
|
3603
|
-
getFormColumns() {
|
|
3604
|
-
return [...this.formColumns, ...this.formColumnsArr];
|
|
3605
|
-
},
|
|
3606
|
-
...f(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
|
|
3607
|
-
},
|
|
3608
|
-
components: {
|
|
3609
|
-
editForm: ft,
|
|
3610
|
-
editFormTemplate: O
|
|
3611
|
-
},
|
|
3612
|
-
created() {
|
|
3613
|
-
this.getTableList();
|
|
3614
|
-
},
|
|
3615
|
-
methods: {
|
|
3616
|
-
seeMessagetemPlate(a) {
|
|
3617
|
-
this.$refs.editFormTemplate.open({
|
|
3618
|
-
id: a.msg_messagetemplateid
|
|
3619
|
-
});
|
|
3620
|
-
},
|
|
3621
|
-
getTableList() {
|
|
3622
|
-
let a = this.tableLists.filter((e) => e.tablename === "msg_messagesndplan")[0];
|
|
3623
|
-
a !== void 0 && v({
|
|
3624
|
-
codeGenId: a.id
|
|
3625
|
-
}).then((e) => {
|
|
3626
|
-
this.fieldData = e.data;
|
|
3627
|
-
});
|
|
3628
|
-
},
|
|
3629
|
-
baseQuickForm(a) {
|
|
3630
|
-
if (this.statu)
|
|
3631
|
-
return;
|
|
3632
|
-
let e = this.tableLists.filter((s) => s.tablename == a.tableName)[0];
|
|
3633
|
-
if (e === void 0) {
|
|
3634
|
-
this.$message.error(this.$i18nt("gd.solution.dataErrorTip", "\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));
|
|
3635
|
-
return;
|
|
3636
|
-
}
|
|
3637
|
-
this.statu = !0;
|
|
3638
|
-
const t = this.$message({
|
|
3639
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
3640
|
-
duration: 0,
|
|
3641
|
-
iconClass: "el-icon-loading"
|
|
3642
|
-
});
|
|
3643
|
-
this.$refs.middleware.init({
|
|
3644
|
-
tableId: e.id,
|
|
3645
|
-
data: [a]
|
|
3646
|
-
}).then((s) => {
|
|
3647
|
-
this.statu = !1, t.close();
|
|
3648
|
-
});
|
|
3649
|
-
},
|
|
3650
|
-
saveQueries(a) {
|
|
3651
|
-
this.queryParam = {
|
|
3652
|
-
...a
|
|
3653
|
-
}, this.refresh();
|
|
3654
|
-
},
|
|
3655
|
-
editForm(a) {
|
|
3656
|
-
this.transKey = "gd.btn.edit";
|
|
3657
|
-
let e = a.sendobject ? JSON.parse(a.sendobject) : [], t = [];
|
|
3658
|
-
e.forEach((s) => {
|
|
3659
|
-
t.push(s.id);
|
|
3660
|
-
}), this.sendObjectList = [...e], this.oldfkData = [...e], this.$refs.editForm.open(
|
|
3661
|
-
Object.assign(
|
|
3662
|
-
{
|
|
3663
|
-
...a
|
|
3664
|
-
},
|
|
3665
|
-
{
|
|
3666
|
-
msgAlertRuleType: String(a.msgalertruletype),
|
|
3667
|
-
sendobject: a.sendobject ? t : []
|
|
3668
|
-
}
|
|
3669
|
-
)
|
|
3670
|
-
);
|
|
3671
|
-
},
|
|
3672
|
-
add() {
|
|
3673
|
-
this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
3674
|
-
},
|
|
3675
|
-
edit() {
|
|
3676
|
-
if (this.selectedRowKeys.length === 0) {
|
|
3677
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
3678
|
-
return;
|
|
3679
|
-
}
|
|
3680
|
-
if (this.selectedRowKeys.length > 1) {
|
|
3681
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
3682
|
-
return;
|
|
3683
|
-
}
|
|
3684
|
-
this.editForm(this.selectedRows[0]);
|
|
3685
|
-
},
|
|
3686
|
-
sbumit({ data: a, record: e, btn: t }, s, i) {
|
|
3687
|
-
console.log(a, this.oldfkData, "data");
|
|
3688
|
-
},
|
|
3689
|
-
del() {
|
|
3690
|
-
if (this.selectedRowKeys.length === 0) {
|
|
3691
|
-
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
3692
|
-
return;
|
|
3693
|
-
}
|
|
3694
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
3695
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
3696
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
3697
|
-
showClose: !1,
|
|
3698
|
-
confirmButtonLoading: !1,
|
|
3699
|
-
cancelButtonLoading: !1,
|
|
3700
|
-
closeOnClickModal: !1,
|
|
3701
|
-
type: "warning",
|
|
3702
|
-
confirmButtonClass: "el-button--danger",
|
|
3703
|
-
customClass: "custom-alert",
|
|
3704
|
-
callback: () => {
|
|
3705
|
-
},
|
|
3706
|
-
beforeClose: (a, e, t) => {
|
|
3707
|
-
this.delHand(a, e, t);
|
|
3708
|
-
}
|
|
3709
|
-
});
|
|
3710
|
-
},
|
|
3711
|
-
delHand(a, e, t) {
|
|
3712
|
-
if (a !== "confirm") {
|
|
3713
|
-
t();
|
|
3714
|
-
return;
|
|
3715
|
-
}
|
|
3716
|
-
let s = [], i = H({
|
|
3717
|
-
ids: this.selectedRowKeys.join(",")
|
|
3718
|
-
}).then((l) => l);
|
|
3719
|
-
s.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
|
|
3720
|
-
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, t();
|
|
3721
|
-
const n = l.filter((r) => !r.success);
|
|
3722
|
-
n.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.refresh();
|
|
3723
|
-
});
|
|
3724
|
-
},
|
|
3725
|
-
onSelectChange(a, e) {
|
|
3726
|
-
this.selectedRowKeys = a, this.selectedRows = e, this.isChangeSize || (this.oselectedRowKeys = a), this.$emit("onSelectChange", a, e);
|
|
3727
|
-
},
|
|
3728
|
-
refresh() {
|
|
3729
|
-
this.$refs.table.refresh();
|
|
3730
|
-
},
|
|
3731
|
-
dictSwitch(a, e) {
|
|
3732
|
-
let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
|
|
3733
|
-
return t != null && t.colour ? t.colour : null;
|
|
3734
|
-
},
|
|
3735
|
-
getDict(a) {
|
|
3736
|
-
return this.$options.filters.dictData(a);
|
|
3737
|
-
},
|
|
3738
|
-
doEvent(a) {
|
|
3739
|
-
let e = a.item.functionName;
|
|
3740
|
-
this[e] && this[e]();
|
|
3741
|
-
}
|
|
3742
|
-
}
|
|
3743
|
-
};
|
|
3744
|
-
var ht = function() {
|
|
3745
|
-
var e = this, t = e._self._c;
|
|
3746
|
-
return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
3747
|
-
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.msg.sendPlan.name", "\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
3748
|
-
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
3749
|
-
} }, model: { value: e.queryParam.name, callback: function(s) {
|
|
3750
|
-
e.$set(e.queryParam, "name", s);
|
|
3751
|
-
}, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
3752
|
-
}, proxy: !0 }, { key: "name", fn: function({ column: s, row: i }) {
|
|
3753
|
-
return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
3754
|
-
} }, { key: "msg_MessagetemplateIdName", fn: function({ column: s, row: i }) {
|
|
3755
|
-
return [t("gd-tooltip", { attrs: { rowKey: "msg_messagetemplateidname", row: i, highlight: "" }, on: { click: function(l) {
|
|
3756
|
-
return e.seeMessagetemPlate(i);
|
|
3757
|
-
} } })];
|
|
3758
|
-
} }, { key: "sendObject", fn: function(s) {
|
|
3759
|
-
return [t("el-popover", { attrs: { placement: "top", trigger: "hover", "close-delay": 34 } }, [t("div", { staticClass: "file-popover" }, [e._l(s.row.sendObjectList, function(i, l) {
|
|
3760
|
-
return [t("span", { staticClass: "file-popover-item", on: { click: function(n) {
|
|
3761
|
-
return e.baseQuickForm(i);
|
|
3762
|
-
} } }, [e._v(e._s(i.name))])];
|
|
3763
|
-
})], 2), t("div", { staticClass: "line1", attrs: { slot: "reference" }, slot: "reference" }, [e._l(s.row.sendObjectList, function(i, l) {
|
|
3764
|
-
return [t("span", [l !== 0 ? t("span", { staticStyle: { padding: "0 4px 0 2px" } }, [e._v(",")]) : e._e(), t("span", [e._v(e._s(i.name))])])];
|
|
3765
|
-
})], 2)])];
|
|
3766
|
-
} }, { key: "filtering", fn: function({ colse: s, visible: i }) {
|
|
3767
|
-
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: i }, on: { save: e.saveQueries } })];
|
|
3768
|
-
} }]) })], 1), t("editForm", { ref: "editForm", attrs: { fieldData: e.fieldData }, on: { ok: e.refresh } }), t("editFormTemplate", { ref: "editFormTemplate", on: { ok: e.refresh } }), t("gd-middleware", { ref: "middleware", on: { ok: e.refresh } })], 1);
|
|
3769
|
-
}, gt = [], yt = /* @__PURE__ */ p(
|
|
3770
|
-
mt,
|
|
3771
|
-
ht,
|
|
3772
|
-
gt,
|
|
3773
|
-
!1,
|
|
3774
|
-
null,
|
|
3775
|
-
"2c6c3930",
|
|
3776
|
-
null,
|
|
3777
|
-
null
|
|
3778
|
-
);
|
|
3779
|
-
const T = yt.exports;
|
|
3780
|
-
T.install = function(a) {
|
|
3781
|
-
a.component(T.name, T);
|
|
3782
|
-
};
|
|
3783
|
-
const bt = {
|
|
3784
|
-
data() {
|
|
3785
|
-
return {
|
|
3786
|
-
tableColumns: [
|
|
3787
|
-
{
|
|
3788
|
-
type: "selection",
|
|
3789
|
-
width: "60",
|
|
3790
|
-
fixed: !0
|
|
3791
|
-
},
|
|
3792
|
-
{
|
|
3793
|
-
transKey: "gd.msg.sendRecord.name",
|
|
3794
|
-
prop: "name",
|
|
3795
|
-
label: "\u540D\u79F0",
|
|
3796
|
-
width: "160",
|
|
3797
|
-
type: "slot",
|
|
3798
|
-
slotType: "name",
|
|
3799
|
-
align: "left",
|
|
3800
|
-
fixed: !0,
|
|
3801
|
-
showOverflowTooltip: !0
|
|
3802
|
-
},
|
|
3803
|
-
{
|
|
3804
|
-
transKey: "gd.msg.sendRecord.sendType",
|
|
3805
|
-
prop: "sendType",
|
|
3806
|
-
width: "120",
|
|
3807
|
-
label: "\u53D1\u9001\u65B9\u5F0F",
|
|
3808
|
-
type: "slot",
|
|
3809
|
-
slotType: "sendType",
|
|
3810
|
-
align: "left",
|
|
3811
|
-
showOverflowTooltip: !0
|
|
3812
|
-
},
|
|
3813
|
-
{
|
|
3814
|
-
transKey: "gd.msg.sendRecord.about",
|
|
3815
|
-
prop: "aboutRecord_AboutId",
|
|
3816
|
-
width: "160",
|
|
3817
|
-
label: "\u5173\u4E8E",
|
|
3818
|
-
align: "left",
|
|
3819
|
-
type: "slot",
|
|
3820
|
-
slotType: "aboutRecord_AboutId"
|
|
3821
|
-
},
|
|
3822
|
-
{
|
|
3823
|
-
transKey: "gd.msg.sendRecord.msgStatus",
|
|
3824
|
-
prop: "msgStatus",
|
|
3825
|
-
width: "160",
|
|
3826
|
-
label: "\u6D88\u606F\u72B6\u6001",
|
|
3827
|
-
type: "slot",
|
|
3828
|
-
slotType: "msgStatus",
|
|
3829
|
-
align: "left",
|
|
3830
|
-
showOverflowTooltip: !0
|
|
3831
|
-
},
|
|
3832
|
-
{
|
|
3833
|
-
transKey: "gd.msg.sendRecord.isAutomatic",
|
|
3834
|
-
prop: "isAuto",
|
|
3835
|
-
width: "120",
|
|
3836
|
-
label: "\u662F\u5426\u81EA\u52A8",
|
|
3837
|
-
type: "slot",
|
|
3838
|
-
slotType: "isAuto",
|
|
3839
|
-
align: "left",
|
|
3840
|
-
showOverflowTooltip: !0
|
|
3841
|
-
},
|
|
3842
|
-
{
|
|
3843
|
-
transKey: "gd.msg.sendRecord.plannedTime",
|
|
3844
|
-
prop: "scheduledstartedon",
|
|
3845
|
-
width: "160",
|
|
3846
|
-
label: "\u8BA1\u5212\u53D1\u9001\u65F6\u95F4",
|
|
3847
|
-
align: "center"
|
|
3848
|
-
},
|
|
3849
|
-
{
|
|
3850
|
-
transKey: "gd.msg.sendRecord.actualTime",
|
|
3851
|
-
prop: "actualon",
|
|
3852
|
-
width: "160",
|
|
3853
|
-
label: "\u5B9E\u9645\u53D1\u9001\u65F6\u95F4",
|
|
3854
|
-
align: "center"
|
|
3855
|
-
},
|
|
3856
|
-
{
|
|
3857
|
-
transKey: "gd.msg.sendRecord.updatedTime",
|
|
3858
|
-
prop: "updatedtime",
|
|
3859
|
-
width: "160",
|
|
3860
|
-
label: "\u66F4\u65B0\u65F6\u95F4",
|
|
3861
|
-
align: "center"
|
|
3862
|
-
},
|
|
3863
|
-
{
|
|
3864
|
-
transKey: "gd.msg.sendRecord.createdTime",
|
|
3865
|
-
prop: "createdtime",
|
|
3866
|
-
width: "160",
|
|
3867
|
-
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
3868
|
-
align: "center"
|
|
3869
|
-
}
|
|
3870
|
-
],
|
|
3871
|
-
formColumns: [
|
|
3872
|
-
{
|
|
3873
|
-
transKey: "gd.msg.sendRecord.name",
|
|
3874
|
-
prop: "name",
|
|
3875
|
-
label: "\u540D\u79F0",
|
|
3876
|
-
effectType: "input",
|
|
3877
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
3878
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
3879
|
-
disabled: !1,
|
|
3880
|
-
rules: [{
|
|
3881
|
-
required: !0,
|
|
3882
|
-
message: "\u8BF7\u8F93\u5165",
|
|
3883
|
-
transKey: "gd.placeholder.input",
|
|
3884
|
-
trigger: "change"
|
|
3885
|
-
}]
|
|
3886
|
-
},
|
|
3887
|
-
{
|
|
3888
|
-
transKey: "gd.msg.sendRecord.sendType",
|
|
3889
|
-
effectType: "select",
|
|
3890
|
-
prop: "sendtype",
|
|
3891
|
-
label: "\u53D1\u9001\u65B9\u5F0F",
|
|
3892
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
3893
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
3894
|
-
dictTypeCode: "SendType",
|
|
3895
|
-
disabled: !1,
|
|
3896
|
-
rules: [{
|
|
3897
|
-
required: !0,
|
|
3898
|
-
message: "\u8BF7\u9009\u62E9",
|
|
3899
|
-
transKey: "gd.placeholder.select",
|
|
3900
|
-
trigger: "change"
|
|
3901
|
-
}]
|
|
3902
|
-
},
|
|
3903
|
-
{
|
|
3904
|
-
transKey: "gd.msg.sendRecord.msgSendingPlan",
|
|
3905
|
-
effectType: "selectFkMultiple",
|
|
3906
|
-
prop: "msg_messagesendplanid",
|
|
3907
|
-
label: "\u6D88\u606F\u53D1\u9001\u8BA1\u5212",
|
|
3908
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
3909
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
3910
|
-
fkEntityName: "msg_messagesendplan",
|
|
3911
|
-
disabled: !1,
|
|
3912
|
-
multiple: !1,
|
|
3913
|
-
rules: []
|
|
3914
|
-
},
|
|
3915
|
-
{
|
|
3916
|
-
transKey: "gd.user.actualTime",
|
|
3917
|
-
prop: "actualon",
|
|
3918
|
-
effectType: "datetime",
|
|
3919
|
-
label: "\u5B9E\u9645\u53D1\u9001\u65F6\u95F4",
|
|
3920
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
3921
|
-
valueFormat: "yyyy-MM-DD HH:mm:ss",
|
|
3922
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
3923
|
-
rules: []
|
|
3924
|
-
},
|
|
3925
|
-
{
|
|
3926
|
-
transKey: "gd.msg.sendRecord.msgTemplate",
|
|
3927
|
-
effectType: "selectFkMultiple",
|
|
3928
|
-
prop: "msg_messagetemplateid",
|
|
3929
|
-
label: "\u6D88\u606F\u6A21\u677F",
|
|
3930
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
3931
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
3932
|
-
fkEntityName: "msg_messagetemplate",
|
|
3933
|
-
disabled: !1,
|
|
3934
|
-
multiple: !1,
|
|
3935
|
-
rules: []
|
|
3936
|
-
},
|
|
3937
|
-
{
|
|
3938
|
-
transKey: "gd.msg.sendRecord.msgStatus",
|
|
3939
|
-
effectType: "select",
|
|
3940
|
-
prop: "msgstatus",
|
|
3941
|
-
label: "\u6D88\u606F\u72B6\u6001",
|
|
3942
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
3943
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
3944
|
-
dictTypeCode: "MessageStatus",
|
|
3945
|
-
disabled: !1,
|
|
3946
|
-
rules: [{
|
|
3947
|
-
required: !0,
|
|
3948
|
-
message: "\u8BF7\u9009\u62E9",
|
|
3949
|
-
transKey: "gd.placeholder.select",
|
|
3950
|
-
trigger: "change"
|
|
3951
|
-
}]
|
|
3952
|
-
},
|
|
3953
|
-
{
|
|
3954
|
-
transKey: "gd.msg.sendRecord.about",
|
|
3955
|
-
effectType: "selectFkMultiple",
|
|
3956
|
-
prop: "aboutrecord_aboutid",
|
|
3957
|
-
label: "\u5173\u4E8E",
|
|
3958
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
3959
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
3960
|
-
fkEntityName: "sys_approval_task,vis_visittask,mkt_campaigntasklist",
|
|
3961
|
-
disabled: !1,
|
|
3962
|
-
multiple: !1,
|
|
3963
|
-
rules: []
|
|
3964
|
-
},
|
|
3965
|
-
{
|
|
3966
|
-
transKey: "gd.msg.sendRecord.isAutomatic",
|
|
3967
|
-
prop: "isauto",
|
|
3968
|
-
effectType: "switch",
|
|
3969
|
-
label: "\u662F\u5426\u81EA\u52A8",
|
|
3970
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
3971
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
3972
|
-
disabled: !1,
|
|
3973
|
-
rules: []
|
|
3974
|
-
},
|
|
3975
|
-
{
|
|
3976
|
-
transKey: "gd.msg.sendRecord.plannedTime",
|
|
3977
|
-
prop: "scheduledstartedon",
|
|
3978
|
-
effectType: "datetime",
|
|
3979
|
-
label: "\u8BA1\u5212\u53D1\u9001\u65F6\u95F4",
|
|
3980
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
3981
|
-
valueFormat: "yyyy-MM-DD HH:mm:ss",
|
|
3982
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
3983
|
-
disabled: !1,
|
|
3984
|
-
rules: []
|
|
3985
|
-
},
|
|
3986
|
-
{
|
|
3987
|
-
transKey: "gd.msg.sendRecord.updatedTime",
|
|
3988
|
-
prop: "updatedtime",
|
|
3989
|
-
effectType: "datetime",
|
|
3990
|
-
label: "\u66F4\u65B0\u65F6\u95F4",
|
|
3991
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
3992
|
-
valueFormat: "yyyy-MM-DD HH:mm:ss",
|
|
3993
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
3994
|
-
disabled: !0,
|
|
3995
|
-
rules: []
|
|
3996
|
-
},
|
|
3997
|
-
{
|
|
3998
|
-
transKey: "gd.msg.sendRecord.sendObject",
|
|
3999
|
-
effectType: "textarea",
|
|
4000
|
-
prop: "sendobjectlist",
|
|
4001
|
-
label: "\u53D1\u9001\u5BF9\u8C61\u96C6",
|
|
4002
|
-
disabled: !1,
|
|
4003
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
4004
|
-
rules: [],
|
|
4005
|
-
autosize: {
|
|
4006
|
-
minRows: 4,
|
|
4007
|
-
maxRows: 6
|
|
4008
|
-
}
|
|
4009
|
-
},
|
|
4010
|
-
{
|
|
4011
|
-
transKey: "gd.msg.sendRecord.remarks",
|
|
4012
|
-
effectType: "textarea",
|
|
4013
|
-
prop: "remark",
|
|
4014
|
-
label: "\u5907\u6CE8",
|
|
4015
|
-
disabled: !1,
|
|
4016
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
4017
|
-
rules: [],
|
|
4018
|
-
autosize: {
|
|
4019
|
-
minRows: 4,
|
|
4020
|
-
maxRows: 6
|
|
4021
|
-
}
|
|
4022
|
-
},
|
|
4023
|
-
{
|
|
4024
|
-
transKey: "gd.msg.sendRecord.content",
|
|
4025
|
-
effectType: "textarea",
|
|
4026
|
-
prop: "messagecontent",
|
|
4027
|
-
label: "\u6A21\u677F\u5185\u5BB9",
|
|
4028
|
-
disabled: !1,
|
|
4029
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
4030
|
-
rules: [],
|
|
4031
|
-
autosize: {
|
|
4032
|
-
minRows: 4,
|
|
4033
|
-
maxRows: 6
|
|
4034
|
-
}
|
|
4035
|
-
}
|
|
4036
|
-
],
|
|
4037
|
-
tableButtons: [
|
|
4038
|
-
{
|
|
4039
|
-
displayName: "\u65B0\u589E",
|
|
4040
|
-
functionName: "add",
|
|
4041
|
-
show: !0,
|
|
4042
|
-
transKey: "gd.btn.add",
|
|
4043
|
-
icon: "el-icon-plus",
|
|
4044
|
-
name: "sysMsgSendRecord:add"
|
|
4045
|
-
},
|
|
4046
|
-
{
|
|
4047
|
-
displayName: "\u7F16\u8F91",
|
|
4048
|
-
functionName: "edit",
|
|
4049
|
-
show: !0,
|
|
4050
|
-
transKey: "gd.btn.edit",
|
|
4051
|
-
icon: "el-icon-edit",
|
|
4052
|
-
name: "sysMsgSendRecord:edit"
|
|
4053
|
-
},
|
|
4054
|
-
{
|
|
4055
|
-
displayName: "\u5220\u9664",
|
|
4056
|
-
functionName: "del",
|
|
4057
|
-
show: !0,
|
|
4058
|
-
transKey: "gd.btn.del",
|
|
4059
|
-
icon: "el-icon-delete",
|
|
4060
|
-
btnType: "danger",
|
|
4061
|
-
name: "sysMsgSendRecord:delete"
|
|
4062
|
-
},
|
|
4063
|
-
{
|
|
4064
|
-
displayName: "\u6D88\u606F\u53D1\u9001",
|
|
4065
|
-
functionName: "sending",
|
|
4066
|
-
show: !0,
|
|
4067
|
-
transKey: "gd.msg.sendRecord.msgsending",
|
|
4068
|
-
icon: "mail",
|
|
4069
|
-
name: "sysMsgSendRecord:sending"
|
|
4070
|
-
}
|
|
4071
|
-
],
|
|
4072
|
-
formButtons: [{
|
|
4073
|
-
displayName: "\u786E\u5B9A",
|
|
4074
|
-
functionName: "handleSubmit",
|
|
4075
|
-
show: !0,
|
|
4076
|
-
transKey: "gd.btn.confirm",
|
|
4077
|
-
icon: "el-icon-document-checked",
|
|
4078
|
-
validate: !0
|
|
4079
|
-
}],
|
|
4080
|
-
tableQueries: [{
|
|
4081
|
-
transKey: "gd.msg.sendRecord.sendType",
|
|
4082
|
-
prop: "sendType",
|
|
4083
|
-
label: "\u53D1\u9001\u65B9\u5F0F",
|
|
4084
|
-
effectType: "selectMultiple",
|
|
4085
|
-
dictTypeCode: "SendType",
|
|
4086
|
-
rules: []
|
|
4087
|
-
}, {
|
|
4088
|
-
transKey: "gd.msg.sendRecord.actualTime",
|
|
4089
|
-
prop: "actualOn",
|
|
4090
|
-
label: "\u5B9E\u9645\u53D1\u9001\u65F6\u95F4",
|
|
4091
|
-
effectType: "datepicker",
|
|
4092
|
-
options: {
|
|
4093
|
-
displayStyle: 0
|
|
4094
|
-
},
|
|
4095
|
-
rules: []
|
|
4096
|
-
}, {
|
|
4097
|
-
transKey: "gd.msg.sendRecord.plannedTime",
|
|
4098
|
-
prop: "scheduledStartedOn",
|
|
4099
|
-
label: "\u8BA1\u5212\u53D1\u9001\u65F6\u95F4",
|
|
4100
|
-
effectType: "datepicker",
|
|
4101
|
-
options: {
|
|
4102
|
-
displayStyle: 0
|
|
4103
|
-
},
|
|
4104
|
-
rules: []
|
|
4105
|
-
}, {
|
|
4106
|
-
transKey: "gd.msg.sendRecord.msgStatus",
|
|
4107
|
-
prop: "msgStatus",
|
|
4108
|
-
label: "\u6D88\u606F\u72B6\u6001",
|
|
4109
|
-
effectType: "selectMultiple",
|
|
4110
|
-
dictTypeCode: "MessageStatus",
|
|
4111
|
-
rules: []
|
|
4112
|
-
}, {
|
|
4113
|
-
transKey: "gd.msg.sendRecord.createdTime",
|
|
4114
|
-
prop: "createdTime",
|
|
4115
|
-
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
4116
|
-
effectType: "datepicker",
|
|
4117
|
-
options: {
|
|
4118
|
-
displayStyle: 0
|
|
4119
|
-
},
|
|
4120
|
-
rules: []
|
|
4121
|
-
}, {
|
|
4122
|
-
transKey: "gd.msg.sendRecord.sendObject",
|
|
4123
|
-
prop: "sendObjectList",
|
|
4124
|
-
label: "\u53D1\u9001\u5BF9\u8C61\u96C6",
|
|
4125
|
-
effectType: "textarea",
|
|
4126
|
-
rules: []
|
|
4127
|
-
}]
|
|
4128
|
-
};
|
|
4129
|
-
}
|
|
4130
|
-
};
|
|
4131
|
-
const vt = {
|
|
4132
|
-
props: {
|
|
4133
|
-
height: {
|
|
4134
|
-
type: Number,
|
|
4135
|
-
default: 0
|
|
4136
|
-
}
|
|
4137
|
-
},
|
|
4138
|
-
name: "GdSysMsgSendRecord",
|
|
4139
|
-
mixins: [_, bt],
|
|
4140
|
-
data() {
|
|
4141
|
-
return {
|
|
4142
|
-
statu: !1,
|
|
4143
|
-
formLoading: !1,
|
|
4144
|
-
send: null,
|
|
4145
|
-
selectedRowKeys: [],
|
|
4146
|
-
isLoading: !1,
|
|
4147
|
-
pageSize: 10,
|
|
4148
|
-
isChangeSize: !1,
|
|
4149
|
-
ppShow: !0,
|
|
4150
|
-
advanced: !1,
|
|
4151
|
-
queryParam: {},
|
|
4152
|
-
oselectedRowKeys: [],
|
|
4153
|
-
transKey: "gd.btn.edit",
|
|
4154
|
-
loadData: (a, e) => {
|
|
4155
|
-
this.sorter = e;
|
|
4156
|
-
let t = [...this.oselectedRowKeys];
|
|
4157
|
-
return this.isLoading = !0, J(Object.assign(a, this.getQueryParam)).then((s) => (this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1, s.success && this.openMode == 2 && (this.$emit("changeData", s.data.rows), setTimeout(() => {
|
|
4158
|
-
this.$refs.table && this.$refs.table.updateSelect(t, []), this.selectedRowKeys = [...t], this.onSelectChange(t, []);
|
|
4159
|
-
}, 10)), s.data));
|
|
4160
|
-
}
|
|
4161
|
-
};
|
|
4162
|
-
},
|
|
4163
|
-
computed: {
|
|
4164
|
-
getHeight() {
|
|
4165
|
-
return this.height;
|
|
4166
|
-
},
|
|
4167
|
-
getQueryParam() {
|
|
4168
|
-
let a = /* @__PURE__ */ new Map();
|
|
4169
|
-
for (let e in this.queryParam)
|
|
4170
|
-
if (this.queryParam[e] && (e === "msgStatus" || e === "sendType"))
|
|
4171
|
-
a.set(e, this.queryParam[e].join(","));
|
|
4172
|
-
else if (this.queryParam[e] && (e === "actualOn" || e === "createdTime" || e === "scheduledStartedOn")) {
|
|
4173
|
-
if (this.queryParam[e].length > 0) {
|
|
4174
|
-
let t = this.queryParam[e], s = t[0].split(" ")[0], i = t[1].split(" ")[0];
|
|
4175
|
-
a.set(`${e}Start`, `${s} 00:00:00`), a.set(`${e}End`, `${i} 23:59:59`);
|
|
4176
|
-
}
|
|
4177
|
-
} else
|
|
4178
|
-
a.set(e, this.queryParam[e]);
|
|
4179
|
-
return Object.fromEntries(a);
|
|
4180
|
-
},
|
|
4181
|
-
...f(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "tableLists"])
|
|
4182
|
-
},
|
|
4183
|
-
methods: {
|
|
4184
|
-
aboutRecord(a) {
|
|
4185
|
-
if (this.statu)
|
|
4186
|
-
return;
|
|
4187
|
-
let e = this.tableLists.filter((i) => i.tablename === a.aboutrecord_abouttable.toLowerCase())[0];
|
|
4188
|
-
if (e === void 0) {
|
|
4189
|
-
this.$message.error(this.$i18nt("gd.solution.dataErrorTip", "\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));
|
|
4190
|
-
return;
|
|
4191
|
-
}
|
|
4192
|
-
let t = {
|
|
4193
|
-
tableId: e.id,
|
|
4194
|
-
data: [
|
|
4195
|
-
{
|
|
4196
|
-
id: a.aboutrecord_aboutid
|
|
4197
|
-
}
|
|
4198
|
-
]
|
|
4199
|
-
};
|
|
4200
|
-
this.statu = !0;
|
|
4201
|
-
const s = this.$message({
|
|
4202
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
4203
|
-
duration: 0,
|
|
4204
|
-
iconClass: "el-icon-loading"
|
|
4205
|
-
});
|
|
4206
|
-
this.$refs.middleware.init(t).then((i) => {
|
|
4207
|
-
this.statu = !1, s.close();
|
|
4208
|
-
});
|
|
4209
|
-
},
|
|
4210
|
-
saveQueries(a) {
|
|
4211
|
-
this.queryParam = { ...a }, this.refresh();
|
|
4212
|
-
},
|
|
4213
|
-
editForm(a) {
|
|
4214
|
-
this.transKey = "gd.btn.edit", this.formLoading = !0, this.$refs.editForm.open(a).then((e) => {
|
|
4215
|
-
this.initForm(e, a);
|
|
4216
|
-
});
|
|
4217
|
-
},
|
|
4218
|
-
initForm({ instance: a, done: e }, t) {
|
|
4219
|
-
Q({ id: t.id }).then((s) => {
|
|
4220
|
-
s.code === 200 && (e(
|
|
4221
|
-
Object.assign(
|
|
4222
|
-
{ ...t },
|
|
4223
|
-
{
|
|
4224
|
-
sendtype: s.data.sendtype ? String(s.data.sendtype) : "",
|
|
4225
|
-
msgstatus: s.data.msgstatus ? String(s.data.msgstatus) : "",
|
|
4226
|
-
isauto: s.data.isauto === 1
|
|
4227
|
-
}
|
|
4228
|
-
)
|
|
4229
|
-
), this.getFkDada(s.data));
|
|
4230
|
-
});
|
|
4231
|
-
},
|
|
4232
|
-
getFkDada(a) {
|
|
4233
|
-
let e = [];
|
|
4234
|
-
if (a.msg_messagesendplanid) {
|
|
4235
|
-
let t = this.searchData(
|
|
4236
|
-
{ id: a.msg_messagesendplanid, fkEntityName: "msg_messagesendplan" },
|
|
4237
|
-
"msg_messagesendplanid"
|
|
4238
|
-
);
|
|
4239
|
-
e.push(t);
|
|
4240
|
-
}
|
|
4241
|
-
if (a.msg_messagetemplateid) {
|
|
4242
|
-
let t = this.searchData(
|
|
4243
|
-
{ id: a.msg_messagetemplateid, fkEntityName: "msg_messagetemplate" },
|
|
4244
|
-
"msg_messagetemplateid"
|
|
4245
|
-
);
|
|
4246
|
-
e.push(t);
|
|
4247
|
-
}
|
|
4248
|
-
if (a.aboutrecord_aboutid) {
|
|
4249
|
-
let t = this.searchData({ id: a.aboutrecord_aboutid, fkEntityName: a.aboutrecord_abouttable }, "aboutrecord_aboutid");
|
|
4250
|
-
e.push(t);
|
|
4251
|
-
}
|
|
4252
|
-
if (e.length === 0) {
|
|
4253
|
-
this.formLoading = !1;
|
|
4254
|
-
return;
|
|
4255
|
-
}
|
|
4256
|
-
Promise.all(e).then((t) => {
|
|
4257
|
-
t.forEach((s) => {
|
|
4258
|
-
const i = this.formColumns.filter((l) => l.prop === s.prop)[0];
|
|
4259
|
-
s.res.code === 200 && i && i.setData && (s.res.data.map((l) => (l.tableName = s.data.fkEntityName, l)), i.setData(s.res.data));
|
|
4260
|
-
}), this.formLoading = !1;
|
|
4261
|
-
});
|
|
4262
|
-
},
|
|
4263
|
-
add() {
|
|
4264
|
-
this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
4265
|
-
},
|
|
4266
|
-
edit() {
|
|
4267
|
-
if (this.selectedRowKeys.length === 0) {
|
|
4268
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
4269
|
-
return;
|
|
4270
|
-
}
|
|
4271
|
-
if (this.selectedRowKeys.length > 1) {
|
|
4272
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
4273
|
-
return;
|
|
4274
|
-
}
|
|
4275
|
-
this.editForm(this.selectedRows[0]);
|
|
4276
|
-
},
|
|
4277
|
-
sbumit({ data: a, record: e, btn: t }, s, i) {
|
|
4278
|
-
this.formLoading = !0, (e ? X : Y)(a).then((n) => {
|
|
4279
|
-
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), i(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n.message), this.formLoading = !1;
|
|
4280
|
-
});
|
|
4281
|
-
},
|
|
4282
|
-
del() {
|
|
4283
|
-
if (this.selectedRowKeys.length === 0) {
|
|
4284
|
-
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
4285
|
-
return;
|
|
4286
|
-
}
|
|
4287
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
4288
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
4289
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
4290
|
-
showClose: !1,
|
|
4291
|
-
confirmButtonLoading: !1,
|
|
4292
|
-
cancelButtonLoading: !1,
|
|
4293
|
-
closeOnClickModal: !1,
|
|
4294
|
-
type: "warning",
|
|
4295
|
-
confirmButtonClass: "el-button--danger",
|
|
4296
|
-
customClass: "custom-alert",
|
|
4297
|
-
callback: () => {
|
|
4298
|
-
},
|
|
4299
|
-
beforeClose: (a, e, t) => {
|
|
4300
|
-
this.delHand(a, e, t);
|
|
4301
|
-
}
|
|
4302
|
-
});
|
|
4303
|
-
},
|
|
4304
|
-
delHand(a, e, t) {
|
|
4305
|
-
if (a !== "confirm") {
|
|
4306
|
-
t();
|
|
4307
|
-
return;
|
|
4308
|
-
}
|
|
4309
|
-
let s = [], i = G({
|
|
4310
|
-
ids: this.selectedRowKeys.join(",")
|
|
4311
|
-
}).then((l) => l);
|
|
4312
|
-
s.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
|
|
4313
|
-
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, t();
|
|
4314
|
-
const n = l.filter((r) => !r.success);
|
|
4315
|
-
n.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.refresh();
|
|
4316
|
-
});
|
|
4317
|
-
},
|
|
4318
|
-
sending() {
|
|
4319
|
-
if (this.selectedRowKeys.length === 0) {
|
|
4320
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
4321
|
-
return;
|
|
4322
|
-
}
|
|
4323
|
-
this.$confirm(
|
|
4324
|
-
this.$i18nt("gd.https.msg.sendRecord.msgsendingTip", "\u662F\u5426\u53D1\u9001\u6D88\u606F?"),
|
|
4325
|
-
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
4326
|
-
{
|
|
4327
|
-
confirmButtonText: this.$i18nt("gd.https.confirm", "\u786E\u5B9A"),
|
|
4328
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
4329
|
-
showClose: !1,
|
|
4330
|
-
confirmButtonLoading: !1,
|
|
4331
|
-
cancelButtonLoading: !1,
|
|
4332
|
-
closeOnClickModal: !1,
|
|
4333
|
-
type: "warning",
|
|
4334
|
-
confirmButtonClass: "el-button--danger",
|
|
4335
|
-
customClass: "custom-alert",
|
|
4336
|
-
callback: () => {
|
|
4337
|
-
},
|
|
4338
|
-
beforeClose: (a, e, t) => {
|
|
4339
|
-
this.sendHand(a, e, t);
|
|
4340
|
-
}
|
|
4341
|
-
}
|
|
4342
|
-
);
|
|
4343
|
-
},
|
|
4344
|
-
sendHand(a, e, t) {
|
|
4345
|
-
let s = this;
|
|
4346
|
-
if (a !== "confirm") {
|
|
4347
|
-
t();
|
|
4348
|
-
return;
|
|
4349
|
-
}
|
|
4350
|
-
let i = [];
|
|
4351
|
-
s.selectedRowKeys.forEach((l) => {
|
|
4352
|
-
let n = s.sendMsg(l);
|
|
4353
|
-
i.push(n);
|
|
4354
|
-
}), Promise.all(i).then((l) => {
|
|
4355
|
-
t();
|
|
4356
|
-
let n = "";
|
|
4357
|
-
l.forEach((r, o) => {
|
|
4358
|
-
n += r + `
|
|
4359
|
-
\r`;
|
|
4360
|
-
}), s.$message.info(n), s.refresh();
|
|
4361
|
-
});
|
|
4362
|
-
},
|
|
4363
|
-
sendMsg(a) {
|
|
4364
|
-
return U({
|
|
4365
|
-
id: a
|
|
4366
|
-
}).then((e) => e);
|
|
4367
|
-
},
|
|
4368
|
-
searchData(a, e) {
|
|
4369
|
-
return g(a).then((t) => ({ res: t, data: a, prop: e }));
|
|
4370
|
-
},
|
|
4371
|
-
onSelectChange(a, e) {
|
|
4372
|
-
this.selectedRowKeys = a, this.selectedRows = e, this.isChangeSize || (this.oselectedRowKeys = a), this.$emit("onSelectChange", a, e);
|
|
4373
|
-
},
|
|
4374
|
-
refresh() {
|
|
4375
|
-
this.$refs.table.refresh();
|
|
4376
|
-
},
|
|
4377
|
-
dictSwitch(a, e) {
|
|
4378
|
-
let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
|
|
4379
|
-
return t && t.colour ? t.colour : null;
|
|
4380
|
-
},
|
|
4381
|
-
getDict(a) {
|
|
4382
|
-
return this.$options.filters.dictData(a);
|
|
4383
|
-
},
|
|
4384
|
-
doEvent(a) {
|
|
4385
|
-
let e = a.item.functionName;
|
|
4386
|
-
this[e] && this[e]();
|
|
4387
|
-
}
|
|
4388
|
-
}
|
|
4389
|
-
};
|
|
4390
|
-
var _t = function() {
|
|
4391
|
-
var e = this, t = e._self._c;
|
|
4392
|
-
return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
4393
|
-
return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-select", { staticClass: "table-operator-input", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.msg.sendRecord.sendMode", "\u53D1\u9001\u65B9\u5F0F"), "reserve-keyword": "", clearable: "", multiple: "", "collapse-tags": !0 }, model: { value: e.queryParam.sendType, callback: function(s) {
|
|
4394
|
-
e.$set(e.queryParam, "sendType", s);
|
|
4395
|
-
}, expression: "queryParam.sendType" } }, e._l(e.getDict("SendType"), function(s) {
|
|
4396
|
-
return t("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(s.prefix ? `${s.prefix}.${s.transkey}` : `Dynamics.${s.transkey}`, s.name) } }, [e._v(" " + e._s(e.$i18nt(s.prefix ? `${s.prefix}.${s.transkey}` : `Dynamics.${s.transkey}`, s.name)) + " ")]);
|
|
4397
|
-
}), 1), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
4398
|
-
}, proxy: !0 }, { key: "name", fn: function({ column: s, row: i }) {
|
|
4399
|
-
return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
4400
|
-
} }, { key: "sendType", fn: function(s) {
|
|
4401
|
-
return [e.dictSwitch(s.row.sendtype, "sendtype") ? t("el-tag", { style: e._f("dictColor")("sendtype", s.row.sendtype), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("SendType", s.row.sendtype)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("SendType", s.row.sendtype)))])];
|
|
4402
|
-
} }, { key: "aboutRecord_AboutId", fn: function({ column: s, row: i }) {
|
|
4403
|
-
return [t("gd-tooltip", { attrs: { rowKey: "aboutrecord_aboutidname", row: i, highlight: "" }, on: { click: function(l) {
|
|
4404
|
-
return e.aboutRecord(i);
|
|
4405
|
-
} } })];
|
|
4406
|
-
} }, { key: "msgStatus", fn: function(s) {
|
|
4407
|
-
return [e.dictSwitch(s.row.msgstatus, "MessageStatus") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.msgstatus, "MessageStatus") } }, [e._v(" " + e._s(e._f("dictType")("MessageStatus", s.row.msgstatus)) + " ")]) : e._e()];
|
|
4408
|
-
} }, { key: "isAuto", fn: function(s) {
|
|
4409
|
-
return [e.dictSwitch(s.row.isauto, "yes_or_no") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.isauto, "yes_or_no") } }, [e._v(" " + e._s(e._f("dictType")("yes_or_no", s.row.isauto)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("yes_or_no", s.row.isauto)))])];
|
|
4410
|
-
} }, { key: "filtering", fn: function({ colse: s, visible: i }) {
|
|
4411
|
-
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: i }, on: { save: e.saveQueries } })];
|
|
4412
|
-
} }]) })], 1), t("gd-middleware", { ref: "middleware", on: { ok: e.refresh } }), t("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.formButtons, columns: e.formColumns, labelPosition: e.labelPosition, formMode: e.formMode, inline: !0, needLoad: !0, width: "1000px" }, on: { sbumit: e.sbumit } })], 1);
|
|
4413
|
-
}, $t = [], wt = /* @__PURE__ */ p(
|
|
4414
|
-
vt,
|
|
4415
|
-
_t,
|
|
4416
|
-
$t,
|
|
4417
|
-
!1,
|
|
4418
|
-
null,
|
|
4419
|
-
"6b568d9e",
|
|
4420
|
-
null,
|
|
4421
|
-
null
|
|
4422
|
-
);
|
|
4423
|
-
const D = wt.exports;
|
|
4424
|
-
D.install = function(a) {
|
|
4425
|
-
a.component(D.name, D);
|
|
4426
|
-
};
|
|
4427
|
-
const kt = {
|
|
4428
|
-
data() {
|
|
4429
|
-
return {
|
|
4430
|
-
tableColumns: [
|
|
4431
|
-
{
|
|
4432
|
-
type: "selection",
|
|
4433
|
-
width: "60",
|
|
4434
|
-
fixed: !0
|
|
4435
|
-
},
|
|
4436
|
-
{
|
|
4437
|
-
transKey: "gd.msg.templateLibrary.name",
|
|
4438
|
-
prop: "name",
|
|
4439
|
-
label: "\u540D\u79F0",
|
|
4440
|
-
width: "180",
|
|
4441
|
-
type: "slot",
|
|
4442
|
-
slotType: "name",
|
|
4443
|
-
align: "left",
|
|
4444
|
-
fixed: !0,
|
|
4445
|
-
renderHeader: (a, ...e) => this.renderHeader(a, ...e, {
|
|
4446
|
-
effectType: "input"
|
|
4447
|
-
}),
|
|
4448
|
-
showOverflowTooltip: !0
|
|
4449
|
-
},
|
|
4450
|
-
{
|
|
4451
|
-
transKey: "gd.msg.templateLibrary.templateCategory",
|
|
4452
|
-
prop: "templateType",
|
|
4453
|
-
width: "120",
|
|
4454
|
-
label: "\u6A21\u7248\u7C7B\u522B",
|
|
4455
|
-
type: "slot",
|
|
4456
|
-
slotType: "templateType",
|
|
4457
|
-
align: "left",
|
|
4458
|
-
showOverflowTooltip: !0
|
|
4459
|
-
},
|
|
4460
|
-
{
|
|
4461
|
-
transKey: "gd.msg.templateLibrary.weChatName",
|
|
4462
|
-
prop: "nameBas_EnterpriseWechatenterpriseWechatId",
|
|
4463
|
-
width: "160",
|
|
4464
|
-
label: "\u4F01\u4E1A\u5FAE\u4FE1",
|
|
4465
|
-
align: "left",
|
|
4466
|
-
type: "slot",
|
|
4467
|
-
slotType: "nameBas_EnterpriseWechatenterpriseWechatId"
|
|
4468
|
-
},
|
|
4469
|
-
{
|
|
4470
|
-
transKey: "gd.msg.templateLibrary.weChatApplicationName",
|
|
4471
|
-
prop: "nameBas_EnterpriseWechatAppenterpriseWechatAppId",
|
|
4472
|
-
width: "160",
|
|
4473
|
-
label: "\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528",
|
|
4474
|
-
type: "slot",
|
|
4475
|
-
slotType: "nameBas_EnterpriseWechatAppenterpriseWechatAppId",
|
|
4476
|
-
align: "left",
|
|
4477
|
-
showOverflowTooltip: !0
|
|
4478
|
-
},
|
|
4479
|
-
{
|
|
4480
|
-
transKey: "gd.msg.templateLibrary.weChatOfficialAccounts",
|
|
4481
|
-
prop: "wechatPublicAccountIDName",
|
|
4482
|
-
width: "160",
|
|
4483
|
-
label: "\u5FAE\u4FE1\u516C\u4F17\u53F7",
|
|
4484
|
-
type: "slot",
|
|
4485
|
-
slotType: "wechatPublicAccountID",
|
|
4486
|
-
align: "left",
|
|
4487
|
-
showOverflowTooltip: !0
|
|
4488
|
-
},
|
|
4489
|
-
{
|
|
4490
|
-
transKey: "gd.msg.templateLibrary.state",
|
|
4491
|
-
prop: "stateCodes",
|
|
4492
|
-
width: "160",
|
|
4493
|
-
label: "\u72B6\u6001",
|
|
4494
|
-
type: "slot",
|
|
4495
|
-
slotType: "stateCodes",
|
|
4496
|
-
align: "left"
|
|
4497
|
-
},
|
|
4498
|
-
{
|
|
4499
|
-
transKey: "gd.msg.templateLibrary.creationTime",
|
|
4500
|
-
prop: "createdtime",
|
|
4501
|
-
width: "160",
|
|
4502
|
-
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
4503
|
-
align: "center"
|
|
4504
|
-
}
|
|
4505
|
-
],
|
|
4506
|
-
formColumns: [
|
|
4507
|
-
{
|
|
4508
|
-
transKey: "gd.msg.templateLibrary.name",
|
|
4509
|
-
prop: "name",
|
|
4510
|
-
label: "\u540D\u79F0",
|
|
4511
|
-
effectType: "input",
|
|
4512
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
4513
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
4514
|
-
disabled: !1,
|
|
4515
|
-
rules: [{
|
|
4516
|
-
required: !0,
|
|
4517
|
-
message: "\u8BF7\u8F93\u5165",
|
|
4518
|
-
transKey: "gd.placeholder.input",
|
|
4519
|
-
trigger: "change"
|
|
4520
|
-
}]
|
|
4521
|
-
},
|
|
4522
|
-
{
|
|
4523
|
-
transKey: "gd.msg.templateLibrary.sendType",
|
|
4524
|
-
effectType: "select",
|
|
4525
|
-
prop: "sendtype",
|
|
4526
|
-
label: "\u6A21\u7248\u7C7B\u522B",
|
|
4527
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
4528
|
-
placeholderTransKey: "gd.placeholder.select",
|
|
4529
|
-
dictTypeCode: "SendType",
|
|
4530
|
-
disabled: !1,
|
|
4531
|
-
rules: [{
|
|
4532
|
-
required: !0,
|
|
4533
|
-
message: "\u8BF7\u9009\u62E9",
|
|
4534
|
-
transKey: "gd.placeholder.select",
|
|
4535
|
-
trigger: "change"
|
|
4536
|
-
}]
|
|
4537
|
-
},
|
|
4538
|
-
{
|
|
4539
|
-
transKey: "gd.msg.templateLibrary.content",
|
|
4540
|
-
effectType: "textarea",
|
|
4541
|
-
prop: "messagecontent",
|
|
4542
|
-
label: "\u6A21\u677F\u5185\u5BB9",
|
|
4543
|
-
disabled: !1,
|
|
4544
|
-
placeholderTransKey: "gd.placeholder.input",
|
|
4545
|
-
rules: [],
|
|
4546
|
-
autosize: {
|
|
4547
|
-
minRows: 4,
|
|
4548
|
-
maxRows: 6
|
|
4549
|
-
}
|
|
4550
|
-
}
|
|
4551
|
-
],
|
|
4552
|
-
tableButtons: [
|
|
4553
|
-
{
|
|
4554
|
-
displayName: "\u65B0\u589E",
|
|
4555
|
-
functionName: "add",
|
|
4556
|
-
show: !0,
|
|
4557
|
-
transKey: "gd.btn.add",
|
|
4558
|
-
icon: "el-icon-plus",
|
|
4559
|
-
name: "sysMsgTemplateLibrary:add"
|
|
4560
|
-
},
|
|
4561
|
-
{
|
|
4562
|
-
displayName: "\u7F16\u8F91",
|
|
4563
|
-
functionName: "edit",
|
|
4564
|
-
show: !0,
|
|
4565
|
-
transKey: "gd.btn.edit",
|
|
4566
|
-
icon: "el-icon-edit",
|
|
4567
|
-
name: "sysMsgTemplateLibrary:edit"
|
|
4568
|
-
},
|
|
4569
|
-
{
|
|
4570
|
-
displayName: "\u5220\u9664",
|
|
4571
|
-
functionName: "del",
|
|
4572
|
-
show: !0,
|
|
4573
|
-
transKey: "gd.btn.del",
|
|
4574
|
-
icon: "el-icon-delete",
|
|
4575
|
-
btnType: "danger",
|
|
4576
|
-
name: "sysMsgTemplateLibrary:delete"
|
|
4577
|
-
}
|
|
4578
|
-
],
|
|
4579
|
-
formButtons: [{
|
|
4580
|
-
displayName: "\u786E\u5B9A",
|
|
4581
|
-
functionName: "handleSubmit",
|
|
4582
|
-
show: !0,
|
|
4583
|
-
transKey: "gd.btn.confirm",
|
|
4584
|
-
icon: "el-icon-document-checked",
|
|
4585
|
-
validate: !0
|
|
4586
|
-
}],
|
|
4587
|
-
tableQueries: [{
|
|
4588
|
-
transKey: "gd.msg.templateLibrary.name",
|
|
4589
|
-
prop: "name",
|
|
4590
|
-
label: "\u540D\u79F0",
|
|
4591
|
-
effectType: "input",
|
|
4592
|
-
rules: []
|
|
4593
|
-
}, {
|
|
4594
|
-
transKey: "gd.msg.templateLibrary.templateCategory",
|
|
4595
|
-
prop: "templateType",
|
|
4596
|
-
label: "\u6A21\u7248\u7C7B\u522B",
|
|
4597
|
-
effectType: "selectMultiple",
|
|
4598
|
-
dictTypeCode: "SendType",
|
|
4599
|
-
rules: []
|
|
4600
|
-
}, {
|
|
4601
|
-
transKey: "gd.msg.templateLibrary.state",
|
|
4602
|
-
prop: "stateCodes",
|
|
4603
|
-
label: "\u72B6\u6001",
|
|
4604
|
-
effectType: "selectMultiple",
|
|
4605
|
-
dictTypeCode: "state_code",
|
|
4606
|
-
rules: []
|
|
4607
|
-
}]
|
|
4608
|
-
};
|
|
4609
|
-
}
|
|
4610
|
-
};
|
|
4611
|
-
const Tt = {
|
|
4612
|
-
props: {
|
|
4613
|
-
height: {
|
|
4614
|
-
type: Number,
|
|
4615
|
-
default: 0
|
|
4616
|
-
},
|
|
4617
|
-
openMode: {
|
|
4618
|
-
type: [String, Number],
|
|
4619
|
-
default: 1
|
|
4620
|
-
},
|
|
4621
|
-
record: {
|
|
4622
|
-
type: Object,
|
|
4623
|
-
default: () => ({})
|
|
4624
|
-
}
|
|
4625
|
-
},
|
|
4626
|
-
name: "GdSysMsgTemplateLibrary",
|
|
4627
|
-
mixins: [_, kt],
|
|
4628
|
-
data() {
|
|
4629
|
-
return {
|
|
4630
|
-
statu: !1,
|
|
4631
|
-
fkEntityName: "Bas_WechatApp",
|
|
4632
|
-
formLoading: !1,
|
|
4633
|
-
send: null,
|
|
4634
|
-
selectedRowKeys: [],
|
|
4635
|
-
isLoading: !1,
|
|
4636
|
-
pageSize: 10,
|
|
4637
|
-
isChangeSize: !1,
|
|
4638
|
-
ppShow: !0,
|
|
4639
|
-
advanced: !1,
|
|
4640
|
-
queryParam: {},
|
|
4641
|
-
oselectedRowKeys: [],
|
|
4642
|
-
transKey: "gd.btn.edit",
|
|
4643
|
-
loadData: (a, e) => (this.sorter = e, this.isLoading = !0, Z(Object.assign(a, this.getQueryParam)).then((t) => (this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1, t.success && this.openMode == 2 && this.$emit("changeData", t.data.rows), t.data)))
|
|
4644
|
-
};
|
|
4645
|
-
},
|
|
4646
|
-
components: {
|
|
4647
|
-
editForm: E
|
|
4648
|
-
},
|
|
4649
|
-
computed: {
|
|
4650
|
-
getTableColumns() {
|
|
4651
|
-
return this.tableColumns.filter((a) => a.type === "selection" ? this.openMode == 1 : a.type === "" ? this.openMode != 1 : !0);
|
|
4652
|
-
},
|
|
4653
|
-
getHeight() {
|
|
4654
|
-
const a = this.openMode == 2 ? 80 : 0;
|
|
4655
|
-
return this.height - a;
|
|
4656
|
-
},
|
|
4657
|
-
getQueryParam() {
|
|
4658
|
-
let a = /* @__PURE__ */ new Map();
|
|
4659
|
-
for (let e in this.queryParam)
|
|
4660
|
-
this.queryParam[e] && (e === "bas_WechatAppId" || e === "templateType" || e === "stateCodes") ? a.set(e, this.queryParam[e].join(",")) : a.set(e, this.queryParam[e]);
|
|
4661
|
-
return Object.fromEntries(a);
|
|
4662
|
-
},
|
|
4663
|
-
...f(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "tableLists"])
|
|
4664
|
-
},
|
|
4665
|
-
methods: {
|
|
4666
|
-
wechatAppId(a, e) {
|
|
4667
|
-
if (this.statu)
|
|
4668
|
-
return;
|
|
4669
|
-
let s = {
|
|
4670
|
-
tableId: this.tableLists.filter((l) => l.tablename === e)[0].id,
|
|
4671
|
-
data: [
|
|
4672
|
-
{
|
|
4673
|
-
id: a
|
|
4674
|
-
}
|
|
4675
|
-
]
|
|
4676
|
-
};
|
|
4677
|
-
this.statu = !0;
|
|
4678
|
-
const i = this.$message({
|
|
4679
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
4680
|
-
duration: 0,
|
|
4681
|
-
iconClass: "el-icon-loading"
|
|
4682
|
-
});
|
|
4683
|
-
this.$refs.middleware.init(s).then((l) => {
|
|
4684
|
-
this.statu = !1, i.close();
|
|
4685
|
-
});
|
|
4686
|
-
},
|
|
4687
|
-
saveQueries(a) {
|
|
4688
|
-
this.queryParam = {
|
|
4689
|
-
...a
|
|
4690
|
-
}, this.refresh();
|
|
4691
|
-
},
|
|
4692
|
-
editForm(a) {
|
|
4693
|
-
this.transKey = "gd.btn.edit", this.$refs.editForm.open(
|
|
4694
|
-
Object.assign(
|
|
4695
|
-
{
|
|
4696
|
-
...a
|
|
4697
|
-
},
|
|
4698
|
-
{
|
|
4699
|
-
templateType: String(a.templateType)
|
|
4700
|
-
}
|
|
4701
|
-
)
|
|
4702
|
-
);
|
|
4703
|
-
},
|
|
4704
|
-
add() {
|
|
4705
|
-
this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
4706
|
-
},
|
|
4707
|
-
edit() {
|
|
4708
|
-
if (this.selectedRowKeys.length === 0) {
|
|
4709
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
4710
|
-
return;
|
|
4711
|
-
}
|
|
4712
|
-
if (this.selectedRowKeys.length > 1) {
|
|
4713
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
4714
|
-
return;
|
|
4715
|
-
}
|
|
4716
|
-
this.editForm(this.selectedRows[0]);
|
|
4717
|
-
},
|
|
4718
|
-
sbumit({ data: a, record: e, btn: t }, s, i) {
|
|
4719
|
-
this.formLoading = !0, (e ? N : x)(a).then((n) => {
|
|
4720
|
-
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), i(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n.message), this.formLoading = !1;
|
|
4721
|
-
});
|
|
4722
|
-
},
|
|
4723
|
-
del() {
|
|
4724
|
-
if (this.selectedRowKeys.length === 0) {
|
|
4725
|
-
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
4726
|
-
return;
|
|
4727
|
-
}
|
|
4728
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
4729
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
4730
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
4731
|
-
showClose: !1,
|
|
4732
|
-
confirmButtonLoading: !1,
|
|
4733
|
-
cancelButtonLoading: !1,
|
|
4734
|
-
closeOnClickModal: !1,
|
|
4735
|
-
type: "warning",
|
|
4736
|
-
confirmButtonClass: "el-button--danger",
|
|
4737
|
-
customClass: "custom-alert",
|
|
4738
|
-
callback: () => {
|
|
4739
|
-
},
|
|
4740
|
-
beforeClose: (a, e, t) => {
|
|
4741
|
-
this.delHand(a, e, t);
|
|
4742
|
-
}
|
|
4743
|
-
});
|
|
4744
|
-
},
|
|
4745
|
-
delHand(a, e, t) {
|
|
4746
|
-
if (a !== "confirm") {
|
|
4747
|
-
t();
|
|
4748
|
-
return;
|
|
4749
|
-
}
|
|
4750
|
-
let s = [], i = ee({
|
|
4751
|
-
ids: this.selectedRowKeys.join(",")
|
|
4752
|
-
}).then((l) => l);
|
|
4753
|
-
s.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
|
|
4754
|
-
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, t();
|
|
4755
|
-
const n = l.filter((r) => !r.success);
|
|
4756
|
-
n.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.refresh();
|
|
4757
|
-
});
|
|
4758
|
-
},
|
|
4759
|
-
sending() {
|
|
4760
|
-
if (this.selectedRowKeys.length === 0) {
|
|
4761
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
4762
|
-
return;
|
|
4763
|
-
}
|
|
4764
|
-
this.$confirm(
|
|
4765
|
-
this.$i18nt("gd.https.msg.sendRecord.msgsendingTip", "\u662F\u5426\u53D1\u9001\u6D88\u606F?"),
|
|
4766
|
-
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
4767
|
-
{
|
|
4768
|
-
confirmButtonText: this.$i18nt("gd.https.confirm", "\u786E\u5B9A"),
|
|
4769
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
4770
|
-
showClose: !1,
|
|
4771
|
-
confirmButtonLoading: !1,
|
|
4772
|
-
cancelButtonLoading: !1,
|
|
4773
|
-
closeOnClickModal: !1,
|
|
4774
|
-
type: "warning",
|
|
4775
|
-
confirmButtonClass: "el-button--danger",
|
|
4776
|
-
customClass: "custom-alert",
|
|
4777
|
-
callback: () => {
|
|
4778
|
-
},
|
|
4779
|
-
beforeClose: (a, e, t) => {
|
|
4780
|
-
this.sendHand(a, e, t);
|
|
4781
|
-
}
|
|
4782
|
-
}
|
|
4783
|
-
);
|
|
4784
|
-
},
|
|
4785
|
-
sendHand(a, e, t) {
|
|
4786
|
-
let s = this;
|
|
4787
|
-
if (a !== "confirm") {
|
|
4788
|
-
t();
|
|
4789
|
-
return;
|
|
4790
|
-
}
|
|
4791
|
-
let i = [];
|
|
4792
|
-
s.selectedRowKeys.forEach((l) => {
|
|
4793
|
-
let n = s.sendMsg(l);
|
|
4794
|
-
i.push(n);
|
|
4795
|
-
}), Promise.all(i).then((l) => {
|
|
4796
|
-
t();
|
|
4797
|
-
let n = "";
|
|
4798
|
-
l.forEach((r, o) => {
|
|
4799
|
-
n += r + `
|
|
4800
|
-
\r`;
|
|
4801
|
-
}), s.$message.info(n), s.refresh();
|
|
4802
|
-
});
|
|
4803
|
-
},
|
|
4804
|
-
enabling() {
|
|
4805
|
-
},
|
|
4806
|
-
sendMsg(a) {
|
|
4807
|
-
return msgSendRecordSendMsg({
|
|
4808
|
-
id: a
|
|
4809
|
-
}).then((e) => e);
|
|
4810
|
-
},
|
|
4811
|
-
onSelectChange(a, e) {
|
|
4812
|
-
this.selectedRowKeys = a, this.selectedRows = e, this.isChangeSize || (this.oselectedRowKeys = a), this.$emit("onSelectChange", a, e);
|
|
4813
|
-
},
|
|
4814
|
-
refresh() {
|
|
4815
|
-
this.$refs.table.refresh();
|
|
4816
|
-
},
|
|
4817
|
-
dictSwitch(a, e) {
|
|
4818
|
-
let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
|
|
4819
|
-
return t != null && t.colour ? t.colour : null;
|
|
4820
|
-
},
|
|
4821
|
-
getDict(a) {
|
|
4822
|
-
return this.$options.filters.dictData(a);
|
|
4823
|
-
},
|
|
4824
|
-
doEvent(a) {
|
|
4825
|
-
let e = a.item.functionName;
|
|
4826
|
-
this[e] && this[e]();
|
|
4827
|
-
}
|
|
4828
|
-
},
|
|
4829
|
-
mounted() {
|
|
4830
|
-
if (this.openMode == 2 && this.record.options.val !== void 0) {
|
|
4831
|
-
const a = typeof this.record.options.val;
|
|
4832
|
-
let e = a === "string" || a === "number" ? [this.record.options.val] : [...this.record.options.val];
|
|
4833
|
-
this.selectedRowKeys = e.filter((t) => t !== "");
|
|
4834
|
-
}
|
|
4835
|
-
}
|
|
4836
|
-
};
|
|
4837
|
-
var Dt = function() {
|
|
4838
|
-
var e = this, t = e._self._c;
|
|
4839
|
-
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.getTableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
4840
|
-
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.msg.templateLibrary.name", "\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
4841
|
-
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
4842
|
-
} }, model: { value: e.queryParam.name, callback: function(s) {
|
|
4843
|
-
e.$set(e.queryParam, "name", s);
|
|
4844
|
-
}, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
4845
|
-
}, proxy: !0 }, { key: "name", fn: function({ column: s, row: i }) {
|
|
4846
|
-
return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
4847
|
-
} }, { key: "templateType", fn: function(s) {
|
|
4848
|
-
return [e.dictSwitch(s.row.templatetype, "SendType") ? t("el-tag", { style: e._f("dictColor")("SendType", s.row.templatetype), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("SendType", s.row.templatetype)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("SendType", s.row.templatetype)))])];
|
|
4849
|
-
} }, { key: "nameBas_EnterpriseWechatenterpriseWechatId", fn: function({ column: s, row: i }) {
|
|
4850
|
-
return [t("gd-tooltip", { attrs: { rowKey: "namebas_enterprisewechatenterprisewechattd", row: i, highlight: "" }, on: { click: function(l) {
|
|
4851
|
-
return e.wechatAppId(i.enterprisewechatid, "bas_enterprisewechat");
|
|
4852
|
-
} } })];
|
|
4853
|
-
} }, { key: "nameBas_EnterpriseWechatAppenterpriseWechatAppId", fn: function({ column: s, row: i }) {
|
|
4854
|
-
return [t("gd-tooltip", { attrs: { rowKey: "namebas_enterprisewechatappenterprisewechatappid", row: i, highlight: "" }, on: { click: function(l) {
|
|
4855
|
-
return e.wechatAppId(i.enterprisewechatappid, "bas_enterprisewechatapp");
|
|
4856
|
-
} } })];
|
|
4857
|
-
} }, { key: "wechatPublicAccountID", fn: function({ column: s, row: i }) {
|
|
4858
|
-
return [t("gd-tooltip", { attrs: { rowKey: "wechatpublicaccountidname", row: i, highlight: "" }, on: { click: function(l) {
|
|
4859
|
-
return e.wechatAppId(i.wechatpublicaccountid, "bas_wechatpublicaccount");
|
|
4860
|
-
} } })];
|
|
4861
|
-
} }, { key: "stateCodes", fn: function(s) {
|
|
4862
|
-
return [e.dictSwitch(s.row.statecodes, "state_code") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.statecodes, "state_code") }, on: { click: function(i) {
|
|
4863
|
-
return e.enabling(s.row);
|
|
4864
|
-
} } }, [e._v(" " + e._s(e._f("dictType")("state_code", s.row.statecodes)) + " ")]) : t("span", { on: { click: function(i) {
|
|
4865
|
-
return e.enabling(s.row);
|
|
4866
|
-
} } }, [e._v(e._s(e._f("dictType")("state_code", s.row.statecodes)))])];
|
|
4867
|
-
} }, { key: "filtering", fn: function({ colse: s, visible: i }) {
|
|
4868
|
-
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: i }, on: { save: e.saveQueries } })];
|
|
4869
|
-
} }]) })], 1), t("editForm", { ref: "editForm", attrs: { fkEntityName: e.fkEntityName }, on: { ok: e.refresh } }), t("gd-middleware", { ref: "middleware", on: { ok: e.refresh } })], 1);
|
|
4870
|
-
}, Ct = [], St = /* @__PURE__ */ p(
|
|
4871
|
-
Tt,
|
|
4872
|
-
Dt,
|
|
4873
|
-
Ct,
|
|
4874
|
-
!1,
|
|
4875
|
-
null,
|
|
4876
|
-
"16da1bae",
|
|
4877
|
-
null,
|
|
4878
|
-
null
|
|
4879
|
-
);
|
|
4880
|
-
const C = St.exports;
|
|
4881
|
-
C.install = function(a) {
|
|
4882
|
-
a.component(C.name, C);
|
|
4883
|
-
};
|
|
4884
|
-
export {
|
|
4885
|
-
k as G,
|
|
4886
|
-
T as a,
|
|
4887
|
-
D as b,
|
|
4888
|
-
C as c
|
|
4889
|
-
};
|