centaline-data-driven-v3 0.0.92 → 0.0.93
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 +4 -4
- package/package.json +1 -1
- package/src/assets/commonApp.css +1 -1
- package/src/components/app/Form.vue +17 -1
- package/src/components/app/TextBox.vue +11 -2
- package/src/components/web/Label.vue +6 -2
- package/src/main.js +2 -2
- package/src/views/SearchList.vue +4 -4
package/package.json
CHANGED
package/src/assets/commonApp.css
CHANGED
|
@@ -155,6 +155,22 @@ init()
|
|
|
155
155
|
function init() {
|
|
156
156
|
showLoadingToast({ message: '', duration: 10000 });
|
|
157
157
|
loading.value = true
|
|
158
|
+
const isAndroid = /Android/i.test(navigator.userAgent);
|
|
159
|
+
if (isAndroid) {
|
|
160
|
+
// 动态检测键盘状态
|
|
161
|
+
let viewportHeight = window.innerHeight;
|
|
162
|
+
|
|
163
|
+
window.addEventListener('resize', () => {
|
|
164
|
+
const newHeight = window.innerHeight;
|
|
165
|
+
const keyboardHeight = viewportHeight - newHeight;
|
|
166
|
+
|
|
167
|
+
if (keyboardHeight > 100) { // 键盘弹出
|
|
168
|
+
document.querySelector('.button-absoluteAPP').style.bottom = `${keyboardHeight}px`;
|
|
169
|
+
} else { // 键盘收起
|
|
170
|
+
document.querySelector('.button-absoluteAPP').style.bottom = '0';
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
158
174
|
nextTick(function () {
|
|
159
175
|
if (props.drowerClose && props.drowerClose == 'open') {
|
|
160
176
|
return;
|
|
@@ -248,7 +264,7 @@ function setFormHeight() {
|
|
|
248
264
|
h2 = refForm.value.offsetTop
|
|
249
265
|
}
|
|
250
266
|
let formHeight = h1 - h2
|
|
251
|
-
if ((common.flagMicroMessenger()||common.flagHK())&&model.value.buttons.findIndex((v) => { return v.show }) > -1) {
|
|
267
|
+
if ((common.flagMicroMessenger() || common.flagHK()) && model.value.buttons.findIndex((v) => { return v.show }) > -1) {
|
|
252
268
|
formHeight = formHeight - 64
|
|
253
269
|
}
|
|
254
270
|
model.value.formHeight = formHeight
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<van-field clearable :type="model.inputType" :rows="model.rows" v-bind="model.attrs" v-model="model.code1"
|
|
12
12
|
:readonly="model.readonly" :disabled="model.locked" :maxlength="model.maxValue1"
|
|
13
13
|
:show-word-limit="model.showWordLimit" :label-align="model.inputType == 'textarea' ? 'top' : 'left'"
|
|
14
|
-
@input="
|
|
14
|
+
@input="input()" @blur="change()" class="ct-text" autocomplete="off">
|
|
15
15
|
<template #label v-if="model.showLabel && model.controlLabel">
|
|
16
16
|
<div :class="[model.required ? 'requiredLabel' : '']"
|
|
17
17
|
:style="model.isList ? 'white-space: nowrap' : ''">
|
|
@@ -49,7 +49,16 @@ function popupSearchListHandle() {
|
|
|
49
49
|
let isSingle = model.value.moreActionRouter.isSingle
|
|
50
50
|
emit('popupSearchList', isSingle, model, model.value.moreActionRouter);
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
function input() {
|
|
53
|
+
if(model.value.controlType===Enum.ControlType.MultiLineText || model.value.controlType===Enum.ControlType.TextBox){
|
|
54
|
+
}
|
|
55
|
+
else{
|
|
56
|
+
change();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function change() {
|
|
60
|
+
changeHandler(model.value, emit);
|
|
61
|
+
}
|
|
53
62
|
defineExpose({
|
|
54
63
|
model
|
|
55
64
|
})
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<ct-field :vmodel="model">
|
|
3
3
|
<template #Control v-if="model.code1">
|
|
4
4
|
<template v-if="model.controlType==Enum.ControlType.HtmlLabel">
|
|
5
|
-
<span class="ct-html" @click="clickHandle" v-html="model.value"></span>
|
|
5
|
+
<span class="ct-html" :class="{ 'cursor-pointer': model.onChanged }" @click="clickHandle" v-html="model.value"></span>
|
|
6
6
|
</template>
|
|
7
7
|
<template v-else-if="model.flagJson">
|
|
8
8
|
<el-tag v-for="item in model.value" :key="item" type="info" :disable-transitions="true" style="margin: 2px 6px 2px 0px;">{{ item
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<div :style="{ 'width': (model.value.length > 66 ? '400px' : 'auto') }" v-html="model.value">
|
|
17
17
|
</div>
|
|
18
18
|
</template>
|
|
19
|
-
<span class="ct-lable" @mouseover="onMouseOver($event)" v-html="model.value" @click="clickHandle"></span>
|
|
19
|
+
<span class="ct-lable" :class="{ 'cursor-pointer': model.onChanged }" @mouseover="onMouseOver($event)" v-html="model.value" @click="clickHandle"></span>
|
|
20
20
|
</el-tooltip>
|
|
21
21
|
<span class="unitName">{{ model.unitName1 }}</span>
|
|
22
22
|
</template>
|
|
@@ -92,4 +92,8 @@ defineExpose({
|
|
|
92
92
|
--el-tag-text-color: var(--el-color-info);
|
|
93
93
|
color: var(--el-color-info);
|
|
94
94
|
}
|
|
95
|
+
|
|
96
|
+
.cursor-pointer {
|
|
97
|
+
cursor: pointer; /* 鼠标悬停时显示为“小手”形状 */
|
|
98
|
+
}
|
|
95
99
|
</style>
|
package/src/main.js
CHANGED
|
@@ -30,7 +30,7 @@ app.use(centaline, {
|
|
|
30
30
|
//baseUrl: "http://10.1.245.111:38028/",
|
|
31
31
|
|
|
32
32
|
flagRouterSelf: true,
|
|
33
|
-
flagApp:
|
|
33
|
+
flagApp: true,//是否app端
|
|
34
34
|
zindex: 999,
|
|
35
35
|
showRequestSuccessMessage: true,
|
|
36
36
|
showRequestErrorMessage: false,
|
|
@@ -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_35daf643-69e6-4da4-addf-c6c9ffdf59ff",MachineCode:"7c4b2ffd-920a-462c-a586-37bbfb45c4fe",SSO_Token:"SSOToken_35daf643-69e6-4da4-addf-c6c9ffdf59ff",Platform:"IOS"}',
|
|
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
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
|
|
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
|
-
|
|
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'"
|