centaline-data-driven-v3 0.0.75 → 0.0.77
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/centaline-data-driven-v3.umd.js +5 -5
- package/package.json +1 -1
- package/src/components/app/Form.vue +1 -1
- package/src/components/app/dialog.vue +2 -0
- package/src/components/web/ComboBox.vue +14 -9
- package/src/components/web/MapBaidu.vue +4 -4
- package/src/main.js +1 -1
- package/src/views/SearchList.vue +1 -1
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
</van-nav-bar>
|
|
14
14
|
<div ref="refForm" :style="{ overflow: 'auto', height: model.formHeight + 'px' }">
|
|
15
|
-
<van-sticky :container="refForm" v-if="model.tip">
|
|
15
|
+
<van-sticky :container="refForm" v-if="model.tip" offset-top="46">
|
|
16
16
|
<div class="ct-form-tip-app">
|
|
17
17
|
<span v-html="model.tip"></span>
|
|
18
18
|
</div>
|
|
@@ -31,6 +31,7 @@ const show = ref(false)
|
|
|
31
31
|
const actions = ref([])
|
|
32
32
|
function Loaded(model) {
|
|
33
33
|
data.value = model;
|
|
34
|
+
actions.value=[];
|
|
34
35
|
props.vmodel.title = (model && model.title) ? model.title : props.vmodel.title;
|
|
35
36
|
if (model && model.buttons) {
|
|
36
37
|
buttons.value = model.buttons.filter((v) => {
|
|
@@ -58,6 +59,7 @@ function onClickRight() {
|
|
|
58
59
|
data.value.$vue.clickHandler(buttons.value[0])
|
|
59
60
|
}
|
|
60
61
|
else if(buttons.value.length>1){
|
|
62
|
+
Loaded(data.value)
|
|
61
63
|
show.value=true;
|
|
62
64
|
}
|
|
63
65
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ct-field :vmodel="model">
|
|
3
3
|
<template #Control>
|
|
4
|
-
<el-select-v2 ref="refselect" :key="model.itemKey" v-model="model.value" :options="model.options"
|
|
4
|
+
<el-select-v2 ref="refselect" :key="model.itemKey" v-model="model.value" :options="model.options"
|
|
5
5
|
:props="model.optionAttrs" v-bind="model.attrs" :disabled="model.locked" clearable @change="change"
|
|
6
6
|
:placeholder="model.placeholder" @visible-change="visibleChange" @clear="clear"
|
|
7
7
|
:filterable="model.filterable" :multiple="model.multiple" class="fieldControl" :height="300"
|
|
@@ -210,13 +210,13 @@ function setminWidth() {
|
|
|
210
210
|
let maxLength = -1;
|
|
211
211
|
let text;
|
|
212
212
|
for (let item of model.value.options) {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
213
|
+
if (item.name) {
|
|
214
|
+
if (item.name.length > maxLength) {
|
|
215
|
+
maxLength = item.name.length;
|
|
216
|
+
text = item.name;
|
|
218
217
|
}
|
|
219
|
-
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
220
|
|
|
221
221
|
let span = document.createElement('span');
|
|
222
222
|
span.innerText = text;
|
|
@@ -224,9 +224,14 @@ function setminWidth() {
|
|
|
224
224
|
span.style.width = 'auto';
|
|
225
225
|
span.style.fontSize = '17px';
|
|
226
226
|
document.body.appendChild(span);
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
|
|
228
|
+
if ((span.getBoundingClientRect().width + 40) <= refselect.value.selectRef.offsetWidth) {
|
|
229
|
+
refselect.value.popperSize = refselect.value.selectRef.offsetWidth;
|
|
229
230
|
}
|
|
231
|
+
else{
|
|
232
|
+
refselect.value.popperSize = span.getBoundingClientRect().width + 40;
|
|
233
|
+
}
|
|
234
|
+
|
|
230
235
|
document.body.removeChild(span);
|
|
231
236
|
}
|
|
232
237
|
//弹出选择列表
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
确定
|
|
9
9
|
</el-button>
|
|
10
10
|
</div>
|
|
11
|
-
<baidu-map :ak="ak" :v="v" :type="type" :center="data.center" :zoom="data.zoom"
|
|
11
|
+
<baidu-map :ak="data.ak" :v="data.v" :type="data.type" :center="data.center" :zoom="data.zoom"
|
|
12
12
|
:scroll-wheel-zoom="data.scroll_wheel_zoom" :double-click-zoom="data.double_click_zoom"
|
|
13
13
|
@ready="handler" @dragend="dragendHandler" @tilesloaded="tilesloadedHandler"
|
|
14
14
|
:style="{height:data.mapHeight + 'px'}">
|
|
@@ -45,10 +45,10 @@ const props = defineProps({
|
|
|
45
45
|
default: 'Browse',
|
|
46
46
|
},
|
|
47
47
|
})
|
|
48
|
-
const ak = ref('twUFDRiSaRpMp9V4ALun9w52QSiYUGE9')
|
|
49
|
-
const v = ref('3.0')
|
|
50
|
-
const type = ref('API')
|
|
51
48
|
const data = ref({
|
|
49
|
+
ak : 'twUFDRiSaRpMp9V4ALun9w52QSiYUGE9',
|
|
50
|
+
v : '3.0',
|
|
51
|
+
type : 'API',
|
|
52
52
|
center: {lng: 0, lat: 0},// 定位位置
|
|
53
53
|
zoom: 3,// 地图放大等级
|
|
54
54
|
flagShowZoom:false,//是否显示缩放控件
|
package/src/main.js
CHANGED
|
@@ -65,7 +65,7 @@ app.use(centaline, {
|
|
|
65
65
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
66
66
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
67
67
|
//authObject: '{token:"1-a7289bb2-9f1e-4a04-9016-1e555bf39188"}',
|
|
68
|
-
authObject: '{EmpID:"
|
|
68
|
+
authObject: '{EmpID:"Token_43406e81-3337-4d1f-8917-edc5bfec9c9f",MachineCode:"e1f39b75-7069-4c4f-b5d5-c590da2d9aa2",SSO_Token:"SSOToken_43406e81-3337-4d1f-8917-edc5bfec9c9f",Platform:"IOS"}',
|
|
69
69
|
};
|
|
70
70
|
},
|
|
71
71
|
// 请求完成事件,可判断是否登录过期执行响应操作
|
package/src/views/SearchList.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
3
|
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
|
|
4
4
|
:searchDataApi="'/propertyPublishList/getListOfSearchModel'"
|
|
5
|
-
|
|
5
|
+
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
6
6
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
7
7
|
|
|
8
8
|
</div>
|