centaline-data-driven-v3 0.0.94 → 0.0.96
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 +51 -51
- package/package.json +1 -1
- package/src/components/app/Form.vue +6 -9
- package/src/components/app/ViewerFile/ViewerP360.vue +4 -1
- package/src/components/web/CheckBoxList.vue +1 -1
- package/src/components/web/PhotoSelect.vue +15 -5
- package/src/components/web/ViewerFile/ViewerP360.vue +4 -1
- package/src/loader/src/CheckBoxList.js +1 -1
- package/src/loader/src/SearchTable.js +3 -1
- package/src/main.js +1 -1
- package/src/views/SearchList.vue +4 -4
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
<div class="safe-area-inset-bottom-height"></div>
|
|
83
83
|
</div>
|
|
84
84
|
<div class="button-absoluteAPP"
|
|
85
|
-
v-if="(common.flagMicroMessenger() || common.flagHK()) && model.buttons.findIndex((v) => { return v.show }) > -1">
|
|
85
|
+
v-if="(common.flagMicroMessenger() || common.flagHK()) && model.buttons.findIndex((v) => { return v.show }) > -1 && buttonShow">
|
|
86
86
|
<template v-for="(field, index) in model.buttons" :key="index">
|
|
87
87
|
<component v-if="field.show !== false" ref="Fields" :is="field.is" :vmodel="field"
|
|
88
88
|
:parameterAction="model.parameterAction" v-bind="field.bindPara" @fieldClick="clickHandler" />
|
|
@@ -150,6 +150,7 @@ const refForm = ref()
|
|
|
150
150
|
const buttons = ref([])
|
|
151
151
|
const actions = ref([])
|
|
152
152
|
const show = ref(false)
|
|
153
|
+
const buttonShow = ref(true)
|
|
153
154
|
init()
|
|
154
155
|
//初始化数据
|
|
155
156
|
function init() {
|
|
@@ -159,15 +160,11 @@ function init() {
|
|
|
159
160
|
if (isAndroid) {
|
|
160
161
|
// 动态检测键盘状态
|
|
161
162
|
let viewportHeight = window.innerHeight;
|
|
162
|
-
|
|
163
163
|
window.addEventListener('resize', () => {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
document.querySelector('.button-absoluteAPP').style.bottom = `${keyboardHeight}px`;
|
|
169
|
-
} else { // 键盘收起
|
|
170
|
-
document.querySelector('.button-absoluteAPP').style.bottom = '0';
|
|
164
|
+
if (window.innerHeight < viewportHeight) {
|
|
165
|
+
buttonShow.value = false
|
|
166
|
+
} else {
|
|
167
|
+
buttonShow.value = true
|
|
171
168
|
}
|
|
172
169
|
});
|
|
173
170
|
}
|
|
@@ -23,6 +23,9 @@ onMounted(() => {
|
|
|
23
23
|
function init() {
|
|
24
24
|
loading.value = true
|
|
25
25
|
if (panoramaContainer.value) {
|
|
26
|
+
if (PSV.value) {
|
|
27
|
+
PSV.value.destroy(); // 销毁旧实例
|
|
28
|
+
}
|
|
26
29
|
PSV.value = new PhotoSphereViewer({
|
|
27
30
|
container: panoramaContainer.value,
|
|
28
31
|
panorama: props.imgUrl, // 替换为你的全景图片路径
|
|
@@ -66,7 +69,7 @@ function enterFullscreen() {
|
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
|
|
69
|
-
watch(() => props.
|
|
72
|
+
watch(() => props.imgUrl, () => {
|
|
70
73
|
init();
|
|
71
74
|
//complete();
|
|
72
75
|
})
|
|
@@ -84,7 +84,8 @@ const dragOptions = {
|
|
|
84
84
|
chosenClass: "chosen",
|
|
85
85
|
forceFallback: true,
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
const currentWidth = ref(0); // 当前显示的宽度
|
|
88
|
+
const currentHeight= ref(0); // 当前显示的高度
|
|
88
89
|
const qrtimer=ref(null)
|
|
89
90
|
onBeforeUnmount(()=>{
|
|
90
91
|
if (qrtimer.value) {
|
|
@@ -128,6 +129,7 @@ function handleOpen() {
|
|
|
128
129
|
});
|
|
129
130
|
return;
|
|
130
131
|
}
|
|
132
|
+
updateCurrentSize();
|
|
131
133
|
var params = {
|
|
132
134
|
paramName: model.value.paramName1,
|
|
133
135
|
parentValue: model.value.getFormParentFieldPara(),
|
|
@@ -141,8 +143,8 @@ function handleOpen() {
|
|
|
141
143
|
pane: common.getParentPane(),
|
|
142
144
|
content: [{
|
|
143
145
|
component: "ct-photoselectlist",
|
|
144
|
-
width: "
|
|
145
|
-
height: "
|
|
146
|
+
width: currentWidth.value+"px",
|
|
147
|
+
height: currentHeight.value+"px",
|
|
146
148
|
|
|
147
149
|
attrs: {
|
|
148
150
|
api: model.value.action, // self.api,//source.xx
|
|
@@ -151,8 +153,8 @@ function handleOpen() {
|
|
|
151
153
|
mediaViewPageType: (model.value.mediaViewPageType || 0),
|
|
152
154
|
// width: self.model.router.pageWidth + 'px',
|
|
153
155
|
// height: self.model.router.pageHeight+'px',
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
width: currentWidth.value+"px",
|
|
157
|
+
height: currentHeight.value+"px",
|
|
156
158
|
para: params,
|
|
157
159
|
onHandlePhoto: (List) => {
|
|
158
160
|
nextTick(function () {
|
|
@@ -184,6 +186,14 @@ function handleOpen() {
|
|
|
184
186
|
|
|
185
187
|
|
|
186
188
|
}
|
|
189
|
+
|
|
190
|
+
function updateCurrentSize() {
|
|
191
|
+
let width = window.innerWidth;
|
|
192
|
+
let height = window.innerHeight;
|
|
193
|
+
// 根据条件更新当前宽度和高度
|
|
194
|
+
currentWidth.value = width < 772 ? width : 772;
|
|
195
|
+
currentHeight.value =height < 550 ? height-45 :550;
|
|
196
|
+
}
|
|
187
197
|
function onEnd(a, b) {
|
|
188
198
|
|
|
189
199
|
nextTick(function () {
|
|
@@ -20,6 +20,9 @@ onMounted(() => {
|
|
|
20
20
|
|
|
21
21
|
function init() {
|
|
22
22
|
if (panoramaContainer.value) {
|
|
23
|
+
if (PSV.value) {
|
|
24
|
+
PSV.value.destroy(); // 销毁旧实例
|
|
25
|
+
}
|
|
23
26
|
PSV.value = new PhotoSphereViewer({
|
|
24
27
|
container: panoramaContainer.value,
|
|
25
28
|
panorama: props.imgUrl, // 替换为你的全景图片路径
|
|
@@ -74,7 +77,7 @@ const viewerHeight = computed(() => {
|
|
|
74
77
|
return props.height
|
|
75
78
|
}
|
|
76
79
|
})
|
|
77
|
-
watch(() => props.
|
|
80
|
+
watch(() => props.imgUrl, () => {
|
|
78
81
|
init();
|
|
79
82
|
//complete();
|
|
80
83
|
})
|
|
@@ -28,7 +28,7 @@ const CheckBoxList = function (source) {
|
|
|
28
28
|
},
|
|
29
29
|
//修改code1值
|
|
30
30
|
setcode() {
|
|
31
|
-
let currentOptions =
|
|
31
|
+
let currentOptions = this.selectItems1.filter((v) => {
|
|
32
32
|
return this.value.indexOf(v['code']) >= 0;
|
|
33
33
|
});
|
|
34
34
|
currentOptions.forEach((v) => {
|
|
@@ -208,6 +208,9 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
|
|
|
208
208
|
else if (rtn.sortString) {
|
|
209
209
|
return rtn.sortString;
|
|
210
210
|
}
|
|
211
|
+
else if (source.page.orderBy) {
|
|
212
|
+
return source.page.orderBy;
|
|
213
|
+
}
|
|
211
214
|
},
|
|
212
215
|
get pageIndex() {
|
|
213
216
|
return rtn.pageIndex;
|
|
@@ -742,7 +745,6 @@ function apiData(model, callback) {
|
|
|
742
745
|
}
|
|
743
746
|
model.isLoading = true;
|
|
744
747
|
var newSearchModel = model.getSearchData();
|
|
745
|
-
|
|
746
748
|
request.postHandler(common.globalUri(), {
|
|
747
749
|
action: model.searchAction,
|
|
748
750
|
para: {
|
package/src/main.js
CHANGED
|
@@ -68,7 +68,7 @@ app.use(centaline, {
|
|
|
68
68
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
69
69
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
70
70
|
//authObject: '{token:"1-bce18a8d-21f0-4022-a6ca-450de105cafc"}',
|
|
71
|
-
authObject: '{EmpID:"
|
|
71
|
+
authObject: '{EmpID:"Token_f0a59fe5-6641-4e7d-bd99-66e6da8e85e2",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_f0a59fe5-6641-4e7d-bd99-66e6da8e85e2",Platform:"WEB"}',
|
|
72
72
|
};
|
|
73
73
|
},
|
|
74
74
|
getToken() {
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
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
|
-
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
5
|
+
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
6
6
|
|
|
7
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
8
|
-
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist>
|
|
7
|
+
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
8
|
+
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist> -->
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/AttendanceClassList/getLayoutOfSearch'"
|