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.
- package/dist/tailwind.css +66 -0
- package/es/api/device.mjs +18 -0
- package/es/api/index.mjs +1 -1
- package/es/api/sypct.mjs +18 -0
- package/es/api/task.mjs +18 -0
- package/es/bussiness/hyMapAearchPlace/index.mjs +6 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +653 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +347 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +99 -0
- package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/es/bussiness/index.mjs +1 -0
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +22 -3
- package/es/components/hyButton/style/button.scss +1 -1
- package/es/components/hyConfigProvider/configProvider.vue.mjs +4 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +2 -2
- package/es/components/hyDialog/dialog.vue.mjs +24 -4
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +3 -1
- package/es/components/hyMap/map.vue.mjs +10 -3
- package/es/components/hySearch/cpns/searchItem.vue.mjs +17 -1
- package/es/components/hyTable/table.vue.mjs +8 -1
- package/es/components/hyTableForm/batchTableForm.vue.mjs +36 -59
- package/es/components/hyTableForm/js/index.mjs +8 -58
- package/es/components/hyTableForm/tableForm.vue.mjs +9 -3
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useGlobalConfig.mjs +5 -0
- package/es/hooks/useMapConfig.mjs +18 -0
- package/es/index.mjs +2 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/es/style/element/hy-element.scss +10 -1
- package/es/utils/form.mjs +5 -1
- package/es/utils/map/js/webgis.mjs +1 -1
- package/es/version.mjs +1 -1
- package/lib/api/device.js +20 -0
- package/lib/api/index.js +1 -1
- package/lib/api/sypct.js +20 -0
- package/lib/api/task.js +20 -0
- package/lib/bussiness/hyMapAearchPlace/index.js +11 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +655 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +351 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +103 -0
- package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/lib/bussiness/index.js +2 -0
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +22 -3
- package/lib/components/hyButton/style/button.scss +1 -1
- package/lib/components/hyConfigProvider/configProvider.vue.js +4 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +2 -2
- package/lib/components/hyDialog/dialog.vue.js +23 -3
- package/lib/components/hyForm/cpns/locationSelect.vue.js +3 -1
- package/lib/components/hyMap/map.vue.js +10 -3
- package/lib/components/hySearch/cpns/searchItem.vue.js +16 -0
- package/lib/components/hyTable/table.vue.js +8 -1
- package/lib/components/hyTableForm/batchTableForm.vue.js +33 -56
- package/lib/components/hyTableForm/js/index.js +7 -58
- package/lib/components/hyTableForm/tableForm.vue.js +8 -2
- package/lib/hooks/index.js +3 -0
- package/lib/hooks/useGlobalConfig.js +5 -0
- package/lib/hooks/useMapConfig.js +21 -0
- package/lib/index.js +31 -26
- package/lib/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/lib/style/element/hy-element.scss +10 -1
- package/lib/utils/form.js +4 -0
- package/lib/utils/map/js/webgis.js +1 -0
- package/lib/version.js +1 -1
- 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,
|
|
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
|
@@ -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) {
|
package/lib/api/sypct.js
ADDED
|
@@ -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;
|
package/lib/api/task.js
ADDED
|
@@ -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;
|