cloud-web-corejs 1.0.54-dev.112 → 1.0.54-dev.113
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
package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue
CHANGED
@@ -14,11 +14,16 @@
|
|
14
14
|
</el-form-item>
|
15
15
|
<el-form-item label="明细字段回填">
|
16
16
|
<el-input v-model="optionModel.tagFillConfig" clearable></el-input>
|
17
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
18
|
+
@click="openDialog">
|
19
|
+
<span>{{ optionModel.tagFillConfig.length ? "已维护" : "" }}</span>
|
20
|
+
<i class="el-icon-edit"></i>
|
21
|
+
</a>
|
17
22
|
</el-form-item>
|
18
23
|
<el-form-item label="确认回调">
|
19
24
|
<!-- <el-input v-model="optionModel.tagConfirmCallback" clearable></el-input>-->
|
20
25
|
<a href="javascript:void(0);" class="a-link link-oneLind"
|
21
|
-
@click="editEventHandler('tagConfirmCallback', [])">
|
26
|
+
@click="editEventHandler('tagConfirmCallback', ['dataId', 'formCode'])">
|
22
27
|
<span>{{ optionModel.tagConfirmCallback }}</span>
|
23
28
|
<i class="el-icon-edit"></i>
|
24
29
|
</a>
|
@@ -26,7 +31,7 @@
|
|
26
31
|
<el-form-item label="删除回调">
|
27
32
|
<!-- <el-input v-model="optionModel.tagDeleteCallback" clearable></el-input>-->
|
28
33
|
<a href="javascript:void(0);" class="a-link link-oneLind"
|
29
|
-
@click="editEventHandler('tagDeleteCallback', [])">
|
34
|
+
@click="editEventHandler('tagDeleteCallback', ['dataId', 'formCode'])">
|
30
35
|
<span>{{ optionModel.tagDeleteCallback }}</span>
|
31
36
|
<i class="el-icon-edit"></i>
|
32
37
|
</a>
|
@@ -42,6 +47,80 @@
|
|
42
47
|
<i class="el-icon-edit"></i>
|
43
48
|
</a>
|
44
49
|
</el-form-item>-->
|
50
|
+
<el-dialog
|
51
|
+
custom-class="dialog-style list-dialog"
|
52
|
+
title="数据回填"
|
53
|
+
:visible.sync="showDialog"
|
54
|
+
:modal="false"
|
55
|
+
:show-close="!0"
|
56
|
+
:close-on-click-modal="!1"
|
57
|
+
:close-on-press-escape="!1"
|
58
|
+
:destroy-on-close="!0"
|
59
|
+
top="5vh"
|
60
|
+
width="500px"
|
61
|
+
v-dialog-drag
|
62
|
+
>
|
63
|
+
<div class="cont">
|
64
|
+
<el-table
|
65
|
+
ref="singleTable"
|
66
|
+
width="100%"
|
67
|
+
height="500"
|
68
|
+
:data="tableData"
|
69
|
+
border=""
|
70
|
+
stripe=""
|
71
|
+
default-expand-all
|
72
|
+
>
|
73
|
+
<el-table-column label="目标字段" width="150" prop="targetField">
|
74
|
+
<template slot-scope="scope">
|
75
|
+
<el-input v-model="scope.row.targetField"></el-input>
|
76
|
+
</template>
|
77
|
+
</el-table-column>
|
78
|
+
<el-table-column label="来源字段" width="150" prop="sourceField">
|
79
|
+
<template slot-scope="scope">
|
80
|
+
<el-input v-model="scope.row.sourceField"></el-input>
|
81
|
+
</template>
|
82
|
+
</el-table-column>
|
83
|
+
<el-table-column label="操作" min-width="50" fixed="right">
|
84
|
+
<template #header="{ row, $index }">
|
85
|
+
<el-tooltip
|
86
|
+
:hide-after="500"
|
87
|
+
class="item"
|
88
|
+
effect="dark"
|
89
|
+
content="添加"
|
90
|
+
placement="top"
|
91
|
+
>
|
92
|
+
<el-button
|
93
|
+
size="mini" type="" circle=""
|
94
|
+
icon="el-icon-plus"
|
95
|
+
@click="tableData.push({})"
|
96
|
+
/>
|
97
|
+
</el-tooltip>
|
98
|
+
</template>
|
99
|
+
<template #default="{ row, $index }">
|
100
|
+
<el-tooltip
|
101
|
+
effect="dark"
|
102
|
+
content="删除"
|
103
|
+
placement="top"
|
104
|
+
>
|
105
|
+
<el-button
|
106
|
+
size="mini" type="" circle=""
|
107
|
+
icon="el-icon-delete"
|
108
|
+
@click="tableData.splice($index,1)"
|
109
|
+
/>
|
110
|
+
</el-tooltip>
|
111
|
+
</template>
|
112
|
+
</el-table-column>
|
113
|
+
</el-table>
|
114
|
+
</div>
|
115
|
+
<div class="dialog-footer" slot="footer">
|
116
|
+
<el-button @click="showDialog=false" class="button-sty" icon="el-icon-close">
|
117
|
+
{{ i18nt('designer.hint.cancel') }}
|
118
|
+
</el-button>
|
119
|
+
<el-button type="primary" @click="confirmDialog" class="button-sty" icon="el-icon-check">
|
120
|
+
{{ i18nt('designer.hint.confirm') }}
|
121
|
+
</el-button>
|
122
|
+
</div>
|
123
|
+
</el-dialog>
|
45
124
|
</div>
|
46
125
|
</template>
|
47
126
|
|
@@ -51,7 +130,7 @@ import eventMixin
|
|
51
130
|
from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
|
52
131
|
|
53
132
|
export default {
|
54
|
-
name: "
|
133
|
+
name: "project-tag-editor",
|
55
134
|
mixins: [i18n, eventMixin],
|
56
135
|
props: {
|
57
136
|
designer: Object,
|
@@ -60,12 +139,22 @@ export default {
|
|
60
139
|
},
|
61
140
|
data() {
|
62
141
|
return {
|
63
|
-
formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census']
|
142
|
+
formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census'],
|
143
|
+
showDialog: false,
|
144
|
+
tableData: [],
|
64
145
|
}
|
65
146
|
},
|
66
147
|
methods: {
|
67
148
|
getIsShow() {
|
68
149
|
return this.selectedWidget.type !== 'data-table';
|
150
|
+
},
|
151
|
+
openDialog() {
|
152
|
+
this.tableData = this.$baseLodash.cloneDeep(this.optionModel.tagFillConfig);
|
153
|
+
this.showDialog = true;
|
154
|
+
},
|
155
|
+
confirmDialog() {
|
156
|
+
this.optionModel.tagFillConfig = this.$baseLodash.cloneDeep(this.tableData);
|
157
|
+
this.showDialog = false;
|
69
158
|
}
|
70
159
|
}
|
71
160
|
}
|
@@ -73,15 +73,11 @@ modules = {
|
|
73
73
|
let scriptCode = formConfig.saveScriptCode || "saveUpdate"
|
74
74
|
let config = option?.config;
|
75
75
|
// formRef.clearValidate();
|
76
|
-
formRef.$forceUpdate();
|
77
|
-
let formDataModel = formRef.formDataModel;
|
78
|
-
|
79
|
-
let inputWidget = this.getWidgetRef('input105254');
|
80
|
-
let rules = inputWidget.rules;
|
81
|
-
let options = inputWidget.options;
|
76
|
+
// formRef.$forceUpdate();
|
77
|
+
// let formDataModel = formRef.formDataModel;
|
78
|
+
|
82
79
|
formRef.validate(valid => {
|
83
80
|
if (valid) {
|
84
|
-
debugger
|
85
81
|
let reqData = this.getReqFormData();
|
86
82
|
this.formHttp({
|
87
83
|
// url: "/" + reportTemplate.serviceName + "/form_ins/saveUpdate",
|