centaline-data-driven 1.2.66 → 1.2.69
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/dynamicPropertyDetailRET.vue +7 -3
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +0 -2
- package/src/centaline/dynamicRichText/src/dynamicRichText.vue +4 -6
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +11 -7
- package/src/centaline/loader/src/ctl/Detail.js +3 -1
- package/src/centaline/loader/src/ctl/FormList.js +0 -3
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</li>
|
|
49
49
|
</ul>
|
|
50
50
|
</button>
|
|
51
|
-
<component v-else-if="model.actionRouters!==null && model.actionRouters.
|
|
51
|
+
<component v-else-if="model.actionRouters!==null && model.actionRouters.length===3" class="max-report"
|
|
52
52
|
:is="model.actionRouters[2].is" :vmodel="model.actionRouters[2]" :api="model.optionApi" @click="fieldClickHandler(model.actionRouters[2],$event)">
|
|
53
53
|
</component>
|
|
54
54
|
</div>
|
|
@@ -606,7 +606,9 @@
|
|
|
606
606
|
if(oldValue!==newValue){
|
|
607
607
|
let parm=this.apiParam;
|
|
608
608
|
parm[this.parentModel.primaryKey]=newValue;
|
|
609
|
-
this.loaderObj.Detail(this.api,parm, this.load);
|
|
609
|
+
// this.loaderObj.Detail(this.api,parm, this.load);
|
|
610
|
+
var fun =self.$common.getDataDrivenOpts().handler['refreshPropertyDetailRET'];
|
|
611
|
+
fun(parm,parm.pageTitle,self.parentModel);
|
|
610
612
|
}
|
|
611
613
|
}
|
|
612
614
|
},
|
|
@@ -618,7 +620,9 @@
|
|
|
618
620
|
if(oldValue!==newValue){
|
|
619
621
|
let parm=this.apiParam;
|
|
620
622
|
parm[this.parentModel.primaryKey]=newValue;
|
|
621
|
-
this.loaderObj.Detail(this.api,parm, this.load);
|
|
623
|
+
// this.loaderObj.Detail(this.api,parm, this.load);
|
|
624
|
+
var fun =self.$common.getDataDrivenOpts().handler['refreshPropertyDetailRET'];
|
|
625
|
+
fun(parm,parm.pageTitle,self.parentModel);
|
|
622
626
|
}
|
|
623
627
|
}
|
|
624
628
|
},
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
}
|
|
156
156
|
self.model.actionRoutersSimple.forEach((v,i) => {
|
|
157
157
|
if(!v.rightField || (self.model.fields1Dic[v.rightField] && self.model.fields1Dic[v.rightField].value == 1)){
|
|
158
|
-
if(self.$refs['routers'+i][0] && self.$refs['routers'+i][0].$el){
|
|
158
|
+
if(self.$refs['routers'+i] && self.$refs['routers'+i].length>0 && self.$refs['routers'+i][0] && self.$refs['routers'+i][0].$el){
|
|
159
159
|
if(sumWidth+self.$refs['routers'+i][0].$el.offsetWidth+moreWidth+10>totalWidth && self.showIndex===0){
|
|
160
160
|
self.showIndex=i;
|
|
161
161
|
}
|
|
@@ -22,12 +22,10 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
<template slot-scope="scope">
|
|
24
24
|
<span v-if="scope.row.isSet">
|
|
25
|
-
<!--<component v-if ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :api="model.OptApi"></component>-->
|
|
26
25
|
<component ref="Fields" :is="v.is" :vmodel="model.currentRow.data[v.id]" :api="model.OptApi"
|
|
27
26
|
@change="changeHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"
|
|
28
27
|
@input="inputHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"></component>
|
|
29
28
|
</span>
|
|
30
|
-
<!--<span v-else>{{scope.row[v.id].labelValue}}</span>-->
|
|
31
29
|
<span v-else-if="v.is=='ct-sensitiveeye'">
|
|
32
30
|
<component v-if ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :vrowmodel="scope.row" :api="model.OptApi"></component>
|
|
33
31
|
</span>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
3
|
<template v-if="model !== null">
|
|
4
|
+
<div v-if="model.label" style="width:100%;padding-bottom: 5px;"><h5 :class="[model.labelClass]">{{model.label}}</h5></div>
|
|
4
5
|
<div class="ct-rich-text" style="width:100%;display:flex" v-if="model.lock">
|
|
5
6
|
<p v-html="model.value"></p>
|
|
6
7
|
</div>
|
|
7
|
-
<div class="ct-rich-text"
|
|
8
|
-
style="width: 100%;"
|
|
9
|
-
v-else>
|
|
8
|
+
<div class="ct-rich-text" style="width: 100%;" v-else>
|
|
10
9
|
<vue-ueditor-wrap ref="editor" v-model="model.value" :config="config"></vue-ueditor-wrap>
|
|
11
10
|
</div>
|
|
12
11
|
</template>
|
|
@@ -237,19 +236,18 @@
|
|
|
237
236
|
}
|
|
238
237
|
},
|
|
239
238
|
created() {
|
|
240
|
-
debugger
|
|
241
239
|
if (typeof this.vmodel === "undefined") {
|
|
242
240
|
this.model = this.loaderObj.Base(this.source);
|
|
243
241
|
} else {
|
|
244
242
|
this.model = this.vmodel;
|
|
245
243
|
}
|
|
246
|
-
|
|
244
|
+
|
|
247
245
|
if (this.model.action == "" && !this.model.lock) {
|
|
248
246
|
this.$message.warning("请配置富文本Action!");
|
|
249
247
|
this.config.toolbars = [['help']];
|
|
250
248
|
return;
|
|
251
249
|
}
|
|
252
|
-
this.config.maximumWords = this.model && this.model.
|
|
250
|
+
this.config.maximumWords = this.model && this.model.max ? parseFloat(this.model.max) : 5000;
|
|
253
251
|
this.config.serverUrl = this.model.action;
|
|
254
252
|
this.config.imageUrl = this.model.action;
|
|
255
253
|
},
|
|
@@ -927,9 +927,11 @@
|
|
|
927
927
|
let self=this;
|
|
928
928
|
let rowRouterShow=[];
|
|
929
929
|
self.model.rowRouter.forEach((v) => {
|
|
930
|
-
if
|
|
931
|
-
if(
|
|
932
|
-
rowRouterShow.
|
|
930
|
+
if(v.show){
|
|
931
|
+
if (!v.rightField || row[v.rightField] == 1) {
|
|
932
|
+
if(rowRouterShow.length<self.model.rowMenuDisplayCount){
|
|
933
|
+
rowRouterShow.push(v);
|
|
934
|
+
}
|
|
933
935
|
}
|
|
934
936
|
}
|
|
935
937
|
});
|
|
@@ -940,10 +942,12 @@
|
|
|
940
942
|
let rowRouterDisplay=[];
|
|
941
943
|
let i=0;
|
|
942
944
|
self.model.rowRouter.forEach((v) => {
|
|
943
|
-
if
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
945
|
+
if(v.show){
|
|
946
|
+
if (!v.rightField || row[v.rightField] == 1) {
|
|
947
|
+
i=i+1;
|
|
948
|
+
if(i>self.model.rowMenuDisplayCount){
|
|
949
|
+
rowRouterDisplay.push(v);
|
|
950
|
+
}
|
|
947
951
|
}
|
|
948
952
|
}
|
|
949
953
|
});
|
|
@@ -202,7 +202,9 @@ const Detail = function (source,para ,callBack) {
|
|
|
202
202
|
var router = Router(v);
|
|
203
203
|
router.is = "ct-btn";
|
|
204
204
|
router.attrs = { size: "mini" }
|
|
205
|
-
|
|
205
|
+
if(router.show){
|
|
206
|
+
rtn._actionRoutersSimple.push(router);
|
|
207
|
+
}
|
|
206
208
|
});
|
|
207
209
|
}
|
|
208
210
|
return rtn._actionRoutersSimple;
|
|
@@ -147,9 +147,7 @@ const FormList = function (source, master) {
|
|
|
147
147
|
};
|
|
148
148
|
//遍历每一列
|
|
149
149
|
let rowIndex = 0;
|
|
150
|
-
//for (var key in source.fields) {
|
|
151
150
|
r.columns.forEach((value) => {
|
|
152
|
-
//let value = source.fields[key];
|
|
153
151
|
value.onChanged = value.onChange ? value.onChange : source.rows[0].columns[rowIndex].onChanged;//事件使用第一条的
|
|
154
152
|
value.onBlur = value.onBlur ? value.onBlur : source.rows[0].columns[rowIndex].onBlur;//事件使用第一条的
|
|
155
153
|
rowIndex++;
|
|
@@ -159,7 +157,6 @@ const FormList = function (source, master) {
|
|
|
159
157
|
row.field.push(item);
|
|
160
158
|
}
|
|
161
159
|
});
|
|
162
|
-
//}
|
|
163
160
|
return row;
|
|
164
161
|
},
|
|
165
162
|
currentRow: null,
|