giime 0.0.17 → 0.0.19

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 (112) hide show
  1. package/dist/index.css +34 -34
  2. package/es/api/basic/controller/default/postBasicV1AreaList.mjs.map +1 -1
  3. package/es/api/basic/controller/default/postBasicV1CategoryList.mjs.map +1 -1
  4. package/es/api/basic/controller/default/postBasicV1CountryList.mjs.map +1 -1
  5. package/es/api/basic/controller/default/postBasicV1CurrencyList.mjs.map +1 -1
  6. package/es/api/basic/controller/default/postBasicV1EmployeeList.mjs.map +1 -1
  7. package/es/api/basic/controller/default/postBasicV1ExchangeRateList.mjs.map +1 -1
  8. package/es/api/basic/controller/default/postBasicV1MenuList.mjs.map +1 -1
  9. package/es/api/basic/controller/default/postBasicV1OrgList.mjs.map +1 -1
  10. package/es/api/basic/controller/default/postBasicV1OrgTreeList.mjs.map +1 -1
  11. package/es/api/basic/controller/default/postBasicV1ProductList.mjs.map +1 -1
  12. package/es/api/basic/controller/default/postBasicV1RoleList.mjs.map +1 -1
  13. package/es/api/basic/controller/default/postBasicV1SalesList.mjs.map +1 -1
  14. package/es/api/basic/controller/default/postBasicV1SystemList.mjs.map +1 -1
  15. package/es/api/basic/controller/default/usePostBasicV1AreaList.mjs.map +1 -1
  16. package/es/api/basic/controller/default/usePostBasicV1CategoryList.mjs.map +1 -1
  17. package/es/api/basic/controller/default/usePostBasicV1CountryList.mjs.map +1 -1
  18. package/es/api/basic/controller/default/usePostBasicV1CurrencyList.mjs.map +1 -1
  19. package/es/api/basic/controller/default/usePostBasicV1EmployeeList.mjs.map +1 -1
  20. package/es/api/basic/controller/default/usePostBasicV1ExchangeRateList.mjs.map +1 -1
  21. package/es/api/basic/controller/default/usePostBasicV1MenuList.mjs.map +1 -1
  22. package/es/api/basic/controller/default/usePostBasicV1OrgList.mjs.map +1 -1
  23. package/es/api/basic/controller/default/usePostBasicV1OrgTreeList.mjs.map +1 -1
  24. package/es/api/basic/controller/default/usePostBasicV1ProductList.mjs.map +1 -1
  25. package/es/api/basic/controller/default/usePostBasicV1RoleList.mjs.map +1 -1
  26. package/es/api/basic/controller/default/usePostBasicV1SalesList.mjs.map +1 -1
  27. package/es/api/basic/controller/default/usePostBasicV1SystemList.mjs.map +1 -1
  28. package/es/api/shopAdmin/index.mjs +1 -0
  29. package/es/api/shopAdmin/index.mjs.map +1 -1
  30. package/es/api/shopAdmin/store/index.d.ts +1 -0
  31. package/es/api/shopAdmin/store/index.mjs +1 -0
  32. package/es/api/shopAdmin/store/index.mjs.map +1 -1
  33. package/es/api/shopAdmin/store/postPlatfirmList.d.ts +19 -0
  34. package/es/api/shopAdmin/store/postPlatfirmList.mjs +11 -0
  35. package/es/api/shopAdmin/store/postPlatfirmList.mjs.map +1 -0
  36. package/es/components/src/base/popover/Popover.vue2.mjs.map +1 -1
  37. package/es/components/src/composite/operateButton/operateButtonForm/OperateButtonForm.vue2.mjs +3 -3
  38. package/es/components/src/composite/operateButton/operateButtonForm/OperateButtonForm.vue2.mjs.map +1 -1
  39. package/es/components/src/composite/tablePro/tableColumnPro/index.mjs.map +1 -1
  40. package/es/components/src/composite/tablePro/tableHeaderForm/TableHeaderForm.vue2.mjs +3 -3
  41. package/es/components/src/composite/tablePro/tableHeaderForm/TableHeaderForm.vue2.mjs.map +1 -1
  42. package/es/giime/index.mjs +1 -0
  43. package/es/giime/index.mjs.map +1 -1
  44. package/es/giime/version.d.ts +1 -1
  45. package/es/giime/version.mjs +1 -1
  46. package/es/giime/version.mjs.map +1 -1
  47. package/es/hooks/index.mjs +1 -0
  48. package/es/hooks/index.mjs.map +1 -1
  49. package/es/hooks/store/index.d.ts +1 -0
  50. package/es/hooks/store/index.mjs +1 -0
  51. package/es/hooks/store/index.mjs.map +1 -1
  52. package/es/hooks/store/usePlatformList/index.d.ts +16 -0
  53. package/es/hooks/store/usePlatformList/index.mjs +42 -0
  54. package/es/hooks/store/usePlatformList/index.mjs.map +1 -0
  55. package/es/index.css +34 -34
  56. package/es/utils/src/objects.mjs.map +1 -1
  57. package/lib/api/basic/controller/default/postBasicV1AreaList.js.map +1 -1
  58. package/lib/api/basic/controller/default/postBasicV1CategoryList.js.map +1 -1
  59. package/lib/api/basic/controller/default/postBasicV1CountryList.js.map +1 -1
  60. package/lib/api/basic/controller/default/postBasicV1CurrencyList.js.map +1 -1
  61. package/lib/api/basic/controller/default/postBasicV1EmployeeList.js.map +1 -1
  62. package/lib/api/basic/controller/default/postBasicV1ExchangeRateList.js.map +1 -1
  63. package/lib/api/basic/controller/default/postBasicV1MenuList.js.map +1 -1
  64. package/lib/api/basic/controller/default/postBasicV1OrgList.js.map +1 -1
  65. package/lib/api/basic/controller/default/postBasicV1OrgTreeList.js.map +1 -1
  66. package/lib/api/basic/controller/default/postBasicV1ProductList.js.map +1 -1
  67. package/lib/api/basic/controller/default/postBasicV1RoleList.js.map +1 -1
  68. package/lib/api/basic/controller/default/postBasicV1SalesList.js.map +1 -1
  69. package/lib/api/basic/controller/default/postBasicV1SystemList.js.map +1 -1
  70. package/lib/api/basic/controller/default/usePostBasicV1AreaList.js.map +1 -1
  71. package/lib/api/basic/controller/default/usePostBasicV1CategoryList.js.map +1 -1
  72. package/lib/api/basic/controller/default/usePostBasicV1CountryList.js.map +1 -1
  73. package/lib/api/basic/controller/default/usePostBasicV1CurrencyList.js.map +1 -1
  74. package/lib/api/basic/controller/default/usePostBasicV1EmployeeList.js.map +1 -1
  75. package/lib/api/basic/controller/default/usePostBasicV1ExchangeRateList.js.map +1 -1
  76. package/lib/api/basic/controller/default/usePostBasicV1MenuList.js.map +1 -1
  77. package/lib/api/basic/controller/default/usePostBasicV1OrgList.js.map +1 -1
  78. package/lib/api/basic/controller/default/usePostBasicV1OrgTreeList.js.map +1 -1
  79. package/lib/api/basic/controller/default/usePostBasicV1ProductList.js.map +1 -1
  80. package/lib/api/basic/controller/default/usePostBasicV1RoleList.js.map +1 -1
  81. package/lib/api/basic/controller/default/usePostBasicV1SalesList.js.map +1 -1
  82. package/lib/api/basic/controller/default/usePostBasicV1SystemList.js.map +1 -1
  83. package/lib/api/shopAdmin/index.js +2 -0
  84. package/lib/api/shopAdmin/index.js.map +1 -1
  85. package/lib/api/shopAdmin/store/index.d.ts +1 -0
  86. package/lib/api/shopAdmin/store/index.js +2 -0
  87. package/lib/api/shopAdmin/store/index.js.map +1 -1
  88. package/lib/api/shopAdmin/store/postPlatfirmList.d.ts +19 -0
  89. package/lib/api/shopAdmin/store/postPlatfirmList.js +13 -0
  90. package/lib/api/shopAdmin/store/postPlatfirmList.js.map +1 -0
  91. package/lib/components/src/base/popover/Popover.vue2.js.map +1 -1
  92. package/lib/components/src/composite/operateButton/operateButtonForm/OperateButtonForm.vue2.js +2 -2
  93. package/lib/components/src/composite/operateButton/operateButtonForm/OperateButtonForm.vue2.js.map +1 -1
  94. package/lib/components/src/composite/tablePro/tableColumnPro/index.js.map +1 -1
  95. package/lib/components/src/composite/tablePro/tableHeaderForm/TableHeaderForm.vue2.js +2 -2
  96. package/lib/components/src/composite/tablePro/tableHeaderForm/TableHeaderForm.vue2.js.map +1 -1
  97. package/lib/giime/index.js +2 -0
  98. package/lib/giime/index.js.map +1 -1
  99. package/lib/giime/version.d.ts +1 -1
  100. package/lib/giime/version.js +1 -1
  101. package/lib/giime/version.js.map +1 -1
  102. package/lib/hooks/index.js +2 -0
  103. package/lib/hooks/index.js.map +1 -1
  104. package/lib/hooks/store/index.d.ts +1 -0
  105. package/lib/hooks/store/index.js +2 -0
  106. package/lib/hooks/store/index.js.map +1 -1
  107. package/lib/hooks/store/usePlatformList/index.d.ts +16 -0
  108. package/lib/hooks/store/usePlatformList/index.js +44 -0
  109. package/lib/hooks/store/usePlatformList/index.js.map +1 -0
  110. package/lib/index.css +34 -34
  111. package/lib/utils/src/objects.js.map +1 -1
  112. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1CategoryList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1CategoryList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1CategoryListResult, type PostBasicV1CategoryListInput } from \"./postBasicV1CategoryList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 产品分类\n * /basic/v1/category/list\n */\nexport function usePostBasicV1CategoryList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1CategoryListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1CategoryListResult>>(\n '/basic/v1/category/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input?: PostBasicV1CategoryListInput, axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,0BAAA,CAA2B,QAA6B,OAAwE,EAAA;AAC5I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,yBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAsC,WAAkC,EAAA;AAClF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1CategoryList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1CategoryList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1CategoryListResult, type PostBasicV1CategoryListInput } from \"./postBasicV1CategoryList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 产品分类\r\n * /basic/v1/category/list\r\n */\r\nexport function usePostBasicV1CategoryList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1CategoryListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1CategoryListResult>>(\r\n '/basic/v1/category/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(input?: PostBasicV1CategoryListInput, axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,0BAAA,CAA2B,QAA6B,OAAwE,EAAA;AAC5I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,yBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAsC,WAAkC,EAAA;AAClF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1CountryList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1CountryList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1CountryListResult } from \"./postBasicV1CountryList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 国家列表\n * /basic/v1/country/list\n */\nexport function usePostBasicV1CountryList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1CountryListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1CountryListResult>>(\n '/basic/v1/country/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute(axiosConfig);\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,yBAAA,CAA0B,QAA6B,OAAuE,EAAA;AAC1I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,wBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC5C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC7C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1CountryList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1CountryList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1CountryListResult } from \"./postBasicV1CountryList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 国家列表\r\n * /basic/v1/country/list\r\n */\r\nexport function usePostBasicV1CountryList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1CountryListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1CountryListResult>>(\r\n '/basic/v1/country/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute(axiosConfig);\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,yBAAA,CAA0B,QAA6B,OAAuE,EAAA;AAC1I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,wBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC5C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC7C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1CurrencyList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1CurrencyList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1CurrencyListResult, type PostBasicV1CurrencyListInput } from \"./postBasicV1CurrencyList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 币种列表\n * /basic/v1/currency/list\n */\nexport function usePostBasicV1CurrencyList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1CurrencyListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1CurrencyListResult>>(\n '/basic/v1/currency/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input?: PostBasicV1CurrencyListInput, axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,0BAAA,CAA2B,QAA6B,OAAwE,EAAA;AAC5I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,yBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAsC,WAAkC,EAAA;AAClF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1CurrencyList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1CurrencyList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1CurrencyListResult, type PostBasicV1CurrencyListInput } from \"./postBasicV1CurrencyList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 币种列表\r\n * /basic/v1/currency/list\r\n */\r\nexport function usePostBasicV1CurrencyList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1CurrencyListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1CurrencyListResult>>(\r\n '/basic/v1/currency/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(input?: PostBasicV1CurrencyListInput, axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,0BAAA,CAA2B,QAA6B,OAAwE,EAAA;AAC5I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,yBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAsC,WAAkC,EAAA;AAClF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1EmployeeList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1EmployeeList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1EmployeeListResult, type PostBasicV1EmployeeListInput } from \"./postBasicV1EmployeeList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 员工列表\n * /basic/v1/employee/list\n */\nexport function usePostBasicV1EmployeeList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1EmployeeListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1EmployeeListResult>>(\n '/basic/v1/employee/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input?: PostBasicV1EmployeeListInput, axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,0BAAA,CAA2B,QAA6B,OAAwE,EAAA;AAC5I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,yBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAsC,WAAkC,EAAA;AAClF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1EmployeeList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1EmployeeList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1EmployeeListResult, type PostBasicV1EmployeeListInput } from \"./postBasicV1EmployeeList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 员工列表\r\n * /basic/v1/employee/list\r\n */\r\nexport function usePostBasicV1EmployeeList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1EmployeeListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1EmployeeListResult>>(\r\n '/basic/v1/employee/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(input?: PostBasicV1EmployeeListInput, axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,0BAAA,CAA2B,QAA6B,OAAwE,EAAA;AAC5I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,yBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAsC,WAAkC,EAAA;AAClF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1ExchangeRateList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1ExchangeRateList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1ExchangeRateListResult, type PostBasicV1ExchangeRateListInput } from \"./postBasicV1ExchangeRateList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 汇率列表\n * /basic/v1/exchangeRate/list\n */\nexport function usePostBasicV1ExchangeRateList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1ExchangeRateListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1ExchangeRateListResult>>(\n '/basic/v1/exchangeRate/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input?: PostBasicV1ExchangeRateListInput, axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,8BAAA,CAA+B,QAA6B,OAA4E,EAAA;AACpJ,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,6BAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAA0C,WAAkC,EAAA;AACtF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1ExchangeRateList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1ExchangeRateList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1ExchangeRateListResult, type PostBasicV1ExchangeRateListInput } from \"./postBasicV1ExchangeRateList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 汇率列表\r\n * /basic/v1/exchangeRate/list\r\n */\r\nexport function usePostBasicV1ExchangeRateList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1ExchangeRateListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1ExchangeRateListResult>>(\r\n '/basic/v1/exchangeRate/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(input?: PostBasicV1ExchangeRateListInput, axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,8BAAA,CAA+B,QAA6B,OAA4E,EAAA;AACpJ,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,6BAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAA0C,WAAkC,EAAA;AACtF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1MenuList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1MenuList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1MenuListResult, type PostBasicV1MenuListInput } from \"./postBasicV1MenuList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 菜单分类\n * /basic/v1/menu/list\n */\nexport function usePostBasicV1MenuList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1MenuListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1MenuListResult>>(\n '/basic/v1/menu/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input?: PostBasicV1MenuListInput, axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,sBAAA,CAAuB,QAA6B,OAAoE,EAAA;AACpI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,qBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAkC,WAAkC,EAAA;AAC9E,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1MenuList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1MenuList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1MenuListResult, type PostBasicV1MenuListInput } from \"./postBasicV1MenuList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 菜单分类\r\n * /basic/v1/menu/list\r\n */\r\nexport function usePostBasicV1MenuList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1MenuListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1MenuListResult>>(\r\n '/basic/v1/menu/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(input?: PostBasicV1MenuListInput, axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,sBAAA,CAAuB,QAA6B,OAAoE,EAAA;AACpI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,qBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAkC,WAAkC,EAAA;AAC9E,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1OrgList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1OrgList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1OrgListResult } from \"./postBasicV1OrgList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 家族列表\n * /basic/v1/org/list\n */\nexport function usePostBasicV1OrgList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1OrgListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1OrgListResult>>(\n '/basic/v1/org/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute(axiosConfig);\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,qBAAA,CAAsB,QAA6B,OAAmE,EAAA;AAClI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,oBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC5C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC7C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1OrgList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1OrgList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1OrgListResult } from \"./postBasicV1OrgList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 家族列表\r\n * /basic/v1/org/list\r\n */\r\nexport function usePostBasicV1OrgList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1OrgListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1OrgListResult>>(\r\n '/basic/v1/org/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute(axiosConfig);\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,qBAAA,CAAsB,QAA6B,OAAmE,EAAA;AAClI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,oBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC5C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC7C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1OrgTreeList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1OrgTreeList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1OrgTreeListResult, type PostBasicV1OrgTreeListInput } from \"./postBasicV1OrgTreeList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 部门列表\n * /basic/v1/org/tree/list\n */\nexport function usePostBasicV1OrgTreeList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1OrgTreeListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1OrgTreeListResult>>(\n '/basic/v1/org/tree/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input?: PostBasicV1OrgTreeListInput, axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,yBAAA,CAA0B,QAA6B,OAAuE,EAAA;AAC1I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,yBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAqC,WAAkC,EAAA;AACjF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1OrgTreeList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1OrgTreeList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1OrgTreeListResult, type PostBasicV1OrgTreeListInput } from \"./postBasicV1OrgTreeList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 部门列表\r\n * /basic/v1/org/tree/list\r\n */\r\nexport function usePostBasicV1OrgTreeList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1OrgTreeListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1OrgTreeListResult>>(\r\n '/basic/v1/org/tree/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(input?: PostBasicV1OrgTreeListInput, axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,yBAAA,CAA0B,QAA6B,OAAuE,EAAA;AAC1I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,yBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAqC,WAAkC,EAAA;AACjF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1ProductList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1ProductList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1ProductListResult, type PostBasicV1ProductListInput } from \"./postBasicV1ProductList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 产品列表\n * /basic/v1/product/list\n */\nexport function usePostBasicV1ProductList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1ProductListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1ProductListResult>>(\n '/basic/v1/product/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input?: PostBasicV1ProductListInput, axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,yBAAA,CAA0B,QAA6B,OAAuE,EAAA;AAC1I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,wBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAqC,WAAkC,EAAA;AACjF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1ProductList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1ProductList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1ProductListResult, type PostBasicV1ProductListInput } from \"./postBasicV1ProductList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 产品列表\r\n * /basic/v1/product/list\r\n */\r\nexport function usePostBasicV1ProductList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1ProductListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1ProductListResult>>(\r\n '/basic/v1/product/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(input?: PostBasicV1ProductListInput, axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,yBAAA,CAA0B,QAA6B,OAAuE,EAAA;AAC1I,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,wBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAqC,WAAkC,EAAA;AACjF,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1RoleList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1RoleList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1RoleListResult } from \"./postBasicV1RoleList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 角色列表\n * /basic/v1/role/list\n */\nexport function usePostBasicV1RoleList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1RoleListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1RoleListResult>>(\n '/basic/v1/role/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute(axiosConfig);\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,sBAAA,CAAuB,QAA6B,OAAoE,EAAA;AACpI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,qBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC5C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC7C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1RoleList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1RoleList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1RoleListResult } from \"./postBasicV1RoleList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 角色列表\r\n * /basic/v1/role/list\r\n */\r\nexport function usePostBasicV1RoleList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1RoleListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1RoleListResult>>(\r\n '/basic/v1/role/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute(axiosConfig);\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,sBAAA,CAAuB,QAA6B,OAAoE,EAAA;AACpI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,qBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC5C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC7C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1SalesList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1SalesList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1SalesListResult, type PostBasicV1SalesListInput } from \"./postBasicV1SalesList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 商品列表\n * /basic/v1/sales/list\n */\nexport function usePostBasicV1SalesList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1SalesListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1SalesListResult>>(\n '/basic/v1/sales/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(input?: PostBasicV1SalesListInput, axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,uBAAA,CAAwB,QAA6B,OAAqE,EAAA;AACtI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,sBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAmC,WAAkC,EAAA;AAC/E,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1SalesList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1SalesList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1SalesListResult, type PostBasicV1SalesListInput } from \"./postBasicV1SalesList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 商品列表\r\n * /basic/v1/sales/list\r\n */\r\nexport function usePostBasicV1SalesList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1SalesListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1SalesListResult>>(\r\n '/basic/v1/sales/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(input?: PostBasicV1SalesListInput, axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute({ data: input, ...axiosConfig });\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,uBAAA,CAAwB,QAA6B,OAAqE,EAAA;AACtI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,sBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAS,SAAA,IAAA,CAAK,OAAmC,WAAkC,EAAA;AAC/E,IAAA,OAAO,eAAe,OAAQ,CAAA,EAAE,MAAM,KAAO,EAAA,GAAG,aAAa,CAAA,CAAA;AAAA,GACjE;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePostBasicV1SystemList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1SystemList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\nimport { type AxiosRequestConfig } from \"axios\";\nimport { type DeepRequired } from \"../../interface\";\nimport { type PostBasicV1SystemListResult } from \"./postBasicV1SystemList\";\nimport request from \"@giime/api/basic/request\";\n\n/**\n * 系统列表\n * /basic/v1/system/list\n */\nexport function usePostBasicV1SystemList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1SystemListResult>>) {\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1SystemListResult>>(\n '/basic/v1/system/list',\n { method: 'post', ...config },\n request,\n { immediate: false, ...options }\n )\n\n function exec(axiosConfig?: AxiosRequestConfig) {\n return useAxiosReturn.execute(axiosConfig);\n }\n return { ...useAxiosReturn, exec };\n}\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,wBAAA,CAAyB,QAA6B,OAAsE,EAAA;AACxI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,uBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC5C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC7C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"usePostBasicV1SystemList.js","sources":["../../../../../../../packages/api/basic/controller/default/usePostBasicV1SystemList.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from \"@vueuse/integrations/useAxios\";\r\nimport { type AxiosRequestConfig } from \"axios\";\r\nimport { type DeepRequired } from \"../../interface\";\r\nimport { type PostBasicV1SystemListResult } from \"./postBasicV1SystemList\";\r\nimport request from \"@giime/api/basic/request\";\r\n\r\n/**\r\n * 系统列表\r\n * /basic/v1/system/list\r\n */\r\nexport function usePostBasicV1SystemList(config?: AxiosRequestConfig, options?: UseAxiosOptions<DeepRequired<PostBasicV1SystemListResult>>) {\r\n const useAxiosReturn = useAxios<DeepRequired<PostBasicV1SystemListResult>>(\r\n '/basic/v1/system/list',\r\n { method: 'post', ...config },\r\n request,\r\n { immediate: false, ...options }\r\n )\r\n\r\n function exec(axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute(axiosConfig);\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AAUgB,SAAA,wBAAA,CAAyB,QAA6B,OAAsE,EAAA;AACxI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACnB,uBAAA;AAAA,IACA,EAAE,MAAA,EAAQ,MAAQ,EAAA,GAAG,MAAO,EAAA;AAAA,IAC5BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACnC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC5C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC7C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACrC;;;;"}
@@ -3,12 +3,14 @@
3
3
  require('./store/index.js');
4
4
  require('./repite/index.js');
5
5
  var postShopAdminStoreFilter = require('./store/postShopAdminStoreFilter.js');
6
+ var postPlatfirmList = require('./store/postPlatfirmList.js');
6
7
  var getPlatformLine = require('./store/getPlatformLine.js');
7
8
  var getRepiteFillter = require('./repite/getRepiteFillter.js');
8
9
 
9
10
 
10
11
 
11
12
  exports.postShopAdminStoreFilter = postShopAdminStoreFilter.postShopAdminStoreFilter;
13
+ exports.postPlatListApi = postPlatfirmList.postPlatListApi;
12
14
  exports.getPlatformLineApi = getPlatformLine.getPlatformLineApi;
13
15
  exports.getRepiteFillter = getRepiteFillter.getRepiteFillter;
14
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -1,2 +1,3 @@
1
1
  export * from './postShopAdminStoreFilter';
2
+ export * from './postPlatfirmList';
2
3
  export * from './getPlatformLine';
@@ -1,10 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var postShopAdminStoreFilter = require('./postShopAdminStoreFilter.js');
4
+ var postPlatfirmList = require('./postPlatfirmList.js');
4
5
  var getPlatformLine = require('./getPlatformLine.js');
5
6
 
6
7
 
7
8
 
8
9
  exports.postShopAdminStoreFilter = postShopAdminStoreFilter.postShopAdminStoreFilter;
10
+ exports.postPlatListApi = postPlatfirmList.postPlatListApi;
9
11
  exports.getPlatformLineApi = getPlatformLine.getPlatformLineApi;
10
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * 新接口请使用自动生成
3
+ */
4
+ export interface PostPlatformList {
5
+ code: number;
6
+ comment: string;
7
+ data: PostPlatformListResponseDatum[];
8
+ }
9
+ export interface PostPlatformListResponseDatum {
10
+ id: number;
11
+ name: string;
12
+ num: number;
13
+ platform: string;
14
+ web_name: string;
15
+ }
16
+ /**
17
+ * 三方平台列表
18
+ */
19
+ export declare function postPlatListApi(): Promise<import("axios").AxiosResponse<PostPlatformList, any>>;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var request = require('../request.js');
4
+
5
+ function postPlatListApi() {
6
+ return request.default({
7
+ url: "/shop-admin/store/configList",
8
+ method: "post"
9
+ });
10
+ }
11
+
12
+ exports.postPlatListApi = postPlatListApi;
13
+ //# sourceMappingURL=postPlatfirmList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postPlatfirmList.js","sources":["../../../../../../packages/api/shopAdmin/store/postPlatfirmList.ts"],"sourcesContent":["import request from '../request';\r\n/**\r\n * 新接口请使用自动生成\r\n */\r\nexport interface PostPlatformList {\r\n code: number;\r\n comment: string;\r\n data: PostPlatformListResponseDatum[];\r\n}\r\n\r\nexport interface PostPlatformListResponseDatum {\r\n id: number;\r\n name: string;\r\n num: number;\r\n platform: string;\r\n web_name: string;\r\n}\r\n\r\n/**\r\n * 三方平台列表\r\n */\r\nexport function postPlatListApi() {\r\n return request<PostPlatformList>({\r\n url: '/shop-admin/store/configList',\r\n method: 'post',\r\n });\r\n}\r\n"],"names":["request"],"mappings":";;;;AAqBO,SAAS,eAAkB,GAAA;AAChC,EAAA,OAAOA,eAA0B,CAAA;AAAA,IAC/B,GAAK,EAAA,8BAAA;AAAA,IACL,MAAQ,EAAA,MAAA;AAAA,GACT,CAAA,CAAA;AACH;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.vue2.js","sources":["../../../../../../../packages/components/src/base/popover/Popover.vue"],"sourcesContent":["<template>\n <el-popover\n v-bind=\"props\"\n @update:visible=\"onUpdateVisible\"\n @before-show=\"beforeEnter\"\n @before-hide=\"beforeLeave\"\n @show=\"afterEnter\"\n @hide=\"afterLeave\"\n >\n <template v-if=\"slots.reference\" #reference>\n <slot name=\"reference\" />\n </template>\n <template v-if=\"slots.default\" #default>\n <slot name=\"default\" />\n </template>\n </el-popover>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue';\n// import { getGmEvent } from '@giime/utils';\n// import { popoverEmits as elPopoverEmits } from 'element-plus';\nimport { popoverEmits, popoverProps } from './popover';\n\ndefineOptions({\n name: 'GmPopover',\n});\nconst slots = useSlots();\nconst props = defineProps(popoverProps);\nconst emit = defineEmits(popoverEmits);\n// 重发el的事件\n// const elEvents = getGmEvent(elPopoverEmits, emit);\nconst onUpdateVisible = computed(() => {\n return props['onUpdate:visible'];\n});\nconst beforeEnter = () => {\n emit('before-enter');\n};\nconst beforeLeave = () => {\n emit('before-leave');\n};\n\nconst afterEnter = () => {\n emit('after-enter');\n};\n\nconst afterLeave = () => {\n emit('after-leave');\n};\n// const elRef = ref<PopoverInstance>();\n// defineExpose({\n// elRef,\n// });\n</script>\n"],"names":["useSlots","computed"],"mappings":";;;;;;;;;;;;;;;AA0BA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AACvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAGb,IAAM,MAAA,eAAA,GAAkBC,aAAS,MAAM;AACrC,MAAA,OAAO,MAAM,kBAAkB,CAAA,CAAA;AAAA,KAChC,CAAA,CAAA;AACD,IAAA,MAAM,cAAc,MAAM;AACxB,MAAA,IAAA,CAAK,cAAc,CAAA,CAAA;AAAA,KACrB,CAAA;AACA,IAAA,MAAM,cAAc,MAAM;AACxB,MAAA,IAAA,CAAK,cAAc,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,IAAA,CAAK,aAAa,CAAA,CAAA;AAAA,KACpB,CAAA;AAEA,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,IAAA,CAAK,aAAa,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Popover.vue2.js","sources":["../../../../../../../packages/components/src/base/popover/Popover.vue"],"sourcesContent":["<template>\r\n <el-popover\r\n v-bind=\"props\"\r\n @update:visible=\"onUpdateVisible\"\r\n @before-show=\"beforeEnter\"\r\n @before-hide=\"beforeLeave\"\r\n @show=\"afterEnter\"\r\n @hide=\"afterLeave\"\r\n >\r\n <template v-if=\"slots.reference\" #reference>\r\n <slot name=\"reference\" />\r\n </template>\r\n <template v-if=\"slots.default\" #default>\r\n <slot name=\"default\" />\r\n </template>\r\n </el-popover>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { computed, useSlots } from 'vue';\r\n// import { getGmEvent } from '@giime/utils';\r\n// import { popoverEmits as elPopoverEmits } from 'element-plus';\r\nimport { popoverEmits, popoverProps } from './popover';\r\n\r\ndefineOptions({\r\n name: 'GmPopover',\r\n});\r\nconst slots = useSlots();\r\nconst props = defineProps(popoverProps);\r\nconst emit = defineEmits(popoverEmits);\r\n// 重发el的事件\r\n// const elEvents = getGmEvent(elPopoverEmits, emit);\r\nconst onUpdateVisible = computed(() => {\r\n return props['onUpdate:visible'];\r\n});\r\nconst beforeEnter = () => {\r\n emit('before-enter');\r\n};\r\nconst beforeLeave = () => {\r\n emit('before-leave');\r\n};\r\n\r\nconst afterEnter = () => {\r\n emit('after-enter');\r\n};\r\n\r\nconst afterLeave = () => {\r\n emit('after-leave');\r\n};\r\n// const elRef = ref<PopoverInstance>();\r\n// defineExpose({\r\n// elRef,\r\n// });\r\n</script>\r\n"],"names":["useSlots","computed"],"mappings":";;;;;;;;;;;;;;;AA0BA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AACvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAGb,IAAM,MAAA,eAAA,GAAkBC,aAAS,MAAM;AACrC,MAAA,OAAO,MAAM,kBAAkB,CAAA,CAAA;AAAA,KAChC,CAAA,CAAA;AACD,IAAA,MAAM,cAAc,MAAM;AACxB,MAAA,IAAA,CAAK,cAAc,CAAA,CAAA;AAAA,KACrB,CAAA;AACA,IAAA,MAAM,cAAc,MAAM;AACxB,MAAA,IAAA,CAAK,cAAc,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,IAAA,CAAK,aAAa,CAAA,CAAA;AAAA,KACpB,CAAA;AAEA,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,IAAA,CAAK,aAAa,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,6 +6,7 @@ var vue = require('vue');
6
6
  require('../../../../../hooks/index.js');
7
7
  var lodashEs = require('lodash-es');
8
8
  var core = require('@vueuse/core');
9
+ var iconsVue = require('@element-plus/icons-vue');
9
10
  var operateButtonForm = require('./operateButtonForm.js');
10
11
  var index = require('../../../../../hooks/store/useCustomSettings/index.js');
11
12
 
@@ -137,7 +138,6 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
137
138
  isInited
138
139
  });
139
140
  return (_ctx, _cache) => {
140
- const _component_i_ep_info_filled = vue.resolveComponent("i-ep-info-filled");
141
141
  const _component_gm_icon = vue.resolveComponent("gm-icon");
142
142
  const _component_gm_checkbox = vue.resolveComponent("gm-checkbox");
143
143
  const _component_gm_table_column = vue.resolveComponent("gm-table-column");
@@ -214,7 +214,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
214
214
  vue.createElementVNode("div", _hoisted_2, [
215
215
  vue.createVNode(_component_gm_icon, null, {
216
216
  default: vue.withCtx(() => [
217
- vue.createVNode(_component_i_ep_info_filled)
217
+ vue.createVNode(vue.unref(iconsVue.InfoFilled))
218
218
  ]),
219
219
  _: 1
220
220
  /* STABLE */
@@ -1 +1 @@
1
- {"version":3,"file":"OperateButtonForm.vue2.js","sources":["../../../../../../../../packages/components/src/composite/operateButton/operateButtonForm/OperateButtonForm.vue"],"sourcesContent":["<template>\r\n <gm-drawer v-model=\"isShowDrawer\" title=\"自定义按钮\" direction=\"rtl\" size=\"500px\" append-to-body destroy-on-close>\r\n <section\r\n class=\"drawer-alert gm-mb-4 gm-flex gm-items-center gm-justify-between gm-rounded gm-border gm-border-cyan-300 gm-bg-cyan-50 gm-px-4 gm-text-sm gm-leading-[40px] gm-text-[#777]\"\r\n >\r\n <div class=\"gm-flex gm-items-center\">\r\n <gm-icon><i-ep-info-filled /></gm-icon>\r\n <p class=\"gm-ml-2\">\r\n 已选中 <span class=\"gm-text-cyan-500\">{{ checkedNumber }}</span> 项\r\n </p>\r\n <b class=\"gm-ml-3 gm-text-orange-400\">点击按钮可修改当前按钮颜色!</b>\r\n </div>\r\n </section>\r\n <gm-table :data=\"clonedCustomBtnList\" :header-cell-style=\"{ background: '#F5F7FA', color: '#333' }\" style=\"width: 100%\">\r\n <gm-table-column align=\"left\" width=\"80\">\r\n <template #header>\r\n <gm-checkbox :model-value=\"checkedAll\" :indeterminate=\"isIndeterminate\" @change=\"handleCheckAllChange\" />\r\n </template>\r\n <template #default=\"{ row }: { row: OperateButtonProps }\">\r\n <gm-checkbox v-model=\"row.isShow\" />\r\n </template>\r\n </gm-table-column>\r\n <gm-table-column label=\"按钮\">\r\n <template #default=\"{ row, $index }: { row: OperateButtonProps; $index: number }\">\r\n <gm-popover v-model:visible=\"popoverVisibles[$index]\" placement=\"bottom\" :width=\"330\" trigger=\"click\">\r\n <template #reference>\r\n <gm-button :type=\"row.type || 'primary'\" link size=\"small\">\r\n {{ row.label }}\r\n </gm-button>\r\n </template>\r\n <div class=\"p-1\">\r\n <div class=\"text-[14px] gm-mb-2\">点击下列色块可修改按钮颜色</div>\r\n <gm-button type=\"primary\" size=\"small\" @click=\"setBtnType(row, $index, 'primary')\"> 蓝色 </gm-button>\r\n <gm-button type=\"success\" size=\"small\" @click=\"setBtnType(row, $index, 'success')\"> 绿色 </gm-button>\r\n <gm-button type=\"info\" size=\"small\" @click=\"setBtnType(row, $index, 'info')\"> 灰色 </gm-button>\r\n <gm-button type=\"warning\" size=\"small\" @click=\"setBtnType(row, $index, 'warning')\"> 橙色 </gm-button>\r\n <gm-button type=\"danger\" size=\"small\" @click=\"setBtnType(row, $index, 'danger')\"> 红色 </gm-button>\r\n </div>\r\n </gm-popover>\r\n </template>\r\n </gm-table-column>\r\n </gm-table>\r\n <template #footer>\r\n <div class=\"gm-flex gm-justify-between\">\r\n <div>\r\n <gm-button :loading=\"submitLoading\" type=\"primary\" size=\"default\" @click=\"onReset\">重置</gm-button>\r\n <gm-button :loading=\"submitLoading\" type=\"success\" size=\"default\" @click=\"onSyncRemote\">同步</gm-button>\r\n </div>\r\n <div>\r\n <gm-button :loading=\"submitLoading\" size=\"default\" @click=\"isShowDrawer = false\">取消</gm-button>\r\n <gm-button :loading=\"submitLoading\" type=\"primary\" size=\"default\" @click=\"onSubmit\">保存</gm-button>\r\n </div>\r\n </div>\r\n </template>\r\n </gm-drawer>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, onMounted, ref, watch } from 'vue';\r\nimport { useCustomSettingsStore } from '@giime/hooks';\r\nimport { cloneDeep } from 'lodash-es';\r\nimport { useCloned } from '@vueuse/core';\r\nimport { type CheckboxValueType } from 'element-plus';\r\nimport { operateButtonFormProps } from './operateButtonForm';\r\nimport type { OperateButtonProps } from '../operateButton';\r\n\r\ndefineOptions({\r\n name: 'GmOperateButtonForm',\r\n});\r\n/**\r\n * 抽屉显示\r\n */\r\nconst isShowDrawer = defineModel<boolean>('isShowDrawer', {\r\n required: true,\r\n});\r\n/**\r\n * 自定义按钮 props列表\r\n */\r\nconst customBtnPropsList = defineModel<OperateButtonProps[]>('customBtnPropsList', {\r\n required: true,\r\n});\r\n\r\nconst props = defineProps(operateButtonFormProps);\r\nconst customSettingsStore = useCustomSettingsStore();\r\n\r\n/**\r\n * 数据是否初始化完成\r\n */\r\nconst isInited = ref(false);\r\n/**内部克隆一份,当点击保存时 应用修改的内容 */\r\nconst { cloned: clonedCustomBtnList } = useCloned(customBtnPropsList);\r\n\r\nconst defaultPropsList = computed(() => cloneDeep(props.customDefaultPropsList));\r\n// 按钮弹出框显示隐藏\r\nconst popoverVisibles = ref<boolean[]>(defaultPropsList.value.map(() => false));\r\n// 根据props列表 初始化popo显示隐藏\r\nwatch(defaultPropsList, () => {\r\n popoverVisibles.value = defaultPropsList.value.map(() => false);\r\n});\r\n\r\n// 重新打开弹窗时, 克隆一份新数据\r\nwatch(isShowDrawer, newValue => {\r\n if (newValue) {\r\n clonedCustomBtnList.value = cloneDeep(customBtnPropsList.value);\r\n }\r\n});\r\n\r\nconst customSettingsValue = computed<OperateButtonProps[]>(() => customSettingsStore.customSettings[props.keyWord]?.[props.type] || []);\r\nconst { cloned: clonedStore } = useCloned(customSettingsValue);\r\n\r\nconst updateOperate = () => {\r\n customBtnPropsList.value = clonedCustomBtnList.value;\r\n};\r\n\r\nconst initOperate = async () => {\r\n await customSettingsStore.getCustomSettings({ key_word: props.keyWord, type: props.type }, { defaultValue: [] });\r\n clonedCustomBtnList.value = defaultPropsList.value.map(it => {\r\n const findItem = clonedStore.value.find(v => v.prop === it.prop);\r\n if (findItem) {\r\n it.isShow = findItem.isShow;\r\n it.type = findItem.type;\r\n }\r\n return it;\r\n });\r\n\r\n updateOperate();\r\n isInited.value = true;\r\n};\r\n\r\n// 已选中条数\r\nconst checkedNumber = computed(() => {\r\n return clonedCustomBtnList.value.filter(v => v.isShow).length;\r\n});\r\n// 全选\r\nconst checkedAll = computed(() => clonedCustomBtnList.value.every(v => v.isShow));\r\n// 半选\r\nconst isIndeterminate = computed(() => !checkedAll.value && clonedCustomBtnList.value.some(v => v.isShow));\r\n// 切换全选\r\nconst handleCheckAllChange = (val: CheckboxValueType) => {\r\n clonedCustomBtnList.value.forEach(v => {\r\n v.isShow = Boolean(val);\r\n });\r\n};\r\n\r\n// 设置按钮颜色\r\nconst setBtnType = (item: OperateButtonProps, index: number, type: OperateButtonProps['type']) => {\r\n item.type = type;\r\n popoverVisibles.value[index] = false;\r\n};\r\n\r\nconst submitLoading = ref(false);\r\n// 保存\r\nconst onSubmit = async () => {\r\n try {\r\n submitLoading.value = true;\r\n const { data } = await customSettingsStore.addCustomSettings({\r\n key_word: props.keyWord,\r\n value: JSON.stringify(clonedCustomBtnList.value),\r\n type: props.type,\r\n });\r\n submitLoading.value = false;\r\n if (data.code !== 0) {\r\n return;\r\n }\r\n isShowDrawer.value = false;\r\n updateOperate();\r\n } catch (e) {\r\n console.error(e);\r\n submitLoading.value = false;\r\n }\r\n};\r\n\r\n// 重置\r\nconst onReset = () => {\r\n clonedCustomBtnList.value = cloneDeep(props.customDefaultPropsList);\r\n};\r\n\r\n/**同步远程设置 */\r\nconst onSyncRemote = async () => {\r\n try {\r\n submitLoading.value = true;\r\n await customSettingsStore.syncRemoteSetting({\r\n key_word: props.keyWord,\r\n type: props.type,\r\n });\r\n submitLoading.value = false;\r\n } catch (e) {\r\n console.error(e);\r\n submitLoading.value = false;\r\n }\r\n};\r\n\r\nonMounted(() => {\r\n initOperate();\r\n});\r\ndefineExpose({\r\n isInited,\r\n});\r\n</script>\r\n"],"names":["_useModel","useCustomSettingsStore","ref","useCloned","computed","cloneDeep","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,IAAM,MAAA,YAAA,GAAeA,YAAqB,CAAA,OAAA,EAAA,cAEzC,CAAA,CAAA;AAID,IAAM,MAAA,kBAAA,GAAqBA,YAAiC,CAAA,OAAA,EAAC,oBAE5D,CAAA,CAAA;AAED,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,sBAAsBC,4BAAuB,EAAA,CAAA;AAKnD,IAAM,MAAA,QAAA,GAAWC,QAAI,KAAK,CAAA,CAAA;AAE1B,IAAA,MAAM,EAAE,MAAA,EAAQ,mBAAoB,EAAA,GAAIC,eAAU,kBAAkB,CAAA,CAAA;AAEpE,IAAA,MAAM,mBAAmBC,YAAS,CAAA,MAAMC,kBAAU,CAAA,KAAA,CAAM,sBAAsB,CAAC,CAAA,CAAA;AAE/E,IAAA,MAAM,kBAAkBH,OAAe,CAAA,gBAAA,CAAiB,MAAM,GAAI,CAAA,MAAM,KAAK,CAAC,CAAA,CAAA;AAE9E,IAAAI,SAAA,CAAM,kBAAkB,MAAM;AAC5B,MAAA,eAAA,CAAgB,KAAQ,GAAA,gBAAA,CAAiB,KAAM,CAAA,GAAA,CAAI,MAAM,KAAK,CAAA,CAAA;AAAA,KAC/D,CAAA,CAAA;AAGD,IAAAA,SAAA,CAAM,cAAc,CAAY,QAAA,KAAA;AAC9B,MAAA,IAAI,QAAU,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"OperateButtonForm.vue2.js","sources":["../../../../../../../../packages/components/src/composite/operateButton/operateButtonForm/OperateButtonForm.vue"],"sourcesContent":["<template>\r\n <gm-drawer v-model=\"isShowDrawer\" title=\"自定义按钮\" direction=\"rtl\" size=\"500px\" append-to-body destroy-on-close>\r\n <section\r\n class=\"drawer-alert gm-mb-4 gm-flex gm-items-center gm-justify-between gm-rounded gm-border gm-border-cyan-300 gm-bg-cyan-50 gm-px-4 gm-text-sm gm-leading-[40px] gm-text-[#777]\"\r\n >\r\n <div class=\"gm-flex gm-items-center\">\r\n <gm-icon><InfoFilled /></gm-icon>\r\n <p class=\"gm-ml-2\">\r\n 已选中 <span class=\"gm-text-cyan-500\">{{ checkedNumber }}</span> 项\r\n </p>\r\n <b class=\"gm-ml-3 gm-text-orange-400\">点击按钮可修改当前按钮颜色!</b>\r\n </div>\r\n </section>\r\n <gm-table :data=\"clonedCustomBtnList\" :header-cell-style=\"{ background: '#F5F7FA', color: '#333' }\" style=\"width: 100%\">\r\n <gm-table-column align=\"left\" width=\"80\">\r\n <template #header>\r\n <gm-checkbox :model-value=\"checkedAll\" :indeterminate=\"isIndeterminate\" @change=\"handleCheckAllChange\" />\r\n </template>\r\n <template #default=\"{ row }: { row: OperateButtonProps }\">\r\n <gm-checkbox v-model=\"row.isShow\" />\r\n </template>\r\n </gm-table-column>\r\n <gm-table-column label=\"按钮\">\r\n <template #default=\"{ row, $index }: { row: OperateButtonProps; $index: number }\">\r\n <gm-popover v-model:visible=\"popoverVisibles[$index]\" placement=\"bottom\" :width=\"330\" trigger=\"click\">\r\n <template #reference>\r\n <gm-button :type=\"row.type || 'primary'\" link size=\"small\">\r\n {{ row.label }}\r\n </gm-button>\r\n </template>\r\n <div class=\"p-1\">\r\n <div class=\"text-[14px] gm-mb-2\">点击下列色块可修改按钮颜色</div>\r\n <gm-button type=\"primary\" size=\"small\" @click=\"setBtnType(row, $index, 'primary')\"> 蓝色 </gm-button>\r\n <gm-button type=\"success\" size=\"small\" @click=\"setBtnType(row, $index, 'success')\"> 绿色 </gm-button>\r\n <gm-button type=\"info\" size=\"small\" @click=\"setBtnType(row, $index, 'info')\"> 灰色 </gm-button>\r\n <gm-button type=\"warning\" size=\"small\" @click=\"setBtnType(row, $index, 'warning')\"> 橙色 </gm-button>\r\n <gm-button type=\"danger\" size=\"small\" @click=\"setBtnType(row, $index, 'danger')\"> 红色 </gm-button>\r\n </div>\r\n </gm-popover>\r\n </template>\r\n </gm-table-column>\r\n </gm-table>\r\n <template #footer>\r\n <div class=\"gm-flex gm-justify-between\">\r\n <div>\r\n <gm-button :loading=\"submitLoading\" type=\"primary\" size=\"default\" @click=\"onReset\">重置</gm-button>\r\n <gm-button :loading=\"submitLoading\" type=\"success\" size=\"default\" @click=\"onSyncRemote\">同步</gm-button>\r\n </div>\r\n <div>\r\n <gm-button :loading=\"submitLoading\" size=\"default\" @click=\"isShowDrawer = false\">取消</gm-button>\r\n <gm-button :loading=\"submitLoading\" type=\"primary\" size=\"default\" @click=\"onSubmit\">保存</gm-button>\r\n </div>\r\n </div>\r\n </template>\r\n </gm-drawer>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, onMounted, ref, watch } from 'vue';\r\nimport { useCustomSettingsStore } from '@giime/hooks';\r\nimport { cloneDeep } from 'lodash-es';\r\nimport { useCloned } from '@vueuse/core';\r\nimport { type CheckboxValueType } from 'element-plus';\r\nimport { InfoFilled } from '@element-plus/icons-vue';\r\nimport { operateButtonFormProps } from './operateButtonForm';\r\nimport type { OperateButtonProps } from '../operateButton';\r\n\r\ndefineOptions({\r\n name: 'GmOperateButtonForm',\r\n});\r\n/**\r\n * 抽屉显示\r\n */\r\nconst isShowDrawer = defineModel<boolean>('isShowDrawer', {\r\n required: true,\r\n});\r\n/**\r\n * 自定义按钮 props列表\r\n */\r\nconst customBtnPropsList = defineModel<OperateButtonProps[]>('customBtnPropsList', {\r\n required: true,\r\n});\r\n\r\nconst props = defineProps(operateButtonFormProps);\r\nconst customSettingsStore = useCustomSettingsStore();\r\n\r\n/**\r\n * 数据是否初始化完成\r\n */\r\nconst isInited = ref(false);\r\n/**内部克隆一份,当点击保存时 应用修改的内容 */\r\nconst { cloned: clonedCustomBtnList } = useCloned(customBtnPropsList);\r\n\r\nconst defaultPropsList = computed(() => cloneDeep(props.customDefaultPropsList));\r\n// 按钮弹出框显示隐藏\r\nconst popoverVisibles = ref<boolean[]>(defaultPropsList.value.map(() => false));\r\n// 根据props列表 初始化popo显示隐藏\r\nwatch(defaultPropsList, () => {\r\n popoverVisibles.value = defaultPropsList.value.map(() => false);\r\n});\r\n\r\n// 重新打开弹窗时, 克隆一份新数据\r\nwatch(isShowDrawer, newValue => {\r\n if (newValue) {\r\n clonedCustomBtnList.value = cloneDeep(customBtnPropsList.value);\r\n }\r\n});\r\n\r\nconst customSettingsValue = computed<OperateButtonProps[]>(() => customSettingsStore.customSettings[props.keyWord]?.[props.type] || []);\r\nconst { cloned: clonedStore } = useCloned(customSettingsValue);\r\n\r\nconst updateOperate = () => {\r\n customBtnPropsList.value = clonedCustomBtnList.value;\r\n};\r\n\r\nconst initOperate = async () => {\r\n await customSettingsStore.getCustomSettings({ key_word: props.keyWord, type: props.type }, { defaultValue: [] });\r\n clonedCustomBtnList.value = defaultPropsList.value.map(it => {\r\n const findItem = clonedStore.value.find(v => v.prop === it.prop);\r\n if (findItem) {\r\n it.isShow = findItem.isShow;\r\n it.type = findItem.type;\r\n }\r\n return it;\r\n });\r\n\r\n updateOperate();\r\n isInited.value = true;\r\n};\r\n\r\n// 已选中条数\r\nconst checkedNumber = computed(() => {\r\n return clonedCustomBtnList.value.filter(v => v.isShow).length;\r\n});\r\n// 全选\r\nconst checkedAll = computed(() => clonedCustomBtnList.value.every(v => v.isShow));\r\n// 半选\r\nconst isIndeterminate = computed(() => !checkedAll.value && clonedCustomBtnList.value.some(v => v.isShow));\r\n// 切换全选\r\nconst handleCheckAllChange = (val: CheckboxValueType) => {\r\n clonedCustomBtnList.value.forEach(v => {\r\n v.isShow = Boolean(val);\r\n });\r\n};\r\n\r\n// 设置按钮颜色\r\nconst setBtnType = (item: OperateButtonProps, index: number, type: OperateButtonProps['type']) => {\r\n item.type = type;\r\n popoverVisibles.value[index] = false;\r\n};\r\n\r\nconst submitLoading = ref(false);\r\n// 保存\r\nconst onSubmit = async () => {\r\n try {\r\n submitLoading.value = true;\r\n const { data } = await customSettingsStore.addCustomSettings({\r\n key_word: props.keyWord,\r\n value: JSON.stringify(clonedCustomBtnList.value),\r\n type: props.type,\r\n });\r\n submitLoading.value = false;\r\n if (data.code !== 0) {\r\n return;\r\n }\r\n isShowDrawer.value = false;\r\n updateOperate();\r\n } catch (e) {\r\n console.error(e);\r\n submitLoading.value = false;\r\n }\r\n};\r\n\r\n// 重置\r\nconst onReset = () => {\r\n clonedCustomBtnList.value = cloneDeep(props.customDefaultPropsList);\r\n};\r\n\r\n/**同步远程设置 */\r\nconst onSyncRemote = async () => {\r\n try {\r\n submitLoading.value = true;\r\n await customSettingsStore.syncRemoteSetting({\r\n key_word: props.keyWord,\r\n type: props.type,\r\n });\r\n submitLoading.value = false;\r\n } catch (e) {\r\n console.error(e);\r\n submitLoading.value = false;\r\n }\r\n};\r\n\r\nonMounted(() => {\r\n initOperate();\r\n});\r\ndefineExpose({\r\n isInited,\r\n});\r\n</script>\r\n"],"names":["_useModel","useCustomSettingsStore","ref","useCloned","computed","cloneDeep","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEA,IAAM,MAAA,YAAA,GAAeA,YAAqB,CAAA,OAAA,EAAA,cAEzC,CAAA,CAAA;AAID,IAAM,MAAA,kBAAA,GAAqBA,YAAiC,CAAA,OAAA,EAAC,oBAE5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Y;AAC/B,MAAI,IAAA;AACF,QAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AACtB,QAAA,MAAM,oBAAoB,iBAAkB,CAAA;AAAA,UAC1C,UAAU,KAAM,CAAA,OAAA;AAAA,UAChB,MAAM,KAAM,CAAA,IAAA;AAAA,SACb,CAAA,CAAA;AACD,QAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AAAA,eACf,CAAG,EAAA;AACV,QAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,QAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AAAA,OACxB;AAAA,KACF,CAAA;AAEA,IAAAE,aAAA,CAAU,MAAM;AACd,MAAY,WAAA,EAAA,CAAA;AAAA,KACb,CAAA,CAAA;AACD,IAAa,QAAA,CAAA;AAAA,MACX,QAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../packages/components/src/composite/tablePro/tableColumnPro/index.ts"],"sourcesContent":["import { withInstall } from '@giime/utils';\nimport TableColumnPro from './TableColumnPro.vue';\n\nexport const GmTableColumnPro = withInstall(TableColumnPro);\nexport type TableColumnProInstance = InstanceType<typeof TableColumnPro>;\nexport * from './tableColumnPro';\nexport default GmTableColumnPro;\n"],"names":["withInstall","TableColumnPro"],"mappings":";;;;;;;;;AAGa,MAAA,gBAAA,GAAmBA,oBAAYC,sBAAc;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../packages/components/src/composite/tablePro/tableColumnPro/index.ts"],"sourcesContent":["import { withInstall } from '@giime/utils';\r\nimport TableColumnPro from './TableColumnPro.vue';\r\n\r\nexport const GmTableColumnPro = withInstall(TableColumnPro);\r\nexport type TableColumnProInstance = InstanceType<typeof TableColumnPro>;\r\nexport * from './tableColumnPro';\r\nexport default GmTableColumnPro;\r\n"],"names":["withInstall","TableColumnPro"],"mappings":";;;;;;;;;AAGa,MAAA,gBAAA,GAAmBA,oBAAYC,sBAAc;;;;;;;"}
@@ -6,6 +6,7 @@ var vue = require('vue');
6
6
  var core = require('@vueuse/core');
7
7
  require('../../../../../hooks/index.js');
8
8
  var lodashEs = require('lodash-es');
9
+ var iconsVue = require('@element-plus/icons-vue');
9
10
  var tableHeaderForm = require('./tableHeaderForm.js');
10
11
  var index = require('../../../../../hooks/store/useCustomSettings/index.js');
11
12
 
@@ -116,7 +117,6 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
116
117
  submitSettings
117
118
  });
118
119
  return (_ctx, _cache) => {
119
- const _component_i_ep_info_filled = vue.resolveComponent("i-ep-info-filled");
120
120
  const _component_gm_icon = vue.resolveComponent("gm-icon");
121
121
  const _component_gm_checkbox = vue.resolveComponent("gm-checkbox");
122
122
  const _component_gm_table_column = vue.resolveComponent("gm-table-column");
@@ -193,7 +193,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
193
193
  vue.createElementVNode("div", _hoisted_2, [
194
194
  vue.createVNode(_component_gm_icon, null, {
195
195
  default: vue.withCtx(() => [
196
- vue.createVNode(_component_i_ep_info_filled)
196
+ vue.createVNode(vue.unref(iconsVue.InfoFilled))
197
197
  ]),
198
198
  _: 1
199
199
  /* STABLE */
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeaderForm.vue2.js","sources":["../../../../../../../../packages/components/src/composite/tablePro/tableHeaderForm/TableHeaderForm.vue"],"sourcesContent":["<template>\r\n <gm-drawer v-model=\"isShowDrawer\" title=\"自定义表头\" direction=\"rtl\" size=\"600px\" append-to-body destroy-on-close>\r\n <section\r\n class=\"drawer-alert gm-mb-4 gm-flex gm-items-center gm-justify-between gm-rounded gm-border gm-border-cyan-300 gm-bg-cyan-50 gm-px-4 gm-text-sm gm-text-[#777]\"\r\n >\r\n <div class=\"gm-flex gm-items-center gm-py-3\">\r\n <gm-icon><i-ep-info-filled /></gm-icon>\r\n <p class=\"gm-ml-2\">\r\n 已选中 <span class=\"gm-text-cyan-500\">{{ checkedNumber }}</span> 项\r\n </p>\r\n </div>\r\n </section>\r\n <gm-table :data=\"clonedColPropsList\" :header-cell-style=\"{ background: '#F5F7FA', color: '#333' }\" style=\"width: 100%\">\r\n <gm-table-column align=\"left\" width=\"80\">\r\n <template #header>\r\n <gm-checkbox :model-value=\"checkedAll\" :indeterminate=\"isIndeterminate\" @change=\"handleCheckAllChange\" />\r\n </template>\r\n <template #default=\"{ row }: { row: TableColumnProProps }\">\r\n <gm-checkbox v-model=\"row.isShow\" :disabled=\"row.type === 'edit'\" />\r\n </template>\r\n </gm-table-column>\r\n <gm-table-column label=\"列名\" prop=\"label\">\r\n <template #default=\"{ row }: { row: TableColumnProProps }\">\r\n {{ row.type === 'edit' ? '操作' : row.label }}\r\n </template>\r\n </gm-table-column>\r\n <gm-table-column label=\"列宽\">\r\n <template #default=\"{ row }: { row: TableColumnProProps; $index: number }\">\r\n <gm-input v-model=\"row.width\" class=\"gm-w-[120px]\" placeholder=\"设置宽度\" clearable />\r\n </template>\r\n </gm-table-column>\r\n </gm-table>\r\n <template #footer>\r\n <div class=\"gm-flex gm-justify-between\">\r\n <div>\r\n <gm-button :loading=\"submitLoading\" type=\"primary\" size=\"default\" @click=\"onReset\">重置</gm-button>\r\n <gm-button :loading=\"submitLoading\" type=\"success\" size=\"default\" @click=\"onSyncRemote\">同步</gm-button>\r\n </div>\r\n <div>\r\n <gm-button :loading=\"submitLoading\" size=\"default\" @click=\"isShowDrawer = false\">取消</gm-button>\r\n <gm-button :loading=\"submitLoading\" type=\"primary\" size=\"default\" @click=\"submitSettings\">保存</gm-button>\r\n </div>\r\n </div>\r\n </template>\r\n </gm-drawer>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, onMounted, ref, watch } from 'vue';\r\nimport { useCloned } from '@vueuse/core';\r\nimport { useCustomSettingsStore } from '@giime/hooks';\r\nimport { cloneDeep } from 'lodash-es';\r\nimport { tableHeaderFormProps } from './tableHeaderForm';\r\nimport type { CheckboxValueType } from 'element-plus';\r\nimport type { TableColumnProProps } from '../tableColumnPro/tableColumnPro';\r\n\r\ndefineOptions({\r\n name: 'GmTableHeaderForm',\r\n});\r\nconst props = defineProps(tableHeaderFormProps);\r\n\r\n/**抽屉显示 */\r\nconst isShowDrawer = defineModel<boolean>('isShowDrawer', {\r\n required: true,\r\n});\r\n\r\n/**自定义按钮 props列表 */\r\nconst colPropsList = defineModel<TableColumnProProps[]>('colPropsList', {\r\n required: true,\r\n});\r\nconst customSettingsStore = useCustomSettingsStore();\r\n\r\n/**\r\n * 数据是否初始化完成\r\n */\r\nconst isInited = ref(false);\r\n/**内部克隆一份,当点击保存时 应用修改的内容 */\r\nconst { cloned: clonedColPropsList } = useCloned(colPropsList);\r\nconst defaultPropsList = computed(() => cloneDeep(props.colDefaultPropsList));\r\n// 重新打开弹窗时, 克隆一份新数据\r\nwatch(isShowDrawer, newValue => {\r\n if (newValue) {\r\n clonedColPropsList.value = cloneDeep(colPropsList.value);\r\n }\r\n});\r\nconst customSettingsValue = computed<TableColumnProProps[]>(() => customSettingsStore.customSettings[props.keyWord]?.[props.type] || []);\r\nconst { cloned: clonedStore } = useCloned(customSettingsValue);\r\n\r\n// 更新选中数据\r\nconst updateColumns = () => {\r\n colPropsList.value = clonedColPropsList.value;\r\n};\r\n// 初始化数据\r\nconst initColumns = async () => {\r\n await customSettingsStore.getCustomSettings({ key_word: props.keyWord, type: props.type }, { defaultValue: [] });\r\n clonedColPropsList.value = defaultPropsList.value.map(it => {\r\n const findItem = clonedStore.value.find(v => v.prop === it.prop);\r\n if (findItem) {\r\n it.isShow = findItem.isShow;\r\n it.width = findItem.width;\r\n // it.type = findItem.type;\r\n }\r\n return it;\r\n });\r\n\r\n updateColumns();\r\n isInited.value = true;\r\n};\r\n\r\n// 已选中条数\r\nconst checkedNumber = computed(() => {\r\n return clonedColPropsList.value.filter(v => v.isShow).length;\r\n});\r\n// 全选\r\nconst checkedAll = computed(() => clonedColPropsList.value.filter(it => it.type !== 'edit').every(v => v.isShow));\r\n// 半选\r\nconst isIndeterminate = computed(() => !checkedAll.value && clonedColPropsList.value.filter(it => it.type !== 'edit').some(v => v.isShow));\r\n// 切换全选\r\nconst handleCheckAllChange = (val: CheckboxValueType) => {\r\n clonedColPropsList.value.forEach(v => {\r\n if (v.type !== 'edit') {\r\n v.isShow = Boolean(val);\r\n }\r\n });\r\n};\r\nconst submitLoading = ref(false);\r\n// 保存\r\nconst submitSettings = async () => {\r\n try {\r\n submitLoading.value = true;\r\n const { data } = await customSettingsStore.addCustomSettings({\r\n key_word: props.keyWord,\r\n value: JSON.stringify(clonedColPropsList.value),\r\n type: props.type,\r\n });\r\n submitLoading.value = false;\r\n if (data.code !== 0) {\r\n return;\r\n }\r\n // isShowDrawer.value = false;\r\n updateColumns();\r\n } catch (e) {\r\n console.error(e);\r\n submitLoading.value = false;\r\n }\r\n};\r\n/**同步远程设置 */\r\nconst onSyncRemote = async () => {\r\n try {\r\n submitLoading.value = true;\r\n await customSettingsStore.syncRemoteSetting({\r\n key_word: props.keyWord,\r\n type: props.type,\r\n });\r\n submitLoading.value = false;\r\n } catch (e) {\r\n console.error(e);\r\n submitLoading.value = false;\r\n }\r\n};\r\n// 重置\r\nconst onReset = () => {\r\n clonedColPropsList.value = cloneDeep(props.colDefaultPropsList);\r\n};\r\n\r\nonMounted(() => {\r\n initColumns();\r\n});\r\ndefineExpose({\r\n isInited,\r\n submitSettings,\r\n});\r\n</script>\r\n"],"names":["_useModel","useCustomSettingsStore","ref","useCloned","computed","cloneDeep","watch","onMounted"],"mappings":";;;;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MAAM,CAAC,CAAA,CAAA;AACf,QAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AAAA,OACxB;AAAA,KACF,CAAA;AAEA,IAAA,MAAM,UAAU,MAAM;AACpB,MAAmB,kBAAA,CAAA,KAAA,GAAQG,kBAAU,CAAA,KAAA,CAAM,mBAAmB,CAAA,CAAA;AAAA,KAChE,CAAA;AAEA,IAAAE,aAAA,CAAU,MAAM;AACd,MAAY,WAAA,EAAA,CAAA;AAAA,KACb,CAAA,CAAA;AACD,IAAa,QAAA,CAAA;AAAA,MACX,QAAA;AAAA,MACA,cAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"TableHeaderForm.vue2.js","sources":["../../../../../../../../packages/components/src/composite/tablePro/tableHeaderForm/TableHeaderForm.vue"],"sourcesContent":["<template>\r\n <gm-drawer v-model=\"isShowDrawer\" title=\"自定义表头\" direction=\"rtl\" size=\"600px\" append-to-body destroy-on-close>\r\n <section\r\n class=\"drawer-alert gm-mb-4 gm-flex gm-items-center gm-justify-between gm-rounded gm-border gm-border-cyan-300 gm-bg-cyan-50 gm-px-4 gm-text-sm gm-text-[#777]\"\r\n >\r\n <div class=\"gm-flex gm-items-center gm-py-3\">\r\n <gm-icon><InfoFilled /></gm-icon>\r\n <p class=\"gm-ml-2\">\r\n 已选中 <span class=\"gm-text-cyan-500\">{{ checkedNumber }}</span> 项\r\n </p>\r\n </div>\r\n </section>\r\n <gm-table :data=\"clonedColPropsList\" :header-cell-style=\"{ background: '#F5F7FA', color: '#333' }\" style=\"width: 100%\">\r\n <gm-table-column align=\"left\" width=\"80\">\r\n <template #header>\r\n <gm-checkbox :model-value=\"checkedAll\" :indeterminate=\"isIndeterminate\" @change=\"handleCheckAllChange\" />\r\n </template>\r\n <template #default=\"{ row }: { row: TableColumnProProps }\">\r\n <gm-checkbox v-model=\"row.isShow\" :disabled=\"row.type === 'edit'\" />\r\n </template>\r\n </gm-table-column>\r\n <gm-table-column label=\"列名\" prop=\"label\">\r\n <template #default=\"{ row }: { row: TableColumnProProps }\">\r\n {{ row.type === 'edit' ? '操作' : row.label }}\r\n </template>\r\n </gm-table-column>\r\n <gm-table-column label=\"列宽\">\r\n <template #default=\"{ row }: { row: TableColumnProProps; $index: number }\">\r\n <gm-input v-model=\"row.width\" class=\"gm-w-[120px]\" placeholder=\"设置宽度\" clearable />\r\n </template>\r\n </gm-table-column>\r\n </gm-table>\r\n <template #footer>\r\n <div class=\"gm-flex gm-justify-between\">\r\n <div>\r\n <gm-button :loading=\"submitLoading\" type=\"primary\" size=\"default\" @click=\"onReset\">重置</gm-button>\r\n <gm-button :loading=\"submitLoading\" type=\"success\" size=\"default\" @click=\"onSyncRemote\">同步</gm-button>\r\n </div>\r\n <div>\r\n <gm-button :loading=\"submitLoading\" size=\"default\" @click=\"isShowDrawer = false\">取消</gm-button>\r\n <gm-button :loading=\"submitLoading\" type=\"primary\" size=\"default\" @click=\"submitSettings\">保存</gm-button>\r\n </div>\r\n </div>\r\n </template>\r\n </gm-drawer>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, onMounted, ref, watch } from 'vue';\r\nimport { useCloned } from '@vueuse/core';\r\nimport { useCustomSettingsStore } from '@giime/hooks';\r\nimport { cloneDeep } from 'lodash-es';\r\nimport { InfoFilled } from '@element-plus/icons-vue';\r\nimport { tableHeaderFormProps } from './tableHeaderForm';\r\nimport type { CheckboxValueType } from 'element-plus';\r\nimport type { TableColumnProProps } from '../tableColumnPro/tableColumnPro';\r\n\r\ndefineOptions({\r\n name: 'GmTableHeaderForm',\r\n});\r\nconst props = defineProps(tableHeaderFormProps);\r\n\r\n/**抽屉显示 */\r\nconst isShowDrawer = defineModel<boolean>('isShowDrawer', {\r\n required: true,\r\n});\r\n\r\n/**自定义按钮 props列表 */\r\nconst colPropsList = defineModel<TableColumnProProps[]>('colPropsList', {\r\n required: true,\r\n});\r\nconst customSettingsStore = useCustomSettingsStore();\r\n\r\n/**\r\n * 数据是否初始化完成\r\n */\r\nconst isInited = ref(false);\r\n/**内部克隆一份,当点击保存时 应用修改的内容 */\r\nconst { cloned: clonedColPropsList } = useCloned(colPropsList);\r\nconst defaultPropsList = computed(() => cloneDeep(props.colDefaultPropsList));\r\n// 重新打开弹窗时, 克隆一份新数据\r\nwatch(isShowDrawer, newValue => {\r\n if (newValue) {\r\n clonedColPropsList.value = cloneDeep(colPropsList.value);\r\n }\r\n});\r\nconst customSettingsValue = computed<TableColumnProProps[]>(() => customSettingsStore.customSettings[props.keyWord]?.[props.type] || []);\r\nconst { cloned: clonedStore } = useCloned(customSettingsValue);\r\n\r\n// 更新选中数据\r\nconst updateColumns = () => {\r\n colPropsList.value = clonedColPropsList.value;\r\n};\r\n// 初始化数据\r\nconst initColumns = async () => {\r\n await customSettingsStore.getCustomSettings({ key_word: props.keyWord, type: props.type }, { defaultValue: [] });\r\n clonedColPropsList.value = defaultPropsList.value.map(it => {\r\n const findItem = clonedStore.value.find(v => v.prop === it.prop);\r\n if (findItem) {\r\n it.isShow = findItem.isShow;\r\n it.width = findItem.width;\r\n // it.type = findItem.type;\r\n }\r\n return it;\r\n });\r\n\r\n updateColumns();\r\n isInited.value = true;\r\n};\r\n\r\n// 已选中条数\r\nconst checkedNumber = computed(() => {\r\n return clonedColPropsList.value.filter(v => v.isShow).length;\r\n});\r\n// 全选\r\nconst checkedAll = computed(() => clonedColPropsList.value.filter(it => it.type !== 'edit').every(v => v.isShow));\r\n// 半选\r\nconst isIndeterminate = computed(() => !checkedAll.value && clonedColPropsList.value.filter(it => it.type !== 'edit').some(v => v.isShow));\r\n// 切换全选\r\nconst handleCheckAllChange = (val: CheckboxValueType) => {\r\n clonedColPropsList.value.forEach(v => {\r\n if (v.type !== 'edit') {\r\n v.isShow = Boolean(val);\r\n }\r\n });\r\n};\r\nconst submitLoading = ref(false);\r\n// 保存\r\nconst submitSettings = async () => {\r\n try {\r\n submitLoading.value = true;\r\n const { data } = await customSettingsStore.addCustomSettings({\r\n key_word: props.keyWord,\r\n value: JSON.stringify(clonedColPropsList.value),\r\n type: props.type,\r\n });\r\n submitLoading.value = false;\r\n if (data.code !== 0) {\r\n return;\r\n }\r\n // isShowDrawer.value = false;\r\n updateColumns();\r\n } catch (e) {\r\n console.error(e);\r\n submitLoading.value = false;\r\n }\r\n};\r\n/**同步远程设置 */\r\nconst onSyncRemote = async () => {\r\n try {\r\n submitLoading.value = true;\r\n await customSettingsStore.syncRemoteSetting({\r\n key_word: props.keyWord,\r\n type: props.type,\r\n });\r\n submitLoading.value = false;\r\n } catch (e) {\r\n console.error(e);\r\n submitLoading.value = false;\r\n }\r\n};\r\n// 重置\r\nconst onReset = () => {\r\n clonedColPropsList.value = cloneDeep(props.colDefaultPropsList);\r\n};\r\n\r\nonMounted(() => {\r\n initColumns();\r\n});\r\ndefineExpose({\r\n isInited,\r\n submitSettings,\r\n});\r\n</script>\r\n"],"names":["_useModel","useCustomSettingsStore","ref","useCloned","computed","cloneDeep","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAM,MAAA,YAAA,GAAeA,YAAqB,CAAA,OAAA,EAAA,cAEzC,CAAA,CAAA;AAGD,IAAM,MAAA,YAAA,GAAeA,YAAmC,CAAA,OAAA,EAAA,cAEvD,CAAA,CAAA;AACD,IAAA,MAAM,sBAAsBC,4BAAuB,EAAA,CAAA;AAKnD,IAAM,MAAA,QAAA,GAAWC,QAAI,KAAK,CAAA,CAAA;AAE1B,IAAA,MAAM,EAAE,MAAA,EAAQ,kBAAmB,EAAA,GAAIC,eAAU,YAAY,CAAA,CAAA;AAC7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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -271,6 +271,7 @@ var index$23 = require('../hooks/store/useOrgUserList/index.js');
271
271
  var index$24 = require('../hooks/store/useAliCategoryList/index.js');
272
272
  var index$25 = require('../hooks/store/useCompanyCategoryList/index.js');
273
273
  var index$26 = require('../hooks/store/useRepiteFilter/index.js');
274
+ var index$27 = require('../hooks/store/usePlatformList/index.js');
274
275
 
275
276
  const install = defaults.default.install;
276
277
  const version = defaults.default.version;
@@ -671,6 +672,7 @@ exports.useOrgUserListStore = index$23.useOrgUserListStore;
671
672
  exports.useAliCategoryListStore = index$24.useAliCategoryListStore;
672
673
  exports.useCompanyCategoryListStore = index$25.useCompanyCategoryListStore;
673
674
  exports.useRepiteFilterStore = index$26.useRepiteFilterStore;
675
+ exports.usePlatformListStore = index$27.usePlatformListStore;
674
676
  exports.install = install;
675
677
  exports.version = version;
676
678
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAUA,gBAAU,CAAA,QAAA;AAC1B,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAUA,gBAAU,CAAA,QAAA;AAC1B,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- export declare const version = "0.0.17";
1
+ export declare const version = "0.0.19";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.0.16";
3
+ const version = "0.0.18";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.16';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.18';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
@@ -14,6 +14,7 @@ var index$8 = require('./store/useOrgUserList/index.js');
14
14
  var index$9 = require('./store/useAliCategoryList/index.js');
15
15
  var index$a = require('./store/useCompanyCategoryList/index.js');
16
16
  var index$b = require('./store/useRepiteFilter/index.js');
17
+ var index$c = require('./store/usePlatformList/index.js');
17
18
 
18
19
 
19
20
 
@@ -29,4 +30,5 @@ exports.useOrgUserListStore = index$8.useOrgUserListStore;
29
30
  exports.useAliCategoryListStore = index$9.useAliCategoryListStore;
30
31
  exports.useCompanyCategoryListStore = index$a.useCompanyCategoryListStore;
31
32
  exports.useRepiteFilterStore = index$b.useRepiteFilterStore;
33
+ exports.usePlatformListStore = index$c.usePlatformListStore;
32
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -9,3 +9,4 @@ export * from './useOrgUserList';
9
9
  export * from './useAliCategoryList';
10
10
  export * from './useCompanyCategoryList';
11
11
  export * from './useRepiteFilter';
12
+ export * from './usePlatformList';
@@ -11,6 +11,7 @@ var index$6 = require('./useOrgUserList/index.js');
11
11
  var index$7 = require('./useAliCategoryList/index.js');
12
12
  var index$8 = require('./useCompanyCategoryList/index.js');
13
13
  var index$9 = require('./useRepiteFilter/index.js');
14
+ var index$a = require('./usePlatformList/index.js');
14
15
 
15
16
 
16
17
 
@@ -24,4 +25,5 @@ exports.useOrgUserListStore = index$6.useOrgUserListStore;
24
25
  exports.useAliCategoryListStore = index$7.useAliCategoryListStore;
25
26
  exports.useCompanyCategoryListStore = index$8.useCompanyCategoryListStore;
26
27
  exports.useRepiteFilterStore = index$9.useRepiteFilterStore;
28
+ exports.usePlatformListStore = index$a.usePlatformListStore;
27
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ /// <reference types="@vueuse/shared" />
2
+ import type { PostPlatformListResponseDatum } from '../../../api/shopAdmin';
3
+ /**三方平台列表 */
4
+ export declare const usePlatformListStore: import("pinia").StoreDefinition<"gmPlatformList", import("pinia")._UnwrapAll<Pick<{
5
+ platformList: import("@vueuse/shared").RemovableRef<PostPlatformListResponseDatum[]>;
6
+ isLoading: import("vue").Ref<boolean>;
7
+ getPlatformList: () => Promise<void>;
8
+ }, "isLoading" | "platformList">>, Pick<{
9
+ platformList: import("@vueuse/shared").RemovableRef<PostPlatformListResponseDatum[]>;
10
+ isLoading: import("vue").Ref<boolean>;
11
+ getPlatformList: () => Promise<void>;
12
+ }, never>, Pick<{
13
+ platformList: import("@vueuse/shared").RemovableRef<PostPlatformListResponseDatum[]>;
14
+ isLoading: import("vue").Ref<boolean>;
15
+ getPlatformList: () => Promise<void>;
16
+ }, "getPlatformList">>;
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var pinia = require('pinia');
5
+ require('../../../api/shopAdmin/index.js');
6
+ var core = require('@vueuse/core');
7
+ var postPlatfirmList = require('../../../api/shopAdmin/store/postPlatfirmList.js');
8
+
9
+ const usePlatformListStore = pinia.defineStore("gmPlatformList", () => {
10
+ const platformList = core.useSessionStorage("gmPlatformList", [], { listenToStorageChanges: false });
11
+ const isLoading = vue.ref(false);
12
+ const getPlatformList = async () => {
13
+ if (platformList.value.length !== 0) {
14
+ isLoading.value = false;
15
+ return;
16
+ }
17
+ if (isLoading.value) {
18
+ return;
19
+ }
20
+ try {
21
+ isLoading.value = true;
22
+ const { data } = await postPlatfirmList.postPlatListApi();
23
+ isLoading.value = false;
24
+ if (data.code !== 0) {
25
+ return;
26
+ }
27
+ platformList.value = data.data;
28
+ } catch (e) {
29
+ console.error(e);
30
+ isLoading.value = false;
31
+ }
32
+ };
33
+ vue.onMounted(() => {
34
+ getPlatformList();
35
+ });
36
+ return {
37
+ platformList,
38
+ isLoading,
39
+ getPlatformList
40
+ };
41
+ });
42
+
43
+ exports.usePlatformListStore = usePlatformListStore;
44
+ //# sourceMappingURL=index.js.map