centaline-data-driven 1.3.85 → 1.3.87
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/dynamicForm/src/dynamicForm.vue +10 -5
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +13 -16
- package/src/centaline/dynamicT/src/dynamicT.vue +16 -1
- package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +342 -327
- package/src/centaline/dynamicTree/src/dynamicTree.vue +225 -222
- package/src/centaline/dynamicTree/src/dynamicTreeList.vue +90 -76
- package/src/centaline/loader/src/ctl/FormList.js +11 -3
- package/src/centaline/loader/src/ctl/SearchTable.js +3 -0
- package/src/centaline/loader/src/ctl/T.js +3 -2
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +6 -5
- 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
|
@@ -434,14 +434,14 @@
|
|
|
434
434
|
submitData = field.getActionPara(submitData).para;
|
|
435
435
|
self.$common.getDataDrivenOpts().handler.openTabSearch(field, submitData);
|
|
436
436
|
}
|
|
437
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
438
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
439
|
+
}
|
|
437
440
|
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
438
441
|
submitData = field.getActionPara(submitData).para;
|
|
439
442
|
let query = self.$common.objectToQueryStr(submitData);
|
|
440
443
|
window.open(field.action + query, "_blank");
|
|
441
444
|
}
|
|
442
|
-
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
443
|
-
window.open(submitData[field.submitFormField], "_blank");
|
|
444
|
-
}
|
|
445
445
|
else if (field.isSeeVoice) {//看视频
|
|
446
446
|
self.$common.browseVideo(field,submitData)
|
|
447
447
|
}
|
|
@@ -678,6 +678,7 @@
|
|
|
678
678
|
var self = this;
|
|
679
679
|
var submitData = {};
|
|
680
680
|
var verified = true;
|
|
681
|
+
var flagSearchlist = false;
|
|
681
682
|
var tempFormData = self.model.getFormObj();
|
|
682
683
|
|
|
683
684
|
var check = true;
|
|
@@ -726,14 +727,18 @@
|
|
|
726
727
|
self.$message.warning(checkMsg);
|
|
727
728
|
return;
|
|
728
729
|
}
|
|
729
|
-
|
|
730
|
+
if(router.id.indexOf('_')===0){
|
|
731
|
+
// flagSearchlist=true;
|
|
732
|
+
}
|
|
733
|
+
|
|
730
734
|
submitData = router.getActionPara(submitData).para;
|
|
731
735
|
var dialogOption = {
|
|
732
736
|
title: router.pageTitle,
|
|
733
737
|
pane: self.$common.getParentPane(self),
|
|
734
738
|
content: [{
|
|
735
|
-
component: 'ct-popupSearchList',
|
|
739
|
+
component: flagSearchlist?'ct-searchlist':'ct-popupSearchList',
|
|
736
740
|
attrs: {
|
|
741
|
+
searchConditionApi: router.actionForSearchLayout,
|
|
737
742
|
searchFormApi: router.actionForSearchLayout,
|
|
738
743
|
searchDataApi: router.actionForSearch,
|
|
739
744
|
apiParam: submitData,
|
|
@@ -670,22 +670,19 @@
|
|
|
670
670
|
},
|
|
671
671
|
rowColorChange() {
|
|
672
672
|
var index = this.model.selectIndex;
|
|
673
|
-
if (
|
|
674
|
-
typeof this.$refs["rows." + index] !== "undefined" &&
|
|
675
|
-
this.currentRow !== this.$refs["rows." + index][0]
|
|
676
|
-
) {
|
|
673
|
+
if (typeof this.$refs["rows." + index] !== "undefined" && this.currentRow !== this.$refs["rows." + index][0]) {
|
|
677
674
|
if (this.currentRow !== null) {
|
|
678
675
|
for (var i = 0; i < this.currentRow.children.length; i++) {
|
|
676
|
+
this.currentRow.children[i].style.backgroundColor='';
|
|
679
677
|
this.currentRow.children[i].classList.remove("select");
|
|
680
678
|
}
|
|
681
679
|
}
|
|
682
680
|
if (this.$refs["rows." + index][0]) {
|
|
683
|
-
for (
|
|
684
|
-
var j = 0;
|
|
685
|
-
j < this.$refs["rows." + index][0].children.length;
|
|
686
|
-
j++
|
|
687
|
-
) {
|
|
681
|
+
for ( var j = 0;j < this.$refs["rows." + index][0].children.length; j++) {
|
|
688
682
|
this.$refs["rows." + index][0].children[j].classList.add("select");
|
|
683
|
+
if(this.model.selectedRowBackColor){
|
|
684
|
+
this.$refs["rows." + index][0].children[j].style.setProperty('background-color',this.model.selectedRowBackColor,'important');
|
|
685
|
+
}
|
|
689
686
|
}
|
|
690
687
|
}
|
|
691
688
|
this.currentRow = this.$refs["rows." + index][0] || null;
|
|
@@ -838,14 +835,14 @@
|
|
|
838
835
|
submitData = field.getActionPara(submitData).para;
|
|
839
836
|
self.$common.getDataDrivenOpts().handler.openTabSearch(field, submitData);
|
|
840
837
|
}
|
|
838
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
839
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
840
|
+
}
|
|
841
841
|
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
842
842
|
submitData = field.getActionPara(submitData).para;
|
|
843
843
|
let query = self.$common.objectToQueryStr(submitData);
|
|
844
844
|
window.open(action + query, "_blank");
|
|
845
845
|
}
|
|
846
|
-
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
847
|
-
window.open(submitData[field.submitFormField], "_blank");
|
|
848
|
-
}
|
|
849
846
|
else if (field.isSeeVoice) {//看视频
|
|
850
847
|
self.$common.browseVideo(field, submitData);
|
|
851
848
|
}
|
|
@@ -867,7 +864,7 @@
|
|
|
867
864
|
self.$common.viewerfile(field, MediaAlbum, 0, 0);
|
|
868
865
|
}
|
|
869
866
|
}
|
|
870
|
-
else if (field.isUrlInLayer) {//URL
|
|
867
|
+
else if (field.isUrlInLayer) {//URL页面(弹层iframe)
|
|
871
868
|
var dialogOption = {
|
|
872
869
|
title: field.pageTitle,
|
|
873
870
|
pane: self.$common.getParentPane(self),
|
|
@@ -1208,14 +1205,14 @@
|
|
|
1208
1205
|
.getDataDrivenOpts()
|
|
1209
1206
|
.handler.openTabSearch(field, submitData);
|
|
1210
1207
|
}
|
|
1208
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
1209
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
1210
|
+
}
|
|
1211
1211
|
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
1212
1212
|
submitData = field.getActionPara(submitData).para;
|
|
1213
1213
|
let query = self.$common.objectToQueryStr(submitData);
|
|
1214
1214
|
window.open(action + query, "_blank");
|
|
1215
1215
|
}
|
|
1216
|
-
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
1217
|
-
window.open(submitData[field.submitFormField], "_blank");
|
|
1218
|
-
}
|
|
1219
1216
|
else if (field.isSeeVoice) {//看视频
|
|
1220
1217
|
self.$common.browseVideo(field, submitData);
|
|
1221
1218
|
}
|
|
@@ -21,7 +21,15 @@
|
|
|
21
21
|
</el-input>
|
|
22
22
|
|
|
23
23
|
<span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
|
|
24
|
-
<ctQuickInputSos v-if="!model.lock && model.paramName" class="ct-flex-div-span" :pn="model.paramName" :action="api" :flagNew="true" @click="quickSelect"></ctQuickInputSos>
|
|
24
|
+
<ctQuickInputSos v-if="!model.lock && model.paramName" class="ct-flex-div-span" :pn="model.paramName" :action="api" :flagNew="true" @click="quickSelect"></ctQuickInputSos>
|
|
25
|
+
|
|
26
|
+
<div v-if="model.moreActionRouter && !model.lock">
|
|
27
|
+
<img v-if="model.moreActionRouter.imgUrl" class="ct-tablecurrencyImg ct-tablecurrencyItem"
|
|
28
|
+
:src="model.moreActionRouter.imgUrl" :title="model.moreActionRouter.label" @click="popupSearchListHandle"/>
|
|
29
|
+
<el-button v-else size="mini" type="primary" class="h26" @click="popupSearchListHandle">
|
|
30
|
+
{{model.moreActionRouter.label}}
|
|
31
|
+
</el-button>
|
|
32
|
+
</div>
|
|
25
33
|
</div>
|
|
26
34
|
<transition name="el-fade-in" class="ct-flex-div-span">
|
|
27
35
|
<span v-show="!valid" class="errorMessage" :class="{ 'errorMessageMarginLeft': model.inputType === 'textarea' }">
|
|
@@ -101,6 +109,13 @@
|
|
|
101
109
|
}
|
|
102
110
|
this.search();
|
|
103
111
|
},
|
|
112
|
+
popupSearchListHandle: function () {
|
|
113
|
+
var self = this;
|
|
114
|
+
self.showDrop=false;
|
|
115
|
+
self.$emit('popupSearchList', false, self.model, self.model.moreActionRouter, (optionArr) => {
|
|
116
|
+
self.selectOptionArr(optionArr);
|
|
117
|
+
});
|
|
118
|
+
},
|
|
104
119
|
},
|
|
105
120
|
}
|
|
106
121
|
</script>
|