bri-components 1.2.0 → 1.2.2
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/8.bri-components.min.js +1 -1
- package/lib/9.bri-components.min.js +1 -1
- package/lib/bri-components.min.js +6 -6
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/abolish/DshFlatTable.vue +1 -1
- package/src/components/.DS_Store +0 -0
- package/src/components/controls/.DS_Store +0 -0
- package/src/components/controls/base/BriUpload/BriUpload.vue +2 -1
- package/src/components/controls/base/BriUpload/BriUploadImage.vue +45 -32
- package/src/components/controls/base/BriUpload/uploadMixin.js +3 -2
- package/src/components/controls/base/DshCascader/DshCascader.vue +52 -53
- package/src/components/controls/base/DshCascader/InfoCascader.vue +3 -4
- package/src/components/controls/base/DshCheckbox.vue +133 -140
- package/src/components/controls/base/DshCoordinates.vue +121 -147
- package/src/components/controls/base/DshDaterange.vue +1 -1
- package/src/components/controls/base/DshEditor.vue +2 -1
- package/src/components/controls/base/DshSelect.vue +4 -14
- package/src/components/controls/base/DshSwitch.vue +13 -20
- package/src/components/controls/controlMap.js +4 -0
- package/src/components/controls/controlMixin.js +23 -12
- package/src/components/controls/senior/.DS_Store +0 -0
- package/src/components/controls/senior/BriLabels.vue +170 -158
- package/src/components/controls/senior/selectDepartments.vue +380 -0
- package/src/components/controls/senior/selectUsers/DepartmentMenu.vue +191 -0
- package/src/components/controls/senior/selectUsers/selectUsers.vue +482 -0
- package/src/components/list/BriCard.vue +52 -0
- package/src/components/list/BriTreeItem.vue +110 -0
- package/src/components/small/DshTags.vue +132 -9
- package/src/index.js +7 -3
- package/src/styles/.DS_Store +0 -0
- package/src/styles/common/control.less +61 -56
- package/src/styles/components/.DS_Store +0 -0
- package/src/styles/components/controls/.DS_Store +0 -0
- package/src/styles/components/controls/base/BriUpload/BriUpload.less +11 -3
- package/src/styles/components/controls/base/BriUpload/BriUploadImage.less +6 -0
- package/src/styles/components/controls/base/DshCascader/DshCascader.less +33 -81
- package/src/styles/components/controls/base/DshCheckbox.less +72 -103
- package/src/styles/components/controls/base/DshCoordinates.less +1 -35
- package/src/styles/components/controls/base/DshEditor.less +3 -2
- package/src/styles/components/controls/base/DshInput.less +4 -8
- package/src/styles/components/controls/base/DshNumber.less +2 -2
- package/src/styles/components/controls/base/DshSelect.less +19 -4
- package/src/styles/components/controls/base/DshSwitch.less +1 -31
- package/src/styles/components/controls/senior/.DS_Store +0 -0
- package/src/styles/components/controls/senior/BriLabels.less +32 -118
- package/src/styles/components/controls/senior/cascaderTable.less +1 -1
- package/src/styles/components/controls/senior/flatTable.less +1 -1
- package/src/styles/components/controls/senior/selectDepartments.less +106 -0
- package/src/styles/components/controls/senior/selectUsers/DepartmentMenu.less +37 -0
- package/src/styles/components/controls/senior/selectUsers/index.less +2 -0
- package/src/styles/components/controls/senior/selectUsers/selectUsers.less +167 -0
- package/src/styles/components/form/DshDefaultSearch.less +1 -2
- package/src/styles/components/index.less +7 -3
- package/src/styles/components/list/BriCard.less +50 -0
- package/src/styles/components/list/BriFlatTable.less +1 -1
- package/src/styles/components/list/BriTreeItem.less +50 -0
- package/src/styles/components/small/DshModal.less +20 -42
- package/src/styles/components/small/DshTags.less +32 -14
- package/src/styles/components/unit/DshFormItem.less +3 -26
|
@@ -5,110 +5,108 @@
|
|
|
5
5
|
>
|
|
6
6
|
<template v-if="canEdit">
|
|
7
7
|
<!-- 平铺 -->
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
'DshCheckbox-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
<template v-if="showType === 'flat'">
|
|
9
|
+
<CheckboxGroup
|
|
10
|
+
:class="{
|
|
11
|
+
'DshCheckbox-group': true,
|
|
12
|
+
'DshCheckbox-group-color': useColor,
|
|
13
|
+
'DshCheckbox-group-disabled': !canEdit,
|
|
14
|
+
'DshCheckbox-group-scroll': selfPropsObj._span < 24 && !selfPropsObj._br,
|
|
15
|
+
}"
|
|
16
|
+
v-model="curValList"
|
|
17
|
+
>
|
|
18
|
+
<!-- 有选项 -->
|
|
19
|
+
<template v-if="listData.length">
|
|
20
|
+
<Checkbox
|
|
21
|
+
v-for="(item, index) in listData"
|
|
22
|
+
:key="index"
|
|
23
|
+
:class="[
|
|
24
|
+
'DshCheckbox-item',
|
|
25
|
+
getItemColorClass(item.color),
|
|
26
|
+
selfPropsObj.class,
|
|
27
|
+
item.class
|
|
28
|
+
]"
|
|
29
|
+
:style="getItemStyle(item)"
|
|
30
|
+
:label="item._key"
|
|
31
|
+
:border="useColor"
|
|
32
|
+
:disabled="getItemDisabled(item)"
|
|
33
|
+
@click.native="clickOpenTip(item)"
|
|
34
|
+
>
|
|
35
|
+
<slot :item="item"></slot>
|
|
36
|
+
<span>{{ item.name || item._name }}</span>
|
|
37
|
+
</Checkbox>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<!-- 无选项 -->
|
|
41
|
+
<div
|
|
42
|
+
v-else
|
|
43
|
+
class="dsh-subtip"
|
|
44
|
+
style="backgroundColor: #f3f3f3;"
|
|
45
|
+
>-- 无选择项 --</div>
|
|
46
|
+
</CheckboxGroup>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<!-- 下拉 -->
|
|
50
|
+
<template v-else>
|
|
51
|
+
<Select
|
|
52
|
+
v-model="curValList"
|
|
53
|
+
:multiple="true"
|
|
54
|
+
:placeholder="selfPropsObj._placeholder"
|
|
55
|
+
:disabled="!finalCanEdit"
|
|
56
|
+
:filterable="selfPropsObj._filterable"
|
|
57
|
+
:transfer="selfPropsObj._transfer"
|
|
58
|
+
:transfer-class-name="selfPropsObj._transferClassName"
|
|
59
|
+
:max-tag-count="selfPropsObj._maxTagCount"
|
|
60
|
+
>
|
|
61
|
+
<Option
|
|
22
62
|
v-for="(item, index) in listData"
|
|
23
63
|
:key="index"
|
|
24
|
-
:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
item.class,
|
|
28
|
-
getColorClass(item.color)
|
|
29
|
-
]"
|
|
30
|
-
:style="{
|
|
31
|
-
backgroundColor: selfPropsObj._useColor ? getBgColor(item.color) : '',
|
|
32
|
-
color:selfPropsObj._useColor ? getColor(item.color) : undefined
|
|
33
|
-
}"
|
|
34
|
-
:label="item._key"
|
|
35
|
-
:border="selfPropsObj._useColor"
|
|
36
|
-
:disabled="isDisabled(item)"
|
|
37
|
-
@click.native="clickOpenTip(item)"
|
|
64
|
+
:value="item._key"
|
|
65
|
+
:label="item.name || item._name"
|
|
66
|
+
:disabled="getItemDisabled(item)"
|
|
38
67
|
>
|
|
39
|
-
<
|
|
40
|
-
<span>{{ item.name || item._name }}</span>
|
|
41
|
-
</Checkbox>
|
|
42
|
-
</template>
|
|
68
|
+
<Checkbox :value="curValList.includes(item._key)"></Checkbox>
|
|
43
69
|
|
|
44
|
-
|
|
45
|
-
v-else
|
|
46
|
-
class="dsh-subtip"
|
|
47
|
-
style="backgroundColor: #f3f3f3;"
|
|
48
|
-
>-- 无选择项 --</div>
|
|
49
|
-
</CheckboxGroup>
|
|
70
|
+
<slot :item="item"></slot>
|
|
50
71
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
:filterable="selfPropsObj._filterable"
|
|
59
|
-
:transfer="selfPropsObj._transfer"
|
|
60
|
-
:transfer-class-name="selfPropsObj._transferClassName"
|
|
61
|
-
:max-tag-count="selfPropsObj._maxTagCount"
|
|
62
|
-
@on-select="select"
|
|
63
|
-
>
|
|
64
|
-
<Option
|
|
65
|
-
v-for="(item, index) in listData"
|
|
66
|
-
:key="index"
|
|
67
|
-
:value="item._key"
|
|
68
|
-
:label="item.name || item._name"
|
|
69
|
-
:disabled="isDisabled(item)"
|
|
70
|
-
>
|
|
71
|
-
<Checkbox :value="!!value[controlKey] && value[controlKey].includes(item._key)">
|
|
72
|
-
</Checkbox>
|
|
73
|
-
<slot :item="item"></slot>
|
|
74
|
-
<span>{{ item.name || item._name }}</span>
|
|
75
|
-
<span style="float:right;paddingRight:20px">{{ item.rightName }}</span>
|
|
76
|
-
</Option>
|
|
77
|
-
</Select>
|
|
72
|
+
<span>{{ item.name || item._name }}</span>
|
|
73
|
+
<span style="float:right;paddingRight:20px">
|
|
74
|
+
{{ item.rightName }}
|
|
75
|
+
</span>
|
|
76
|
+
</Option>
|
|
77
|
+
</Select>
|
|
78
|
+
</template>
|
|
78
79
|
</template>
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<div
|
|
88
|
-
v-if="showVal"
|
|
89
|
-
class="DshCheckbox-value-wrapper"
|
|
90
|
-
:style="{
|
|
91
|
-
justifyContent: flatShowAlign
|
|
92
|
-
}"
|
|
81
|
+
<!-- 查看 -->
|
|
82
|
+
<template v-else>
|
|
83
|
+
<bri-tooltip
|
|
84
|
+
:content="showMultipleVal"
|
|
85
|
+
placement="top"
|
|
86
|
+
maxWidth="200"
|
|
87
|
+
:transfer="true"
|
|
93
88
|
>
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
89
|
+
<div :class="{
|
|
90
|
+
...commonClass,
|
|
91
|
+
'DshCheckbox-show': true
|
|
92
|
+
}">
|
|
93
|
+
<!-- 有值 -->
|
|
94
|
+
<dsh-tags
|
|
95
|
+
v-if="!$isEmptyData(curValList)"
|
|
96
|
+
class="text"
|
|
97
|
+
:list="curValObjList"
|
|
98
|
+
:propsObj="{
|
|
99
|
+
closable: false
|
|
100
|
+
}"
|
|
101
|
+
></dsh-tags>
|
|
104
102
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
</
|
|
111
|
-
</
|
|
103
|
+
<!-- 无值 -->
|
|
104
|
+
<template v-else>
|
|
105
|
+
{{ emptyShowVal }}
|
|
106
|
+
</template>
|
|
107
|
+
</div>
|
|
108
|
+
</bri-tooltip>
|
|
109
|
+
</template>
|
|
112
110
|
|
|
113
111
|
<!-- tip项弹框提示 -->
|
|
114
112
|
<dsh-render :render="tipModalRender"></dsh-render>
|
|
@@ -116,9 +114,9 @@
|
|
|
116
114
|
</template>
|
|
117
115
|
|
|
118
116
|
<script>
|
|
119
|
-
import { resourceData } from "bri-datas";
|
|
120
117
|
import controlMixin from "../controlMixin.js";
|
|
121
118
|
import selectMixin from "./selectMixin.js";
|
|
119
|
+
import { resourceData } from "bri-datas";
|
|
122
120
|
|
|
123
121
|
// optionKind值 'flat'、'dropdown'
|
|
124
122
|
export default {
|
|
@@ -129,18 +127,7 @@
|
|
|
129
127
|
],
|
|
130
128
|
props: {},
|
|
131
129
|
data () {
|
|
132
|
-
return {
|
|
133
|
-
getBgColor: color => {
|
|
134
|
-
let curColor = this.colorMap[color] || this.colorMap["color-1"];
|
|
135
|
-
return this.$getColor(curColor, 0.1);
|
|
136
|
-
},
|
|
137
|
-
getColor: color => {
|
|
138
|
-
return this.colorMap[color] || this.colorMap["color-1"];
|
|
139
|
-
},
|
|
140
|
-
getColorClass: color => {
|
|
141
|
-
return this.colorMap[color] ? color : "color-1";
|
|
142
|
-
}
|
|
143
|
-
};
|
|
130
|
+
return {};
|
|
144
131
|
},
|
|
145
132
|
computed: {
|
|
146
133
|
selfPropsObj () {
|
|
@@ -150,55 +137,61 @@
|
|
|
150
137
|
_data: [],
|
|
151
138
|
|
|
152
139
|
...this.propsObj,
|
|
153
|
-
...this.commonDealPropsObj
|
|
154
|
-
_maxTagCount: this.propsObj._maxTagCount || undefined
|
|
140
|
+
...this.commonDealPropsObj
|
|
155
141
|
};
|
|
156
142
|
},
|
|
157
|
-
|
|
158
|
-
return this.selfPropsObj.
|
|
143
|
+
listData () {
|
|
144
|
+
return (this.selfPropsObj._data || []).concat(this.initListData);
|
|
159
145
|
},
|
|
146
|
+
|
|
160
147
|
showType () {
|
|
161
148
|
return this.selfPropsObj._optionKind;
|
|
162
149
|
},
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return (this.selfPropsObj._data || []).concat(this.initListData);
|
|
150
|
+
useColor () {
|
|
151
|
+
return this.selfPropsObj._useColor;
|
|
166
152
|
},
|
|
167
|
-
|
|
168
|
-
return this.
|
|
153
|
+
colorMap () {
|
|
154
|
+
return this.selfPropsObj.colorMap || resourceData.colorMap;
|
|
169
155
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
156
|
+
|
|
157
|
+
// 已选择项的对象列表
|
|
158
|
+
curValObjList () {
|
|
159
|
+
return this.listData
|
|
160
|
+
.filter(item => this.curValList.includes(item._key))
|
|
161
|
+
.map(item => {
|
|
162
|
+
return {
|
|
163
|
+
...item,
|
|
164
|
+
style: this.getItemStyle(item),
|
|
165
|
+
color: undefined
|
|
166
|
+
};
|
|
167
|
+
});
|
|
173
168
|
},
|
|
174
|
-
|
|
175
|
-
return
|
|
176
|
-
? "flex-start"
|
|
177
|
-
: this.propsObj._align == "right"
|
|
178
|
-
? "flex-end"
|
|
179
|
-
: "center";
|
|
169
|
+
showMultipleVal () {
|
|
170
|
+
return this.curValObjList.map(item => item.name).join("、");
|
|
180
171
|
}
|
|
181
172
|
},
|
|
182
173
|
created () {},
|
|
183
174
|
methods: {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
let val = this.curVal;
|
|
187
|
-
if (val.includes(item.value)) {
|
|
188
|
-
let itemIndex = val.findIndex(valItem => valItem === item.value);
|
|
189
|
-
val.splice(itemIndex, 1);
|
|
190
|
-
} else {
|
|
191
|
-
val.push(item.value);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
this.$emit("change", val);
|
|
175
|
+
getItemColorClass (color) {
|
|
176
|
+
return this.colorMap[color] ? color : "color-1";
|
|
195
177
|
},
|
|
196
|
-
|
|
197
|
-
|
|
178
|
+
getItemStyle (item) {
|
|
179
|
+
const getColor = (color) => {
|
|
180
|
+
return this.colorMap[color] || this.colorMap["color-1"];
|
|
181
|
+
};
|
|
182
|
+
const getBgColor = (color) => {
|
|
183
|
+
return this.$getColor(getColor(color), 0.1);
|
|
184
|
+
};
|
|
185
|
+
return {
|
|
186
|
+
background: this.useColor ? getBgColor(item.color) : undefined,
|
|
187
|
+
color: this.useColor ? getColor(item.color) : undefined
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
getItemDisabled (item) {
|
|
198
191
|
return !!(
|
|
199
192
|
!this.finalCanEdit ||
|
|
200
193
|
item._disabled ||
|
|
201
|
-
this.
|
|
194
|
+
this.curValList.length >= this.selfPropsObj._max && !this.curValList.includes(item._key)
|
|
202
195
|
);
|
|
203
196
|
}
|
|
204
197
|
}
|
|
@@ -1,161 +1,135 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="DshCoordinates">
|
|
3
3
|
<bri-tooltip
|
|
4
|
-
:content="
|
|
4
|
+
:content="showText"
|
|
5
5
|
placement="top"
|
|
6
6
|
maxWidth="200"
|
|
7
7
|
:transfer="true"
|
|
8
8
|
>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
<div
|
|
10
|
+
:class="{
|
|
11
|
+
...commonClass,
|
|
12
|
+
'DshCoordinates-edit': true
|
|
13
|
+
}"
|
|
14
|
+
@click.stop="clickOpenModal"
|
|
15
|
+
>
|
|
16
|
+
<div class="text">
|
|
17
|
+
{{ showText }}
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<Icon
|
|
21
|
+
v-if="finalCanEdit && selfPropsObj._clearable"
|
|
22
|
+
class="icon-close"
|
|
23
|
+
type="md-close"
|
|
24
|
+
@click.stop="clickDelete"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</bri-tooltip>
|
|
28
|
+
|
|
29
|
+
<!-- 模态框 -->
|
|
30
|
+
<Modal
|
|
31
|
+
v-if="canEdit"
|
|
32
|
+
class="DshCoordinates-modal"
|
|
33
|
+
v-model="showModal"
|
|
34
|
+
title="选择位置"
|
|
35
|
+
:footer-hide="true"
|
|
36
|
+
:styles="modalStyles"
|
|
37
|
+
@on-cancel="clickCancel"
|
|
38
|
+
>
|
|
39
|
+
<div
|
|
40
|
+
slot="header"
|
|
41
|
+
class="DshCoordinates-modal-header"
|
|
42
|
+
>
|
|
43
|
+
<Row
|
|
44
|
+
v-if="finalCanEdit"
|
|
45
|
+
class="edit"
|
|
46
|
+
type="flex"
|
|
47
|
+
justify="center"
|
|
48
|
+
align="bottom"
|
|
17
49
|
>
|
|
18
|
-
|
|
19
|
-
<div
|
|
20
|
-
v-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{{ curValName }}
|
|
25
|
-
</span>
|
|
26
|
-
<Icon
|
|
27
|
-
v-if="selfPropsObj._clearable"
|
|
28
|
-
class="value-icon"
|
|
29
|
-
type="md-close"
|
|
30
|
-
@click.stop="clickDelete"
|
|
31
|
-
/>
|
|
50
|
+
<Col span="8">
|
|
51
|
+
<div>
|
|
52
|
+
<RadioGroup v-model="formData.kind">
|
|
53
|
+
<Radio label="keyword">按关键字搜索</Radio>
|
|
54
|
+
<Radio label="coordinate">按坐标搜索</Radio>
|
|
55
|
+
</RadioGroup>
|
|
32
56
|
</div>
|
|
57
|
+
<Row class="dsh-margin-top5">
|
|
58
|
+
<Col span="16">
|
|
59
|
+
<Input
|
|
60
|
+
v-model="formData.searchText"
|
|
61
|
+
placeholder="请输入..."
|
|
62
|
+
:clearable="true"
|
|
63
|
+
@on-enter="clickSearch"
|
|
64
|
+
/>
|
|
65
|
+
<span class="edit-message">{{ searchMessage }}</span>
|
|
66
|
+
</Col>
|
|
67
|
+
<Col span="8">
|
|
68
|
+
<Button
|
|
69
|
+
type="primary"
|
|
70
|
+
@click="clickSearch"
|
|
71
|
+
>搜索</Button>
|
|
72
|
+
</Col>
|
|
73
|
+
</Row>
|
|
74
|
+
</Col>
|
|
33
75
|
|
|
34
|
-
|
|
35
|
-
<div
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
76
|
+
<Col span="8">
|
|
77
|
+
<div class="edit-text">坐标获取结果</div>
|
|
78
|
+
<Row class="dsh-margin-top5">
|
|
79
|
+
<Col span="16">
|
|
80
|
+
<Input
|
|
81
|
+
:value="curVal.name"
|
|
82
|
+
:readonly="true"
|
|
83
|
+
:clearable="true"
|
|
84
|
+
@on-clear="clickClear"
|
|
85
|
+
@click.native="clickMapFitView"
|
|
86
|
+
/>
|
|
87
|
+
</Col>
|
|
88
|
+
<Col span="8">
|
|
89
|
+
<Button
|
|
90
|
+
type="primary"
|
|
91
|
+
@click="clickConfirm"
|
|
92
|
+
>确认</Button>
|
|
93
|
+
</Col>
|
|
94
|
+
</Row>
|
|
95
|
+
</Col>
|
|
96
|
+
</Row>
|
|
42
97
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
@on-cancel="clickCancel"
|
|
98
|
+
<Row
|
|
99
|
+
v-else
|
|
100
|
+
class="show"
|
|
101
|
+
>
|
|
102
|
+
<Col
|
|
103
|
+
span="6"
|
|
104
|
+
class="show-name"
|
|
51
105
|
>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<RadioGroup v-model="formData.kind">
|
|
66
|
-
<Radio label="keyword">按关键字搜索</Radio>
|
|
67
|
-
<Radio label="coordinate">按坐标搜索</Radio>
|
|
68
|
-
</RadioGroup>
|
|
69
|
-
</div>
|
|
70
|
-
<Row class="dsh-margin-top5">
|
|
71
|
-
<Col span="16">
|
|
72
|
-
<Input
|
|
73
|
-
v-model="formData.searchText"
|
|
74
|
-
placeholder="请输入..."
|
|
75
|
-
:clearable="true"
|
|
76
|
-
@on-enter="clickSearch"
|
|
77
|
-
/>
|
|
78
|
-
<span class="edit-message">{{ searchMessage }}</span>
|
|
79
|
-
</Col>
|
|
80
|
-
<Col span="8">
|
|
81
|
-
<Button
|
|
82
|
-
type="primary"
|
|
83
|
-
@click="clickSearch"
|
|
84
|
-
>搜索</Button>
|
|
85
|
-
</Col>
|
|
86
|
-
</Row>
|
|
87
|
-
</Col>
|
|
88
|
-
|
|
89
|
-
<Col span="8">
|
|
90
|
-
<div class="edit-text">坐标获取结果</div>
|
|
91
|
-
<Row class="dsh-margin-top5">
|
|
92
|
-
<Col span="16">
|
|
93
|
-
<Input
|
|
94
|
-
:value="curVal.name"
|
|
95
|
-
:readonly="true"
|
|
96
|
-
:clearable="true"
|
|
97
|
-
@on-clear="clickClear"
|
|
98
|
-
@click.native="clickMapFitView"
|
|
99
|
-
/>
|
|
100
|
-
</Col>
|
|
101
|
-
<Col span="8">
|
|
102
|
-
<Button
|
|
103
|
-
type="primary"
|
|
104
|
-
@click="clickConfirm"
|
|
105
|
-
>确认</Button>
|
|
106
|
-
</Col>
|
|
107
|
-
</Row>
|
|
108
|
-
</Col>
|
|
109
|
-
</Row>
|
|
110
|
-
|
|
111
|
-
<Row
|
|
112
|
-
v-else
|
|
113
|
-
class="show"
|
|
114
|
-
>
|
|
115
|
-
<Col
|
|
116
|
-
span="6"
|
|
117
|
-
class="show-name"
|
|
118
|
-
>
|
|
119
|
-
当前位置:
|
|
120
|
-
</Col>
|
|
121
|
-
<Col span="12">
|
|
122
|
-
<Input
|
|
123
|
-
:value="curVal.name"
|
|
124
|
-
:readonly="true"
|
|
125
|
-
@click.native="clickMapFitView"
|
|
126
|
-
/>
|
|
127
|
-
</Col>
|
|
128
|
-
<Col span="6">
|
|
129
|
-
</Col>
|
|
130
|
-
</Row>
|
|
131
|
-
</div>
|
|
106
|
+
当前位置:
|
|
107
|
+
</Col>
|
|
108
|
+
<Col span="12">
|
|
109
|
+
<Input
|
|
110
|
+
:value="curVal.name"
|
|
111
|
+
:readonly="true"
|
|
112
|
+
@click.native="clickMapFitView"
|
|
113
|
+
/>
|
|
114
|
+
</Col>
|
|
115
|
+
<Col span="6">
|
|
116
|
+
</Col>
|
|
117
|
+
</Row>
|
|
118
|
+
</div>
|
|
132
119
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<div
|
|
142
|
-
ref="divCoordinate"
|
|
143
|
-
style="display: none; position:absolute;background:#fff;padding: 5px 10px"
|
|
144
|
-
></div>
|
|
145
|
-
</Modal>
|
|
146
|
-
</div>
|
|
147
|
-
</template>
|
|
120
|
+
<transition>
|
|
121
|
+
<div
|
|
122
|
+
v-if="showModal"
|
|
123
|
+
id="mapContain"
|
|
124
|
+
class="DshCoordinates-modal-map"
|
|
125
|
+
></div>
|
|
126
|
+
</transition>
|
|
148
127
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}">
|
|
155
|
-
{{ curValName || emptyShowVal }}
|
|
156
|
-
</span>
|
|
157
|
-
</template>
|
|
158
|
-
</bri-tooltip>
|
|
128
|
+
<div
|
|
129
|
+
ref="divCoordinate"
|
|
130
|
+
style="display: none; position:absolute;background:#fff;padding: 5px 10px"
|
|
131
|
+
></div>
|
|
132
|
+
</Modal>
|
|
159
133
|
</div>
|
|
160
134
|
</template>
|
|
161
135
|
|
|
@@ -193,8 +167,8 @@
|
|
|
193
167
|
this.value[this.controlKey] = val;
|
|
194
168
|
}
|
|
195
169
|
},
|
|
196
|
-
|
|
197
|
-
return this.curVal
|
|
170
|
+
showText () {
|
|
171
|
+
return this.$isEmptyData(this.curVal) ? this.emptyShowVal : this.curVal.name;
|
|
198
172
|
},
|
|
199
173
|
curLnglat: {
|
|
200
174
|
get () {
|
|
@@ -248,7 +222,7 @@
|
|
|
248
222
|
methods: {
|
|
249
223
|
// 打开窗体
|
|
250
224
|
clickOpenModal () {
|
|
251
|
-
if (this.
|
|
225
|
+
if (this.finalCanEdit) {
|
|
252
226
|
this.showModal = true;
|
|
253
227
|
this.cloneValue = this.$deepCopy(this.curVal);
|
|
254
228
|
this.getMap();
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
<div
|
|
42
42
|
v-if="isUnitShow"
|
|
43
43
|
:class="{
|
|
44
|
+
...commonClass,
|
|
44
45
|
'DshEditor-unit': !$isEmptyData(curVal)
|
|
45
46
|
}"
|
|
46
47
|
>
|
|
@@ -144,7 +145,7 @@
|
|
|
144
145
|
});
|
|
145
146
|
} else if (ossType === "local") {
|
|
146
147
|
that.localUpload(fileItem, result.data, res => {
|
|
147
|
-
insertImg(res.url);
|
|
148
|
+
insertImg(res.data.url);
|
|
148
149
|
});
|
|
149
150
|
} else {
|
|
150
151
|
console.log(`请开发这种类型‘${ossType}’的上传模式`);
|