cloud-web-corejs 1.0.134 → 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.
@@ -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 >暂存</el-button>
16
- <el-button class="btn-connect" icon="iconfont icon-chakanshuju" type="success"></el-button>
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
- this.getFormRef().setFormData(tempStorageData);
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>
@@ -1,23 +1,42 @@
1
1
  <template>
2
- <el-form-item :label="i18nt('暂存唯一编码')">
3
- <el-input type="text" v-model="optionModel.tempStorageCode" placeholder="默认表单模板编码"></el-input>
4
- </el-form-item>
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
- import i18n from "../../../../../components/xform/utils/i18n";
9
-
10
- export default {
11
- name: "tempStorage-editor",
12
- mixins: [i18n],
13
- props: {
14
- designer: Object,
15
- selectedWidget: Object,
16
- optionModel: Object,
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: "",