centaline-data-driven-v3 0.0.55 → 0.0.56
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 +14 -14
- package/package.json +1 -1
- package/src/components/app/ContainerControl.vue +4 -8
- package/src/components/app/SearchList/SearchTable.vue +1 -1
- package/src/components/app/TextBox.vue +3 -0
- package/src/main.js +2 -2
- package/src/views/SearchList.vue +3 -2
package/package.json
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
<script lang="ts" setup>
|
|
12
12
|
import { ref } from 'vue'
|
|
13
|
-
import common from '../../utils/common'
|
|
14
13
|
import { initData } from '../../utils/mixins';
|
|
15
14
|
import ContainerControl from '../../loader/src/ContainerControl';
|
|
16
15
|
const emit = defineEmits(['click', 'change', 'fieldClick', 'popupSearchList'])
|
|
@@ -24,15 +23,12 @@ const Fields = ref()
|
|
|
24
23
|
|
|
25
24
|
model.value.selfValidExcute = () => {
|
|
26
25
|
let rtnBool = true;
|
|
27
|
-
if (typeof Fields !== 'undefined') {
|
|
26
|
+
if (typeof Fields.value !== 'undefined') {
|
|
28
27
|
Fields.value.forEach((f) => {
|
|
29
|
-
if (typeof f.validExcute !== 'undefined') {
|
|
30
|
-
if (!f.validExcute(f.model)) {
|
|
28
|
+
if (f.model && typeof f.model.validExcute !== 'undefined') {
|
|
29
|
+
if (!f.model.validExcute(f.model)) {
|
|
30
|
+
model.value.displayValidMessage=f.model.displayValidMessage
|
|
31
31
|
rtnBool = false;
|
|
32
|
-
if (!model.controlLabel && f.model.controlLabel) {
|
|
33
|
-
common.message('【' + f.model.controlLabel + '】不能为空!')
|
|
34
|
-
}
|
|
35
|
-
|
|
36
32
|
}
|
|
37
33
|
}
|
|
38
34
|
});
|
|
@@ -194,7 +194,7 @@ function load(data) {
|
|
|
194
194
|
return v.key && v.show && (v.key.indexOf('New') > -1 || v.key.indexOf('new') > -1 || v.key.indexOf('Apply') > -1);
|
|
195
195
|
})
|
|
196
196
|
modeButtons.value = model.value.buttons.filter((v) => {
|
|
197
|
-
return v.disabled
|
|
197
|
+
return v.disabled && v.show && v.isMulti && !(v.key.indexOf('New') > -1 || v.key.indexOf('new') > -1 || v.key.indexOf('Apply') > -1)
|
|
198
198
|
})
|
|
199
199
|
modeButtons.value.forEach((v) => {
|
|
200
200
|
v.name = v.controlLabel
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
<span>{{ model.controlLabel }}</span>
|
|
19
19
|
</div>
|
|
20
20
|
</template>
|
|
21
|
+
<template #extra v-if="model.sufLabel1">
|
|
22
|
+
<span v-html="model.sufLabel1" style="margin-left: 5px;line-height: 32px;"></span>
|
|
23
|
+
</template>
|
|
21
24
|
<template v-if="model.unitName1" #button>
|
|
22
25
|
{{ model.unitName1 }}
|
|
23
26
|
</template>
|
package/src/main.js
CHANGED
|
@@ -26,7 +26,7 @@ app.use(centaline, {
|
|
|
26
26
|
//baseUrl: "http://10.1.245.50:38735/max-uplink-api/",
|
|
27
27
|
//baseUrl: "http://10.1.245.111:38028/",
|
|
28
28
|
flagRouterSelf: true,
|
|
29
|
-
flagApp:
|
|
29
|
+
flagApp: true,//是否app端
|
|
30
30
|
zindex: 999,
|
|
31
31
|
showRequestSuccessMessage: true,
|
|
32
32
|
showRequestErrorMessage: true,
|
|
@@ -64,7 +64,7 @@ app.use(centaline, {
|
|
|
64
64
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
65
65
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
66
66
|
//authObject: '{token:"1647-1802885825978044416",platform:"WEB"}',
|
|
67
|
-
authObject: '{EmpID:"
|
|
67
|
+
authObject: '{EmpID:"Token_db2d49d2-8f18-4491-a9c1-2b6bee44ad28",MachineCode:"7a216b39-84af-43bb-842b-07604ac37a10",SSO_Token:"SSOToken_db2d49d2-8f18-4491-a9c1-2b6bee44ad28",Platform:"IOS"}',
|
|
68
68
|
};
|
|
69
69
|
},
|
|
70
70
|
// 请求完成事件,可判断是否登录过期执行响应操作
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/
|
|
4
|
-
:searchDataApi="'/
|
|
3
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
|
|
4
|
+
:searchDataApi="'/propertyPublishList/getListOfSearchModel'"
|
|
5
|
+
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
5
6
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
6
7
|
|
|
7
8
|
</div>
|