cnhis-design-vue 3.1.42-beta.72 → 3.1.42-beta.74

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 (21) hide show
  1. package/es/components/button-print/src/utils/print.js +1 -1
  2. package/es/components/classification/index.d.ts +12 -12
  3. package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -9
  4. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  5. package/es/components/classification/src/components/table-modal/index.vue.d.ts +9 -9
  6. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  7. package/es/components/classification/src/index.vue.d.ts +12 -12
  8. package/es/components/classification/src/index.vue.js +1 -1
  9. package/es/components/iho-table/index.d.ts +2 -0
  10. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
  11. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
  12. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts +0 -0
  13. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js +1 -0
  14. package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -1
  15. package/es/components/iho-table/src/types/index.d.ts +3 -0
  16. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +3 -3
  17. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  18. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
  19. package/es/shared/package.json.js +1 -1
  20. package/es/shared/utils/index.js +1 -1
  21. package/package.json +65 -65
@@ -1 +1 @@
1
- import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.messageHandlerQueue=[],m)return m;m=this;const e=window;this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler),this.postMessage({exec:"config",data:""}))}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{console.log(t);const i=JSON.parse(t.data||"{}");"config"===i.exec&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||""),i.res?n(i.res):s(t)}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleResult(t,e){if("success"!==t.result){const i={type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo};return null==e||e(i),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="1",nobillnode:a="1",btnprint:o="1"}){const d={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}d.print=s}else if(this.isRemote){const t=l(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-2],o=n[n.length-1],l=await s(`${u}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;const h=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n});if(!h)return!1;const c=this._handleResult(h,l);if(!c)return!1;if(this.isRemote){const t=await this._browserPrint(c,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}s&&s(c)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o,isDownloadFile:l=!0},d,h,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==d||d({file:t}))):null==h?void 0:h("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,h))return!1;const u=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o});if(!u)return!1;const m=this._handleResult(u,h);if(!m)return!1;l&&["downloadPDF"].includes(c)&&await this._browserPrint(m,c),null==d||d(m)}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o,s)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
1
+ import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.messageHandlerQueue=[],m)return m;m=this;const e=window;if(this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.postMessage({exec:"config",data:""})}catch(t){console.log("非封装浏览器或者当前版本不支持获取配置接口")}}}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{console.log(t);const i=JSON.parse(t.data||"{}");"config"===i.exec&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||""),n(i.res||"")}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleResult(t,e){if(!t)return null==e||e({type:"printError",message:"打印命令未返回信息",result:!1,errinfo:"打印命令未返回信息"}),!1;if("success"!==t.result){const i={type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo};return null==e||e(i),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="1",nobillnode:a="1",btnprint:o="1"}){const d={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}d.print=s}else if(this.isRemote){const t=l(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-2],o=n[n.length-1],l=await s(`${u}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;const h=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n}),c=this._handleResult(h,l);if(!c)return!1;if(this.isRemote){const t=await this._browserPrint(c,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}s&&s(c)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o,isDownloadFile:l=!0},d,h,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==d||d({file:t}))):null==h?void 0:h("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,h))return!1;const u=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o}),m=this._handleResult(u,h);if(!m)return!1;l&&["downloadPDF"].includes(c)&&await this._browserPrint(m,c),null==d||d(m)}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o,s)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
@@ -10,7 +10,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
10
10
  };
11
11
  conditionMap: {
12
12
  type: import("vue").PropType<import("..").IConditionMapType>;
13
- default: () => void;
13
+ default: () => {};
14
14
  };
15
15
  conditionSid: {
16
16
  type: import("vue").PropType<string[]>;
@@ -59,7 +59,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
59
59
  };
60
60
  conditionMap: {
61
61
  type: import("vue").PropType<import("..").IConditionMapType>;
62
- default: () => void;
62
+ default: () => {};
63
63
  };
64
64
  conditionSid: {
65
65
  type: import("vue").PropType<string[]>;
@@ -292,15 +292,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
292
292
  };
293
293
  edit: {
294
294
  type: FunctionConstructor;
295
- defdault: () => void;
295
+ defdault: () => {};
296
296
  };
297
297
  copy: {
298
298
  type: FunctionConstructor;
299
- defdault: () => void;
299
+ defdault: () => {};
300
300
  };
301
301
  delItem: {
302
302
  type: FunctionConstructor;
303
- defdault: () => void;
303
+ defdault: () => {};
304
304
  };
305
305
  dataSource: {
306
306
  type: ArrayConstructor;
@@ -335,15 +335,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
335
335
  };
336
336
  edit: {
337
337
  type: FunctionConstructor;
338
- defdault: () => void;
338
+ defdault: () => {};
339
339
  };
340
340
  copy: {
341
341
  type: FunctionConstructor;
342
- defdault: () => void;
342
+ defdault: () => {};
343
343
  };
344
344
  delItem: {
345
345
  type: FunctionConstructor;
346
- defdault: () => void;
346
+ defdault: () => {};
347
347
  };
348
348
  dataSource: {
349
349
  type: ArrayConstructor;
@@ -492,15 +492,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
492
492
  };
493
493
  edit: {
494
494
  type: FunctionConstructor;
495
- defdault: () => void;
495
+ defdault: () => {};
496
496
  };
497
497
  copy: {
498
498
  type: FunctionConstructor;
499
- defdault: () => void;
499
+ defdault: () => {};
500
500
  };
501
501
  delItem: {
502
502
  type: FunctionConstructor;
503
- defdault: () => void;
503
+ defdault: () => {};
504
504
  };
505
505
  dataSource: {
506
506
  type: ArrayConstructor;
@@ -943,7 +943,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
943
943
  };
944
944
  conditionMap: {
945
945
  type: import("vue").PropType<import("..").IConditionMapType>;
946
- default: () => void;
946
+ default: () => {};
947
947
  };
948
948
  conditionSid: {
949
949
  type: import("vue").PropType<string[]>;
@@ -79,15 +79,15 @@ declare const _default: import("vue").DefineComponent<{
79
79
  };
80
80
  edit: {
81
81
  type: FunctionConstructor;
82
- defdault: () => void;
82
+ defdault: () => {};
83
83
  };
84
84
  copy: {
85
85
  type: FunctionConstructor;
86
- defdault: () => void;
86
+ defdault: () => {};
87
87
  };
88
88
  delItem: {
89
89
  type: FunctionConstructor;
90
- defdault: () => void;
90
+ defdault: () => {};
91
91
  };
92
92
  dataSource: {
93
93
  type: ArrayConstructor;
@@ -122,15 +122,15 @@ declare const _default: import("vue").DefineComponent<{
122
122
  };
123
123
  edit: {
124
124
  type: FunctionConstructor;
125
- defdault: () => void;
125
+ defdault: () => {};
126
126
  };
127
127
  copy: {
128
128
  type: FunctionConstructor;
129
- defdault: () => void;
129
+ defdault: () => {};
130
130
  };
131
131
  delItem: {
132
132
  type: FunctionConstructor;
133
- defdault: () => void;
133
+ defdault: () => {};
134
134
  };
135
135
  dataSource: {
136
136
  type: ArrayConstructor;
@@ -279,15 +279,15 @@ declare const _default: import("vue").DefineComponent<{
279
279
  };
280
280
  edit: {
281
281
  type: FunctionConstructor;
282
- defdault: () => void;
282
+ defdault: () => {};
283
283
  };
284
284
  copy: {
285
285
  type: FunctionConstructor;
286
- defdault: () => void;
286
+ defdault: () => {};
287
287
  };
288
288
  delItem: {
289
289
  type: FunctionConstructor;
290
- defdault: () => void;
290
+ defdault: () => {};
291
291
  };
292
292
  dataSource: {
293
293
  type: ArrayConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as o,openBlock as a,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e,i){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e,i){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e,i){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return o((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),o((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>b.conditionList),(e=>{L.value=e}),{immediate:!0,deep:!0}),o((()=>T),(e=>{e||(S.value={})})),(i,t)=>(a(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
1
+ import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as a,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e,i){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e,i){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O.value&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e,i){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return a((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),a((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),a((()=>b.conditionList),(e=>{L.value=e}),{immediate:!0,deep:!0}),a((()=>T),(e=>{e||(S.value={})})),(i,t)=>(o(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
@@ -11,15 +11,15 @@ declare const _default: import("vue").DefineComponent<{
11
11
  };
12
12
  edit: {
13
13
  type: FunctionConstructor;
14
- defdault: () => void;
14
+ defdault: () => {};
15
15
  };
16
16
  copy: {
17
17
  type: FunctionConstructor;
18
- defdault: () => void;
18
+ defdault: () => {};
19
19
  };
20
20
  delItem: {
21
21
  type: FunctionConstructor;
22
- defdault: () => void;
22
+ defdault: () => {};
23
23
  };
24
24
  dataSource: {
25
25
  type: ArrayConstructor;
@@ -54,15 +54,15 @@ declare const _default: import("vue").DefineComponent<{
54
54
  };
55
55
  edit: {
56
56
  type: FunctionConstructor;
57
- defdault: () => void;
57
+ defdault: () => {};
58
58
  };
59
59
  copy: {
60
60
  type: FunctionConstructor;
61
- defdault: () => void;
61
+ defdault: () => {};
62
62
  };
63
63
  delItem: {
64
64
  type: FunctionConstructor;
65
- defdault: () => void;
65
+ defdault: () => {};
66
66
  };
67
67
  dataSource: {
68
68
  type: ArrayConstructor;
@@ -211,15 +211,15 @@ declare const _default: import("vue").DefineComponent<{
211
211
  };
212
212
  edit: {
213
213
  type: FunctionConstructor;
214
- defdault: () => void;
214
+ defdault: () => {};
215
215
  };
216
216
  copy: {
217
217
  type: FunctionConstructor;
218
- defdault: () => void;
218
+ defdault: () => {};
219
219
  };
220
220
  delItem: {
221
221
  type: FunctionConstructor;
222
- defdault: () => void;
222
+ defdault: () => {};
223
223
  };
224
224
  dataSource: {
225
225
  type: ArrayConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as n,watch as a,openBlock as o,createBlock as s,unref as r,normalizeClass as u,withCtx as c,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as z,NModal as S,NCard as _,NTooltip as D,NIcon as E,NSwitch as M,NPopconfirm as P,NButton as I}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import B from"axios";import j from"../../../../../_virtual/plugin-vue_export-helper.js";const A={class:"svg-wrap"},H={class:"flex_between"},R={key:0},$={class:"table-modal-list"},J={class:"list-title"},T=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),Y=v("span",{class:"list-title-item"}," 名称 ",-1),q=v("span",{class:"list-title-item"}," 父类名称 ",-1),G=v("span",{class:"list-title-item"}," 是否显示 ",-1),K=v("span",{class:"list-title-item"}," 设置为默认 ",-1),L={class:"list-title-item"},Q=v("span",{class:"list-title-item"}," 操作 ",-1),W=["onClick"],X={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},Z=["title"],ee=["title"],te={class:"list-content-item list-content-switch"},ie={class:"list-content-item list-content-radio"},le={class:"list-content-item"},ne={class:"list-content-item"},ae={key:0},oe=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),se={key:1},re=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ue=j(e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>{}},copy:{type:Function,defdault:()=>{}},delItem:{type:Function,defdault:()=>{}},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:j}){const ue=e,ce=B.create({}),de=t(),pe=b(),me=z(),ve=i((()=>(null==de?void 0:de.isOrgAdmin)||!1)),he=l(ue.dataSource),fe=l(ue.visibleIn),ge=l(!1),ye=l("other"==ue.type?"100%":"860px"),Ce=l("654px"),we=n(F);function ke(){ue.type&&(ze(),j("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(he.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return he.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ue.type)))}function xe(){be()}function be(){fe.value=!1,ze(),j("close")}function ze(){ye.value="860px",Ce.value="654px",ge.value=!1}function Se(){j("changeData",he.value)}function _e(){ge.value=!ge.value;let e=document.body.clientHeight;ye.value="860px"===ye.value?"100%":"860px",Ce.value="654px"===Ce.value?`${e}px`:"654px"}function De(e){j("resetPopconfirm",e)}function Ee(e,t,i){const l=ue[e];l&&l(t,i)}return a((()=>ue.visibleIn),(e=>{fe.value=e})),a((()=>ue.dataSource),(e=>{he.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(S),{show:fe.value,bodyStyle:{height:Ce.value,overflowY:"auto"},width:ye.value,maskClosable:!1,class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":ge.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:ke,onNegativeClick:be},{default:c((()=>[d(r(_),{style:p({width:ye.value,height:Ce.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",A,[v("i",{onClick:_e,class:u(["iconfont-table-filter",ge.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),v("i",{onClick:be,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:c((()=>[r(ve)&&"mananger"==e.type?(o(),h("p",R,[v("span",{onClick:xe}," 添加首页 ")])):f("v-if",!0),v("div",$,[v("div",J,[T,Y,q,G,K,g(v("span",L," 设置公共首页 ",512),[[y,r(ve)&&"mananger"==e.type]]),Q]),d(r(O),{class:"list-content",tag:"ul",list:he.value,"item-key":"sid",onEnd:Se,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,he.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void j("changeData",he.value,i);var i}},[v("span",X,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(E),{component:r(U),size:"24"},null,8,["component"])])),default:c((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,Z),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,ee),v("span",te,[d(r(M),{"onUpdate:value":e=>{return i=t,void he.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",ie,[d(r(M),{"onUpdate:value":e=>{var i;(i=t).isShow&&he.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",le,[d(r(M),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}me.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};ce({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(pe.success(t.data.resultMsg),e.isCommon=!e.isCommon,j("finishSubmit")):pe.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>{}})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(ve)&&"mananger"==e.type]]),v("span",ne,["mananger"==e.type&&r(ve)?(o(),h("span",ae,[d(r(P),{onPositiveClick:e=>Ee("confirm",t)},{trigger:c((()=>[d(r(E),null,{default:c((()=>[oe])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(E),{component:r(N),onClick:k((e=>Ee("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(ve)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(E),{component:r(V),onClick:k((e=>Ee("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",se,[d(r(P),{onPositiveClick:e=>Ee("delItem",t,"删除")},{trigger:c((()=>[d(r(E),null,{default:c((()=>[re])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,W),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[v("div",H,[v("div",null,[r(we)?(o(),s(r(P),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:De},{trigger:c((()=>[d(r(I),null,{default:c((()=>[C("恢复默认设置")])),_:1})])),default:c((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),v("div",null,[d(r(I),{onClick:be},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(I),{type:"info",onClick:ke},{default:c((()=>[C("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","index.vue"]]);export{ue as default};
1
+ import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as n,watch as a,openBlock as o,createBlock as s,unref as r,normalizeClass as u,withCtx as c,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as z,NModal as S,NCard as _,NTooltip as D,NIcon as E,NSwitch as M,NPopconfirm as P,NButton as I}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import B from"axios";import j from"../../../../../_virtual/plugin-vue_export-helper.js";const A={class:"svg-wrap"},H={class:"flex_between"},R={key:0},$={class:"table-modal-list"},J={class:"list-title"},T=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),Y=v("span",{class:"list-title-item"}," 名称 ",-1),q=v("span",{class:"list-title-item"}," 父类名称 ",-1),G=v("span",{class:"list-title-item"}," 是否显示 ",-1),K=v("span",{class:"list-title-item"}," 设置为默认 ",-1),L={class:"list-title-item"},Q=v("span",{class:"list-title-item"}," 操作 ",-1),W=["onClick"],X={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},Z=["title"],ee=["title"],te={class:"list-content-item list-content-switch"},ie={class:"list-content-item list-content-radio"},le={class:"list-content-item"},ne={class:"list-content-item"},ae={key:0},oe=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),se={key:1},re=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ue=j(e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>({})},copy:{type:Function,defdault:()=>({})},delItem:{type:Function,defdault:()=>({})},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:j}){const ue=e,ce=B.create({}),de=t(),pe=b(),me=z(),ve=i((()=>(null==de?void 0:de.isOrgAdmin)||!1)),he=l(ue.dataSource),fe=l(ue.visibleIn),ge=l(!1),ye=l("other"==ue.type?"100%":"860px"),Ce=l("654px"),we=n(F);function ke(){ue.type&&(ze(),j("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(he.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return he.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ue.type)))}function xe(){be()}function be(){fe.value=!1,ze(),j("close")}function ze(){ye.value="860px",Ce.value="654px",ge.value=!1}function Se(){j("changeData",he.value)}function _e(){ge.value=!ge.value;let e=document.body.clientHeight;ye.value="860px"===ye.value?"100%":"860px",Ce.value="654px"===Ce.value?`${e}px`:"654px"}function De(e){j("resetPopconfirm",e)}function Ee(e,t,i){const l=ue[e];l&&l(t,i)}return a((()=>ue.visibleIn),(e=>{fe.value=e})),a((()=>ue.dataSource),(e=>{he.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(S),{show:fe.value,bodyStyle:{height:Ce.value,overflowY:"auto"},width:ye.value,maskClosable:!1,class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":ge.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:ke,onNegativeClick:be},{default:c((()=>[d(r(_),{style:p({width:ye.value,height:Ce.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",A,[v("i",{onClick:_e,class:u(["iconfont-table-filter",ge.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),v("i",{onClick:be,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:c((()=>[r(ve)&&"mananger"==e.type?(o(),h("p",R,[v("span",{onClick:xe}," 添加首页 ")])):f("v-if",!0),v("div",$,[v("div",J,[T,Y,q,G,K,g(v("span",L," 设置公共首页 ",512),[[y,r(ve)&&"mananger"==e.type]]),Q]),d(r(O),{class:"list-content",tag:"ul",list:he.value,"item-key":"sid",onEnd:Se,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,he.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void j("changeData",he.value,i);var i}},[v("span",X,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(E),{component:r(U),size:"24"},null,8,["component"])])),default:c((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,Z),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,ee),v("span",te,[d(r(M),{"onUpdate:value":e=>{return i=t,void he.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",ie,[d(r(M),{"onUpdate:value":e=>{var i;(i=t).isShow&&he.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",le,[d(r(M),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}me.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};ce({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(pe.success(t.data.resultMsg),e.isCommon=!e.isCommon,j("finishSubmit")):pe.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>({})})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(ve)&&"mananger"==e.type]]),v("span",ne,["mananger"==e.type&&r(ve)?(o(),h("span",ae,[d(r(P),{onPositiveClick:e=>Ee("confirm",t)},{trigger:c((()=>[d(r(E),null,{default:c((()=>[oe])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(E),{component:r(N),onClick:k((e=>Ee("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(ve)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(E),{component:r(V),onClick:k((e=>Ee("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",se,[d(r(P),{onPositiveClick:e=>Ee("delItem",t,"删除")},{trigger:c((()=>[d(r(E),null,{default:c((()=>[re])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,W),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[v("div",H,[v("div",null,[r(we)?(o(),s(r(P),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:De},{trigger:c((()=>[d(r(I),null,{default:c((()=>[C("恢复默认设置")])),_:1})])),default:c((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),v("div",null,[d(r(I),{onClick:be},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(I),{type:"info",onClick:ke},{default:c((()=>[C("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","index.vue"]]);export{ue as default};
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
11
11
  };
12
12
  conditionMap: {
13
13
  type: PropType<IConditionMapType>;
14
- default: () => void;
14
+ default: () => {};
15
15
  };
16
16
  conditionSid: {
17
17
  type: PropType<string[]>;
@@ -60,7 +60,7 @@ declare const _default: import("vue").DefineComponent<{
60
60
  };
61
61
  conditionMap: {
62
62
  type: PropType<IConditionMapType>;
63
- default: () => void;
63
+ default: () => {};
64
64
  };
65
65
  conditionSid: {
66
66
  type: PropType<string[]>;
@@ -293,15 +293,15 @@ declare const _default: import("vue").DefineComponent<{
293
293
  };
294
294
  edit: {
295
295
  type: FunctionConstructor;
296
- defdault: () => void;
296
+ defdault: () => {};
297
297
  };
298
298
  copy: {
299
299
  type: FunctionConstructor;
300
- defdault: () => void;
300
+ defdault: () => {};
301
301
  };
302
302
  delItem: {
303
303
  type: FunctionConstructor;
304
- defdault: () => void;
304
+ defdault: () => {};
305
305
  };
306
306
  dataSource: {
307
307
  type: ArrayConstructor;
@@ -336,15 +336,15 @@ declare const _default: import("vue").DefineComponent<{
336
336
  };
337
337
  edit: {
338
338
  type: FunctionConstructor;
339
- defdault: () => void;
339
+ defdault: () => {};
340
340
  };
341
341
  copy: {
342
342
  type: FunctionConstructor;
343
- defdault: () => void;
343
+ defdault: () => {};
344
344
  };
345
345
  delItem: {
346
346
  type: FunctionConstructor;
347
- defdault: () => void;
347
+ defdault: () => {};
348
348
  };
349
349
  dataSource: {
350
350
  type: ArrayConstructor;
@@ -493,15 +493,15 @@ declare const _default: import("vue").DefineComponent<{
493
493
  };
494
494
  edit: {
495
495
  type: FunctionConstructor;
496
- defdault: () => void;
496
+ defdault: () => {};
497
497
  };
498
498
  copy: {
499
499
  type: FunctionConstructor;
500
- defdault: () => void;
500
+ defdault: () => {};
501
501
  };
502
502
  delItem: {
503
503
  type: FunctionConstructor;
504
- defdault: () => void;
504
+ defdault: () => {};
505
505
  };
506
506
  dataSource: {
507
507
  type: ArrayConstructor;
@@ -944,7 +944,7 @@ declare const _default: import("vue").DefineComponent<{
944
944
  };
945
945
  conditionMap: {
946
946
  type: PropType<IConditionMapType>;
947
- default: () => void;
947
+ default: () => {};
948
948
  };
949
949
  conditionSid: {
950
950
  type: PropType<string[]>;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as o,watch as s,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as g,toDisplayString as m,createCommentVNode as v,createElementVNode as C,Fragment as y,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as w,SettingsOutline as I,ChevronDown as L,ChevronForward as N,Checkmark as z,Close as j,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import J from"./directive/flexibleResize.js";import{root_isShowResetButton as M}from"./const/index.js";import A from"../../table-filter/src/hooks/useMixins.js";import E from"../../table-filter/src/hooks/useAdvanced.js";import T from"../../../_virtual/plugin-vue_export-helper.js";const R={key:0,class:"header"},F={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},oe={key:0,class:"main-wrapper"},se=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=T(e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>{}},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:T}){const pe=e,{handleGetConfigApi:ge}=A(),{transformClassifyChild:me}=E(),ve=i(),Ce=x(),ye=n(null);let ke=n(150),Se=n(!1),be=n([]),xe=n([]),Oe=n([]),_e=n(2),we=n({name:"全部数据",sid:"all_data"}),Ie=n([]),Le=n(""),Ne=n(!1),ze=n("全部数据");l(M,n(pe.isShowResetButton));let je=t((()=>0===_e.value?{marginRight:"8px"}:2===_e.value?{display:"inline-block"}:{})),Be=t((()=>{let e=xe.value.filter((e=>-1!==pe.conditionSid.indexOf(e.sid)));if(-1!==pe.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Pe=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ke(n,l)+i}));function Je(e){e.open?e.open=!1:e.open=!0}function Me(e,i,n){ze.value=e.name;let l=function(e){let i=[];return be.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,pe.conditionSid));Fe(!1);const t=me(null==e?void 0:e.conObj);T("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ae(){let e="";if(2===_e.value)e=0;else{let i=_e.value;e=++i}ke.value=150,Ee(e)}async function Ee(e,i){let n={tableId:pe.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await ge(n,"requestSaveListPersonaSetting",{},pe.filterApiConfig)&&T("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){Ne.value=!0,Fe(!1)}function Re(e){Ne.value=e}function Fe(e){Se.value=void 0===e?!Se.value:e}function We(){if(!pe.tableId)return Ce.warning("请传入tableId");be.value=[];let{displayCategoryList:e=[],conditionList:i=[]}=pe.conditionMap;Ie.value=JSON.parse(JSON.stringify(e))||[],Oe.value=JSON.parse(JSON.stringify(i)),xe.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i]));let n=[];var l;0===Ie.value.length&&(Ie.value=["未分类"]),Ie.value.forEach((e=>{let i={name:e,children:[]};xe.value.forEach((n=>{if(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid){if(-1!==pe.conditionSid.indexOf(n.sid)){n.selected=!0,i.open=!0;const e=me(null==n?void 0:n.conObj);T("changeSearch",!1,n,e)}n.isShow&&i.children.push(n)}})),i.children.length>0&&n.push(i)})),n.unshift({name:"全部数据",sid:"all_data"}),be.value=n,0===_e.value&&(l=!0,be.value.forEach((e=>{e.children&&e.children.length&&(e.open=l)})))}function qe({distance:e}){const i=ke.value+e;ke.value=Math.min(Math.max(i,50),650)}function Ge(){Ee(_e.value,ke.value)}async function Qe(){await He(pe.tableId),De()}async function $e(e){await He(pe.tableId),Ve()}function De(e){Ve(e).then((e=>{}))}function Ve(e,i={}){if(!pe.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(pe.conditionMap));return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){Oe.value=n.conditionList||[],Ie.value=n.displayCategoryList||[];let l={conditionList:Oe.value,displayCategoryList:Ie.value};T("getQuickSearchListObj",l),Le.value=n.settingId;const r=Oe.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=ve.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=ve.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=ve.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function He(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await ge(i,"requestTableCondiTionList",{},pe.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ke(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{o((()=>{let i=e.composedPath&&e.composedPath();ye&&i.includes(ye.value)||Fe(!1)}))}))})),s((()=>pe.tableId),(e=>{e&&De(!0)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationIndex),(e=>{void 0!==e&&(_e.value=e)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationWidth),(e=>{e&&(ke.value=Number(e)||150)}),{immediate:!0}),s((()=>pe.conditionMap),(e=>{!async function(){try{await We()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(_e)]),style:u(h(je))},[0===h(_e)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(ke)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",R,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),g(" "+m("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),g(" "+m("设置"))])):v("v-if",!0)])):v("v-if",!0),C("ul",F,[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[C("span",{class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[C("span",null,m(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,q),i.open?(d(!0),c(y,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",Q,m(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,G)])),default:b((()=>[C("span",null,m(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},m(i.name),11,W))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",$,[C("div",D,"已选择"+m(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[V,g(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:qe,onEnd:Ge}]]):v("v-if",!0),1===h(_e)?(d(),c(y,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Oe).filter((e=>e.isShow)).length>0?(d(),c("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",K,[C("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[g(" 全部数据 "),h(we).digital||0===h(we).digital?(d(),c(y,{key:0},[g(" ("+m(h(we).digital||0)+") ",1)],64)):v("v-if",!0)],2),C("div",U,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ae,style:{"margin-right":"30px"}},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),g(" "+m("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),g(" "+m("设置"))])):v("v-if",!0)])])):v("v-if",!0),C("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(y,null,k(h(be).slice(1),((e,i)=>(d(),c(y,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(y,{key:1},[C("span",Y,m(e.name),1),C("div",Z,[(d(!0),c(y,null,k(e.children,((i,n)=>(d(),c(y,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Me(i,0,e)},m(Ke(i.name,null==i?void 0:i.isPublic)),11,ee)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Me(e)},m(e.name)+" "+m(e.digital),11,X))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ie,[C("div",ne,"已选择"+m(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(y,null,k(h(be).slice(1),((e,i)=>(d(),c(y,null,[e.children&&0!==e.children.length?(d(!0),c(y,{key:1},k(e.children,((i,n)=>(d(),c(y,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[g(m(i.name)+" ",1),p(h(O),{component:h(j),onClick:n=>Me(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[g(m(e.name)+" ",1),p(h(O),{component:h(j),onClick:i=>Me(e)},null,8,["component","onClick"])]))],64)))),256)),C("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[le,g(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(_e)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ye},[C("span",{class:"title",onClick:n[3]||(n[3]=()=>Fe())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[C("span",te,m(h(Be)),1)])),default:b((()=>[C("span",ae,m(h(Be)),1)])),_:1}),p(h(O),{component:h(Se)?h(B):h(L)},null,8,["component"])]),h(Se)?(d(),c("div",oe,[C("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[g(m(i.name)+m(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,ce)):v("v-if",!0),i.open?(d(!0),c(y,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",null,m(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,re)])),default:b((()=>[C("span",null,m(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c(y,{key:0},[C("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},m(i.name),11,se),C("div",de,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),g(" "+m("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),g(" "+m("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",he,[C("div",ue,"已选择"+m(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[fe,g(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(Oe),displayCategoryList:h(Ie),settingId:h(Le),tableId:e.tableId,classifyModal:h(Ne),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:$e,onCondiTionListInit:Qe,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","index.vue"]]);export{pe as default};
1
+ import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as o,watch as s,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as g,toDisplayString as m,createCommentVNode as v,createElementVNode as C,Fragment as y,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as w,SettingsOutline as I,ChevronDown as L,ChevronForward as N,Checkmark as z,Close as j,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import J from"./directive/flexibleResize.js";import{root_isShowResetButton as M}from"./const/index.js";import A from"../../table-filter/src/hooks/useMixins.js";import E from"../../table-filter/src/hooks/useAdvanced.js";import T from"../../../_virtual/plugin-vue_export-helper.js";const R={key:0,class:"header"},F={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},oe={key:0,class:"main-wrapper"},se=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=T(e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>({})},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:T}){const pe=e,{handleGetConfigApi:ge}=A(),{transformClassifyChild:me}=E(),ve=i(),Ce=x(),ye=n(null);let ke=n(150),Se=n(!1),be=n([]),xe=n([]),Oe=n([]),_e=n(2),we=n({name:"全部数据",sid:"all_data"}),Ie=n([]),Le=n(""),Ne=n(!1),ze=n("全部数据");l(M,n(pe.isShowResetButton));let je=t((()=>0===_e.value?{marginRight:"8px"}:2===_e.value?{display:"inline-block"}:{})),Be=t((()=>{let e=xe.value.filter((e=>-1!==pe.conditionSid.indexOf(e.sid)));if(-1!==pe.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Pe=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ke(n,l)+i}));function Je(e){e.open?e.open=!1:e.open=!0}function Me(e,i,n){ze.value=e.name;let l=function(e){let i=[];return be.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,pe.conditionSid));Fe(!1);const t=me(null==e?void 0:e.conObj);T("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ae(){let e="";if(2===_e.value)e=0;else{let i=_e.value;e=++i}ke.value=150,Ee(e)}async function Ee(e,i){let n={tableId:pe.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await ge(n,"requestSaveListPersonaSetting",{},pe.filterApiConfig)&&T("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){Ne.value=!0,Fe(!1)}function Re(e){Ne.value=e}function Fe(e){Se.value=void 0===e?!Se.value:e}function We(){if(!pe.tableId)return Ce.warning("请传入tableId");be.value=[];let{displayCategoryList:e=[],conditionList:i=[]}=pe.conditionMap;Ie.value=JSON.parse(JSON.stringify(e))||[],Oe.value=JSON.parse(JSON.stringify(i)),xe.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i]));let n=[];var l;0===Ie.value.length&&(Ie.value=["未分类"]),Ie.value.forEach((e=>{let i={name:e,children:[]};xe.value.forEach((n=>{if(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid){if(-1!==pe.conditionSid.indexOf(n.sid)){n.selected=!0,i.open=!0;const e=me(null==n?void 0:n.conObj);T("changeSearch",!1,n,e)}n.isShow&&i.children.push(n)}})),i.children.length>0&&n.push(i)})),n.unshift({name:"全部数据",sid:"all_data"}),be.value=n,0===_e.value&&(l=!0,be.value.forEach((e=>{e.children&&e.children.length&&(e.open=l)})))}function qe({distance:e}){const i=ke.value+e;ke.value=Math.min(Math.max(i,50),650)}function Ge(){Ee(_e.value,ke.value)}async function Qe(){await He(pe.tableId),De()}async function $e(e){await He(pe.tableId),Ve()}function De(e){Ve(e).then((e=>({})))}function Ve(e,i={}){if(!pe.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(pe.conditionMap));return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){Oe.value=n.conditionList||[],Ie.value=n.displayCategoryList||[];let l={conditionList:Oe.value,displayCategoryList:Ie.value};T("getQuickSearchListObj",l),Le.value=n.settingId;const r=Oe.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=ve.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=ve.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=ve.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function He(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await ge(i,"requestTableCondiTionList",{},pe.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ke(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{o((()=>{let i=e.composedPath&&e.composedPath();ye.value&&i.includes(ye.value)||Fe(!1)}))}))})),s((()=>pe.tableId),(e=>{e&&De(!0)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationIndex),(e=>{void 0!==e&&(_e.value=e)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationWidth),(e=>{e&&(ke.value=Number(e)||150)}),{immediate:!0}),s((()=>pe.conditionMap),(e=>{!async function(){try{await We()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(_e)]),style:u(h(je))},[0===h(_e)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(ke)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",R,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),g(" "+m("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),g(" "+m("设置"))])):v("v-if",!0)])):v("v-if",!0),C("ul",F,[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[C("span",{class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[C("span",null,m(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,q),i.open?(d(!0),c(y,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",Q,m(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,G)])),default:b((()=>[C("span",null,m(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},m(i.name),11,W))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",$,[C("div",D,"已选择"+m(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[V,g(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:qe,onEnd:Ge}]]):v("v-if",!0),1===h(_e)?(d(),c(y,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Oe).filter((e=>e.isShow)).length>0?(d(),c("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",K,[C("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[g(" 全部数据 "),h(we).digital||0===h(we).digital?(d(),c(y,{key:0},[g(" ("+m(h(we).digital||0)+") ",1)],64)):v("v-if",!0)],2),C("div",U,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ae,style:{"margin-right":"30px"}},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),g(" "+m("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),g(" "+m("设置"))])):v("v-if",!0)])])):v("v-if",!0),C("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(y,null,k(h(be).slice(1),((e,i)=>(d(),c(y,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(y,{key:1},[C("span",Y,m(e.name),1),C("div",Z,[(d(!0),c(y,null,k(e.children,((i,n)=>(d(),c(y,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Me(i,0,e)},m(Ke(i.name,null==i?void 0:i.isPublic)),11,ee)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Me(e)},m(e.name)+" "+m(e.digital),11,X))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ie,[C("div",ne,"已选择"+m(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(y,null,k(h(be).slice(1),(e=>(d(),c(y,null,[e.children&&0!==e.children.length?(d(!0),c(y,{key:1},k(e.children,((i,n)=>(d(),c(y,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[g(m(i.name)+" ",1),p(h(O),{component:h(j),onClick:n=>Me(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[g(m(e.name)+" ",1),p(h(O),{component:h(j),onClick:i=>Me(e)},null,8,["component","onClick"])]))],64)))),256)),C("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[le,g(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(_e)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ye},[C("span",{class:"title",onClick:n[3]||(n[3]=()=>Fe())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[C("span",te,m(h(Be)),1)])),default:b((()=>[C("span",ae,m(h(Be)),1)])),_:1}),p(h(O),{component:h(Se)?h(B):h(L)},null,8,["component"])]),h(Se)?(d(),c("div",oe,[C("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[g(m(i.name)+m(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,ce)):v("v-if",!0),i.open?(d(!0),c(y,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",null,m(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,re)])),default:b((()=>[C("span",null,m(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c(y,{key:0},[C("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},m(i.name),11,se),C("div",de,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),g(" "+m("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),g(" "+m("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",he,[C("div",ue,"已选择"+m(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[fe,g(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(Oe),displayCategoryList:h(Ie),settingId:h(Le),tableId:e.tableId,classifyModal:h(Ne),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:$e,onCondiTionListInit:Qe,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","index.vue"]]);export{pe as default};
@@ -787,6 +787,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
787
787
  isCurrent?: boolean | undefined;
788
788
  isHover?: boolean | undefined;
789
789
  height?: number | undefined;
790
+ clickToCancel?: boolean | undefined;
790
791
  } | undefined;
791
792
  customConfig?: {
792
793
  storage?: boolean | {
@@ -3259,6 +3260,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
3259
3260
  isCurrent?: boolean | undefined;
3260
3261
  isHover?: boolean | undefined;
3261
3262
  height?: number | undefined;
3263
+ clickToCancel?: boolean | undefined;
3262
3264
  } | undefined;
3263
3265
  customConfig?: {
3264
3266
  storage?: boolean | {
@@ -786,6 +786,7 @@ declare const _default: import("vue").DefineComponent<{
786
786
  isCurrent?: boolean | undefined;
787
787
  isHover?: boolean | undefined;
788
788
  height?: number | undefined;
789
+ clickToCancel?: boolean | undefined;
789
790
  } | undefined;
790
791
  customConfig?: {
791
792
  storage?: boolean | {
@@ -3258,6 +3259,7 @@ declare const _default: import("vue").DefineComponent<{
3258
3259
  isCurrent?: boolean | undefined;
3259
3260
  isHover?: boolean | undefined;
3260
3261
  height?: number | undefined;
3262
+ clickToCancel?: boolean | undefined;
3261
3263
  } | undefined;
3262
3264
  customConfig?: {
3263
3265
  storage?: boolean | {
@@ -3,7 +3,9 @@ import { IhoTableHandlerContext, IhoTableConfig } from '../../../../../../es/com
3
3
  import { AbstractConfigHooks } from '../../../../../../es/components/iho-table/src/types';
4
4
  declare class ConfigHooks extends AbstractConfigHooks {
5
5
  readonly config: SyncWaterfallHook<[IhoTableConfig, IhoTableHandlerContext<true>], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
6
- readonly rowConfig: SyncWaterfallHook<[import("vxe-table").VxeTablePropTypes.RowConfig | undefined, IhoTableConfig, IhoTableHandlerContext<true>], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
6
+ readonly rowConfig: SyncWaterfallHook<[(import("vxe-table").VxeTablePropTypes.RowConfig & Partial<import("vxe-table").VxeTablePropTypes.RowConfig & {
7
+ clickToCancel: boolean;
8
+ }>) | undefined, IhoTableConfig, IhoTableHandlerContext<true>], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
7
9
  readonly editConfig: SyncWaterfallHook<[import("vxe-table").VxeTablePropTypes.EditConfig | undefined, IhoTableConfig, IhoTableHandlerContext<true>], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
8
10
  readonly columnConfig: SyncWaterfallHook<[(import("vxe-table").VxeTablePropTypes.ColumnConfig & {
9
11
  seqSlotFn: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
@@ -1 +1 @@
1
- import{onBeforeUnmount as e}from"vue";import"../../../index.js";import{defineTablePlugin as t}from"../../hooks/useTablePlugin.js";function o(){const o="rowClickPlugin",u=new Map;return t({name:o,apply(t){t.eventHooks.onCurrentChange.tap(o,((e,{uuid:t})=>{t&&u.set(t,!0)})),t.eventHooks.onCellClick.tap(o,(async({$table:e},{uuid:t})=>{t&&(u.get(t)?u.set(t,!1):e.clearCurrentRow())})),t.setupHooks.setup.tap(o,(t=>{e((()=>{t.value.uuid&&u.delete(t.value.uuid)}))}))}})}export{o as rowClickPlugin};
1
+ import{onBeforeUnmount as e}from"vue";import"../../../index.js";import{defineTablePlugin as o}from"../../hooks/useTablePlugin.js";function n(){const n="rowClickPlugin",u=new Map;return o({name:n,apply(o){o.eventHooks.onCurrentChange.tap(n,((e,{uuid:o,rowConfig:n})=>{o&&!1!==(null==n?void 0:n.clickToCancel)&&u.set(o,!0)})),o.eventHooks.onCellClick.tap(n,(async({$table:e},{uuid:o,rowConfig:n})=>{o&&!1!==(null==n?void 0:n.clickToCancel)&&(u.get(o)?u.set(o,!1):e.clearCurrentRow())})),o.setupHooks.setup.tap(n,(o=>{e((()=>{o.value.uuid&&u.delete(o.value.uuid)}))}))}})}export{n as rowClickPlugin};
@@ -21,6 +21,9 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
21
21
  selectType: Exclude<VxeTableDefines.ColumnInfo['type'], 'seq' | 'expand' | 'html'>;
22
22
  rowGroupSetting: Partial<Record<TupleToUnion<typeof IhoTableRowGroupSequence>, IhoTableRowGroupItem[]>>;
23
23
  anchorList: string[];
24
+ rowConfig: Partial<VxeTableProps['rowConfig'] & {
25
+ clickToCancel: boolean;
26
+ }>;
24
27
  columnConfig: {
25
28
  seqSlotFn: VxeColumnPropTypes.Slots['default'];
26
29
  };
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
6
6
  };
7
7
  value: {
8
8
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
9
- default: string[];
9
+ default: string;
10
10
  };
11
11
  multiple: {
12
12
  type: BooleanConstructor;
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  };
20
20
  value: {
21
21
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
22
- default: string[];
22
+ default: string;
23
23
  };
24
24
  multiple: {
25
25
  type: BooleanConstructor;
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
89
89
  };
90
90
  value: {
91
91
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
92
- default: string[];
92
+ default: string;
93
93
  };
94
94
  multiple: {
95
95
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:[""]},multiple:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const f=e,y=u({set(e){s("update:value",e)},get:()=>Array.isArray(f.value)?f.value:f.value?[f.value]:[]});function d(e){f.multiple||!Array.isArray(e)?y.value=e:y.value=function(e){return e.filter((e=>!y.value.includes(e)))}(e)[0]}return(u,s)=>(l(),a(r(n),t(u.$attrs,{value:r(y),"onUpdate:value":d}),{default:o((()=>[(l(!0),v(i,null,p(e.options,(e=>(l(),a(r(m),{key:e.value,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:1},16,["value"]))}}),[["__file","CheckboxGroup.vue"]]);export{f as default};
1
+ import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:""},multiple:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const f=e,y=u({set(e){s("update:value",e)},get:()=>Array.isArray(f.value)?f.value:f.value?[f.value]:[]});function d(e){f.multiple||!Array.isArray(e)?y.value=e:y.value=function(e){return e.filter((e=>!y.value.includes(e)))}(e)[0]}return(u,s)=>(l(),a(r(n),t(u.$attrs,{value:r(y),"onUpdate:value":d}),{default:o((()=>[(l(!0),v(i,null,p(e.options,(e=>(l(),a(r(m),{key:e.value,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:1},16,["value"]))}}),[["__file","CheckboxGroup.vue"]]);export{f as default};
@@ -86,7 +86,7 @@ export declare const WidgetCfgMaps: Map<string, {
86
86
  };
87
87
  value: {
88
88
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
89
- default: string[];
89
+ default: string;
90
90
  };
91
91
  multiple: {
92
92
  type: BooleanConstructor;
@@ -99,7 +99,7 @@ export declare const WidgetCfgMaps: Map<string, {
99
99
  };
100
100
  value: {
101
101
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
102
- default: string[];
102
+ default: string;
103
103
  };
104
104
  multiple: {
105
105
  type: BooleanConstructor;
@@ -169,7 +169,7 @@ export declare const WidgetCfgMaps: Map<string, {
169
169
  };
170
170
  value: {
171
171
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
172
- default: string[];
172
+ default: string;
173
173
  };
174
174
  multiple: {
175
175
  type: BooleanConstructor;
@@ -190,7 +190,7 @@ export declare const WidgetCfgMaps: Map<string, {
190
190
  valueFormat?: undefined;
191
191
  };
192
192
  style: {
193
- "line-height": string;
193
+ 'line-height': string;
194
194
  };
195
195
  handlerProps(props: any, { valueList, multiple }?: any): any;
196
196
  setDefaultValue: (defaultValue: any) => any;
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.1.42-beta.72",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.42-beta.72",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
1
+ var e="@cnhis-design-vue/shared",i="3.1.42-beta.74",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.42-beta.74",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
@@ -1 +1 @@
1
- import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as i,gt as c,gte as u,lt as s,lte as f,isObject as a,isNumber as x,isFunction as l}from"lodash-es";import{getCurrentInstance as d}from"vue";import m from"../package.json.js";function p(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",c){r=y(r),e=y(e);for(let u=0;u<e.length;u++){if(n(e[u],i,c),o)return;for(let i=0;i<r.length;i++){const c=e[u][r[i]];if(Array.isArray(c)&&t(c,n,r,c),o)return}}}(t,e,n,r)}function h(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&a(m)&&Reflect.set(t,"__cnhis_version",m.version),r?r():t.component(n,e))}function w(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function y(t){return Array.isArray(t)?t:[t]}function v(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const $=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),E=Object.seal(Object.create(null));function g(t,n){return function t(n,r){return a(n)?e(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((e,[n,o])=>(r.includes(n)||(a(o)&&!l(o)?e[n]=t(o,r):e[n]=o),e)),{}):n}(t,n)}function I(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function _(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(x(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function j(t,e){return t.some((t=>e.includes(t)))}const L=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function O(t,e){if(!a(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function S(t){if(!d())throw new Error(t||"can't use this hook out of setup environment")}const N={EQ:(t,e)=>`${t}`===e,NEQ:(t,e)=>`${t}`!==e,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:o,NOT_NULL:i(o),BIG:c,BIGEQ:u,LESS:s,LESSEQ:f};function A(t,e){return(N[e.con]||(()=>!1))(t,`${e.value}`)}function U(t,e=1){const[n,r,o,i,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const u=c&&parseInt(c,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(x(u)?u.toFixed(2):e)]}export{E as DMZ,y as arrayed,S as checkInSetupEnv,g as deepOmit,_ as findAncestor,w as generateTimeFormat,$ as getStringWidth,U as hex2rgba,A as isMatchLowCodeCondition,L as jsonParse,h as safeComponentRegister,I as separateMetaModule,O as shallowOmit,j as targetStringIncludes,p as traverse,v as uuidGenerator,b as widthAppend};
1
+ import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as i,gt as c,gte as u,lt as s,lte as f,isObject as a,isNumber as x,isFunction as l}from"lodash-es";import{getCurrentInstance as d}from"vue";import m from"../package.json.js";function p(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",c){r=y(r),e=y(e);for(let u=0;u<e.length;u++){if(n(e[u],i,c),o)return;for(let i=0;i<r.length;i++){const c=e[u][r[i]];if(Array.isArray(c)&&t(c,n,r,e[u]),o)return}}}(t,e,n,r)}function h(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&a(m)&&Reflect.set(t,"__cnhis_version",m.version),r?r():t.component(n,e))}function w(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function y(t){return Array.isArray(t)?t:[t]}function v(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const $=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),E=Object.seal(Object.create(null));function g(t,n){return function t(n,r){return a(n)?e(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((e,[n,o])=>(r.includes(n)||(a(o)&&!l(o)?e[n]=t(o,r):e[n]=o),e)),{}):n}(t,n)}function I(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function _(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(x(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function j(t,e){return t.some((t=>e.includes(t)))}const L=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function O(t,e){if(!a(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function S(t){if(!d())throw new Error(t||"can't use this hook out of setup environment")}const N={EQ:(t,e)=>`${t}`===e,NEQ:(t,e)=>`${t}`!==e,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:o,NOT_NULL:i(o),BIG:c,BIGEQ:u,LESS:s,LESSEQ:f};function A(t,e){return(N[e.con]||(()=>!1))(t,`${e.value}`)}function U(t,e=1){const[n,r,o,i,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const u=c&&parseInt(c,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(x(u)?u.toFixed(2):e)]}export{E as DMZ,y as arrayed,S as checkInSetupEnv,g as deepOmit,_ as findAncestor,w as generateTimeFormat,$ as getStringWidth,U as hex2rgba,A as isMatchLowCodeCondition,L as jsonParse,h as safeComponentRegister,I as separateMetaModule,O as shallowOmit,j as targetStringIncludes,p as traverse,v as uuidGenerator,b as widthAppend};
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
- {
2
- "name": "cnhis-design-vue",
3
- "version": "3.1.42-beta.72",
4
- "license": "ISC",
5
- "module": "./es/components/index.js",
6
- "main": "./es/components/index.js",
7
- "types": "./es/components/index.d.ts",
8
- "sideEffects": [
9
- "es/components/**/style/*",
10
- "es/components/*(.css,.less)"
11
- ],
12
- "files": [
13
- "es",
14
- "README.md"
15
- ],
16
- "peerDependencies": {
17
- "naive-ui": "^2.30.0",
18
- "vue": "^3.2.0",
19
- "vxe-table": "^4.2.5"
20
- },
21
- "dependencies": {
22
- "@formily/core": "2.1.9",
23
- "@formily/path": "2.1.9",
24
- "@formily/reactive": "2.1.9",
25
- "@formily/vue": "2.1.9",
26
- "@vicons/ionicons5": "^0.12.0",
27
- "@vueuse/core": "^8.6.0",
28
- "@vueuse/shared": "^8.6.0",
29
- "@wangeditor/editor": "^5.1.1",
30
- "@wangeditor/editor-for-vue": "^5.1.11",
31
- "axios": "^0.27.2",
32
- "bpmn-js": "^9.2.2",
33
- "bpmnlint-utils": "^1.0.2",
34
- "date-fns": "^2.29.1",
35
- "diagram-js": "^8.7.1",
36
- "ids": "^1.0.0",
37
- "inherits": "^2.0.4",
38
- "lodash": "^4.17.21",
39
- "lodash-es": "^4.17.21",
40
- "lodash-unified": "^1.0.2",
41
- "min-dash": "^3.8.1",
42
- "min-dom": "^3.2.1",
43
- "moment": "^2.29.1",
44
- "naive-ui": "^2.30.0",
45
- "sortablejs": "^1.15.0",
46
- "spark-md5": "^3.0.2",
47
- "tiny-svg": "^2.2.4",
48
- "v-viewer": "^3.0.10",
49
- "video.js": "^7.19.2",
50
- "videojs-contrib-hls": "^5.15.0",
51
- "viewerjs": "^1.10.5",
52
- "vue": "^3.2.0",
53
- "vue-simple-uploader": "^1.0.0-beta.5",
54
- "xe-utils": "^3.5.4"
55
- },
56
- "browserslist": [
57
- "defaults",
58
- "not ie < 8",
59
- "last 2 versions",
60
- "> 1%",
61
- "iOS 7",
62
- "last 3 iOS versions"
63
- ],
64
- "gitHead": "a8f7d7cdca3113620c2a7b0dbaf062673dfc51cc"
65
- }
1
+ {
2
+ "name": "cnhis-design-vue",
3
+ "version": "3.1.42-beta.74",
4
+ "license": "ISC",
5
+ "module": "./es/components/index.js",
6
+ "main": "./es/components/index.js",
7
+ "types": "./es/components/index.d.ts",
8
+ "sideEffects": [
9
+ "es/components/**/style/*",
10
+ "es/components/*(.css,.less)"
11
+ ],
12
+ "files": [
13
+ "es",
14
+ "README.md"
15
+ ],
16
+ "peerDependencies": {
17
+ "naive-ui": "^2.30.0",
18
+ "vue": "^3.2.0",
19
+ "vxe-table": "^4.2.5"
20
+ },
21
+ "dependencies": {
22
+ "@formily/core": "2.1.9",
23
+ "@formily/path": "2.1.9",
24
+ "@formily/reactive": "2.1.9",
25
+ "@formily/vue": "2.1.9",
26
+ "@vicons/ionicons5": "^0.12.0",
27
+ "@vueuse/core": "^8.6.0",
28
+ "@vueuse/shared": "^8.6.0",
29
+ "@wangeditor/editor": "^5.1.1",
30
+ "@wangeditor/editor-for-vue": "^5.1.11",
31
+ "axios": "^0.27.2",
32
+ "bpmn-js": "^9.2.2",
33
+ "bpmnlint-utils": "^1.0.2",
34
+ "date-fns": "^2.29.1",
35
+ "diagram-js": "^8.7.1",
36
+ "ids": "^1.0.0",
37
+ "inherits": "^2.0.4",
38
+ "lodash": "^4.17.21",
39
+ "lodash-es": "^4.17.21",
40
+ "lodash-unified": "^1.0.2",
41
+ "min-dash": "^3.8.1",
42
+ "min-dom": "^3.2.1",
43
+ "moment": "^2.29.1",
44
+ "naive-ui": "^2.30.0",
45
+ "sortablejs": "^1.15.0",
46
+ "spark-md5": "^3.0.2",
47
+ "tiny-svg": "^2.2.4",
48
+ "v-viewer": "^3.0.10",
49
+ "video.js": "^7.19.2",
50
+ "videojs-contrib-hls": "^5.15.0",
51
+ "viewerjs": "^1.10.5",
52
+ "vue": "^3.2.0",
53
+ "vue-simple-uploader": "^1.0.0-beta.5",
54
+ "xe-utils": "^3.5.4"
55
+ },
56
+ "browserslist": [
57
+ "defaults",
58
+ "not ie < 8",
59
+ "last 2 versions",
60
+ "> 1%",
61
+ "iOS 7",
62
+ "last 3 iOS versions"
63
+ ],
64
+ "gitHead": "3cf8fe39e9388efe1f9795d07063b57171849c1e"
65
+ }