centaline-data-driven-v3 0.1.30 → 0.1.31
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,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<div ref="refscreenDiv" id="refscreenDiv">
|
|
4
|
-
<ct-searchscreen ref="reftreescreen" :from="'tree'" style="padding-left: 11px;" :api="searchConditionApi" :screenPara="
|
|
4
|
+
<ct-searchscreen ref="reftreescreen" :from="'tree'" style="padding-left: 11px;" :api="searchConditionApi" :screenPara="apiParam"
|
|
5
5
|
@search="search" @loaded="screenload" ></ct-searchscreen>
|
|
6
6
|
</div>
|
|
7
7
|
<tree v-if="loadTree" ref="reftree" :api="searchDataApi" @loaded="loaded" :treeHeight="treeHeight">
|
|
@@ -24,7 +24,7 @@ const props = defineProps({
|
|
|
24
24
|
type: Number,
|
|
25
25
|
default: 800,
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
apiParam: {
|
|
28
28
|
type: Object,
|
|
29
29
|
default: () => { },
|
|
30
30
|
}
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
style="background-color:white;border-radius: 6px;overflow-y:hidden">
|
|
6
6
|
<div>
|
|
7
7
|
<ct-tree :flagsearch="true" :searchConditionApi="searchConditionApi" ref="reftree"
|
|
8
|
-
:searchDataApi="searchDataApi" :searchtreeHeight="searchtreeHeight"
|
|
8
|
+
:searchDataApi="searchDataApi" :searchtreeHeight="searchtreeHeight"
|
|
9
|
+
:apiParam="apiParam"
|
|
10
|
+
@loaded="loaded"></ct-tree>
|
|
9
11
|
</div>
|
|
10
12
|
|
|
11
13
|
</el-aside>
|
|
@@ -15,14 +17,14 @@
|
|
|
15
17
|
<div style="height: 100%;">
|
|
16
18
|
<div class="ct-form"
|
|
17
19
|
:style="{ 'width': (width ? width + 'px' : 'auto'), 'height': (height ? height + 'px' : 'auto') }">
|
|
18
|
-
<ct-form :api="formApi" :api-param="
|
|
20
|
+
<ct-form :api="formApi" :api-param="apiParam1" :width="width" :height="height"></ct-form>
|
|
19
21
|
</div>
|
|
20
22
|
</div>
|
|
21
23
|
</template>
|
|
22
24
|
<template v-else>
|
|
23
25
|
<div :style="{ 'height': searchtreeHeight + 'px' }">
|
|
24
26
|
<ct-searchlist :searchConditionApi="searchTableConditionApi" :searchDataApi="searchTableDataApi"
|
|
25
|
-
:api-param="
|
|
27
|
+
:api-param="apiParam1" @refreshParent="refreshParentHandler"></ct-searchlist>
|
|
26
28
|
</div>
|
|
27
29
|
</template>
|
|
28
30
|
|
|
@@ -58,7 +60,7 @@ const width = ref(0)
|
|
|
58
60
|
const height = ref(0)
|
|
59
61
|
const isShowMain = ref(false)
|
|
60
62
|
const pageType = ref('list')
|
|
61
|
-
const
|
|
63
|
+
const apiParam1 = ref()
|
|
62
64
|
const searchtreeHeight = ref(0)
|
|
63
65
|
const refleft = ref()
|
|
64
66
|
const reftree = ref()
|
|
@@ -95,7 +97,7 @@ function loaded(data) {
|
|
|
95
97
|
delete defaultPara.width;
|
|
96
98
|
delete defaultPara.height;
|
|
97
99
|
|
|
98
|
-
|
|
100
|
+
apiParam1.value = defaultPara;
|
|
99
101
|
nextTick(() => {
|
|
100
102
|
if (searchTableConditionApi.value || searchTableDataApi.value || formApi.value) {
|
|
101
103
|
isShowMain.value = true;
|
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-1988477363054436352",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/utils/mixins.js
CHANGED
|
@@ -363,10 +363,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
if (typeof field.onChanged !== 'undefined') {
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
|
|
366
|
+
// if (typeof field.onChanged !== 'undefined') {
|
|
367
|
+
// verified = common.excute.call(model.scripts, field.onChanged);
|
|
368
|
+
// }
|
|
370
369
|
if (!submitData) {
|
|
371
370
|
submitData = model.$vue.getFileData(field);
|
|
372
371
|
}
|
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="'RoleList/getLayoutOfSearch'"
|
|
4
|
+
:searchDataApi="'RoleList/getListOfSearchModel'"></ct-searchlist>
|
|
5
5
|
|
|
6
6
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
7
7
|
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
|