cloud-web-corejs 1.0.54-dev.342 → 1.0.54-dev.344

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.
@@ -0,0 +1,62 @@
1
+ <template>
2
+ <div>
3
+ <el-form-item label="上传信息获取脚本"></el-form-item>
4
+ <el-form-item label-width="0">
5
+ <el-input
6
+ v-model="optionModel.vabupload2_scriptCode"
7
+ placeholder="默认/intf/getHxFileUploadConfig"
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('vabupload2_uploadParam', params)"
15
+ >
16
+ <span>{{ optionModel.vabupload2_uploadParam }}</span>
17
+ <i class="el-icon-edit"></i>
18
+ </a>
19
+ </el-form-item>
20
+ <el-form-item label="删除参数定义" label-width="150px">
21
+ <a
22
+ href="javascript:void(0);"
23
+ class="a-link link-oneLind"
24
+ @click="editEventHandler('vabupload2_deleteParam', params)"
25
+ >
26
+ <span>{{ optionModel.vabupload2_deleteParam }}</span>
27
+ <i class="el-icon-edit"></i>
28
+ </a>
29
+ </el-form-item>
30
+ <el-form-item label="获取文件参数定义" label-width="150px">
31
+ <a
32
+ href="javascript:void(0);"
33
+ class="a-link link-oneLind"
34
+ @click="editEventHandler('vabupload2_getFileParam', params)"
35
+ >
36
+ <span>{{ optionModel.vabupload2_getFileParam }}</span>
37
+ <i class="el-icon-edit"></i>
38
+ </a>
39
+ </el-form-item>
40
+ </div>
41
+ </template>
42
+
43
+ <script>
44
+ import i18n from "../../../../utils/i18n";
45
+ import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
46
+ export default {
47
+ name: "field-vabUpload2-editor",
48
+ mixins: [i18n, eventMixin],
49
+ props: {
50
+ designer: Object,
51
+ selectedWidget: Object,
52
+ optionModel: Object,
53
+ },
54
+ data() {
55
+ return {
56
+ params: ["dataId", "formCode"],
57
+ };
58
+ },
59
+ };
60
+ </script>
61
+
62
+ <style scoped></style>
@@ -157,6 +157,7 @@ const COMMON_PROPERTIES = {
157
157
  // searchDialogEventEnabled: "search-dialog-event-editor"
158
158
  clickBindEvent: "clickBindEvent-editor",
159
159
  vabUpload: "field-vabUpload-editor",
160
+ vabUpload2Flag: "field-vabUpload2-editor",
160
161
  "submitFlag": "submitFlag-editor",
161
162
  "aLinkFlag": "a-link-editor",
162
163
  "aTextFlag": "a-text-editor",
@@ -2760,6 +2760,11 @@ export const advancedFields = [
2760
2760
  showFileCreateBy: false,
2761
2761
  showFileCreateDate: false,
2762
2762
  widgetSize: 2,
2763
+
2764
+ customUploadEnabled: false,
2765
+ uploadUrl: null,
2766
+ uploadHeaders: {},
2767
+ uploadRresponseAdapter: {},
2763
2768
  },
2764
2769
  },
2765
2770
  {
@@ -3709,6 +3714,60 @@ export const businessFields = [
3709
3714
 
3710
3715
  },
3711
3716
  },
3717
+ {
3718
+ type: "vabUpload2",
3719
+ icon: "uploadbox",
3720
+ commonFlag: !0,
3721
+ formItemFlag: !0,
3722
+ tableField: null,
3723
+ options: {
3724
+ name: "",
3725
+ keyNameEnabled: !1,
3726
+ keyName: "",
3727
+ label: "",
3728
+ labelColor: "",
3729
+ submitFlag: true,
3730
+ disabled: !1,
3731
+ hidden: !1,
3732
+ required: !1,
3733
+ labelWidth: null,
3734
+ labelHidden: !0,
3735
+ limit: null,
3736
+ accessType: "1",
3737
+ entityTableCode: null,
3738
+ entityTableDesc: null,
3739
+ onCreated: "",
3740
+ onMounted: "",
3741
+ onAfterConfirmFile: "",
3742
+ vabUpload2Flag: 1,
3743
+
3744
+ vabupload2_scriptCode: "/intf/getHxFileUploadConfig",
3745
+ vabupload2_uploadParam: "return {\n entityName: \"msdyn_workorder\",\n entityId: dataId,\n backendwriteback: \"10\",\n fileCategory: \"工单\",\n}",
3746
+ vabupload2_deleteParam: "return {\r\n entityName: \"msdyn_workorder\",\r\n entityId: dataId,\r\n backendwriteback: \"10\",\r\n}",
3747
+ // vabupload2_getFileParam:"",
3748
+
3749
+ // ...httpConfig,
3750
+ // formScriptCode: "getList",
3751
+
3752
+ ...defaultWfConfig,
3753
+
3754
+ showRuleFlag: 1,
3755
+ showRuleEnabled: 1,
3756
+ showRules: [],
3757
+
3758
+ hiddenFileInfo: false,
3759
+ hiddenFileName: false,
3760
+ showFileSize: false,
3761
+ showFileCreateBy: false,
3762
+ showFileCreateDate: false,
3763
+ widgetSize: 2,
3764
+
3765
+ customUploadEnabled: false,
3766
+ uploadUrl: null,
3767
+ uploadHeaders: {},
3768
+ uploadRresponseAdapter: {},
3769
+ },
3770
+ },
3712
3771
  ];
3713
3772
 
3714
3773
  export const keyNamePrefixMap = {
@@ -61,6 +61,7 @@ export default {
61
61
  "picture-upload": "图片",
62
62
  "file-upload": "文件",
63
63
  "vabUpload": "凭证",
64
+ "vabUpload2": "凭证(海信)",
64
65
  "vabsearch": "搜索框",
65
66
  "search_button": "搜索按钮",
66
67
  "save_button": "保存按钮",
@@ -3,64 +3,93 @@
3
3
  <el-form ref="editForm" :model="bdCompanyEnv">
4
4
  <div class="d-header clearfix">
5
5
  <div class="fl">
6
- <i class="el-icon-info"/>
7
- {{ dataId ? $t1('查看组织环境设置') : $t1('新增组织环境设置') }}
6
+ <i class="el-icon-info" />
7
+ {{ dataId ? $t1("查看组织环境设置") : $t1("新增组织环境设置") }}
8
8
  </div>
9
9
  <div class="fr">
10
- <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
11
- {{ $t1('重置') }}
10
+ <el-button
11
+ type="primary"
12
+ plain
13
+ class="button-sty"
14
+ @click="$baseReload()"
15
+ icon="el-icon-refresh-right"
16
+ >
17
+ {{ $t1("重置") }}
12
18
  </el-button>
13
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
19
+ <el-button
20
+ type="primary"
21
+ class="button-sty"
22
+ icon="el-icon-check"
23
+ @click="saveData"
24
+ >{{ $t1("保存") }}
14
25
  </el-button>
15
26
  </div>
16
27
  </div>
17
28
  <div class="d-cont">
18
29
  <div class="d-item">
19
- <div class="title first"><b>{{ $t1('基本信息') }}</b></div>
30
+ <div class="title first">
31
+ <b>{{ $t1("基本信息") }}</b>
32
+ </div>
20
33
  <table class="table-detail">
21
34
  <tbody>
22
- <tr>
23
- <th>
24
- <em class="f-red">*</em>
25
- {{ $t1('服务') }}
26
- </th>
27
- <td>
28
- <el-form-item prop="bdService" :rules="[{ required: true, trigger: 'blur' }]">
29
- <el-select v-model="bdCompanyEnv.bdService">
30
- <el-option value="dev" :label="$t1('测试')"></el-option>
31
- <el-option value="uat" :label="$t1('UAT')"></el-option>
32
- <el-option value="prod" :label="$t1('正式')"></el-option>
33
- </el-select>
34
- </el-form-item>
35
- </td>
36
- <th>
37
- <em class="f-red">*</em>
38
- {{ $t1('组织编码') }}
39
- </th>
40
- <td>
41
- <el-form-item prop="bdCompanyCode" :rules="[{ required: true, trigger: 'blur' }]">
42
- <el-input type="text" autocomplete="off" v-model="bdCompanyEnv.bdCompanyCode" clearable/>
43
- </el-form-item>
44
- </td>
45
- </tr>
46
- <tr>
47
- <th>{{ $t1('组织备注') }}</th>
48
- <td colspan="5">
49
- <el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
50
- v-model="bdCompanyEnv.bdCompanyRemark"
51
- clearable></el-input>
52
- </td>
53
- </tr>
54
- <tr>
55
- <th>{{ $t1('创建人') }}</th>
56
- <td>{{ bdCompanyEnv.createBy }}</td>
57
- <th>{{ $t1('创建时间') }}</th>
58
- <td>{{ bdCompanyEnv.createDate }}</td>
59
- <th>{{ $t1('更新人') }}</th>
60
- <td>{{ bdCompanyEnv.modifyBy }}</td>
61
- <th>{{ $t1('更新时间') }}</th>
62
- <td>{{ bdCompanyEnv.modifyDate }}</td>
63
- </tr>
35
+ <tr>
36
+ <th>
37
+ <em class="f-red">*</em>
38
+ {{ $t1("服务") }}
39
+ </th>
40
+ <td>
41
+ <el-form-item
42
+ prop="bdService"
43
+ :rules="[{ required: true, trigger: 'blur' }]"
44
+ >
45
+ <el-select v-model="bdCompanyEnv.bdService">
46
+ <el-option value="dev" :label="$t1('测试')"></el-option>
47
+ <el-option value="uat" :label="$t1('UAT')"></el-option>
48
+ <el-option value="prod" :label="$t1('正式')"></el-option>
49
+ </el-select>
50
+ </el-form-item>
51
+ </td>
52
+ <th>
53
+ <em class="f-red">*</em>
54
+ {{ $t1("组织编码") }}
55
+ </th>
56
+ <td>
57
+ <el-form-item
58
+ prop="bdCompanyCode"
59
+ :rules="[{ required: true, trigger: 'blur' }]"
60
+ >
61
+ <el-input
62
+ type="text"
63
+ autocomplete="off"
64
+ v-model="bdCompanyEnv.bdCompanyCode"
65
+ clearable
66
+ />
67
+ </el-form-item>
68
+ </td>
69
+ </tr>
70
+ <tr>
71
+ <th>{{ $t1("组织备注") }}</th>
72
+ <td colspan="5">
73
+ <el-input
74
+ type="textarea"
75
+ :rows="2"
76
+ :placeholder="$t1('请输入内容')"
77
+ size="small"
78
+ v-model="bdCompanyEnv.bdCompanyRemark"
79
+ clearable
80
+ ></el-input>
81
+ </td>
82
+ </tr>
83
+ <tr>
84
+ <th>{{ $t1("创建人") }}</th>
85
+ <td>{{ bdCompanyEnv.createBy }}</td>
86
+ <th>{{ $t1("创建时间") }}</th>
87
+ <td>{{ bdCompanyEnv.createDate }}</td>
88
+ <th>{{ $t1("更新人") }}</th>
89
+ <td>{{ bdCompanyEnv.modifyBy }}</td>
90
+ <th>{{ $t1("更新时间") }}</th>
91
+ <td>{{ bdCompanyEnv.modifyDate }}</td>
92
+ </tr>
64
93
  </tbody>
65
94
  </table>
66
95
  </div>
@@ -71,26 +100,26 @@
71
100
 
72
101
  <script>
73
102
  export default {
74
- name: 'request_setttingEdit',
103
+ name: "bd_company_envEdit",
75
104
  props: {
76
105
  _dataId: [String, Number],
77
- copyId: [String, Number]
106
+ copyId: [String, Number],
78
107
  },
79
108
  components: {},
80
109
  data() {
81
110
  return {
82
111
  isEdit: false,
83
- tabIndex: 'first',
84
- dataId: '',
112
+ tabIndex: "first",
113
+ dataId: "",
85
114
  bdCompanyEnv: {
86
115
  enabled: true,
87
116
  connectTimeout: 10000,
88
117
  readTimeout: 60000,
89
118
  preScript: null,
90
119
  postScript: null,
91
- exeCompanyCode: null
120
+ exeCompanyCode: null,
92
121
  },
93
- showCodeEditor: false
122
+ showCodeEditor: false,
94
123
  };
95
124
  },
96
125
  created() {
@@ -110,54 +139,55 @@ export default {
110
139
  url: USER_PREFIX + `/bd_company_env/get`,
111
140
  method: `post`,
112
141
  data: {
113
- id: this.dataId
142
+ id: this.dataId,
114
143
  },
115
144
  isLoading: true,
116
145
  modalStrictly: true,
117
- success: res => {
146
+ success: (res) => {
118
147
  this.bdCompanyEnv = res.objx || {};
119
148
  this.showCodeEditor = true;
120
- }
149
+ },
121
150
  });
122
151
  } else {
123
152
  this.showCodeEditor = true;
124
153
  }
125
154
  },
126
155
  saveData() {
127
- this.$refs.editForm.$baseValidate(valid => {
156
+ this.$refs.editForm.$baseValidate((valid) => {
128
157
  if (valid) {
129
- this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
130
- var url = USER_PREFIX + (this.isEdit ? `/bd_company_env/update` : `/bd_company_env/save`);
158
+ this.$baseConfirm(this.$t1("您确定要保存吗?")).then(() => {
159
+ var url =
160
+ USER_PREFIX +
161
+ (this.isEdit ? `/bd_company_env/update` : `/bd_company_env/save`);
131
162
  this.$http({
132
163
  url: url,
133
164
  method: `post`,
134
165
  data: this.bdCompanyEnv,
135
166
  isLoading: true,
136
- success: res => {
167
+ success: (res) => {
137
168
  this.$message({
138
169
  message: res.content,
139
- type: 'success',
170
+ type: "success",
140
171
  duration: 500,
141
- onClose: t => {
172
+ onClose: (t) => {
142
173
  if (this.isEdit) {
143
174
  this.$baseReload();
144
175
  } else {
145
176
  this.$baseReload({
146
177
  updateParam: {
147
178
  _dataId: res.objx,
148
- copyId: null
149
- }
179
+ copyId: null,
180
+ },
150
181
  });
151
182
  }
152
- }
183
+ },
153
184
  });
154
- }
185
+ },
155
186
  });
156
187
  });
157
188
  }
158
189
  });
159
- }
160
- }
190
+ },
191
+ },
161
192
  };
162
-
163
193
  </script>
@@ -21,10 +21,22 @@ import bd_attach_setting_list from "@base/views/bd/setting/bd_attach_setting/lis
21
21
  import request_setting_list from "@base/views/bd/setting/request_setting/list.vue";
22
22
  import bd_company_env_list from "@base/views/bd/setting/bd_company_env/list.vue";
23
23
  import request_async_setting_list from "@base/views/bd/setting/request_async_setting/list.vue";
24
+ import logic_param_list from "@base/views/bd/setting/logic_param/list.vue";
25
+ import logic_param_list1 from "@base/views/bd/setting/logic_param/list1.vue";
26
+ import logic_param_list2 from "@base/views/bd/setting/logic_param/list2.vue";
27
+
24
28
 
25
29
  export default {
26
30
  name: "list",
27
- components: {bd_attach_setting_list, request_setting_list, bd_company_env_list, request_async_setting_list},
31
+ components: {
32
+ bd_attach_setting_list,
33
+ request_setting_list,
34
+ bd_company_env_list,
35
+ request_async_setting_list,
36
+ logic_param_list,
37
+ logic_param_list1,
38
+ logic_param_list2,
39
+ },
28
40
  data() {
29
41
  return {
30
42
  activeName: "bd_attach_setting_list",
@@ -33,6 +45,9 @@ export default {
33
45
  {label: this.$t1("同步调用接口"), name: "request_setting_list", inited: false},
34
46
  {label: this.$t1("异步推送数据"), name: "request_async_setting_list", inited: false},
35
47
  {label: this.$t1("组织环境设置"), name: "bd_company_env_list", inited: false},
48
+ {label: this.$t1("逻辑参数"), name: "logic_param_list", inited: false},
49
+ {label: this.$t1("操作日志编码"), name: "logic_param_list1", inited: false},
50
+ {label: this.$t1("上传文件服务"), name: "logic_param_list2", inited: false},
36
51
  ]
37
52
  }
38
53
  },