centaline-data-driven 1.5.12 → 1.5.14
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/release-log.md +6 -0
- package/src/Form.vue +1 -1
- package/src/centaline/dynamicTree/src/dynamicTree.vue +31 -2
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +1 -1
- package/src/centaline/loader/src/ctl/FormList.js +2 -2
- package/src/main.js +4 -4
- 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
package/release-log.md
ADDED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/salemattersmanage/agentcontractparameter/agentcontractparameterform'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -2,7 +2,31 @@
|
|
|
2
2
|
<div class='mytree' style="overflow:auto" :style="{height:treeHeight}">
|
|
3
3
|
<el-tree class="tree-line" :props="defaultProps" :load="loadNode" :indent="0"
|
|
4
4
|
:expand-on-click-node="false" @node-click="handleNodeClick" lazy ref="Tree">
|
|
5
|
+
|
|
6
|
+
<span class="slot-t-node" slot-scope="{ node, data }" @dblclick="editNode(data)">
|
|
7
|
+
<span v-show="!data.isEdit">
|
|
8
|
+
<span :class="[data.id>= 99 ? 'slot-t-node--label' : '']">{{node.label}}</span>
|
|
9
|
+
</span>
|
|
10
|
+
<span v-show="data.isEdit">
|
|
11
|
+
<el-input class="slot-t-input" size="mini" autofocus v-model="data.label" :ref="'slotTreeInput'+data.id" @blur.stop="NodeBlur(node,data)" @keydown.native.enter="NodeBlur(node,data)"></el-input>
|
|
12
|
+
</span>
|
|
13
|
+
</span>
|
|
5
14
|
</el-tree>
|
|
15
|
+
|
|
16
|
+
<el-card class="box-card" ref="card" v-show="menuVisible">
|
|
17
|
+
<div @click="addSameLevelNode()" v-show="firstLevel">
|
|
18
|
+
<i class="el-icon-circle-plus-outline"></i> 同级增加
|
|
19
|
+
</div>
|
|
20
|
+
<div class="add" @click="addChildNode()">
|
|
21
|
+
<i class="el-icon-circle-plus-outline"></i> 子级增加
|
|
22
|
+
</div>
|
|
23
|
+
<div class="delete" @click="deleteNode()">
|
|
24
|
+
<i class="el-icon-remove-outline"></i> 删除节点
|
|
25
|
+
</div>
|
|
26
|
+
<div class="edit" @click="editNode()">
|
|
27
|
+
<i class="el-icon-edit"></i> 修改节点
|
|
28
|
+
</div>
|
|
29
|
+
</el-card>
|
|
6
30
|
</div>
|
|
7
31
|
</template>
|
|
8
32
|
|
|
@@ -46,7 +70,7 @@ export default {
|
|
|
46
70
|
search(m) {
|
|
47
71
|
var self=this;
|
|
48
72
|
var timer=null;
|
|
49
|
-
if(self.
|
|
73
|
+
if(self.searchStatus.length==0)
|
|
50
74
|
{
|
|
51
75
|
clearTimeout(timer);
|
|
52
76
|
self.searchStatus.push(1);
|
|
@@ -61,12 +85,17 @@ export default {
|
|
|
61
85
|
},
|
|
62
86
|
loadComplate(){
|
|
63
87
|
var flag=false;
|
|
88
|
+
if(this.treeNode.childNodes.length>0)
|
|
89
|
+
{
|
|
64
90
|
this.treeNode.childNodes.forEach((item, index) => {
|
|
65
91
|
if(item.data.code==this.model.modeltree[index].code){
|
|
66
92
|
flag=true;
|
|
67
93
|
return;
|
|
68
94
|
}
|
|
69
|
-
});
|
|
95
|
+
});}else{
|
|
96
|
+
flag=true;
|
|
97
|
+
}
|
|
98
|
+
|
|
70
99
|
return flag;
|
|
71
100
|
},
|
|
72
101
|
loadNode(node, resolve) { // 加载 树数据
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<!--Photo-->
|
|
47
47
|
<template v-else-if="itemFile.mediaTypeID == '2'">
|
|
48
48
|
<ct-viewerImage ref="viewerImage"
|
|
49
|
-
:imgUrl="resultObject+'/'+displayAreaWidth+'/'+displayAreaHeight"
|
|
49
|
+
:imgUrl="resultObject+'/'+displayAreaWidth+'/'+displayAreaHeight+'?FlagC=0'"
|
|
50
50
|
:rotate="rotate"></ct-viewerImage>
|
|
51
51
|
</template>
|
|
52
52
|
<!--ThreeDimensional-->
|
|
@@ -519,8 +519,8 @@ const FormList = function (source, master) {
|
|
|
519
519
|
source.rows.splice(1, source.rows.length-1);
|
|
520
520
|
rtn._rows.splice(1, rtn._rows.length-1);
|
|
521
521
|
if(newRows.length>0){
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
Array.prototype.push.apply(source.rows,newRows);
|
|
523
|
+
Array.prototype.push.apply(rtn._rows,newRows);
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
},
|
package/src/main.js
CHANGED
|
@@ -51,14 +51,14 @@ Vue.use(centaline, {
|
|
|
51
51
|
getRequestHeaders: function () {
|
|
52
52
|
return {
|
|
53
53
|
oldToken: '632bca00-6b02-4627-8340-3d493b9b23d8',
|
|
54
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
54
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOivZ8XqdTef403CIyMEuQoVIIoEQdydIoaNnildMM-8plm0SvdBk2UVS4A12gKQMMKYEXhKxTlLrEEY-gB_zZUTr2bloAeVAgMlE4NYn0GyGgNHZEEk0ot6volfUacskNTZizushJNNHbEu9nerjH-cu67xnmVSu6kxQZCl7llrIXAmkmtC2mgrmIl5vAAAA__8._1VA6XbTsnXJ4HsHfoNPWsO7dGvH1hwnKQlRskmWMDI',
|
|
55
55
|
|
|
56
56
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
57
|
-
EstateInfo: '{"estateId":"
|
|
57
|
+
EstateInfo: '{"estateId":"20191114134322C29C9B83A84F192964","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',
|
|
58
58
|
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
59
59
|
|
|
60
|
-
authObject: '{"currentEstate":{"estateId":"
|
|
61
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
60
|
+
authObject: '{"currentEstate":{"estateId":"20191114134322C29C9B83A84F192964","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"},"platform":1,"osVersion":"","clientVersion":"","machineCode":"ce04f173da7df2e78a9da25595111387","token":"","random":"XNEYyu","time":1683686365201,"sign":"79be68006872c6a088eb49f7e3dab45a"}',
|
|
61
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjYyOTk5ZDhjLTYwY2MtNGM0OS05MzM4LWY1MTBhNjI5OGVjYiJ9.A7lCMb4mBHjse6DlvFLVV5jEQSWzREtlbeZJ6StCW4kVyyRG4RlkhRl2FJvaBZEdtoEItI52IEgBsX4X_H1m4w',
|
|
62
62
|
};
|
|
63
63
|
},
|
|
64
64
|
// 请求完成事件,可判断是否登录过期执行响应操作
|