centaline-data-driven-v3 0.0.51 → 0.0.53
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 +42 -42
- package/package.json +1 -1
- package/src/components/app/FormList.vue +1 -1
- package/src/components/app/PhotoSelect.vue +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 +5 -5
- package/src/components/web/FormList.vue +3 -0
- package/src/components/web/PhotoSelect.vue +1 -1
- package/src/components/web/PhotoSelectList.vue +4 -4
- package/src/components/web/SearchList/SearchTable.vue +1 -1
- package/src/components/web/ViewerFile.vue +4 -4
- package/src/components/web/other/PopupSearchListTable.vue +3 -3
- package/src/loader/src/FormList.js +2 -2
- package/src/main.js +5 -4
- package/src/utils/common.js +8 -2
- package/src/views/SearchList.vue +3 -2
package/package.json
CHANGED
|
@@ -119,7 +119,7 @@ function handleOpen() {
|
|
|
119
119
|
chooseList.push(n);
|
|
120
120
|
});
|
|
121
121
|
var dialogOption = {
|
|
122
|
-
title:
|
|
122
|
+
title: common.LocalizedString('选择','選擇') + model.value.controlLabel || common.LocalizedString('选择图片','選擇圖片'),
|
|
123
123
|
pane: common.getParentPane(),
|
|
124
124
|
content: [{
|
|
125
125
|
component: "ct-photoselectlist",
|
|
@@ -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>
|
|
@@ -14,25 +14,25 @@
|
|
|
14
14
|
<div class="cont" v-if="file.mediaUrl">
|
|
15
15
|
<div style="padding-right:10px;">
|
|
16
16
|
<div class="enlarge-picture " v-if="file.mediaLabelName">
|
|
17
|
-
<span class="" style="width:80px;"
|
|
17
|
+
<span class="" style="width:80px;">{{common.LocalizedString('附件类型','附件類型')}} : </span>
|
|
18
18
|
<span style="font-weight: bold;flex: 1;">{{ file.mediaLabelName }}</span>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="enlarge-picture" v-if="file.mediaDescCN">
|
|
21
|
-
<span style="width:80px;"
|
|
21
|
+
<span style="width:80px;">{{common.LocalizedString('中文描述','中文描述')}} : </span>
|
|
22
22
|
<span style="font-weight: bold;flex: 1;">{{ file.mediaDescCN }}</span>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="enlarge-picture" v-if="file.mediaDescEN">
|
|
25
|
-
<span style="width:80px;"
|
|
25
|
+
<span style="width:80px;">{{common.LocalizedString('英文描述','英文描述')}} : </span>
|
|
26
26
|
<span style="font-weight: bold;flex: 1;">{{ file.mediaDescEN }}</span>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="enlarge-picture" v-if="file.mediaUploadEmployeeDesc">
|
|
29
|
-
<span style="width:80px;"
|
|
29
|
+
<span style="width:80px;">{{common.LocalizedString('来源描述','來源描述')}} : </span>
|
|
30
30
|
<span style="font-weight: bold;flex: 1;">{{ file.mediaUploadEmployeeDesc }}</span>
|
|
31
31
|
</div>
|
|
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>
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
style="margin-top: 10px;width: 100%;display: inline-block;height: 30px;margin-bottom: 10px;">
|
|
218
218
|
<el-button size="mini" @click="popupClickHandler()" class="max-search-btn" style="float:right;"
|
|
219
219
|
type="primary">
|
|
220
|
-
|
|
220
|
+
{{common.LocalizedString('确认','確認')}}
|
|
221
221
|
</el-button>
|
|
222
222
|
</div>
|
|
223
223
|
<div v-if="isLoading" v-loading="isLoading" style="top: 30px"></div>
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
<div class="cont" v-if="resultObject">
|
|
33
33
|
<div style="padding-right:10px;" v-if="mediaLabelShow">
|
|
34
34
|
<div class="enlarge-picture " v-if="itemFile.mediaLabelName">
|
|
35
|
-
<span class="" style="width:80px;"
|
|
35
|
+
<span class="" style="width:80px;">{{common.LocalizedString('附件类型','附件類型')}} : </span>
|
|
36
36
|
<lable style="font-weight: bold;">{{ itemFile.mediaLabelName }}</lable>
|
|
37
37
|
</div>
|
|
38
38
|
<div class="enlarge-picture" v-if="itemFile.mediaDescCN">
|
|
39
|
-
<span style="width:80px;"
|
|
39
|
+
<span style="width:80px;">{{common.LocalizedString('中文描述','中文描述')}} : </span>
|
|
40
40
|
<lable style="font-weight: bold;">{{ itemFile.mediaDescCN }}</lable>
|
|
41
41
|
</div>
|
|
42
42
|
<div class="enlarge-picture" v-if="itemFile.mediaDescEN">
|
|
43
|
-
<span style="width:80px;"
|
|
43
|
+
<span style="width:80px;">{{common.LocalizedString('英文描述','英文描述')}} : </span>
|
|
44
44
|
<lable style="font-weight: bold;">{{ itemFile.mediaDescEN }}</lable>
|
|
45
45
|
</div>
|
|
46
46
|
<div class="enlarge-picture" v-if="itemFile.mediaUploadEmployeeDesc">
|
|
47
|
-
<span style="width:80px;"
|
|
47
|
+
<span style="width:80px;">{{common.LocalizedString('来源描述','來源描述')}} : </span>
|
|
48
48
|
<lable style="font-weight: bold;">{{ itemFile.mediaUploadEmployeeDesc }}</lable>
|
|
49
49
|
</div>
|
|
50
50
|
</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
|
@@ -21,8 +21,8 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
app.use(centaline, {
|
|
24
|
-
baseUrl:"http://10.88.22.66/IBS.Mvc/api/",
|
|
25
|
-
|
|
24
|
+
//baseUrl:"http://10.88.22.66/IBS.Mvc/api/",
|
|
25
|
+
baseUrl: "http://10.88.22.66:6060/onecard-api/",
|
|
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,
|
|
@@ -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) {
|
|
@@ -62,8 +63,8 @@ app.use(centaline, {
|
|
|
62
63
|
return {
|
|
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: '{EmpID:"
|
|
66
|
+
authObject: '{token:"1-b0ca13fb-3f45-46b0-9d1f-7b028c05f6d3"}',
|
|
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>
|