gds-plus-design-vue 1.2.2 → 1.2.4

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.
Files changed (88) hide show
  1. package/lib/{chartbi.06e48153.js → chartbi.5eded588.js} +20 -20
  2. package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
  3. package/lib/gd-initial.js +17 -15
  4. package/lib/gd-initial.mjs +27181 -19838
  5. package/lib/main.00e2ba37.mjs +123 -0
  6. package/lib/main.55fab1ce.mjs +198 -0
  7. package/lib/main.7e1495ec.js +1 -0
  8. package/lib/{main.2415a49a.js → main.9c85b10c.js} +1 -1
  9. package/lib/main.a27e1e54.js +1 -0
  10. package/lib/main.a794f7cf.js +1 -0
  11. package/lib/{main.b2d0a309.mjs → main.b25a9b4c.mjs} +15 -15
  12. package/lib/{main.2cddfbbd.mjs → main.b4ad6d81.mjs} +3 -3
  13. package/lib/{messages.d8abe18d.mjs → messages.bc3bc0e8.mjs} +187 -172
  14. package/lib/{messages.2fff74f3.js → messages.fa3d97b5.js} +5 -5
  15. package/lib/style.css +2 -2
  16. package/lib/{system.account.9bc40d08.mjs → system.account.868f96f9.mjs} +26 -26
  17. package/lib/{system.account.8ea53681.js → system.account.e82580de.js} +1 -1
  18. package/lib/{system.config.c6e30213.js → system.config.6aae9ea6.js} +1 -1
  19. package/lib/{system.config.8223d495.mjs → system.config.71615d2b.mjs} +2 -2
  20. package/lib/{system.datasource.57233650.mjs → system.datasource.009a1673.mjs} +2 -2
  21. package/lib/{system.datasource.fd6a4e76.js → system.datasource.523ae242.js} +1 -1
  22. package/lib/{system.dict.a24f33b0.js → system.dict.0111a3bc.js} +1 -1
  23. package/lib/{system.dict.8f95218b.mjs → system.dict.8f562e89.mjs} +4 -4
  24. package/lib/{system.duplicatechecking.39293985.js → system.duplicatechecking.1865e065.js} +1 -1
  25. package/lib/{system.duplicatechecking.6b706948.mjs → system.duplicatechecking.f517abed.mjs} +2 -2
  26. package/lib/{system.email.dae988be.mjs → system.email.4c484530.mjs} +2 -2
  27. package/lib/{system.email.a2d9a307.js → system.email.70351605.js} +1 -1
  28. package/lib/{system.fieldsecurity.02627a7a.mjs → system.fieldsecurity.9f9f73df.mjs} +127 -79
  29. package/lib/system.fieldsecurity.d11088e3.js +1 -0
  30. package/lib/system.file.001a01bc.js +1 -0
  31. package/lib/{system.file.0fa095a9.mjs → system.file.96b3ce1e.mjs} +4 -4
  32. package/lib/{system.log.acb64505.mjs → system.log.80feb1c4.mjs} +2 -2
  33. package/lib/{system.log.c07ae5db.js → system.log.f7afb251.js} +1 -1
  34. package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
  35. package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
  36. package/lib/system.notice.365ddd35.js +1 -0
  37. package/lib/system.notice.b4247147.mjs +1690 -0
  38. package/lib/system.noticereceived.5545acf8.js +1 -0
  39. package/lib/{system.noticereceived.1aa70b65.mjs → system.noticereceived.eef2cf6e.mjs} +33 -24
  40. package/lib/{system.onlineuser.3d848a32.mjs → system.onlineuser.de5f62bf.mjs} +2 -2
  41. package/lib/{system.onlineuser.1c428d05.js → system.onlineuser.fd9fdc66.js} +1 -1
  42. package/lib/{system.org.fcf96d1e.mjs → system.org.94393315.mjs} +17 -68
  43. package/lib/system.org.d22168d6.js +1 -0
  44. package/lib/{system.permissions.a1a9505c.js → system.permissions.3c5c3573.js} +1 -1
  45. package/lib/{system.permissions.23f5b097.mjs → system.permissions.ccbe352d.mjs} +3 -3
  46. package/lib/{system.plugin.b6de4673.js → system.plugin.5d47e679.js} +1 -1
  47. package/lib/{system.plugin.e37f9dbc.mjs → system.plugin.8caa5d1f.mjs} +2 -2
  48. package/lib/{system.pos.a4fb19b0.js → system.pos.caaef4fc.js} +1 -1
  49. package/lib/{system.pos.1a01fc97.mjs → system.pos.e4be69c4.mjs} +2 -2
  50. package/lib/{system.promptmanagement.36a65c51.mjs → system.promptmanagement.1ad89863.mjs} +2 -2
  51. package/lib/{system.promptmanagement.290958b1.js → system.promptmanagement.e73f64a2.js} +1 -1
  52. package/lib/system.role.0323ddd5.mjs +2048 -0
  53. package/lib/system.role.b5b55ddd.js +1 -0
  54. package/lib/{system.sumberrules.dd6299e8.js → system.sumberrules.2babdd81.js} +1 -1
  55. package/lib/{system.sumberrules.cdef9308.mjs → system.sumberrules.42965c1e.mjs} +2 -2
  56. package/lib/{system.team.ee652fe4.mjs → system.team.28168433.mjs} +80 -49
  57. package/lib/system.team.a3527834.js +1 -0
  58. package/lib/{system.teammembers.26a2ba81.mjs → system.teammembers.08f3ce38.mjs} +3 -3
  59. package/lib/{system.teammembers.4a3dc336.js → system.teammembers.4b11e49b.js} +1 -1
  60. package/lib/{system.timers.4efa8a7d.mjs → system.timers.040b9bce.mjs} +2 -2
  61. package/lib/{system.timers.b9424204.js → system.timers.310b3710.js} +1 -1
  62. package/lib/{system.translation.21d2fd8b.js → system.translation.a4396166.js} +1 -1
  63. package/lib/{system.translation.0a9399b4.mjs → system.translation.c0068d8f.mjs} +3 -3
  64. package/lib/{system.user.d48a08db.js → system.user.20a5e7b4.js} +5 -5
  65. package/lib/{system.user.4fcfdf99.mjs → system.user.84e77277.mjs} +53 -23
  66. package/lib/{system.useraffiliation.a59ce45b.js → system.useraffiliation.307e3cd7.js} +1 -1
  67. package/lib/{system.useraffiliation.fb002239.mjs → system.useraffiliation.fb961d98.mjs} +3 -3
  68. package/lib/{system.webresource.3366cc29.js → system.webresource.0382b6b1.js} +1 -1
  69. package/lib/{system.webresource.4df01c92.mjs → system.webresource.2d0ab7a6.mjs} +3 -3
  70. package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
  71. package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
  72. package/locale/en_US.js +109 -20
  73. package/locale/id_ID.js +107 -19
  74. package/locale/vi_VN.js +107 -19
  75. package/locale/zh_CN.js +106 -18
  76. package/package.json +1 -1
  77. package/lib/main.4c447fc3.js +0 -1
  78. package/lib/main.86fe06d4.mjs +0 -87
  79. package/lib/main.d091d06d.js +0 -1
  80. package/lib/system.fieldsecurity.a0cec24d.js +0 -1
  81. package/lib/system.file.d695ab37.js +0 -1
  82. package/lib/system.notice.5ae50bd4.mjs +0 -641
  83. package/lib/system.notice.f18578ae.js +0 -1
  84. package/lib/system.noticereceived.bfa98a9b.js +0 -1
  85. package/lib/system.org.5bb36f9c.js +0 -1
  86. package/lib/system.role.68de93ef.mjs +0 -1543
  87. package/lib/system.role.88100f66.js +0 -1
  88. package/lib/system.team.53d64006.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";const d=require("./chartbi.06e48153.js"),a=require("./messages.2fff74f3.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.file.fileOriginName",prop:"fileOriginName",label:"\u6587\u4EF6\u540D\u79F0",type:"slot",slotType:"fileOriginName",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.file.fileLocation",prop:"fileLocation",label:"\u5B58\u50A8\u4F4D\u7F6E",align:"left",type:"slot",slotType:"fileLocation",align:"center"},{transKey:"gd.file.fileBucket",prop:"filebucket",label:"\u6587\u4EF6\u4ED3\u5E93",align:"left"},{transKey:"gd.file.fileSuffix",prop:"fileSuffix",label:"\u6587\u4EF6\u540E\u7F00",align:"left",type:"slot",slotType:"fileSuffix"},{transKey:"gd.file.fileSizeInfo",prop:"filesizekb",label:"\u6587\u4EF6\u5927\u5C0F",align:"left",type:"slot",slotType:"filesizekb"},{transKey:"gd.file.fileObjectName",prop:"fileobjectname",label:"\u552F\u4E00\u6807\u8BC6id",align:"left"}],formColumns:[{transKey:"gd.file.fileOriginName",effectType:"input",prop:"fileoriginname",label:"\u6587\u4EF6\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileLocation",effectType:"input",prop:"filelocation",label:"\u5B58\u50A8\u4F4D\u7F6E",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"file_storage_location",disabled:!0,rules:[]},{transKey:"gd.file.fileBucket",effectType:"input",prop:"filebucket",label:"\u6587\u4EF6\u4ED3\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileSuffix",effectType:"input",prop:"filesuffix",label:"\u6587\u4EF6\u540E\u7F00",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileSizeKb",effectType:"input",prop:"filesizekb",label:"\u6587\u4EF6\u5927\u5C0F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileObjectName",effectType:"input",prop:"fileobjectname",label:"\u552F\u4E00\u6807\u8BC6",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.filePath",effectType:"input",prop:"filepath",label:"\u5B58\u50A8\u8DEF\u5F84",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]}],tableButtons:[{displayName:"\u4E0A\u4F20\u6587\u4EF6",functionName:"add",show:!0,transKey:"gd.btn.upload",icon:"el-icon-upload",name:"sysFileInfo:upload"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFileInfo:delete"},{displayName:"\u4E0B\u8F7D",functionName:"sysFileInfoDownload",show:!0,transKey:"gd.btn.download",icon:"el-icon-download",name:"sysFileInfo:download"},{displayName:"\u9884\u89C8",functionName:"preview",show:!0,transKey:"gd.btn.preview",icon:"gd-icon-yanjing-kai",name:"sysFileInfo:preview"}],tableQueries:[{transKey:"gd.file.fileOriginName",prop:"fileOriginName",label:"\u6587\u4EF6\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.file.fileLocation",prop:"fileLocation",label:"\u552F\u4E00\u7F16\u7801",effectType:"select",dictTypeCode:"file_storage_location",rules:[]},{transKey:"gd.file.fileBucket",prop:"fileBucket",label:"\u6587\u4EF6\u4ED3\u5E93",effectType:"input",rules:[]}]}}};const p={data(){return{transKey:"gd.btn.edit",fullscreen:!1,visible:!1,width:"900",confirmLoading:!1,src:"",isShowValue:!1,imgList:[]}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},...d.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(t){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysFileInfoPreview(t)},sysFileInfoPreview(t){a.sysFileInfoPreview({id:t.id}).then(e=>{this.confirmLoading=!1,this.downloadfile(e)}).catch(e=>{this.confirmLoading=!1,this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+e.message)})},downloadfile(t){const e=new Blob([t]),i=window.URL.createObjectURL(e);this.src=i,this.imgList[i],this.$refs.imgPreview.open()},closed(){this.fullscreen=!1,this.visible=!1}}};var g=function(){var e=this,i=e._self._c;return i("div",[i("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.src}})],1)},h=[],m=d.normalizeComponent(p,g,h,!1,null,"70df1ecb",null,null);const y=m.exports;const b={name:"GdFile",props:{height:{type:Number,default:100}},mixins:[a.tablesFilter,u],components:{previewFrom:y},data(){return{transKey:"gd.btn.edit",loadData:t=>a.sysFileInfoPage(Object.assign(t,this.queryParam)).then(e=>e.data),selectedRows:[],selectedRowKeys:[],queryParam:{},fileList:[],options:{},currentImg:"",imgList:[]}},computed:{getHeight(){return this.height},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},created(){},mounted(){},methods:{editForm(t){this.transKey="gd.file.detail",this.$refs.editForm.open(Object.assign({...t}))},onSelectChange(t,e){if(this.selectedRows=e,this.selectedRowKeys=t,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u9884\u89C8"],2);return}let i=["\u9884\u89C8"],s=e[0];["png","jpeg","jpg","gif","tif","bmp","doc","docx","xls","xlsx","pdf","pptx"].includes(s.filesuffix)&&(i=[]),this.baseHideBtns(i,2)},baseHideBtns(t,e=1){let i=[...this.tableButtons];i.map(s=>(e===1?s.show=!t.includes(s.id):s.show=!t.includes(s.displayName),s)),this.tableButtons=[...i]},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},add(){document.querySelector(".upload-demo").click()},handleFileUpload(t){const e=this.$message({message:this.$i18nt("gd.https.uploading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"}),i=new FormData;i.append("file",t.file),a.sysFileInfoUpload(i).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.uploadSucc","\u4E0A\u4F20\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+s.message),this.$nextTick(()=>{setTimeout(()=>{e.close()},200)})})},sysFileInfoDownload(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.downTip","\u8BF7\u9009\u62E9\u9700\u8981\u4E0B\u8F7D\u7684\u6587\u4EF6!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.downTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u4E0B\u8F7D"));return}const t=this.$message({message:this.$i18nt("gd.https.downloading","\u6B63\u5728\u4E0B\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});a.sysFileInfoDownload({id:this.selectedRows[0].id}).then(e=>{this.downloadfile(e),this.$nextTick(()=>{setTimeout(()=>{t.close()},200)})}).catch(e=>{this.$nextTick(()=>{setTimeout(()=>{t.close()},200)}),this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25"))})},downloadfile(t){var e=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"}),i=t.headers["content-disposition"],s=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),l=s.exec(i),r=l[1],n=document.createElement("a"),f=window.URL.createObjectURL(e),c=/^["](.*)["]$/g;n.style.display="none",n.href=f,n.download=decodeURI(r.replace(c,"$1")),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(f)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,i)=>{this.delHand(t,e,i)}})},delHand(t,e,i){if(t!=="confirm"){i();return}let s=[];this.selectedRows.forEach(l=>{let r=a.sysFileInfoDelete(l).then(n=>n);s.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(l=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const r=l.filter(n=>!n.success);r.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+r[0].message),this.refresh()})},preview(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("Locals.common.https.editTip"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("Locals.common.https.editTipOne"));return}let t=this.selectedRows[0];if(["png","jpeg","jpg","gif","tif","bmp"].includes(t.filesuffix)){this.baseFileImg(t);return}if(["doc","docx","xls","xlsx","pdf","pptx"].includes(t.filesuffix)){this.previewMicrosoft(t);return}},previewMicrosoft(t){this.$refs.filePreview.open({name:t.fileoriginname,fileId:t.id})},baseFileImg(t){a.sysFileInfoPreview({id:t.id}).then(e=>{const i=window.URL.createObjectURL(new Blob([e]));this.imgList=[i],this.currentImg=i,this.$nextTick(()=>{setTimeout(()=>{this.$refs.imgPreview.imgListShow=!0,this.$refs.imgPreview.open()},0)})})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},beforeDestroy(){}};var w=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-page-view"},[i("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[i("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"fileOriginName",fn:function({column:s,row:l}){return[i("gd-tooltip",{attrs:{rowKey:"fileoriginname",row:l,highlight:""},on:{click:e.editForm}})]}},{key:"fileLocation",fn:function(s){return[i("el-tag",{style:e._f("dictColor")("file_storage_location",s.row.filelocation),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("file_storage_location",s.row.filelocation))+" ")])]}},{key:"fileSuffix",fn:function(s){return[i("el-tag",[e._v(" "+e._s(s.row.filesuffix)+" ")])]}},{key:"fileObjectName",fn:function({column:s,row:l}){return[i("gd-tooltip",{attrs:{rowKey:"fileobjectname",row:l}})]}},{key:"filesizekb",fn:function({column:s,row:l}){return[e._v(e._s(l.filesizekb)+"(kb)")]}},{key:"operator",fn:function(){return[i("div",{staticClass:"gd-table-operator"},[i("div",{staticClass:"gd-table-operatorl"},[i("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.file.fileOriginName","\u6587\u4EF6\u540D"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.fileOriginName,callback:function(s){e.$set(e.queryParam,"fileOriginName",s)},expression:"queryParam.fileOriginName"}}),i("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[i("i",{staticClass:"el-input__icon el-icon-search"})])],1),i("div",{staticClass:"gd-table-operatorr"},[i("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:l}){return[i("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:l},on:{save:e.saveQueries}})]}}])})],1),i("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",transKey:e.transKey,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode}}),i("div",{staticStyle:{position:"absolute",left:"-200000px"}},[i("el-upload",{ref:"upload",attrs:{"http-request":e.handleFileUpload,"file-list":e.fileList,action:""}},[i("el-button",{ref:"uploadDemo",staticClass:"upload-demo",attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[e._v("\u9009\u53D6\u6587\u4EF6")])],1)],1),i("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg}}),i("gd-file-preview",{ref:"filePreview",attrs:{options:e.options}})],1)},v=[],_=d.normalizeComponent(b,w,v,!1,null,"3a9954e8",null,null);const o=_.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
@@ -1,641 +0,0 @@
1
- import { m as d, n as h } from "./chartbi.cdd1e365.mjs";
2
- import { s as g } from "./system.account.9bc40d08.mjs";
3
- import { t as f } from "./messages.d8abe18d.mjs";
4
- function p(t) {
5
- return window.axios({
6
- url: "/sysNotice/page",
7
- method: "get",
8
- params: t
9
- });
10
- }
11
- function m(t) {
12
- return window.axios({
13
- url: "/sysNotice/add",
14
- method: "post",
15
- data: t
16
- });
17
- }
18
- function y(t) {
19
- return window.axios({
20
- url: "/sysNotice/edit",
21
- method: "post",
22
- data: t
23
- });
24
- }
25
- function b(t) {
26
- return window.axios({
27
- url: "/sysNotice/delete",
28
- method: "post",
29
- data: t
30
- });
31
- }
32
- function u(t) {
33
- return window.axios({
34
- url: "/sysNotice/detail",
35
- method: "get",
36
- params: t
37
- });
38
- }
39
- function c(t) {
40
- return window.axios({
41
- url: "/sysNotice/changeStatus",
42
- method: "post",
43
- data: t
44
- });
45
- }
46
- const w = {
47
- data() {
48
- return {
49
- tableColumns: [
50
- {
51
- type: "selection",
52
- width: "60",
53
- fixed: !0
54
- },
55
- {
56
- transKey: "gd.notice.title",
57
- prop: "title",
58
- label: "\u6807\u9898",
59
- type: "slot",
60
- slotType: "title",
61
- align: "left",
62
- fixed: !0,
63
- showOverflowTooltip: !0
64
- },
65
- {
66
- transKey: "gd.notice.type",
67
- prop: "type",
68
- label: "\u7C7B\u578B",
69
- align: "left",
70
- type: "slot",
71
- slotType: "type",
72
- align: "center",
73
- showOverflowTooltip: !0
74
- },
75
- {
76
- transKey: "gd.notice.status",
77
- prop: "status",
78
- label: "\u72B6\u6001",
79
- align: "left",
80
- type: "slot",
81
- slotType: "status"
82
- },
83
- {
84
- transKey: "gd.notice.createdTime",
85
- prop: "createdtime",
86
- label: "\u521B\u5EFA\u65F6\u95F4",
87
- align: "center"
88
- },
89
- {
90
- transKey: "gd.notice.publicTime",
91
- prop: "publictime",
92
- label: "\u53D1\u5E03\u65F6\u95F4",
93
- align: "center"
94
- },
95
- {
96
- transKey: "gd.notice.publicUserName",
97
- prop: "publicusername",
98
- label: "\u53D1\u5E03\u4EBA",
99
- align: "left"
100
- }
101
- ],
102
- formColumns: [
103
- {
104
- transKey: "gd.notice.title",
105
- effectType: "input",
106
- prop: "title",
107
- label: "\u6807\u9898",
108
- placeholder: "\u8BF7\u8F93\u5165",
109
- placeholderTransKey: "gd.placeholder.input",
110
- rules: [{
111
- required: !0,
112
- message: "\u8BF7\u8F93\u5165",
113
- transKey: "gd.placeholder.input",
114
- trigger: "change"
115
- }]
116
- },
117
- {
118
- transKey: "gd.notice.type",
119
- prop: "type",
120
- label: "\u7C7B\u578B",
121
- effectType: "radio",
122
- dictTypeCode: "notice_type",
123
- rules: [{
124
- required: !0,
125
- message: "\u8BF7\u9009\u62E9",
126
- transKey: "gd.placeholder.select",
127
- trigger: "change"
128
- }]
129
- },
130
- {
131
- transKey: "gd.notice.noticeBucket",
132
- effectType: "editor",
133
- prop: "editorcontent",
134
- label: "\u5185\u5BB9",
135
- placeholder: "\u8BF7\u8F93\u5165",
136
- placeholderTransKey: "gd.placeholder.input",
137
- rules: [{
138
- required: !0,
139
- message: "\u8BF7\u8F93\u5165",
140
- transKey: "gd.placeholder.input",
141
- trigger: "change"
142
- }]
143
- },
144
- {
145
- transKey: "gd.notice.notifyTo",
146
- effectType: "transfer",
147
- prop: "targetkeys",
148
- label: "\u6536\u5230\u901A\u77E5\u4EBA",
149
- type: "slot",
150
- slotType: "targetKeys",
151
- rules: [{
152
- required: !1,
153
- message: "\u8BF7\u9009\u62E9",
154
- transKey: "gd.placeholder.select",
155
- trigger: "change"
156
- }]
157
- }
158
- ],
159
- tableButtons: [
160
- {
161
- displayName: "\u65B0\u589E",
162
- functionName: "add",
163
- show: !0,
164
- transKey: "gd.btn.add",
165
- icon: "el-icon-plus",
166
- name: "sysNotice:add"
167
- },
168
- {
169
- displayName: "\u7F16\u8F91",
170
- functionName: "edit",
171
- show: !0,
172
- transKey: "gd.btn.edit",
173
- icon: "el-icon-edit",
174
- name: "sysNotice:edit"
175
- },
176
- {
177
- displayName: "\u5220\u9664",
178
- functionName: "del",
179
- show: !0,
180
- transKey: "gd.btn.del",
181
- icon: "el-icon-delete",
182
- btnType: "danger",
183
- name: "sysNotice:delete"
184
- },
185
- {
186
- displayName: "\u53D1\u5E03",
187
- functionName: "release",
188
- show: !0,
189
- btnType: "danger",
190
- transKey: "gd.btn.release",
191
- icon: "el-icon-s-promotion",
192
- name: "sysNotice:changeStatus"
193
- },
194
- {
195
- displayName: "\u64A4\u56DE",
196
- functionName: "rollback",
197
- show: !0,
198
- transKey: "gd.btn.withdraw",
199
- icon: "el-icon-refresh-left",
200
- btnType: "danger",
201
- name: "sysNotice:changeStatus"
202
- },
203
- {
204
- displayName: "\u67E5\u770B",
205
- functionName: "read",
206
- show: !0,
207
- transKey: "gd.btn.view",
208
- icon: "el-icon-reading",
209
- name: "sysNotice:detail"
210
- }
211
- ],
212
- formButtons: [
213
- {
214
- displayName: "\u53D1\u5E03",
215
- functionName: "releaseTip",
216
- show: !0,
217
- btnType: "danger",
218
- transKey: "gd.btn.release",
219
- icon: "el-icon-s-promotion",
220
- validate: !0
221
- },
222
- {
223
- displayName: "\u5B58\u4E3A\u8349\u7A3F",
224
- functionName: "saveDraft",
225
- show: !0,
226
- transKey: "gd.btn.saveDraft",
227
- icon: "el-icon-tickets",
228
- validate: !0
229
- }
230
- ],
231
- tableQueries: [{
232
- transKey: "gd.notice.noticeOriginName",
233
- prop: "searchValue",
234
- label: "\u5173\u952E\u8BCD",
235
- effectType: "input",
236
- rules: []
237
- }, {
238
- transKey: "gd.sysConfig.type",
239
- prop: "type",
240
- label: "\u7C7B\u578B",
241
- effectType: "select",
242
- dictTypeCode: "notice_type",
243
- rules: []
244
- }]
245
- };
246
- }
247
- };
248
- const _ = {
249
- data() {
250
- return {
251
- transKey: "gd.notice.detail",
252
- fullscreen: !1,
253
- visible: !1,
254
- width: "900",
255
- confirmLoading: !1,
256
- contentRecord: {},
257
- sysViewButtons: []
258
- };
259
- },
260
- computed: {
261
- height() {
262
- return this.screenHeight - 24 - 40 - 36;
263
- },
264
- headTitle() {
265
- return this.$i18nt(this.transKey, this.title);
266
- },
267
- ...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
268
- },
269
- methods: {
270
- open(t) {
271
- console.log(t), this.fullscreen = !1, this.visible = !0, this.confirmLoading = !0, this.sysNoticeDetail(t.id);
272
- },
273
- sysNoticeDetail(t) {
274
- this.fullscreen = !1, u({
275
- id: t
276
- }).then((e) => {
277
- this.confirmLoading = !1, this.contentRecord = e.data;
278
- });
279
- },
280
- handleCancel() {
281
- this.visible = !1, this.contentRecord = {};
282
- },
283
- closed() {
284
- this.visible = !1;
285
- },
286
- toggleFullscreen() {
287
- this.fullscreen = !this.fullscreen;
288
- },
289
- doEvent(t) {
290
- const e = t.item.functionName;
291
- this[e] && this[e]();
292
- }
293
- }
294
- };
295
- var $ = function() {
296
- var e = this, s = e._self._c;
297
- return s("div", [s("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { formMode: e.formMode, fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", transKey: e.transKey, labelPosition: e.labelPosition, "show-close": !1 }, on: { "update:visible": function(i) {
298
- e.visible = i;
299
- }, closed: e.closed } }, [s("gd-modal-title", { attrs: { slot: "title", title: e.headTitle, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), s("div", { class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [s("div", { staticStyle: { "text-align": "center", "font-size": "30px" } }, [e._v(e._s(this.contentRecord.title))]), s("br"), s("div", { staticStyle: { "text-align": "right", "font-size": "10px" } }, [s("span", [e._v(" " + e._s(e.$i18nt("gd.notice.publisher", "\u53D1\u5E03\u4EBA")) + ": " + e._s(this.contentRecord.publicusername) + " ")]), s("span", [e._v(" " + e._s(e.$i18nt("gd.notice.releaseTime", "\u53D1\u5E03\u65F6\u95F4")) + ": " + e._s(this.contentRecord.publictime ? this.contentRecord.publictime : "--") + " ")])]), s("el-divider", { staticStyle: { "margin-top": "5px" } }), s("div", [s("label", { domProps: { innerHTML: e._s(this.contentRecord.content) } })])], 1)], 1)], 1);
300
- }, K = [], v = /* @__PURE__ */ h(
301
- _,
302
- $,
303
- K,
304
- !1,
305
- null,
306
- "e87efedd",
307
- null,
308
- null
309
- );
310
- const C = v.exports;
311
- const T = {
312
- name: "GdNotice",
313
- props: {
314
- height: {
315
- type: Number,
316
- default: 100
317
- }
318
- },
319
- mixins: [f, w],
320
- data() {
321
- return {
322
- transKey: "gd.btn.add",
323
- loadData: (t) => p(Object.assign(t, this.queryParam)).then((e) => e.data),
324
- selectedRowKeys: [],
325
- selectedRows: [],
326
- queryParam: {},
327
- formLoading: !1,
328
- mockData: [],
329
- targetKeys: [],
330
- noticeUserIdList: [],
331
- mockData: [],
332
- status: 0
333
- };
334
- },
335
- components: {
336
- detailForm: C
337
- },
338
- computed: {
339
- getHeight() {
340
- return this.height;
341
- },
342
- getFormColumns() {
343
- return this.formColumns.filter((e) => !0);
344
- },
345
- ...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
346
- },
347
- mounted() {
348
- },
349
- methods: {
350
- onSelectChange(t, e) {
351
- if (this.selectedRowKeys = t, this.selectedRows = e, e.length == 0) {
352
- this.baseHideBtns([], 2);
353
- return;
354
- }
355
- if (e.length > 1) {
356
- this.baseHideBtns(["\u5220\u9664", "\u53D1\u5E03", "\u64A4\u56DE", "\u7F16\u8F91"], 2);
357
- return;
358
- }
359
- let s = [], i = e.filter((a) => a.status == 0), o = e.filter((a) => a.status == 1), n = e.filter((a) => a.status == 2);
360
- i.length == e.length ? s = ["\u64A4\u56DE"] : o.length == e.length ? s = ["\u5220\u9664", "\u53D1\u5E03", "\u7F16\u8F91"] : n.length == e.length && (s = ["\u64A4\u56DE", "\u53D1\u5E03", "\u7F16\u8F91"]), this.baseHideBtns(s, 2);
361
- },
362
- baseHideBtns(t, e = 1) {
363
- let s = [...this.tableButtons];
364
- s.map((i) => (e === 1 ? i.show = !t.includes(i.id) : i.show = !t.includes(i.displayName), i)), this.tableButtons = [...s];
365
- },
366
- add() {
367
- this.transKey = "gd.btn.add", this.getMock(), this.$refs.editForm.open(null);
368
- },
369
- edit() {
370
- if (this.selectedRowKeys.length === 0) {
371
- this.$message.warning(this.$i18nt("Locals.common.https.editTip"));
372
- return;
373
- }
374
- if (this.selectedRowKeys.length > 1) {
375
- this.$message.warning(this.$i18nt("Locals.common.https.editTipOne"));
376
- return;
377
- }
378
- this.sysNoticeDetail(this.selectedRows[0].id), this.$refs.editForm.open(
379
- Object.assign(
380
- {
381
- ...this.selectedRows[0]
382
- },
383
- {
384
- type: String(this.selectedRows[0].type),
385
- editorContent: this.selectedRows[0].content
386
- }
387
- )
388
- );
389
- },
390
- editForm(t) {
391
- this.transKey = "gd.notice.detail", this.$refs.detailForm.open(t);
392
- },
393
- sbumit({ data: t, record: e, btn: s }, i, o) {
394
- if (this.status = s.item.functionName == "releaseTip" ? 1 : 0, e != null) {
395
- let n = {
396
- id: t.id,
397
- content: t.editorcontent,
398
- status: this.status,
399
- title: t.title,
400
- type: t.type,
401
- noticeuseridlist: this.targetKeys
402
- };
403
- if (this.targetKeys.length == 0) {
404
- this.$message.error(this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") + this.$i18nt("gd.notice.user", "\u63A5\u6536\u4EBA"));
405
- return;
406
- }
407
- this.formLoading = !0, y(Object.assign(this.noticeDetail, n)).then((a) => {
408
- a.success ? (o(), this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F"))) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + a.message), this.formLoading = !1, this.refresh();
409
- });
410
- } else {
411
- let n = {
412
- content: t.editorcontent,
413
- status: this.status,
414
- title: t.title,
415
- type: t.type,
416
- noticeuseridlist: this.targetKeys
417
- };
418
- if (this.targetKeys.length == 0) {
419
- this.$message.error(this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") + this.$i18nt("gd.notice.user", "\u63A5\u6536\u4EBA"));
420
- return;
421
- }
422
- this.formLoading = !0, m(n).then((a) => {
423
- a.success ? (o(), this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F"))) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25") + a.message), this.refresh(), this.formLoading = !1;
424
- });
425
- }
426
- },
427
- saveQueries(t) {
428
- this.queryParam = t, this.refresh();
429
- },
430
- read() {
431
- if (this.selectedRowKeys.length === 0) {
432
- this.$message.warning(this.$i18nt("gd.https.readTip", "\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));
433
- return;
434
- }
435
- if (this.selectedRowKeys.length > 1) {
436
- this.$message.warning(this.$i18nt("gd.https.readTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));
437
- return;
438
- }
439
- this.$refs.detailForm.open(this.selectedRows[0]);
440
- },
441
- rollback() {
442
- if (this.selectedRowKeys.length === 0) {
443
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
444
- return;
445
- }
446
- if (this.selectedRowKeys.length > 1) {
447
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
448
- return;
449
- }
450
- this.$confirm(this.$i18nt("gd.https.withdrawContent", "\u786E\u8BA4\u64A4\u56DE?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
451
- confirmButtonText: this.$i18nt("gd.https.withdrawOk", "\u7ACB\u5373\u64A4\u56DE!"),
452
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
453
- showClose: !1,
454
- confirmButtonLoading: !1,
455
- cancelButtonLoading: !1,
456
- closeOnClickModal: !1,
457
- type: "warning",
458
- confirmButtonClass: "el-button--danger",
459
- customClass: "custom-alert",
460
- callback: () => {
461
- },
462
- beforeClose: (t, e, s) => {
463
- this.rollbackHand(t, e, s);
464
- }
465
- });
466
- },
467
- rollbackHand(t, e, s) {
468
- if (t !== "confirm") {
469
- s();
470
- return;
471
- }
472
- let i = [];
473
- this.selectedRows.forEach((o) => {
474
- let n = c({
475
- id: o.id,
476
- status: 2
477
- }).then((a) => a);
478
- i.push(n);
479
- }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((o) => {
480
- e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
481
- const n = o.filter((a) => !a.success);
482
- n.length === 0 ? this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n[0].message), this.refresh();
483
- });
484
- },
485
- release() {
486
- if (this.selectedRowKeys.length === 0) {
487
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
488
- return;
489
- }
490
- if (this.selectedRowKeys.length > 1) {
491
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
492
- return;
493
- }
494
- this.$confirm(this.$i18nt("gd.https.releaseContent", "\u786E\u8BA4\u53D1\u5E03?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
495
- confirmButtonText: this.$i18nt("gd.https.releaseOk", "\u7ACB\u5373\u53D1\u5E03!"),
496
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
497
- showClose: !1,
498
- confirmButtonLoading: !1,
499
- cancelButtonLoading: !1,
500
- closeOnClickModal: !1,
501
- type: "warning",
502
- confirmButtonClass: "el-button--danger",
503
- customClass: "custom-alert",
504
- callback: () => {
505
- },
506
- beforeClose: (t, e, s) => {
507
- this.releaseHand(t, e, s);
508
- }
509
- });
510
- },
511
- releaseHand(t, e, s) {
512
- if (t !== "confirm") {
513
- s();
514
- return;
515
- }
516
- let i = [];
517
- this.selectedRows.forEach((o) => {
518
- let n = c({
519
- id: o.id,
520
- status: 1
521
- }).then((a) => a);
522
- i.push(n);
523
- }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((o) => {
524
- e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
525
- const n = o.filter((a) => !a.success);
526
- n.length === 0 ? this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n[0].message), this.refresh();
527
- });
528
- },
529
- del() {
530
- if (this.selectedRowKeys.length === 0) {
531
- this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
532
- return;
533
- }
534
- this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
535
- confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
536
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
537
- showClose: !1,
538
- confirmButtonLoading: !1,
539
- cancelButtonLoading: !1,
540
- closeOnClickModal: !1,
541
- type: "warning",
542
- confirmButtonClass: "el-button--danger",
543
- customClass: "custom-alert",
544
- callback: () => {
545
- },
546
- beforeClose: (t, e, s) => {
547
- this.delHand(t, e, s);
548
- }
549
- });
550
- },
551
- delHand(t, e, s) {
552
- if (t !== "confirm") {
553
- s();
554
- return;
555
- }
556
- let i = [];
557
- this.selectedRows.forEach((o) => {
558
- let n = b(o).then((a) => a);
559
- i.push(n);
560
- }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((o) => {
561
- s();
562
- const n = o.filter((a) => !a.success);
563
- 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;
564
- });
565
- },
566
- sysNoticeDetail(t) {
567
- u({
568
- id: t
569
- }).then((e) => {
570
- this.noticeDetail = e.data, this.getMock(this.noticeDetail);
571
- });
572
- },
573
- getMock(t) {
574
- const e = [], s = [];
575
- g().then((i) => {
576
- this.confirmLoading = !1;
577
- for (let o = 0; o < i.data.length; o++) {
578
- const n = i.data[o], a = {
579
- key: n.id.toString(),
580
- label: n.name,
581
- description: `description of ${n.name}`
582
- };
583
- if (t)
584
- for (let l = 0; l < t.noticeuseridlist.length; l++)
585
- a.key === t.noticeuseridlist[l] && e.push(t.noticeuseridlist[l]);
586
- s.push(a);
587
- }
588
- this.mockData = s, this.targetKeys = e;
589
- });
590
- },
591
- handleChange(t) {
592
- this.targetKeys = t;
593
- },
594
- refresh() {
595
- this.$refs.table.refresh();
596
- },
597
- doEvent(t) {
598
- let e = t.item.functionName;
599
- this[e] && this[e]();
600
- }
601
- }
602
- };
603
- var B = function() {
604
- var e = this, s = e._self._c;
605
- return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
606
- return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl" }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.notice.title", "\u6807\u9898"), clearable: "" }, nativeOn: { keyup: function(i) {
607
- return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
608
- } }, model: { value: e.queryParam.title, callback: function(i) {
609
- e.$set(e.queryParam, "title", i);
610
- }, expression: "queryParam.title" } }), s("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
611
- }, proxy: !0 }, { key: "title", fn: function({ column: i, row: o }) {
612
- return [s("gd-tooltip", { attrs: { rowKey: "title", row: o, highlight: "" }, on: { click: e.editForm } })];
613
- } }, { key: "type", fn: function(i) {
614
- return [s("el-tag", { style: e._f("dictColor")("notice_type", i.row.type), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("notice_type", i.row.type)) + " ")])];
615
- } }, { key: "status", fn: function(i) {
616
- return [s("el-tag", { style: e._f("dictColor")("notice_status", i.row.status), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("notice_status", i.row.status)) + " ")])];
617
- } }, { key: "filtering", fn: function({ colse: i, visible: o }) {
618
- return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: o }, on: { save: e.saveQueries } })];
619
- } }]) })], 1), s("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "100%", transKey: e.transKey, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode, buttons: e.formButtons, loading: e.formLoading }, on: { sbumit: e.sbumit }, scopedSlots: e._u([{ key: "targetKeys", fn: function({ data: i, column: o }) {
620
- return [s("el-transfer", { attrs: { data: e.mockData, titles: ["\u672A\u9009", "\u5DF2\u9009"], filterable: "" }, on: { change: e.handleChange }, model: { value: e.targetKeys, callback: function(n) {
621
- e.targetKeys = n;
622
- }, expression: "targetKeys" } })];
623
- } }]) }), s("detailForm", { ref: "detailForm" })], 1);
624
- }, N = [], k = /* @__PURE__ */ h(
625
- T,
626
- B,
627
- N,
628
- !1,
629
- null,
630
- "d1e98ee8",
631
- null,
632
- null
633
- );
634
- const r = k.exports;
635
- r.install = function(t) {
636
- t.component(r.name, r);
637
- };
638
- export {
639
- r as G,
640
- C as d
641
- };