centaline-data-driven-v3 0.1.32 → 0.1.33
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,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ct-field :vmodel="model">
|
|
3
|
-
<template #Control
|
|
3
|
+
<template #Control>
|
|
4
4
|
<template v-if="model.controlType == Enum.ControlType.HtmlLabel">
|
|
5
5
|
<span class="ct-html" :class="{ 'cursor-pointer': model.onChanged }" @click="clickHandle"
|
|
6
6
|
v-html="HtmlReplace(model.value)"></span>
|
package/src/loader/src/Label.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Enum from '../../utils/Enum';
|
|
2
2
|
import base from '../index';
|
|
3
3
|
function getFileNameVal(source) {
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
let lst = [];
|
|
6
6
|
for (var i = 1; i <= 5; i++) {
|
|
7
7
|
let fieldVal = "";
|
|
@@ -23,28 +23,34 @@ const Label = function (source) {
|
|
|
23
23
|
let rtn = {
|
|
24
24
|
flagJson: false,
|
|
25
25
|
get value() {
|
|
26
|
-
if (source.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
if (source.name1) {
|
|
27
|
+
return source.name1;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
if (source.code1) {
|
|
31
|
+
try {
|
|
32
|
+
let _value = []
|
|
33
|
+
var obj = JSON.parse(source.code1)
|
|
34
|
+
if (typeof obj == 'object' && obj) {
|
|
35
|
+
obj.forEach((v) => {
|
|
36
|
+
if (!v.flagDeleted) {
|
|
37
|
+
_value.push(v.name);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
rtn.flagJson = true;
|
|
41
|
+
return _value;
|
|
42
|
+
}
|
|
39
43
|
|
|
40
|
-
|
|
44
|
+
} catch (e) {
|
|
41
45
|
|
|
46
|
+
}
|
|
42
47
|
}
|
|
48
|
+
let _value = [];
|
|
49
|
+
var joinChar = source.joinChar == undefined ? '' : source.joinChar;
|
|
50
|
+
_value = getFileNameVal(source);
|
|
51
|
+
return _value.join(joinChar);
|
|
43
52
|
}
|
|
44
|
-
|
|
45
|
-
var joinChar = source.joinChar == undefined ? '' : source.joinChar;
|
|
46
|
-
_value = getFileNameVal(source);
|
|
47
|
-
return _value.join(joinChar);
|
|
53
|
+
|
|
48
54
|
}
|
|
49
55
|
};
|
|
50
56
|
rtn = base.copy(source, rtn);
|
package/src/main.js
CHANGED
|
@@ -65,7 +65,7 @@ app.use(centaline, {
|
|
|
65
65
|
//获取请求头
|
|
66
66
|
getRequestHeaders: function () {
|
|
67
67
|
return {
|
|
68
|
-
authobject: '{token:"wufw-
|
|
68
|
+
authobject: '{token:"wufw-1988759777316159488",platform:"WEB"}',
|
|
69
69
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
70
70
|
//authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
|
|
71
71
|
//authObject: '{EmpID:"Token_4e09499b-4b76-46df-9ce5-5498d48ed062",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_4e09499b-4b76-46df-9ce5-5498d48ed062",Platform:"WEB"}',
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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="'PersonHoliday_GuangzhouList/getLayoutOfSearch'"
|
|
4
|
+
:searchDataApi="'PersonHoliday_GuangzhouList/getListOfSearchModel'"></ct-searchlist>
|
|
5
5
|
|
|
6
6
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
7
7
|
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
|