centaline-data-driven-v3 0.0.51 → 0.0.52
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 +9 -9
- package/package.json +1 -1
- package/src/components/app/PhotoSelectList.vue +3 -3
- package/src/components/app/SearchList/SearchTable.vue +4 -4
- package/src/components/app/ViewerFile.vue +1 -1
- package/src/components/web/PhotoSelect.vue +1 -1
- package/src/components/web/PhotoSelectList.vue +4 -4
- package/src/components/web/other/PopupSearchListTable.vue +3 -3
- package/src/loader/src/FormList.js +2 -2
- package/src/main.js +2 -1
- package/src/utils/common.js +8 -2
- package/src/views/SearchList.vue +3 -2
package/package.json
CHANGED
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
</template>
|
|
41
41
|
<template v-else>
|
|
42
|
-
<van-empty description="没有数据" />
|
|
42
|
+
<van-empty :description="common.LocalizedString('没有数据','沒有數據')" />
|
|
43
43
|
</template>
|
|
44
44
|
</div>
|
|
45
45
|
<div class="PhotoSelectList-bottom">
|
|
46
|
-
<van-checkbox @change="allchoose" v-model="allcheck" shape="square" icon-size="14px"
|
|
46
|
+
<van-checkbox @change="allchoose" v-model="allcheck" shape="square" icon-size="14px">{{common.LocalizedString('全选','全選')}}</van-checkbox>
|
|
47
47
|
<van-button type="primary" class="van-button-app" size="small" style="display: flex;margin-left: 30%;"
|
|
48
|
-
@click="handleClick()"
|
|
48
|
+
@click="handleClick()">{{common.LocalizedString('确定','確認')}}</van-button>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
51
|
<van-popup v-model:show="showPicker" position="bottom" :safe-area-inset-bottom="true">
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div ref="refTableParent" class="ct-tableParentAPP" :style="'height:' + model.tableHeight + 'px'"
|
|
11
11
|
@scroll="scrollHandle($event)">
|
|
12
12
|
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
|
|
13
|
-
<van-list v-if="!tableError" v-model:loading="tableLoading" error-text="没有查到数据,点我刷新"
|
|
13
|
+
<van-list v-if="!tableError" v-model:loading="tableLoading" :error-text="common.LocalizedString('没有查到数据,点我刷新','沒有查到數據,點我刷新')"
|
|
14
14
|
:finished="finished" @load="onLoad" :immediate-check="false"
|
|
15
15
|
:style="'min-height:' + model.tableHeight + 'px'">
|
|
16
16
|
<template v-if="flagPopupSearchlist && singleSelectio">
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</van-checkbox-group>
|
|
44
44
|
</template>
|
|
45
45
|
</van-list>
|
|
46
|
-
<van-empty v-else description="没有查到数据" />
|
|
46
|
+
<van-empty v-else :description="common.LocalizedString('没有查到数据','沒有查到數據')" />
|
|
47
47
|
</van-pull-refresh>
|
|
48
48
|
<div v-if="isoperate || flagPopupSearchlist" style="height: 50px;"></div>
|
|
49
49
|
<div class="safe-area-inset-bottom" style="background-color: #fafafa;"></div>
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
</div>
|
|
60
60
|
<div class="ct-checkboxtips" v-if="isoperate || flagPopupSearchlist">
|
|
61
61
|
<van-checkbox v-if="!singleSelectio" v-model="model.selectAll" shape="square" checked-color="#EE6B6B"
|
|
62
|
-
icon-size="14px" :indeterminate="model.isIndeterminate" @click="selectAll()"
|
|
62
|
+
icon-size="14px" :indeterminate="model.isIndeterminate" @click="selectAll()">{{common.LocalizedString('本页全选(已选','本頁全選(已選')}}{{ selectCount }})
|
|
63
63
|
</van-checkbox>
|
|
64
64
|
<div style="display: flex;flex: 1; justify-content: right;">
|
|
65
65
|
<template v-if="!flagPopupSearchlist">
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
</template>
|
|
72
72
|
<template v-else>
|
|
73
73
|
<van-button color="#EE6B6B" size="small" @click="confirmClickHandler()"
|
|
74
|
-
style=" width: 25%;margin-left: 10px;"
|
|
74
|
+
style=" width: 25%;margin-left: 10px;">{{common.LocalizedString('确认','確認')}}</van-button>
|
|
75
75
|
</template>
|
|
76
76
|
</div>
|
|
77
77
|
</div>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
<template v-if="file.mediaTypeID == '1'">
|
|
35
|
-
<iframe :src="file.mediaUrl" height="100%" width="100%" style="border-width: 0px;">
|
|
35
|
+
<iframe :src="file.mediaUrl" height="100%" width="100%" style="border-width: 0px;" allowfullscreen allowvr>
|
|
36
36
|
</iframe>
|
|
37
37
|
</template>
|
|
38
38
|
<!--Photo-->
|
|
@@ -129,7 +129,7 @@ function handleOpen() {
|
|
|
129
129
|
chooseList.push(n);
|
|
130
130
|
});
|
|
131
131
|
var dialogOption = {
|
|
132
|
-
title:
|
|
132
|
+
title: common.LocalizedString('选择','選擇') + model.value.controlLabel || common.LocalizedString('选择图片','選擇圖片'),
|
|
133
133
|
pane: common.getParentPane(),
|
|
134
134
|
content: [{
|
|
135
135
|
component: "ct-photoselectlist",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div v-loading="loading" style="width: 100%;height: 100%;">
|
|
3
3
|
<div style="width: 100%;height: 100%;position: relative;" class="ct-photoSelectList" v-if="FlagPhoto">
|
|
4
4
|
<div style="padding: 10px 0 0 20px" v-if="paramName">
|
|
5
|
-
<el-select-v2 v-model="mediaLabelID" :props="optionAttrs" :options="options" placeholder="类别"
|
|
5
|
+
<el-select-v2 v-model="mediaLabelID" :props="optionAttrs" :options="options" :placeholder="common.LocalizedString('类别','類別')"
|
|
6
6
|
style="width: 150px;" @change="change" clearable />
|
|
7
7
|
</div>
|
|
8
8
|
<el-main :style="paramName ? 'top: 40px' : 'top: 10px'"
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
</template>
|
|
54
54
|
</template>
|
|
55
55
|
<template v-else>
|
|
56
|
-
<el-empty description="没有数据" />
|
|
56
|
+
<el-empty :description="common.LocalizedString('没有数据','沒有數據')" />
|
|
57
57
|
</template>
|
|
58
58
|
</el-main>
|
|
59
59
|
|
|
60
60
|
<div style="width:100%;text-align:center">
|
|
61
61
|
<el-checkbox style="position:absolute;bottom:10px;left: 15px;" @change="allchoose"
|
|
62
|
-
v-model="allcheck"
|
|
63
|
-
<el-button type="primary" style="position:absolute;bottom:10px;" @click="handleClick()"
|
|
62
|
+
v-model="allcheck">{{common.LocalizedString('全选','全選')}}</el-checkbox>
|
|
63
|
+
<el-button type="primary" style="position:absolute;bottom:10px;" @click="handleClick()">{{common.LocalizedString('确定','確認')}}</el-button>
|
|
64
64
|
</div>
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
</el-table>
|
|
37
37
|
<div style="margin-top: 20px;width: 100%;display: inline-block;height: 30px;margin-bottom: 10px;">
|
|
38
38
|
<span class="ct-table-tip-small" v-if="!loading && model" v-html="model.footer"></span> <span
|
|
39
|
-
class="ct-table-tip-small" v-if="!loading && !singleSelectio && model" style="color:red;"
|
|
40
|
-
{{ selectCount }}
|
|
39
|
+
class="ct-table-tip-small" v-if="!loading && !singleSelectio && model" style="color:red;">{{common.LocalizedString('已勾选','已勾選')}}
|
|
40
|
+
{{ selectCount }} {{common.LocalizedString('条','條')}}</span>
|
|
41
41
|
<el-input v-if="jumpBtnName" size="small" v-model="jumpStr" placeholder="定位"
|
|
42
42
|
style="width:150px"></el-input>
|
|
43
43
|
<el-button v-if="jumpBtnName" size="small" @click="jumpClickHandler()">{{ jumpBtnName }}</el-button>
|
|
44
44
|
<el-button v-if="filterBtnName" size="small" @click="filterClickHandler()" style="margin-left: 0px;">{{
|
|
45
45
|
filterBtnName }}</el-button>
|
|
46
46
|
<el-button size="small" @click="confirmClickHandler()" class="search-btn" style="float:right;"
|
|
47
|
-
type="primary"
|
|
47
|
+
type="primary">{{common.LocalizedString('确认','確認')}}</el-button>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
50
|
<div style="min-height:250px;" v-loading="loadingOne" v-if="loadingOne"></div>
|
|
@@ -419,8 +419,8 @@ function fieldsToTableData(fields) {
|
|
|
419
419
|
}
|
|
420
420
|
//删除行
|
|
421
421
|
function deleteRow(index, model, callback) {
|
|
422
|
-
common.confirm(
|
|
423
|
-
confirmButtonText:
|
|
422
|
+
common.confirm(common.LocalizedString('确定删除?','確定刪除?'), "提示", {
|
|
423
|
+
confirmButtonText: common.LocalizedString('确定','確定'),
|
|
424
424
|
cancelButtonText: "取消",
|
|
425
425
|
}).then(() => {
|
|
426
426
|
model.rows.forEach((row, i) => {
|
package/src/main.js
CHANGED
|
@@ -30,6 +30,7 @@ app.use(centaline, {
|
|
|
30
30
|
zindex: 999,
|
|
31
31
|
showRequestSuccessMessage: true,
|
|
32
32
|
showRequestErrorMessage: true,
|
|
33
|
+
language:'HK',
|
|
33
34
|
handler: {
|
|
34
35
|
// 打开tab页
|
|
35
36
|
openTab: function (action) {
|
|
@@ -63,7 +64,7 @@ app.use(centaline, {
|
|
|
63
64
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
64
65
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
65
66
|
//authObject: '{token:"1647-1802885825978044416",platform:"WEB"}',
|
|
66
|
-
authObject: '{EmpID:"
|
|
67
|
+
authObject: '{EmpID:"Token_937f0ada-8862-4c37-bf44-578531920446",MachineCode:"7a216b39-84af-43bb-842b-07604ac37a10",SSO_Token:"SSOToken_937f0ada-8862-4c37-bf44-578531920446",Platform:"WEB"}',
|
|
67
68
|
};
|
|
68
69
|
},
|
|
69
70
|
// 请求完成事件,可判断是否登录过期执行响应操作
|
package/src/utils/common.js
CHANGED
|
@@ -282,8 +282,8 @@ const common = {
|
|
|
282
282
|
if (this.hasHtml(message)) {
|
|
283
283
|
showDialog({ message: message, allowHtml: true });
|
|
284
284
|
}
|
|
285
|
-
else if(type=='error'){
|
|
286
|
-
showDialog({ title: '提示', message:message, closeOnClickOverlay: true, confirmButtonText: '确定', className: 'showDialogMessage' });
|
|
285
|
+
else if (type == 'error') {
|
|
286
|
+
showDialog({ title: '提示', message: message, closeOnClickOverlay: true, confirmButtonText: '确定', className: 'showDialogMessage' });
|
|
287
287
|
}
|
|
288
288
|
else {
|
|
289
289
|
showToast(message);
|
|
@@ -557,6 +557,12 @@ const common = {
|
|
|
557
557
|
flagApp() {
|
|
558
558
|
return dataDrivenOpts.flagApp;
|
|
559
559
|
},
|
|
560
|
+
LocalizedString(strCN, strHK) {
|
|
561
|
+
if (dataDrivenOpts.language && dataDrivenOpts.language == 'HK') {
|
|
562
|
+
return strHK;
|
|
563
|
+
}
|
|
564
|
+
return strCN;
|
|
565
|
+
},
|
|
560
566
|
//是否微信浏览器
|
|
561
567
|
flagMicroMessenger() {
|
|
562
568
|
var ua = navigator.userAgent.toLowerCase();
|
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>
|