centaline-data-driven-v3 0.1.12 → 0.1.13
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/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ct-field :vmodel="model">
|
|
3
3
|
<template #Control v-if="model.code1">
|
|
4
|
-
<template v-if="model.controlType==Enum.ControlType.HtmlLabel">
|
|
5
|
-
<span class="ct-html" :class="{ 'cursor-pointer': model.onChanged }"
|
|
4
|
+
<template v-if="model.controlType == Enum.ControlType.HtmlLabel">
|
|
5
|
+
<span class="ct-html" :class="{ 'cursor-pointer': model.onChanged }" @click="clickHandle"
|
|
6
|
+
v-html="HtmlReplace(model.value)"></span>
|
|
6
7
|
</template>
|
|
7
8
|
<template v-else-if="model.flagJson">
|
|
8
|
-
<el-tag v-for="item in model.value" :key="item" type="info" :disable-transitions="true"
|
|
9
|
+
<el-tag v-for="item in model.value" :key="item" type="info" :disable-transitions="true"
|
|
10
|
+
style="margin: 2px 6px 2px 0px;">{{ item
|
|
9
11
|
}}</el-tag>
|
|
10
12
|
</template>
|
|
11
13
|
<template v-else>
|
|
@@ -16,7 +18,8 @@
|
|
|
16
18
|
<div :style="{ 'width': (model.value.length > 66 ? '400px' : 'auto') }" v-html="model.value">
|
|
17
19
|
</div>
|
|
18
20
|
</template>
|
|
19
|
-
<span class="ct-lable" :class="{ 'cursor-pointer': model.onChanged }"
|
|
21
|
+
<span class="ct-lable" :class="{ 'cursor-pointer': model.onChanged }"
|
|
22
|
+
@mouseover="onMouseOver($event)" v-html="model.value" @click="clickHandle"></span>
|
|
20
23
|
</el-tooltip>
|
|
21
24
|
<span class="unitName">{{ model.unitName1 }}</span>
|
|
22
25
|
</template>
|
|
@@ -36,7 +39,7 @@ import { ref, nextTick } from 'vue'
|
|
|
36
39
|
import { initData } from '../../utils/mixins';
|
|
37
40
|
import Enum from '../../utils/Enum'
|
|
38
41
|
import Label from '../../loader/src/Label';
|
|
39
|
-
const emit = defineEmits(['popupSearchList','change'])
|
|
42
|
+
const emit = defineEmits(['popupSearchList', 'change'])
|
|
40
43
|
const props = defineProps({
|
|
41
44
|
parameterAction: String,
|
|
42
45
|
vmodel: Object,
|
|
@@ -51,7 +54,7 @@ function onMouseOver(event) {
|
|
|
51
54
|
let ev = event.target;
|
|
52
55
|
nextTick(function () {
|
|
53
56
|
// 判断是否禁用tooltip功能
|
|
54
|
-
if(ev.clientWidth>0){
|
|
57
|
+
if (ev.clientWidth > 0) {
|
|
55
58
|
isShowTooltip.value = refComputLabel.value.clientWidth <= ev.clientWidth;
|
|
56
59
|
}
|
|
57
60
|
isShowComput.value = false
|
|
@@ -61,12 +64,15 @@ function onMouseOver(event) {
|
|
|
61
64
|
}
|
|
62
65
|
//弹出选择列表
|
|
63
66
|
function popupSearchListHandle() {
|
|
64
|
-
let isSingle=model.value.moreActionRouter.isSingle
|
|
67
|
+
let isSingle = model.value.moreActionRouter.isSingle
|
|
65
68
|
emit('popupSearchList', isSingle, model, model.value.moreActionRouter);
|
|
66
69
|
}
|
|
67
|
-
function clickHandle(){
|
|
70
|
+
function clickHandle() {
|
|
68
71
|
emit('change', model);
|
|
69
72
|
}
|
|
73
|
+
function HtmlReplace(v) {
|
|
74
|
+
return v.replace(/ /g, " ")
|
|
75
|
+
}
|
|
70
76
|
defineExpose({
|
|
71
77
|
model
|
|
72
78
|
})
|
|
@@ -83,17 +89,20 @@ defineExpose({
|
|
|
83
89
|
-webkit-line-clamp: 1;
|
|
84
90
|
word-break: break-all;
|
|
85
91
|
}
|
|
86
|
-
|
|
92
|
+
|
|
93
|
+
.ct-html {
|
|
87
94
|
line-height: 26px;
|
|
88
95
|
font-size: 12px;
|
|
89
96
|
color: #3D5ECC;
|
|
90
97
|
}
|
|
98
|
+
|
|
91
99
|
.el-tag.el-tag--info {
|
|
92
100
|
--el-tag-text-color: var(--el-color-info);
|
|
93
101
|
color: var(--el-color-info);
|
|
94
102
|
}
|
|
95
103
|
|
|
96
104
|
.cursor-pointer {
|
|
97
|
-
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
/* 鼠标悬停时显示为“小手”形状 */
|
|
98
107
|
}
|
|
99
108
|
</style>
|
|
@@ -819,7 +819,7 @@ function displayHandle(item, model) {
|
|
|
819
819
|
let field = null;
|
|
820
820
|
if (model.sourceFieldsArr) {
|
|
821
821
|
for (var i in model.sourceFieldsArr) {
|
|
822
|
-
if (model.sourceFieldsArr[i].displayRelationField === item.fieldName1) {
|
|
822
|
+
if (!model.sourceFieldsArr[i].hiddenRelationField && model.sourceFieldsArr[i].displayRelationField === item.fieldName1) {
|
|
823
823
|
field = model.sourceFieldsArr[i];
|
|
824
824
|
if (field) {
|
|
825
825
|
let displayValueArr = field.displayRelationFieldValue.split(',');
|
|
@@ -835,7 +835,7 @@ function displayHandle(item, model) {
|
|
|
835
835
|
}
|
|
836
836
|
if (model._screen) {
|
|
837
837
|
for (var i in model._screen) {
|
|
838
|
-
if (model._screen[i].displayRelationField === item.fieldName1) {
|
|
838
|
+
if (!model._screen[i].hiddenRelationField && model._screen[i].displayRelationField === item.fieldName1) {
|
|
839
839
|
field = model._screen[i];
|
|
840
840
|
if (field) {
|
|
841
841
|
let displayValueArr = field.displayRelationFieldValue.split(',');
|
|
@@ -853,7 +853,7 @@ function displayHandle(item, model) {
|
|
|
853
853
|
|
|
854
854
|
if (model._highScreen) {
|
|
855
855
|
for (var i in model._highScreen) {
|
|
856
|
-
if (model._highScreen[i].displayRelationField === item.fieldName1) {
|
|
856
|
+
if (!model._highScreen[i].hiddenRelationField && model._highScreen[i].displayRelationField === item.fieldName1) {
|
|
857
857
|
field = model._highScreen[i];
|
|
858
858
|
if (field) {
|
|
859
859
|
let displayValueArr = field.displayRelationFieldValue.split(',');
|
package/src/main.js
CHANGED
|
@@ -67,7 +67,7 @@ app.use(centaline, {
|
|
|
67
67
|
return {
|
|
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
|
-
authObject: '{token:"jiangzf-
|
|
70
|
+
authObject: '{token:"jiangzf-1956186756261081088",platform:"WEB"}',
|
|
71
71
|
//authObject: '{token:"1-90f7df2c-fba7-4ea0-8874-aa7202034f06"}',
|
|
72
72
|
};
|
|
73
73
|
},
|