hy-dispatch-ui-v3 0.2.61 → 0.2.62

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 (66) hide show
  1. package/dist/tailwind.css +66 -0
  2. package/es/api/device.mjs +18 -0
  3. package/es/api/index.mjs +1 -1
  4. package/es/api/sypct.mjs +18 -0
  5. package/es/api/task.mjs +18 -0
  6. package/es/bussiness/hyMapAearchPlace/index.mjs +6 -0
  7. package/es/bussiness/hyMapAearchPlace/js/index.mjs +653 -0
  8. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +347 -0
  9. package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +99 -0
  10. package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
  11. package/es/bussiness/index.mjs +1 -0
  12. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +22 -3
  13. package/es/components/hyButton/style/button.scss +1 -1
  14. package/es/components/hyConfigProvider/configProvider.vue.mjs +4 -0
  15. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +2 -2
  16. package/es/components/hyDialog/dialog.vue.mjs +24 -4
  17. package/es/components/hyForm/cpns/locationSelect.vue.mjs +3 -1
  18. package/es/components/hyMap/map.vue.mjs +10 -3
  19. package/es/components/hySearch/cpns/searchItem.vue.mjs +17 -1
  20. package/es/components/hyTable/table.vue.mjs +8 -1
  21. package/es/components/hyTableForm/batchTableForm.vue.mjs +36 -59
  22. package/es/components/hyTableForm/js/index.mjs +8 -58
  23. package/es/components/hyTableForm/tableForm.vue.mjs +9 -3
  24. package/es/hooks/index.mjs +1 -0
  25. package/es/hooks/useGlobalConfig.mjs +5 -0
  26. package/es/hooks/useMapConfig.mjs +18 -0
  27. package/es/index.mjs +2 -0
  28. package/es/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
  29. package/es/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
  30. package/es/style/element/hy-element.scss +10 -1
  31. package/es/utils/form.mjs +5 -1
  32. package/es/utils/map/js/webgis.mjs +1 -1
  33. package/es/version.mjs +1 -1
  34. package/lib/api/device.js +20 -0
  35. package/lib/api/index.js +1 -1
  36. package/lib/api/sypct.js +20 -0
  37. package/lib/api/task.js +20 -0
  38. package/lib/bussiness/hyMapAearchPlace/index.js +11 -0
  39. package/lib/bussiness/hyMapAearchPlace/js/index.js +655 -0
  40. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +351 -0
  41. package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +103 -0
  42. package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
  43. package/lib/bussiness/index.js +2 -0
  44. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +22 -3
  45. package/lib/components/hyButton/style/button.scss +1 -1
  46. package/lib/components/hyConfigProvider/configProvider.vue.js +4 -0
  47. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +2 -2
  48. package/lib/components/hyDialog/dialog.vue.js +23 -3
  49. package/lib/components/hyForm/cpns/locationSelect.vue.js +3 -1
  50. package/lib/components/hyMap/map.vue.js +10 -3
  51. package/lib/components/hySearch/cpns/searchItem.vue.js +16 -0
  52. package/lib/components/hyTable/table.vue.js +8 -1
  53. package/lib/components/hyTableForm/batchTableForm.vue.js +33 -56
  54. package/lib/components/hyTableForm/js/index.js +7 -58
  55. package/lib/components/hyTableForm/tableForm.vue.js +8 -2
  56. package/lib/hooks/index.js +3 -0
  57. package/lib/hooks/useGlobalConfig.js +5 -0
  58. package/lib/hooks/useMapConfig.js +21 -0
  59. package/lib/index.js +31 -26
  60. package/lib/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
  61. package/lib/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
  62. package/lib/style/element/hy-element.scss +10 -1
  63. package/lib/utils/form.js +4 -0
  64. package/lib/utils/map/js/webgis.js +1 -0
  65. package/lib/version.js +1 -1
  66. package/package.json +1 -1
package/es/utils/form.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { unref } from 'vue';
2
- import { isString, isArray, isEmpty, isFunction, isObject, isBoolean } from './is.mjs';
2
+ import { isString, isArray, isFunction, isEmpty, isObject, isBoolean } from './is.mjs';
3
3
  import { useLocale } from '../hooks/useLocale.mjs';
4
4
 
5
5
  function getValueByProp(model, prop) {
@@ -113,6 +113,10 @@ const columnLabelHandler = (column, model) => {
113
113
  function columnPlaceholderHandler(column, model) {
114
114
  const { t } = useLocale();
115
115
  const { type, attrs = {} } = column || {};
116
+ if (isFunction(attrs.placeholder)) {
117
+ const placeholder2 = unref(attrs.placeholder);
118
+ return placeholder2(column, model);
119
+ }
116
120
  const label = columnLabelHandler(column, model);
117
121
  let placeholder = attrs.placeholder;
118
122
  switch (type) {
@@ -150,4 +150,4 @@ function WGS84ToGCJ02(wgLat, wgLon) {
150
150
  return marsPoint;
151
151
  }
152
152
 
153
- export { BD09ToGCJ02, BD09ToWGS84, GCJ02ToBD09, GCJ02ToWGS84, WGS84ToBD09, WGS84ToGCJ02, exportCoordinate, importCoordinate };
153
+ export { BD09ToGCJ02, BD09ToWGS84, GCJ02ToBD09, GCJ02ToWGS84, WGS84ToBD09, WGS84ToGCJ02, exportCoordinate, getCoordinate, importCoordinate };
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.60";
1
+ const version = "0.2.61";
2
2
 
3
3
  export { version };
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var useLocale = require('../hooks/useLocale.js');
5
+ var useApi = require('../hooks/useApi.js');
6
+
7
+ function detailApi(deviceId) {
8
+ return new Promise((resolve, reject) => {
9
+ const { t } = useLocale.useLocale();
10
+ const { api } = useApi.useApi();
11
+ const http = vue.unref(api);
12
+ http.post("device/detail", { deviceId }).then((res) => {
13
+ resolve(res);
14
+ }).catch((res) => {
15
+ reject(new Error(t("interfaceError")));
16
+ });
17
+ });
18
+ }
19
+
20
+ exports.detailApi = detailApi;
package/lib/api/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
- var useApi = require('../hooks/useApi.js');
5
4
  var useLocale = require('../hooks/useLocale.js');
5
+ var useApi = require('../hooks/useApi.js');
6
6
 
7
7
  const { t } = useLocale.useLocale();
8
8
  function selectApi(controller, params) {
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var useLocale = require('../hooks/useLocale.js');
5
+ var useApi = require('../hooks/useApi.js');
6
+
7
+ function unbindCphmTaskApi(params) {
8
+ return new Promise((resolve, reject) => {
9
+ const { t } = useLocale.useLocale();
10
+ const { api } = useApi.useApi();
11
+ const http = vue.unref(api);
12
+ http.post("sypct/task/cphmUnBind", params).then((res) => {
13
+ resolve(res);
14
+ }).catch((res) => {
15
+ reject(new Error(t("interfaceError")));
16
+ });
17
+ });
18
+ }
19
+
20
+ exports.unbindCphmTaskApi = unbindCphmTaskApi;
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var useLocale = require('../hooks/useLocale.js');
5
+ var useApi = require('../hooks/useApi.js');
6
+
7
+ function childTaskFindAllApi(params) {
8
+ return new Promise((resolve, reject) => {
9
+ const { t } = useLocale.useLocale();
10
+ const { api } = useApi.useApi();
11
+ const http = vue.unref(api);
12
+ http.post("gdwj/task/taskOrg/childTaskFindAll", params).then((res) => {
13
+ resolve(res);
14
+ }).catch((res) => {
15
+ reject(new Error(t("interfaceError")));
16
+ });
17
+ });
18
+ }
19
+
20
+ exports.childTaskFindAllApi = childTaskFindAllApi;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var mapAearchPlace = require('./mapAearchPlace.vue.js');
6
+ var handler = require('../../utils/handler.js');
7
+
8
+ const HyMapAearchPlace = handler.withInstall(mapAearchPlace.default);
9
+
10
+ exports.HyMapAearchPlace = HyMapAearchPlace;
11
+ exports.default = HyMapAearchPlace;