bri-components 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/0.bri-components.min.js +1 -1
- package/lib/1.bri-components.min.js +1 -1
- package/lib/2.bri-components.min.js +1 -1
- package/lib/3.bri-components.min.js +1 -1
- package/lib/4.bri-components.min.js +1 -1
- package/lib/5.bri-components.min.js +1 -1
- package/lib/6.bri-components.min.js +1 -1
- package/lib/7.bri-components.min.js +1 -1
- package/lib/bri-components.min.js +6 -6
- package/lib/styles/bri-components.css +1 -1
- package/package.json +1 -1
- package/src/abolish/DshCascaders.less +11 -0
- package/src/{components/controls/base/DshCascaderMultiple.vue → abolish/DshCascaders.vue} +4 -23
- package/src/{components/list → abolish}/DshFlatTable.vue +1 -1
- package/src/abolish/DshTexts.less +13 -0
- package/src/{components/controls/base/textMultiple/DshTextMultiple.vue → abolish/DshTexts.vue} +4 -20
- package/src/components/controls/base/{textMultiple/MultipleInput.vue → BriInputs.vue} +13 -12
- package/src/components/controls/base/{ZUpload/YUploadImage.vue → BriUpload/BriUploadImage.vue} +56 -15
- package/src/components/controls/base/{ZUpload → BriUpload}/index.vue +11 -12
- package/src/components/controls/base/{ZUpload → BriUpload}/uploadMixin.js +2 -2
- package/src/components/controls/base/{DshCascader.vue → DshCascader/DshCascader.vue} +20 -16
- package/src/components/controls/base/DshCheckbox.vue +1 -1
- package/src/components/controls/base/DshCoordinates.vue +117 -109
- package/src/components/controls/base/DshEditor.vue +1 -1
- package/src/components/controls/base/DshInput.vue +9 -4
- package/src/components/controls/base/DshNumber/DshNumber.vue +2 -0
- package/src/components/controls/base/DshSelect.vue +1 -1
- package/src/components/controls/controlMap.js +6 -7
- package/src/components/controls/controlMixin.js +6 -5
- package/src/components/list/DshBox/DshBox.vue +7 -24
- package/src/components/list/DshBox/DshCard.vue +13 -72
- package/src/components/list/DshBox/DshList.vue +8 -136
- package/src/components/list/DshBox/DshPanel.vue +0 -110
- package/src/components/list/DshBox/DshTable.vue +1 -4
- package/src/components/list/ZTree.vue +0 -58
- package/src/components/other/ZIframe.vue +5 -0
- package/src/components/small/DshControlDefine.vue +5 -1
- package/src/components/small/DshPage.vue +1 -0
- package/src/index.js +11 -23
- package/src/styles/common/control.less +16 -17
- package/src/styles/components/controls/{MultipleInput.less → BriInputs.less} +1 -1
- package/src/styles/components/controls/{ZUpload.less → BriUpload.less} +4 -4
- package/src/styles/components/controls/DshCoordinates.less +53 -43
- package/src/styles/components/controls/DshNumber.less +18 -0
- package/src/styles/components/index.less +22 -16
- package/src/styles/components/list/DshBox/DshBox.less +20 -0
- package/src/styles/components/list/DshBox/DshCard.less +59 -0
- package/src/styles/components/list/DshBox/DshList.less +142 -0
- package/src/styles/components/list/DshBox/DshPanel.less +107 -0
- package/src/styles/components/list/DshBox/DshTable.less +4 -0
- package/src/styles/components/list/ZTree.less +52 -0
- package/src/styles/components/small/DshModal.less +1 -1
- package/src/styles/variables.less +1 -0
- package/src/utils/table.js +3 -2
- package/src/components/controls/base/YSerialNumber.vue +0 -43
- package/src/components/list/easyTable/index.js +0 -23
- package/src/components/list/easyTable/src/directives/clickoutside.js +0 -32
- package/src/components/list/easyTable/src/mixins/layerAdjustment.js +0 -62
- package/src/components/list/easyTable/src/settings/settings.js +0 -11
- package/src/components/list/easyTable/src/utils/deepClone.js +0 -256
- package/src/components/list/easyTable/src/utils/dom.js +0 -41
- package/src/components/list/easyTable/src/utils/utils.js +0 -190
- package/src/components/list/easyTable/v-checkbox/index.js +0 -7
- package/src/components/list/easyTable/v-checkbox/src/checkbox.vue +0 -127
- package/src/components/list/easyTable/v-checkbox-group/index.js +0 -7
- package/src/components/list/easyTable/v-checkbox-group/src/checkbox-group.vue +0 -68
- package/src/components/list/easyTable/v-dropdown/index.js +0 -7
- package/src/components/list/easyTable/v-dropdown/src/dropdown.vue +0 -337
- package/src/components/list/easyTable/v-table/index.js +0 -7
- package/src/components/list/easyTable/v-table/src/body-cell-merge-mixin.js +0 -141
- package/src/components/list/easyTable/v-table/src/cell-edit-mixin.js +0 -102
- package/src/components/list/easyTable/v-table/src/checkbox-selection-mixin.js +0 -189
- package/src/components/list/easyTable/v-table/src/classes-mixin.js +0 -56
- package/src/components/list/easyTable/v-table/src/drag-width-mixin.js +0 -202
- package/src/components/list/easyTable/v-table/src/export-csv.js +0 -74
- package/src/components/list/easyTable/v-table/src/frozen-columns-mixin.js +0 -134
- package/src/components/list/easyTable/v-table/src/loading.vue +0 -49
- package/src/components/list/easyTable/v-table/src/scroll-bar-control-mixin.js +0 -21
- package/src/components/list/easyTable/v-table/src/scroll-control-mixin.js +0 -92
- package/src/components/list/easyTable/v-table/src/sort-control-mixin.js +0 -108
- package/src/components/list/easyTable/v-table/src/table-empty-mixin.js +0 -73
- package/src/components/list/easyTable/v-table/src/table-empty.vue +0 -66
- package/src/components/list/easyTable/v-table/src/table-filters-mixin.js +0 -126
- package/src/components/list/easyTable/v-table/src/table-footer-mixin.js +0 -122
- package/src/components/list/easyTable/v-table/src/table-resize-mixin.js +0 -279
- package/src/components/list/easyTable/v-table/src/table-row-mouse-events-mixin.js +0 -123
- package/src/components/list/easyTable/v-table/src/table.vue +0 -1565
- package/src/components/list/easyTable/v-table/src/title-cell-merge-mixin.js +0 -115
- package/src/components/list/evTable/EvTable.vue +0 -321
- package/src/components/list/evTable/EvTableMixin.js +0 -26
- package/src/styles/components/list/evTable.less +0 -79
- package/src/styles/components/list/evtable/animation.less +0 -141
- package/src/styles/components/list/evtable/font/fontello.eot +0 -0
- package/src/styles/components/list/evtable/font/fontello.svg +0 -32
- package/src/styles/components/list/evtable/font/fontello.ttf +0 -0
- package/src/styles/components/list/evtable/font/fontello.woff +0 -0
- package/src/styles/components/list/evtable/font/fontello.woff2 +0 -0
- package/src/styles/components/list/evtable/fontello.less +0 -68
- package/src/styles/components/list/evtable/index.less +0 -5
- package/src/styles/components/list/evtable/v-checkbox.less +0 -167
- package/src/styles/components/list/evtable/v-dropdown.less +0 -235
- package/src/styles/components/list/evtable/v-table.less +0 -334
- package/src/styles/components/list/ivu_reset.less +0 -49
- /package/src/{styles/components/list → abolish}/DshFlatTable.less +0 -0
- /package/src/components/{pages/Error → Error}/Error403.vue +0 -0
- /package/src/components/{pages/Error → Error}/Error404.vue +0 -0
- /package/src/components/{pages/Error → Error}/Error500.vue +0 -0
- /package/src/components/{pages/Error → Error}/error.less +0 -0
- /package/src/components/{pages/Error → Error}/errorBack.vue +0 -0
- /package/src/components/controls/base/{ZUpload → BriUpload}/upload-list.vue +0 -0
- /package/src/components/controls/base/{ZUpload → BriUpload}/upload-listItem.vue +0 -0
- /package/src/components/{other → controls/base/DshCascader}/InfoCascader.vue +0 -0
- /package/src/styles/components/{other → controls}/InfoCascader.less +0 -0
- /package/src/styles/components/list/{DshCrossTable.less → DshBox/DshCrossTable.less} +0 -0
- /package/src/styles/components/list/{DshSingleData.less → DshBox/DshSingleData.less} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="BriInputs">
|
|
3
3
|
<Input
|
|
4
4
|
v-show="status === 'edit'"
|
|
5
5
|
v-model="curInputVal"
|
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
></Input>
|
|
11
11
|
<div
|
|
12
12
|
v-show="status === 'show'"
|
|
13
|
-
class="
|
|
13
|
+
class="BriInputs-show"
|
|
14
14
|
>
|
|
15
15
|
<span
|
|
16
|
-
class="
|
|
16
|
+
class="BriInputs-show-content"
|
|
17
17
|
@click="clickAdd"
|
|
18
18
|
>
|
|
19
19
|
<span
|
|
20
20
|
v-for="(val,index) in value[controlKey]"
|
|
21
|
-
class="
|
|
21
|
+
class="BriInputs-show-content-item"
|
|
22
22
|
:key="index"
|
|
23
23
|
>
|
|
24
24
|
<span
|
|
25
|
-
class="
|
|
25
|
+
class="BriInputs-show-content-item-content"
|
|
26
26
|
@click.stop="clickEdit(val,index)"
|
|
27
27
|
>
|
|
28
28
|
{{val}}
|
|
29
29
|
</span>
|
|
30
30
|
<Icon
|
|
31
|
-
class="
|
|
31
|
+
class="BriInputs-show-content-item-del"
|
|
32
32
|
type="ios-close"
|
|
33
33
|
size="20"
|
|
34
34
|
@click.stop="clickDelete(val)"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</span>
|
|
37
37
|
</span>
|
|
38
38
|
<Icon
|
|
39
|
-
class="
|
|
39
|
+
class="BriInputs-show-add"
|
|
40
40
|
type="md-create"
|
|
41
41
|
@click="clickAdd"
|
|
42
42
|
/>
|
|
@@ -45,13 +45,14 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
47
|
<script>
|
|
48
|
-
import controlMixin from "
|
|
48
|
+
import controlMixin from "../controlMixin.js";
|
|
49
49
|
|
|
50
50
|
export default {
|
|
51
|
-
name: "
|
|
52
|
-
mixins: [
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
name: "BriInputs",
|
|
52
|
+
mixins: [
|
|
53
|
+
controlMixin
|
|
54
|
+
],
|
|
55
|
+
props: {},
|
|
55
56
|
data () {
|
|
56
57
|
return {
|
|
57
58
|
status: "edit", // show
|
package/src/components/controls/base/{ZUpload/YUploadImage.vue → BriUpload/BriUploadImage.vue}
RENAMED
|
@@ -1,35 +1,68 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<div
|
|
2
|
+
<div class="BriUploadImage">
|
|
3
|
+
<div
|
|
4
|
+
class="BriUploadImage-set"
|
|
5
|
+
ref="viewerImage"
|
|
6
|
+
>
|
|
4
7
|
<div
|
|
5
8
|
v-if="value[propsObj._key] || propsObj._default || percent"
|
|
6
|
-
:class="['
|
|
9
|
+
:class="['BriUploadImage-set-img', isAvatar ? 'BriUploadImage-set-avatar' : '']"
|
|
7
10
|
:style="{
|
|
8
11
|
backgroundImage: `url(${$imageResize(value[propsObj._key] || propsObj._default, imageResizeConfig)})`,
|
|
9
12
|
borderRadius: propsObj.radius ? '50%' : ''
|
|
10
13
|
}"
|
|
11
14
|
>
|
|
12
|
-
<img
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
<img
|
|
16
|
+
:data-original="value[propsObj._key]"
|
|
17
|
+
style="display:none"
|
|
18
|
+
>
|
|
19
|
+
<div
|
|
20
|
+
v-if="value[propsObj._key] && propsObj._canAction"
|
|
21
|
+
class="BriUploadImage-set-action"
|
|
22
|
+
>
|
|
23
|
+
<Icon
|
|
24
|
+
class="BriUploadImage-set-img-action"
|
|
25
|
+
type="ios-eye-outline"
|
|
26
|
+
size="16"
|
|
27
|
+
@click.native="handlePreview"
|
|
28
|
+
></Icon>
|
|
29
|
+
<Icon
|
|
30
|
+
class="BriUploadImage-set-img-action"
|
|
31
|
+
type="ios-trash-outline"
|
|
32
|
+
size="16"
|
|
33
|
+
@click.native="handleRemove"
|
|
34
|
+
></Icon>
|
|
16
35
|
</div>
|
|
17
36
|
<!-- 上传进度 -->
|
|
18
|
-
<div
|
|
37
|
+
<div
|
|
38
|
+
v-if="percent"
|
|
39
|
+
class="BriUploadImage-set-img-circle"
|
|
40
|
+
>
|
|
19
41
|
<i-circle
|
|
20
42
|
class="circle"
|
|
21
43
|
:percent="percent"
|
|
22
44
|
:stroke-color="percentColor"
|
|
23
45
|
>
|
|
24
|
-
<Icon
|
|
46
|
+
<Icon
|
|
47
|
+
v-if="percent == 100"
|
|
48
|
+
type="ios-checkmark"
|
|
49
|
+
></Icon>
|
|
25
50
|
<span v-else>{{ percent }}%</span>
|
|
26
51
|
</i-circle>
|
|
27
52
|
</div>
|
|
28
53
|
|
|
29
54
|
</div>
|
|
30
55
|
<div class="wrap">
|
|
31
|
-
<Button
|
|
32
|
-
|
|
56
|
+
<Button
|
|
57
|
+
type="default"
|
|
58
|
+
class="btn-cancel-outline z-default"
|
|
59
|
+
>点击上传</Button>
|
|
60
|
+
<input
|
|
61
|
+
id="fileupload"
|
|
62
|
+
class="file"
|
|
63
|
+
:type="inputType"
|
|
64
|
+
@change="setImage"
|
|
65
|
+
/>
|
|
33
66
|
</div>
|
|
34
67
|
</div>
|
|
35
68
|
|
|
@@ -43,7 +76,10 @@
|
|
|
43
76
|
:footer-hide="true"
|
|
44
77
|
@on-visible-change="visibleChange"
|
|
45
78
|
>
|
|
46
|
-
<div
|
|
79
|
+
<div
|
|
80
|
+
class="avatar-modal"
|
|
81
|
+
style="width:400px;margin: 0 auto;"
|
|
82
|
+
>
|
|
47
83
|
<dsh-cropper
|
|
48
84
|
style="width: 400px;height: 400px;"
|
|
49
85
|
ref="cropper"
|
|
@@ -54,7 +90,10 @@
|
|
|
54
90
|
</dsh-cropper>
|
|
55
91
|
<div class="avatar-modal-footer bri-footer">
|
|
56
92
|
<Button @click="cancelAvatarModal()">取消</Button>
|
|
57
|
-
<Button
|
|
93
|
+
<Button
|
|
94
|
+
type="primary"
|
|
95
|
+
@click="photoSubmit()"
|
|
96
|
+
>保存</Button>
|
|
58
97
|
</div>
|
|
59
98
|
</div>
|
|
60
99
|
</Modal>
|
|
@@ -66,8 +105,10 @@
|
|
|
66
105
|
import Viewer from "viewerjs";
|
|
67
106
|
|
|
68
107
|
export default {
|
|
69
|
-
name: "
|
|
70
|
-
mixins: [
|
|
108
|
+
name: "BriUploadImage",
|
|
109
|
+
mixins: [
|
|
110
|
+
uploadMixin
|
|
111
|
+
],
|
|
71
112
|
components: {},
|
|
72
113
|
props: {
|
|
73
114
|
value: Object,
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<bri-upload-image
|
|
3
3
|
v-if="propsObj._kind === 'uploadImage'"
|
|
4
4
|
:value="value"
|
|
5
|
-
ossType="putUpload"
|
|
6
5
|
:propsObj="propsObj"
|
|
7
6
|
@change="change"
|
|
8
|
-
></
|
|
7
|
+
></bri-upload-image>
|
|
9
8
|
|
|
10
9
|
<div
|
|
11
10
|
v-else
|
|
12
11
|
:class="[
|
|
13
12
|
prefixCls,
|
|
14
|
-
'
|
|
15
|
-
`
|
|
13
|
+
'BriUpload',
|
|
14
|
+
`BriUpload-${showType}`,
|
|
16
15
|
{
|
|
17
|
-
'
|
|
18
|
-
'
|
|
16
|
+
'BriUpload-readonly': !canEdit,
|
|
17
|
+
'BriUpload-disabled': !finalCanEdit
|
|
19
18
|
}
|
|
20
19
|
]"
|
|
21
20
|
>
|
|
@@ -40,11 +39,11 @@
|
|
|
40
39
|
:disabled="!canClickUpload"
|
|
41
40
|
>
|
|
42
41
|
<slot>
|
|
43
|
-
<div :class="`
|
|
42
|
+
<div :class="`BriUpload-${showType}-imageadd`">
|
|
44
43
|
|
|
45
44
|
<i-circle
|
|
46
45
|
v-if="percent"
|
|
47
|
-
:class="`
|
|
46
|
+
:class="`BriUpload-${showType}-circle`"
|
|
48
47
|
:percent="percent"
|
|
49
48
|
:stroke-color="percentColor"
|
|
50
49
|
>
|
|
@@ -84,7 +83,7 @@
|
|
|
84
83
|
<script>
|
|
85
84
|
import controlMixin from "../../controlMixin.js";
|
|
86
85
|
import uploadMixin from "./uploadMixin.js";
|
|
87
|
-
import
|
|
86
|
+
import BriUploadImage from "./BriUploadImage.vue";
|
|
88
87
|
import uploadList from "./upload-list.vue";
|
|
89
88
|
|
|
90
89
|
const prefixCls = "ivu-upload";
|
|
@@ -95,7 +94,7 @@
|
|
|
95
94
|
uploadMixin
|
|
96
95
|
],
|
|
97
96
|
components: {
|
|
98
|
-
|
|
97
|
+
BriUploadImage,
|
|
99
98
|
uploadList
|
|
100
99
|
},
|
|
101
100
|
props: {
|
|
@@ -232,7 +231,7 @@
|
|
|
232
231
|
[`${prefixCls}-select`]: this.type === "select",
|
|
233
232
|
[`${prefixCls}-drag`]: this.type === "drag",
|
|
234
233
|
[`${prefixCls}-dragOver`]: this.type === "drag" && this.dragOver,
|
|
235
|
-
[`
|
|
234
|
+
[`BriUpload-${this.showType}-wrapper`]: true
|
|
236
235
|
}
|
|
237
236
|
];
|
|
238
237
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
+
|
|
2
3
|
const minio = require("minio");
|
|
3
4
|
const stream = require("stream");
|
|
4
5
|
export default {
|
|
@@ -25,8 +26,7 @@ export default {
|
|
|
25
26
|
percent: 0
|
|
26
27
|
};
|
|
27
28
|
},
|
|
28
|
-
created () {
|
|
29
|
-
},
|
|
29
|
+
created () {},
|
|
30
30
|
computed: {
|
|
31
31
|
computedGroupKey () {
|
|
32
32
|
return this.propsObj.groupKey || this.groupKey;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
<dsh-control-define
|
|
23
23
|
:value="valTags"
|
|
24
24
|
:canEdit="canEdit"
|
|
25
|
+
:finalCanEdit="finalCanEdit"
|
|
25
26
|
:propsObj="{
|
|
26
27
|
...selfPropsObj,
|
|
27
28
|
_multiplerow: selfPropsObj._span == 24 || !selfPropsObj._span
|
|
@@ -106,7 +107,8 @@
|
|
|
106
107
|
<dsh-control-define
|
|
107
108
|
v-else
|
|
108
109
|
:value="valTags"
|
|
109
|
-
:canEdit="
|
|
110
|
+
:canEdit="canEdit"
|
|
111
|
+
:finalCanEdit="finalCanEdit"
|
|
110
112
|
:propsObj="{
|
|
111
113
|
...selfPropsObj,
|
|
112
114
|
_multiplerow: selfPropsObj._span == 24 || !selfPropsObj._span
|
|
@@ -117,8 +119,8 @@
|
|
|
117
119
|
|
|
118
120
|
<script>
|
|
119
121
|
import { regionData } from "bri-datas";
|
|
120
|
-
import controlMixin from "
|
|
121
|
-
import InfoCascader from "
|
|
122
|
+
import controlMixin from "../../controlMixin.js";
|
|
123
|
+
import InfoCascader from "./InfoCascader.vue";
|
|
122
124
|
|
|
123
125
|
const loop = function (data = [], level, parentCode, filterVals = []) {
|
|
124
126
|
if (data && filterVals.length) {
|
|
@@ -147,7 +149,9 @@
|
|
|
147
149
|
|
|
148
150
|
export default {
|
|
149
151
|
name: "DshCascader",
|
|
150
|
-
mixins: [
|
|
152
|
+
mixins: [
|
|
153
|
+
controlMixin
|
|
154
|
+
],
|
|
151
155
|
components: {
|
|
152
156
|
InfoCascader
|
|
153
157
|
},
|
|
@@ -218,19 +222,19 @@
|
|
|
218
222
|
return this.value[this.controlKey]
|
|
219
223
|
? this.value[this.controlKey].map(item => this.$getTreeLinealDatas(item, this.cascaderData, "name").join("/"))
|
|
220
224
|
: [];
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
selfModalPropsObj () {
|
|
224
|
-
return {
|
|
225
|
-
mode: "default",
|
|
226
|
-
title: this.selfPropsObj._placeholder
|
|
227
|
-
};
|
|
228
|
-
},
|
|
229
|
-
showVal () {
|
|
230
|
-
return this.useMultiple
|
|
231
|
-
? this.valTags.join("、")
|
|
232
|
-
: this.$getTreeLinealDatas(this.value[this.controlKey], this.cascaderData, "name").join(["region"].includes(this.selfPropsObj._type) ? "" : "/");
|
|
233
225
|
}
|
|
226
|
+
|
|
227
|
+
// selfModalPropsObj () {
|
|
228
|
+
// return {
|
|
229
|
+
// mode: "default",
|
|
230
|
+
// title: this.selfPropsObj._placeholder
|
|
231
|
+
// };
|
|
232
|
+
// },
|
|
233
|
+
// showVal () {
|
|
234
|
+
// return this.useMultiple
|
|
235
|
+
// ? this.valTags.join("、")
|
|
236
|
+
// : this.$getTreeLinealDatas(this.value[this.controlKey], this.cascaderData, "name").join(["region"].includes(this.selfPropsObj._type) ? "" : "/");
|
|
237
|
+
// }
|
|
234
238
|
},
|
|
235
239
|
created () {
|
|
236
240
|
this.init();
|
|
@@ -9,152 +9,158 @@
|
|
|
9
9
|
<!-- 编辑 -->
|
|
10
10
|
<div
|
|
11
11
|
v-if="canEdit"
|
|
12
|
-
class="
|
|
13
|
-
|
|
12
|
+
:class="{
|
|
13
|
+
...commonClass,
|
|
14
|
+
'DshCoordinates-edit': true
|
|
15
|
+
}"
|
|
14
16
|
@click="clickOpenModal"
|
|
15
17
|
>
|
|
16
18
|
<div
|
|
17
|
-
v-if="
|
|
18
|
-
class="
|
|
19
|
+
v-if="!$isEmptyData(curVal)"
|
|
20
|
+
class="value"
|
|
19
21
|
>
|
|
20
|
-
<span class="
|
|
21
|
-
{{ curValName}}
|
|
22
|
+
<span class="value-name">
|
|
23
|
+
{{ curValName }}
|
|
22
24
|
</span>
|
|
23
25
|
<Icon
|
|
24
|
-
v-if="
|
|
25
|
-
class="
|
|
26
|
+
v-if="selfPropsObj._clearable"
|
|
27
|
+
class="value-icon"
|
|
26
28
|
type="md-close"
|
|
27
29
|
@click.stop="clickDelete"
|
|
28
30
|
/>
|
|
29
31
|
</div>
|
|
30
32
|
|
|
31
|
-
<
|
|
33
|
+
<div
|
|
32
34
|
v-else
|
|
33
|
-
class="
|
|
35
|
+
class="nodata"
|
|
34
36
|
>
|
|
35
37
|
点击获取当前位置
|
|
36
|
-
<i class="
|
|
37
|
-
</
|
|
38
|
-
</div>
|
|
39
|
-
|
|
40
|
-
<!-- 查看 -->
|
|
41
|
-
<span
|
|
42
|
-
v-else
|
|
43
|
-
:class="{
|
|
44
|
-
...commonClass,
|
|
45
|
-
'DshCoordinates-show': !isUnitShow
|
|
46
|
-
}"
|
|
47
|
-
>
|
|
48
|
-
{{ curValName }}
|
|
49
|
-
</span>
|
|
50
|
-
</Ctooltip>
|
|
38
|
+
<i class="nodata-icon bico-font bico-zuobiao"></i>
|
|
39
|
+
</div>
|
|
51
40
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
@on-cancel="clickCancel"
|
|
61
|
-
>
|
|
62
|
-
<div
|
|
63
|
-
slot="header"
|
|
64
|
-
class="DshCoordinates-modal-header"
|
|
41
|
+
<!-- 模态框 -->
|
|
42
|
+
<Modal
|
|
43
|
+
class="DshCoordinates-modal"
|
|
44
|
+
v-model="showModal"
|
|
45
|
+
title="选择位置"
|
|
46
|
+
:footer-hide="true"
|
|
47
|
+
:styles="modalStyles"
|
|
48
|
+
@on-cancel="clickCancel"
|
|
65
49
|
>
|
|
66
|
-
<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
justify="center"
|
|
70
|
-
align="bottom"
|
|
50
|
+
<div
|
|
51
|
+
slot="header"
|
|
52
|
+
class="DshCoordinates-modal-header"
|
|
71
53
|
>
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
54
|
+
<Row
|
|
55
|
+
v-if="finalCanEdit"
|
|
56
|
+
class="edit"
|
|
57
|
+
type="flex"
|
|
58
|
+
justify="center"
|
|
59
|
+
align="bottom"
|
|
60
|
+
>
|
|
61
|
+
<Col span="8">
|
|
62
|
+
<div>
|
|
63
|
+
<RadioGroup v-model="formData.kind">
|
|
64
|
+
<Radio label="keyword">按关键字搜索</Radio>
|
|
65
|
+
<Radio label="coordinate">按坐标搜索</Radio>
|
|
66
|
+
</RadioGroup>
|
|
67
|
+
</div>
|
|
68
|
+
<Row class="dsh-margin-top5">
|
|
69
|
+
<Col span="16">
|
|
70
|
+
<Input
|
|
71
|
+
v-model="formData.searchText"
|
|
72
|
+
placeholder="请输入..."
|
|
73
|
+
:clearable="true"
|
|
74
|
+
@on-enter="clickSearch"
|
|
75
|
+
/>
|
|
76
|
+
<span class="edit-message">{{ searchMessage }}</span>
|
|
77
|
+
</Col>
|
|
78
|
+
<Col span="8">
|
|
79
|
+
<Button
|
|
80
|
+
type="primary"
|
|
81
|
+
@click="clickSearch"
|
|
82
|
+
>搜索</Button>
|
|
83
|
+
</Col>
|
|
84
|
+
</Row>
|
|
88
85
|
</Col>
|
|
89
|
-
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
|
|
87
|
+
<Col span="8">
|
|
88
|
+
<div class="edit-text">坐标获取结果</div>
|
|
89
|
+
<Row class="dsh-margin-top5">
|
|
90
|
+
<Col span="16">
|
|
91
|
+
<Input
|
|
92
|
+
:value="curVal.name"
|
|
93
|
+
:readonly="true"
|
|
94
|
+
:clearable="true"
|
|
95
|
+
@on-clear="clickClear"
|
|
96
|
+
@click.native="clickMapFitView"
|
|
97
|
+
/>
|
|
98
|
+
</Col>
|
|
99
|
+
<Col span="8">
|
|
100
|
+
<Button
|
|
101
|
+
type="primary"
|
|
102
|
+
@click="clickConfirm"
|
|
103
|
+
>确认</Button>
|
|
104
|
+
</Col>
|
|
105
|
+
</Row>
|
|
94
106
|
</Col>
|
|
95
107
|
</Row>
|
|
96
|
-
</Col>
|
|
97
108
|
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
109
|
+
<Row
|
|
110
|
+
v-else
|
|
111
|
+
class="show"
|
|
112
|
+
>
|
|
113
|
+
<Col
|
|
114
|
+
span="6"
|
|
115
|
+
class="show-name"
|
|
116
|
+
>
|
|
117
|
+
当前位置:
|
|
118
|
+
</Col>
|
|
119
|
+
<Col span="12">
|
|
102
120
|
<Input
|
|
103
121
|
:value="curVal.name"
|
|
104
122
|
:readonly="true"
|
|
105
|
-
:clearable="true"
|
|
106
|
-
@on-clear="clickClear"
|
|
107
123
|
@click.native="clickMapFitView"
|
|
108
124
|
/>
|
|
109
125
|
</Col>
|
|
110
|
-
<Col span="
|
|
111
|
-
<Button
|
|
112
|
-
type="primary"
|
|
113
|
-
@click="clickConfirm"
|
|
114
|
-
>确认</Button>
|
|
126
|
+
<Col span="6">
|
|
115
127
|
</Col>
|
|
116
128
|
</Row>
|
|
117
|
-
|
|
118
|
-
</Row>
|
|
129
|
+
</div>
|
|
119
130
|
|
|
120
|
-
<
|
|
121
|
-
<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
:value="curVal.name"
|
|
128
|
-
:readonly="true"
|
|
129
|
-
@click.native="clickMapFitView"
|
|
130
|
-
/>
|
|
131
|
-
</Col>
|
|
132
|
-
<Col span="6">
|
|
133
|
-
</Col>
|
|
134
|
-
</Row>
|
|
135
|
-
</div>
|
|
131
|
+
<transition>
|
|
132
|
+
<div
|
|
133
|
+
v-if="showModal"
|
|
134
|
+
id="mapContain"
|
|
135
|
+
class="DshCoordinates-modal-map"
|
|
136
|
+
></div>
|
|
137
|
+
</transition>
|
|
136
138
|
|
|
137
|
-
<transition>
|
|
138
139
|
<div
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
class="DshCoordinates-map"
|
|
140
|
+
ref="divCoordinate"
|
|
141
|
+
style="display: none; position:absolute;background:#fff;padding: 5px 10px"
|
|
142
142
|
></div>
|
|
143
|
-
</
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
143
|
+
</Modal>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
<!-- 查看 -->
|
|
147
|
+
<template v-else>
|
|
148
|
+
<span :class="{
|
|
149
|
+
...commonClass,
|
|
150
|
+
'DshCoordinates-show': true
|
|
151
|
+
}">
|
|
152
|
+
{{ showText }}
|
|
153
|
+
</span>
|
|
154
|
+
</template>
|
|
155
|
+
</Ctooltip>
|
|
150
156
|
</div>
|
|
151
157
|
</template>
|
|
152
158
|
|
|
153
159
|
<script>
|
|
154
160
|
import controlMixin from "../controlMixin.js";
|
|
161
|
+
|
|
155
162
|
const plotStrokeColor = "#4575EF";
|
|
156
163
|
const plotFillColor = "#4575EF";
|
|
157
|
-
|
|
158
164
|
let polygonOpt = {
|
|
159
165
|
fillColor: plotFillColor,
|
|
160
166
|
fillOpacity: 0.4,
|
|
@@ -169,7 +175,9 @@
|
|
|
169
175
|
|
|
170
176
|
export default {
|
|
171
177
|
name: "DshCoordinates",
|
|
172
|
-
mixins: [
|
|
178
|
+
mixins: [
|
|
179
|
+
controlMixin
|
|
180
|
+
],
|
|
173
181
|
computed: {
|
|
174
182
|
curVal: {
|
|
175
183
|
get () {
|
|
@@ -237,7 +245,7 @@
|
|
|
237
245
|
methods: {
|
|
238
246
|
// 打开窗体
|
|
239
247
|
clickOpenModal () {
|
|
240
|
-
if (this.canEdit
|
|
248
|
+
if (this.canEdit) {
|
|
241
249
|
this.showModal = true;
|
|
242
250
|
this.cloneValue = this.$deepCopy(this.curVal);
|
|
243
251
|
this.getMap();
|
|
@@ -339,7 +347,7 @@
|
|
|
339
347
|
this.mouseTool = new AMap.MouseTool(this.map);
|
|
340
348
|
this.mouseTool.on("draw", this.handleMouseToolCallback);
|
|
341
349
|
// 设置默认坐标
|
|
342
|
-
if (this.
|
|
350
|
+
if (!this.$isEmptyData(this.curVal)) {
|
|
343
351
|
this.handleAddMarker(this.curLnglat, true);
|
|
344
352
|
|
|
345
353
|
if (this.kind === "multipleMarker") { // 多选打开绘图功能
|