centaline-data-driven 1.3.93 → 1.3.95
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 +1 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +1 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +1 -0
- package/src/centaline/dynamicT/src/dynamicT.vue +37 -5
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +1 -1
- package/src/centaline/dynamicViewerFile/src/dynamicViewerPDF.vue +6 -1
- package/src/centaline/loader/src/ctl/Base.js +3 -0
- package/src/centaline/loader/src/ctl/ContactList.js +2 -2
- package/src/centaline/loader/src/ctl/RichText.js +15 -2
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -7,10 +7,13 @@
|
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend field-label-div max-input-group" :class="[model.labelClass]">
|
|
8
8
|
<span>{{model.label}}</span>
|
|
9
9
|
</div>
|
|
10
|
+
<div ref="highlights" v-if="model.firbiddenWords" class="backdrop" :style="{width:firbiddenWordsWidth+'px',height:firbiddenWordsHeight+'px',left:firbiddenWordsLeft+'px',top:firbiddenWordsTop+'px'}">
|
|
11
|
+
<div class="highlights">{{model.value}}</div>
|
|
12
|
+
</div>
|
|
10
13
|
<el-input ref="input" :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear()" @change="changeHandler($event)"
|
|
11
14
|
class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'']" :disabled="model.lock" :rows="model.rows"
|
|
12
15
|
:readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
|
|
13
|
-
@keyup.enter.native="search()">
|
|
16
|
+
@keyup.enter.native="search()" style="z-index: 3;">
|
|
14
17
|
<span slot="suffix" v-if="model.unitName" class="ct-unitname" :class="showClear?'unitName-20':'unitName-0'">{{model.unitName}}</span>
|
|
15
18
|
|
|
16
19
|
<span slot="suffix" class="el-input__suffix el-input--mini is-show-Span" v-if="!model.isPassword&&showClear" :class="model.unitName?'ct-right-10':'ct-right-0'">
|
|
@@ -19,7 +22,7 @@
|
|
|
19
22
|
</span>
|
|
20
23
|
</span>
|
|
21
24
|
</el-input>
|
|
22
|
-
<span v-if="this.minText" :style="{left: minTextLeft+'px'}" style="color: #909399;background: #FFF;position: absolute;font-size: 12px;bottom: 5px;">{{this.minText}}</span>
|
|
25
|
+
<span v-if="this.minText" :style="{left: minTextLeft+'px'}" style="color: #909399;background: #FFF;position: absolute;font-size: 12px;bottom: 5px;z-index: 3;">{{this.minText}}</span>
|
|
23
26
|
<span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
|
|
24
27
|
<ctQuickInputSos v-if="!model.lock && model.paramName" class="ct-flex-div-span" :pn="model.paramName" :action="api" :flagNew="true" @click="quickSelect"></ctQuickInputSos>
|
|
25
28
|
|
|
@@ -56,6 +59,10 @@
|
|
|
56
59
|
showClear: false,
|
|
57
60
|
minText:'',
|
|
58
61
|
minTextLeft:0,
|
|
62
|
+
firbiddenWordsWidth:0,
|
|
63
|
+
firbiddenWordsHeight:0,
|
|
64
|
+
firbiddenWordsLeft:0,
|
|
65
|
+
firbiddenWordsTop:0,
|
|
59
66
|
}
|
|
60
67
|
},
|
|
61
68
|
created() {
|
|
@@ -77,6 +84,12 @@
|
|
|
77
84
|
}
|
|
78
85
|
this.minTextLeft=this.$refs.input.$el.offsetLeft+10;
|
|
79
86
|
}
|
|
87
|
+
if(this.model.firbiddenWords){
|
|
88
|
+
this.firbiddenWordsWidth=this.$refs.input.$el.offsetWidth;
|
|
89
|
+
this.firbiddenWordsHeight=this.$refs.input.$el.offsetHeight;
|
|
90
|
+
this.firbiddenWordsLeft=this.$refs.input.$el.offsetLeft;
|
|
91
|
+
this.firbiddenWordsTop=this.$refs.input.$el.offsetTop;
|
|
92
|
+
}
|
|
80
93
|
},
|
|
81
94
|
methods: {
|
|
82
95
|
mouseOverHandle: function () {
|
|
@@ -136,6 +149,9 @@
|
|
|
136
149
|
});
|
|
137
150
|
});
|
|
138
151
|
},
|
|
152
|
+
inputHandler(e) {
|
|
153
|
+
this.$emit('inputHandler',e);
|
|
154
|
+
}
|
|
139
155
|
},
|
|
140
156
|
}
|
|
141
157
|
</script>
|
|
@@ -143,16 +159,32 @@
|
|
|
143
159
|
.errorMessageMarginLeft {
|
|
144
160
|
margin-left: 108px;
|
|
145
161
|
}
|
|
146
|
-
|
|
147
162
|
.hoverColor:hover {
|
|
148
163
|
border-color: #409EFF;
|
|
149
164
|
}
|
|
150
|
-
|
|
151
165
|
.is-show-Span {
|
|
152
166
|
display: none;
|
|
153
167
|
}
|
|
154
|
-
|
|
155
168
|
.hoverColor:hover .is-show-Span {
|
|
156
169
|
display: inline-block;
|
|
157
170
|
}
|
|
171
|
+
.backdrop {
|
|
172
|
+
position: absolute;
|
|
173
|
+
z-index: 1;
|
|
174
|
+
border: 1px solid #DCDFE6;
|
|
175
|
+
background-color: #fff;
|
|
176
|
+
overflow: auto;
|
|
177
|
+
pointer-events: none;
|
|
178
|
+
border-radius: 4px;
|
|
179
|
+
-webkit-transition: -webkit-transform 1s;
|
|
180
|
+
transition: -webkit-transform 1s;
|
|
181
|
+
transition: transform 1s;
|
|
182
|
+
transition: transform 1s, -webkit-transform 1s;
|
|
183
|
+
}
|
|
184
|
+
.highlights {
|
|
185
|
+
white-space: pre-wrap;
|
|
186
|
+
word-wrap: break-word;
|
|
187
|
+
/* color: transparent; */
|
|
188
|
+
padding: 5px 15px;
|
|
189
|
+
}
|
|
158
190
|
</style>
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
</a>
|
|
143
143
|
</template>
|
|
144
144
|
<a v-if="itemFile.rightDownload"
|
|
145
|
-
:href="resultObject.replace(/\/preview$/,'download')" target="_blank"
|
|
145
|
+
:href="resultObject.replace(/\/preview$/,'/download')" target="_blank"
|
|
146
146
|
class="magnify-btn el-icon-download"
|
|
147
147
|
title="下载"
|
|
148
148
|
:download="(itemFile.mediaLabelName || itemFile.fileName)"></a>
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
:height="displayAreaHeight - 78 + 'px'"
|
|
9
9
|
:width="displayAreaWidth + 'px'"
|
|
10
10
|
@load="complete()"
|
|
11
|
+
@contextmenu="handleMouse"
|
|
11
12
|
>
|
|
12
13
|
</iframe>
|
|
13
14
|
</div>
|
|
@@ -31,7 +32,10 @@ export default {
|
|
|
31
32
|
},
|
|
32
33
|
created() {
|
|
33
34
|
},
|
|
34
|
-
|
|
35
|
+
methods: {
|
|
36
|
+
handleMouse(e) {
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
},
|
|
35
39
|
init(pdfUrl) {
|
|
36
40
|
var self = this;
|
|
37
41
|
self.fileUrl = 'r='+Math.random()+'&file='+encodeURIComponent(pdfUrl);
|
|
@@ -43,6 +47,7 @@ export default {
|
|
|
43
47
|
doc.getElementById("openFile").style.display = "none";
|
|
44
48
|
doc.getElementById("print").style.display = "none";
|
|
45
49
|
doc.getElementById("viewBookmark").style.display = "none";
|
|
50
|
+
doc.oncontextmenu = new Function("event.returnValue=false");
|
|
46
51
|
},
|
|
47
52
|
},
|
|
48
53
|
watch: {
|
|
@@ -361,10 +361,10 @@ const ContactList = function (source, para, callBack) {
|
|
|
361
361
|
}
|
|
362
362
|
else if (response.content.rows.length > 0) {
|
|
363
363
|
if (router.flagAddRowAfterAction) {
|
|
364
|
-
|
|
364
|
+
self.doNew(response.content.rows);
|
|
365
365
|
}
|
|
366
366
|
else {
|
|
367
|
-
|
|
367
|
+
self.doUpdate(response.content.rows, searchValue1);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}
|
|
@@ -2,7 +2,7 @@ import base from '../../index';
|
|
|
2
2
|
import Base from './Base';
|
|
3
3
|
import valid from '../../../validate/index';
|
|
4
4
|
import Axios from 'axios';
|
|
5
|
-
import common from '../../../common';
|
|
5
|
+
import common from '../../../common';
|
|
6
6
|
import Vue from 'vue';
|
|
7
7
|
const RichText = function (source, router) {
|
|
8
8
|
var rtn = {
|
|
@@ -14,11 +14,24 @@ const RichText = function (source, router) {
|
|
|
14
14
|
source.code1 = v;
|
|
15
15
|
},
|
|
16
16
|
get action() {
|
|
17
|
-
return router &&router.action ? router.action : "";//上传完整地址
|
|
17
|
+
return router && router.action ? router.action : "";//上传完整地址
|
|
18
18
|
},
|
|
19
19
|
set action(v) {
|
|
20
20
|
source.action = v;
|
|
21
21
|
},
|
|
22
|
+
getFormObj() {
|
|
23
|
+
var rtnFormObj = {};
|
|
24
|
+
var self = this;
|
|
25
|
+
|
|
26
|
+
Object.defineProperty(rtnFormObj, source.fieldName1, {
|
|
27
|
+
get: function () {
|
|
28
|
+
return encodeURIComponent(self.value);;
|
|
29
|
+
},
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true
|
|
32
|
+
});
|
|
33
|
+
return rtnFormObj;
|
|
34
|
+
}
|
|
22
35
|
};
|
|
23
36
|
rtn = base.copy(Base(source), rtn);
|
|
24
37
|
rtn = base.copy(rtn, valid.Init(rtn));
|
package/src/main.js
CHANGED
|
@@ -43,7 +43,7 @@ Vue.use(centaline, {
|
|
|
43
43
|
getRequestHeaders: function () {
|
|
44
44
|
return {
|
|
45
45
|
oldToken: '823894f8-bbf3-4d54-b3fb-4c697801c5c4',
|
|
46
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
46
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrsOgkAQRf9laibZgdmZXTpdsPEjyK6sCVZGINEY_91HoKP3FKc4zb1PGOcENegCbmil8wu4oZWOiL2StLjzGpCFK3QUHAaWwIemrcK-gQLy_Qo1iagxymwLGOL0C-JLMt8wj_l2zI9_nLtMw2fWxZ6SV4tis0euJGI6O8IyUR8T5RMpw-sNAAD__w.Kj-DXXu0_dFUzNDItfwT2vTk9EA0Mxhszh4xBQqG7iY',
|
|
47
47
|
|
|
48
48
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
49
49
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|