cloud-web-corejs 1.0.134 → 1.0.136

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>
@@ -54,6 +54,9 @@
54
54
  <i class="el-icon-edit"></i>
55
55
  </a>
56
56
  </el-form-item>
57
+ <el-form-item label="隐藏取消按钮" label-width="150px">
58
+ <el-switch v-model="optionModel.hideCancelButton"></el-switch>
59
+ </el-form-item>
57
60
 
58
61
  <bdAttachSettingDialog v-if="showBdAttachSettingDialog" :visiable.sync="showBdAttachSettingDialog" :multi="false"
59
62
  @confirm="confirmBdAttachSettingDialog"></bdAttachSettingDialog>
@@ -41,6 +41,9 @@
41
41
  <i class="el-icon-edit"></i>
42
42
  </a>
43
43
  </el-form-item>
44
+ <el-form-item label="隐藏取消按钮" label-width="150px">
45
+ <el-switch v-model="optionModel.hideCancelButton"></el-switch>
46
+ </el-form-item>
44
47
 
45
48
  <bdAttachSettingDialog v-if="showBdAttachSettingDialog" :visiable.sync="showBdAttachSettingDialog" :multi="false"
46
49
  @confirm="confirmBdAttachSettingDialog"></bdAttachSettingDialog>
@@ -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>
@@ -300,6 +300,7 @@ export const containers = [
300
300
  showRules: [],
301
301
  hideGridCheckBox: false,
302
302
  isNotQueryAllPage: false,
303
+ isNotShowQueryButton: false,
303
304
  },
304
305
  },
305
306
  /*{
@@ -902,6 +903,7 @@ const projectTagConfig = {
902
903
  tagConfirmCallback: null,
903
904
  tagDeleteCallback: null,
904
905
  tabDeleteEnabled: true,
906
+ tagWidth: ""
905
907
  };
906
908
 
907
909
  const httpConfig = {
@@ -3060,6 +3062,7 @@ export const advancedFields = [
3060
3062
  enabledImportPreHandle: false,
3061
3063
  tableRef: "",
3062
3064
  onSuccessImport: "",
3065
+ hideCancelButton:false,
3063
3066
 
3064
3067
  showRuleFlag: 1,
3065
3068
  showRuleEnabled: 1,
@@ -3106,6 +3109,7 @@ export const advancedFields = [
3106
3109
  onConfirmImportEnabled: false,
3107
3110
  onConfirmImport: "",
3108
3111
  onSuccessImport: "",
3112
+ hideCancelButton:false,
3109
3113
 
3110
3114
  showRuleFlag: 1,
3111
3115
  showRuleEnabled: 1,
@@ -3686,6 +3690,7 @@ export const businessFields = [
3686
3690
 
3687
3691
  tempStorageFlag:1,
3688
3692
  tempStorageCode:null,
3693
+ tempStorageConfirm:null,
3689
3694
 
3690
3695
  customClass: "",
3691
3696
  onCreated: "",