cloud-web-corejs 1.0.133 → 1.0.135
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/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -2
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +26 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +36 -17
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -0
- package/src/views/bd/setting/config_manage/list.vue +2 -2
package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js
CHANGED
@@ -56,7 +56,10 @@ export default {
|
|
56
56
|
},
|
57
57
|
watch: {
|
58
58
|
fieldModel(val) {
|
59
|
-
this.handleChangeEvent(val);
|
59
|
+
// this.handleChangeEvent(val);
|
60
|
+
let currentData = this.currentData;
|
61
|
+
let fieldKeyName = this.fieldKeyName;
|
62
|
+
currentData[fieldKeyName] = val;
|
60
63
|
},
|
61
64
|
showValue(val) {
|
62
65
|
this.setShowValue(val);
|
@@ -12,8 +12,14 @@
|
|
12
12
|
:sub-form-row-id="subFormRowId"
|
13
13
|
>
|
14
14
|
<span class="button-sty" v-if="designState">
|
15
|
-
<el-button type="success" class="btn-connect" icon="iconfont icon-zancun" plain
|
16
|
-
|
15
|
+
<el-button type="success" class="btn-connect" icon="iconfont icon-zancun" plain
|
16
|
+
>暂存</el-button
|
17
|
+
>
|
18
|
+
<el-button
|
19
|
+
class="btn-connect"
|
20
|
+
icon="iconfont icon-chakanshuju"
|
21
|
+
type="success"
|
22
|
+
></el-button>
|
17
23
|
</span>
|
18
24
|
<temp-storage-button
|
19
25
|
v-else
|
@@ -102,7 +108,7 @@ export default {
|
|
102
108
|
|
103
109
|
this.initConfig();
|
104
110
|
},
|
105
|
-
initConfig(){
|
111
|
+
initConfig() {
|
106
112
|
let formCode = this.getFormRef()?.reportTemplate?.formCode;
|
107
113
|
let tempStorageCode = this.field.options.tempStorageCode || formCode;
|
108
114
|
let vue = this.getFormRef();
|
@@ -113,11 +119,25 @@ export default {
|
|
113
119
|
return this.formModel;
|
114
120
|
},
|
115
121
|
chooseConfirm: (tempStorageData) => {
|
116
|
-
|
122
|
+
vue.showFormContent = false;
|
123
|
+
this.$nextTick(() => {
|
124
|
+
this.getFormRef().setFormData(tempStorageData);
|
125
|
+
this.$nextTick(() => {
|
126
|
+
vue.showFormContent = true;
|
127
|
+
this.$nextTick(() => {
|
128
|
+
this.handleCustomEvent(
|
129
|
+
this.field.options.tempStorageConfirm,
|
130
|
+
["tempStorageData"],
|
131
|
+
[tempStorageData]
|
132
|
+
);
|
133
|
+
});
|
134
|
+
});
|
135
|
+
});
|
136
|
+
// this.getFormRef().setFormData(tempStorageData);
|
117
137
|
},
|
118
138
|
saveConfirm: () => {},
|
119
|
-
}
|
120
|
-
}
|
139
|
+
};
|
140
|
+
},
|
121
141
|
},
|
122
142
|
};
|
123
143
|
</script>
|
package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue
CHANGED
@@ -1,23 +1,42 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<el-
|
4
|
-
|
2
|
+
<div>
|
3
|
+
<el-form-item :label="i18nt('暂存唯一编码')">
|
4
|
+
<el-input
|
5
|
+
type="text"
|
6
|
+
v-model="optionModel.tempStorageCode"
|
7
|
+
placeholder="默认表单模板编码"
|
8
|
+
></el-input>
|
9
|
+
</el-form-item>
|
10
|
+
<el-form-item label="暂存回填完成回调" label-width="150px">
|
11
|
+
<a
|
12
|
+
href="javascript:void(0);"
|
13
|
+
class="a-link link-oneLind"
|
14
|
+
@click="editEventHandler('tempStorageConfirm', chooseConfirmParams)"
|
15
|
+
>
|
16
|
+
<span>{{ optionModel.tempStorageConfirm }}</span>
|
17
|
+
<i class="el-icon-edit"></i>
|
18
|
+
</a>
|
19
|
+
</el-form-item>
|
20
|
+
</div>
|
5
21
|
</template>
|
6
22
|
|
7
23
|
<script>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
24
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
25
|
+
import eventMixin from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
26
|
+
export default {
|
27
|
+
name: "tempStorage-editor",
|
28
|
+
mixins: [i18n, eventMixin],
|
29
|
+
props: {
|
30
|
+
designer: Object,
|
31
|
+
selectedWidget: Object,
|
32
|
+
optionModel: Object,
|
33
|
+
},
|
34
|
+
data() {
|
35
|
+
return {
|
36
|
+
chooseConfirmParams: ["dataId", "formCode", "tempStorageData"],
|
37
|
+
};
|
38
|
+
},
|
39
|
+
};
|
19
40
|
</script>
|
20
41
|
|
21
|
-
<style scoped>
|
22
|
-
|
23
|
-
</style>
|
42
|
+
<style scoped></style>
|
@@ -902,6 +902,7 @@ const projectTagConfig = {
|
|
902
902
|
tagConfirmCallback: null,
|
903
903
|
tagDeleteCallback: null,
|
904
904
|
tabDeleteEnabled: true,
|
905
|
+
tagWidth: ""
|
905
906
|
};
|
906
907
|
|
907
908
|
const httpConfig = {
|
@@ -3686,6 +3687,7 @@ export const businessFields = [
|
|
3686
3687
|
|
3687
3688
|
tempStorageFlag:1,
|
3688
3689
|
tempStorageCode:null,
|
3690
|
+
tempStorageConfirm:null,
|
3689
3691
|
|
3690
3692
|
customClass: "",
|
3691
3693
|
onCreated: "",
|
@@ -45,9 +45,9 @@ export default {
|
|
45
45
|
{label: this.$t1("同步调用接口"), name: "request_setting_list", inited: false},
|
46
46
|
{label: this.$t1("异步推送数据"), name: "request_async_setting_list", inited: false},
|
47
47
|
{label: this.$t1("组织环境设置"), name: "bd_company_env_list", inited: false},
|
48
|
-
{label: this.$t1("逻辑参数"), name: "logic_param_list", inited: false},
|
48
|
+
/* {label: this.$t1("逻辑参数"), name: "logic_param_list", inited: false},
|
49
49
|
{label: this.$t1("操作日志编码"), name: "logic_param_list1", inited: false},
|
50
|
-
{label: this.$t1("上传文件服务"), name: "logic_param_list2", inited: false},
|
50
|
+
{label: this.$t1("上传文件服务"), name: "logic_param_list2", inited: false}, */
|
51
51
|
]
|
52
52
|
}
|
53
53
|
},
|