cloud-web-corejs 1.0.54-dev.264 → 1.0.54-dev.265
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
@@ -1,17 +1,15 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="detail-wrap">
|
3
|
-
<el-form ref="editForm" :model="
|
3
|
+
<el-form ref="editForm" :model="pushData">
|
4
4
|
<div class="d-header clearfix">
|
5
5
|
<div class="fl">
|
6
6
|
<i class="el-icon-info"/>
|
7
|
-
{{ dataId ? $t1('
|
7
|
+
{{ dataId ? $t1('查看在途推送数据') : $t1('新增在途推送数据') }}
|
8
8
|
</div>
|
9
9
|
<div class="fr">
|
10
10
|
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
11
11
|
{{ $t1('重置') }}
|
12
12
|
</el-button>
|
13
|
-
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
14
|
-
</el-button>
|
15
13
|
</div>
|
16
14
|
</div>
|
17
15
|
<baseTabs>
|
@@ -20,161 +18,38 @@
|
|
20
18
|
<table class="table-detail">
|
21
19
|
<tbody>
|
22
20
|
<tr>
|
23
|
-
<th>
|
24
|
-
|
25
|
-
|
26
|
-
</
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
</td>
|
21
|
+
<th>{{ $t1('任务编码') }}</th>
|
22
|
+
<td>{{ pushData.taskCode }}</td>
|
23
|
+
<th>{{ $t1('服务名') }}</th>
|
24
|
+
<td>{{ pushData.serverName }}</td>
|
25
|
+
<th>{{ $t1('操作对象') }}</th>
|
26
|
+
<td>{{ pushData.code }}</td>
|
27
|
+
<th>{{ $t1('产生日志时间') }}</th>
|
28
|
+
<td>{{ pushData.operDate }}</td>
|
32
29
|
</tr>
|
33
30
|
<tr>
|
34
|
-
<th>
|
35
|
-
|
36
|
-
|
37
|
-
</
|
38
|
-
<
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
</td>
|
31
|
+
<th>{{ $t1('冗余字段1') }}</th>
|
32
|
+
<td>{{ pushData.field1 }}</td>
|
33
|
+
<th>{{ $t1('冗余字段2') }}</th>
|
34
|
+
<td>{{ pushData.field2 }}</td>
|
35
|
+
<th>{{ $t1('冗余字段3') }}</th>
|
36
|
+
<td>{{ pushData.field3 }}</td>
|
37
|
+
<th>{{ $t1('冗余字段4') }}</th>
|
38
|
+
<td>{{ pushData.field4 }}</td>
|
43
39
|
</tr>
|
44
40
|
<tr>
|
45
|
-
<th>
|
46
|
-
|
47
|
-
|
48
|
-
</
|
49
|
-
<td colspan="5">
|
50
|
-
<el-form-item prop="exeCompanyCode" :rules="[{ required: true, trigger: 'blur' }]">
|
51
|
-
<el-input type="text" autocomplete="off" v-model="requestAsyncSetting.exeCompanyCode" clearable/>
|
52
|
-
</el-form-item>
|
53
|
-
</td>
|
54
|
-
<td colspan="2"><span class="tips_1">{{ $t1('注:多个用逗号","隔开') }}</span></td>
|
55
|
-
</tr>
|
56
|
-
|
57
|
-
<!-- <tr>
|
58
|
-
<th>
|
59
|
-
{{ $t1('连接超时(ms)') }}
|
60
|
-
</th>
|
61
|
-
<td>
|
62
|
-
<el-form-item prop="connectTimeout" :rules="[{ required: false, trigger: 'blur' }]">
|
63
|
-
<base-input-number v-model="requestAsyncSetting.connectTimeout" clearable/>
|
64
|
-
</el-form-item>
|
65
|
-
</td>
|
66
|
-
<td colspan="2"><span class="tips_1">{{ $t1('注:不填默认10000毫秒') }}</span></td>
|
67
|
-
<th>
|
68
|
-
{{ $t1('读取超时(ms)') }}
|
69
|
-
</th>
|
70
|
-
<td>
|
71
|
-
<el-form-item prop="readTimeout" :rules="[{ required: false, trigger: 'blur' }]">
|
72
|
-
<base-input-number v-model="requestAsyncSetting.readTimeout" clearable/>
|
73
|
-
</el-form-item>
|
74
|
-
</td>
|
75
|
-
<td colspan="2"><span class="tips_1">{{ $t1('注:不填默认60000毫秒') }}</span></td>
|
76
|
-
</tr>-->
|
77
|
-
<tr>
|
78
|
-
<th>
|
79
|
-
<em class="f-red">*</em>
|
80
|
-
{{ $t1('是否启用') }}
|
81
|
-
</th>
|
82
|
-
<td>
|
83
|
-
<el-form-item prop="enabled" :rules="[{ required: true, trigger: 'blur' }]">
|
84
|
-
<el-radio-group v-model="requestAsyncSetting.enabled">
|
85
|
-
<el-radio :label="true">{{ $t1('启用') }}</el-radio>
|
86
|
-
<el-radio :label="false">{{ $t1('禁用') }}</el-radio>
|
87
|
-
</el-radio-group>
|
88
|
-
</el-form-item>
|
89
|
-
</td>
|
90
|
-
|
91
|
-
</tr>
|
92
|
-
<tr>
|
93
|
-
<th>
|
94
|
-
{{ $t1('备注') }}
|
95
|
-
</th>
|
96
|
-
<td colspan="7">
|
97
|
-
<el-form-item prop="remark" :rules="[{ required: false, trigger: 'blur' }]">
|
98
|
-
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
|
99
|
-
v-model="requestAsyncSetting.remark"
|
100
|
-
clearable></el-input>
|
101
|
-
</el-form-item>
|
102
|
-
</td>
|
103
|
-
</tr>
|
104
|
-
|
105
|
-
<tr>
|
41
|
+
<th>{{ $t1('冗余字段5') }}</th>
|
42
|
+
<td>{{ pushData.field5 }}</td>
|
43
|
+
<th>{{ $t1('服务名') }}</th>
|
44
|
+
<td>{{ pushData.serverName }}</td>
|
106
45
|
<th>{{ $t1('创建人') }}</th>
|
107
|
-
<td>{{
|
46
|
+
<td>{{ pushData.createBy }}</td>
|
108
47
|
<th>{{ $t1('创建时间') }}</th>
|
109
|
-
<td>{{
|
110
|
-
<th>{{ $t1('更新人') }}</th>
|
111
|
-
<td>{{ requestAsyncSetting.modifyBy }}</td>
|
112
|
-
<th>{{ $t1('更新时间') }}</th>
|
113
|
-
<td>{{ requestAsyncSetting.modifyDate }}</td>
|
48
|
+
<td>{{ pushData.createDate }}</td>
|
114
49
|
</tr>
|
115
|
-
</tbody>
|
116
|
-
</table>
|
117
|
-
</template>
|
118
|
-
</baseTabPane>
|
119
|
-
<baseTabPane :label="$t1('数据组合脚本')">
|
120
|
-
<template #default>
|
121
|
-
<table class="table-detail">
|
122
|
-
<tbody>
|
123
50
|
<tr>
|
124
|
-
<
|
125
|
-
|
126
|
-
{{ $t1('脚本') }}
|
127
|
-
<scriptTestButton :script.sync="requestAsyncSetting.script"></scriptTestButton>
|
128
|
-
</th>
|
129
|
-
<td colspan="7">
|
130
|
-
<el-form-item prop="postScript" :rules="[{ required: false, trigger: 'blur' }]">
|
131
|
-
<code-editor mode="java" :readonly="!1" v-model="requestAsyncSetting.script"
|
132
|
-
v-if="showCodeEditor"></code-editor>
|
133
|
-
</el-form-item>
|
134
|
-
</td>
|
135
|
-
</tr>
|
136
|
-
</tr>
|
137
|
-
</tbody>
|
138
|
-
</table>
|
139
|
-
</template>
|
140
|
-
</baseTabPane>
|
141
|
-
<baseTabPane :label="$t1('推送数据服务信息')">
|
142
|
-
<template #default>
|
143
|
-
<table class="table-detail">
|
144
|
-
<tbody>
|
145
|
-
<tr>
|
146
|
-
<th>
|
147
|
-
<em class="f-red">*</em>
|
148
|
-
{{ $t1('请求Url') }}
|
149
|
-
</th>
|
150
|
-
<td colspan="7">
|
151
|
-
<el-form-item prop="url" :rules="[{ required: true, trigger: 'blur' }]">
|
152
|
-
<el-input type="text" autocomplete="off" v-model="requestAsyncSetting.url" clearable/>
|
153
|
-
</el-form-item>
|
154
|
-
</td>
|
155
|
-
</tr>
|
156
|
-
<tr>
|
157
|
-
<th>
|
158
|
-
{{ $t1('请求头') }}
|
159
|
-
</th>
|
160
|
-
<td colspan="7">
|
161
|
-
<el-form-item prop="header" :rules="[{ required: false, trigger: 'blur' }]">
|
162
|
-
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
|
163
|
-
v-model="requestAsyncSetting.header"
|
164
|
-
clearable></el-input>
|
165
|
-
</el-form-item>
|
166
|
-
</td>
|
167
|
-
</tr>
|
168
|
-
<tr>
|
169
|
-
<th>
|
170
|
-
<em class="f-red">*</em>
|
171
|
-
{{ $t1('调度任务编码') }}
|
172
|
-
</th>
|
173
|
-
<td colspan="7">
|
174
|
-
<el-form-item prop="taskCode" :rules="[{ required: true, trigger: 'blur' }]">
|
175
|
-
<el-input type="text" autocomplete="off" v-model="requestAsyncSetting.taskCode" clearable/>
|
176
|
-
</el-form-item>
|
177
|
-
</td>
|
51
|
+
<th>{{ $t1('内容') }}</th>
|
52
|
+
<td colspan="7">{{ pushData.content }}</td>
|
178
53
|
</tr>
|
179
54
|
</tbody>
|
180
55
|
</table>
|
@@ -187,10 +62,10 @@
|
|
187
62
|
|
188
63
|
<script>
|
189
64
|
export default {
|
190
|
-
name: '
|
65
|
+
name: 'push_dataEdit',
|
191
66
|
props: {
|
192
67
|
_dataId: [String, Number],
|
193
|
-
|
68
|
+
serverName: String
|
194
69
|
},
|
195
70
|
components: {},
|
196
71
|
data() {
|
@@ -198,7 +73,7 @@ export default {
|
|
198
73
|
isEdit: false,
|
199
74
|
tabIndex: 'first',
|
200
75
|
dataId: '',
|
201
|
-
|
76
|
+
pushData: {
|
202
77
|
enabled: true,
|
203
78
|
connectTimeout: 10000,
|
204
79
|
readTimeout: 60000,
|
@@ -209,6 +84,11 @@ export default {
|
|
209
84
|
showCodeEditor: false
|
210
85
|
};
|
211
86
|
},
|
87
|
+
computed: {
|
88
|
+
current_prefix() {
|
89
|
+
return this.serverName ? `/${this.serverName}` : "";
|
90
|
+
}
|
91
|
+
},
|
212
92
|
created() {
|
213
93
|
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
214
94
|
},
|
@@ -217,13 +97,10 @@ export default {
|
|
217
97
|
},
|
218
98
|
methods: {
|
219
99
|
getData() {
|
220
|
-
if (this.copyId) {
|
221
|
-
return;
|
222
|
-
}
|
223
100
|
if (this.dataId && !isNaN(this.dataId)) {
|
224
101
|
this.isEdit = true;
|
225
102
|
this.$commonHttp({
|
226
|
-
url:
|
103
|
+
url: this.current_prefix + `/push_data/get`,
|
227
104
|
method: `post`,
|
228
105
|
data: {
|
229
106
|
id: this.dataId
|
@@ -231,47 +108,10 @@ export default {
|
|
231
108
|
isLoading: true,
|
232
109
|
modalStrictly: true,
|
233
110
|
success: res => {
|
234
|
-
this.
|
235
|
-
this.showCodeEditor = true;
|
111
|
+
this.pushData = res.objx || {};
|
236
112
|
}
|
237
113
|
});
|
238
|
-
} else {
|
239
|
-
this.showCodeEditor = true;
|
240
114
|
}
|
241
|
-
},
|
242
|
-
saveData() {
|
243
|
-
this.$refs.editForm.$baseValidate(valid => {
|
244
|
-
if (valid) {
|
245
|
-
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
246
|
-
var url = USER_PREFIX + (this.isEdit ? `/request_async_setting/update` : `/request_async_setting/save`);
|
247
|
-
this.$http({
|
248
|
-
url: url,
|
249
|
-
method: `post`,
|
250
|
-
data: this.requestAsyncSetting,
|
251
|
-
isLoading: true,
|
252
|
-
success: res => {
|
253
|
-
this.$message({
|
254
|
-
message: res.content,
|
255
|
-
type: 'success',
|
256
|
-
duration: 500,
|
257
|
-
onClose: t => {
|
258
|
-
if (this.isEdit) {
|
259
|
-
this.$baseReload();
|
260
|
-
} else {
|
261
|
-
this.$baseReload({
|
262
|
-
updateParam: {
|
263
|
-
_dataId: res.objx,
|
264
|
-
copyId: null
|
265
|
-
}
|
266
|
-
});
|
267
|
-
}
|
268
|
-
}
|
269
|
-
});
|
270
|
-
}
|
271
|
-
});
|
272
|
-
});
|
273
|
-
}
|
274
|
-
});
|
275
115
|
}
|
276
116
|
}
|
277
117
|
};
|
@@ -19,22 +19,22 @@
|
|
19
19
|
</div>
|
20
20
|
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
|
21
21
|
@submit="searchEvent" @reset="searchEvent">
|
22
|
-
<vxe-form-item title="
|
22
|
+
<vxe-form-item :title="$t1('服务名')+':'">
|
23
23
|
<template v-slot>
|
24
|
-
<el-
|
24
|
+
<el-select v-model="formData.serverName">
|
25
|
+
<el-option v-for="(serviceId,index) in serviceIds" :key="index" :value="serviceId"
|
26
|
+
:label="serviceId"></el-option>
|
27
|
+
</el-select>
|
25
28
|
</template>
|
26
29
|
</vxe-form-item>
|
27
|
-
<vxe-form-item title="
|
30
|
+
<vxe-form-item :title="$t1('任务编码')+':'">
|
28
31
|
<template v-slot>
|
29
|
-
<el-input v-model="formData.
|
32
|
+
<el-input v-model="formData.taskCode" size="small" clearable/>
|
30
33
|
</template>
|
31
34
|
</vxe-form-item>
|
32
|
-
<vxe-form-item title="
|
35
|
+
<vxe-form-item :title="$t1('备注')+':'">
|
33
36
|
<template v-slot>
|
34
|
-
<el-
|
35
|
-
<el-option :value="true" label="启用"></el-option>
|
36
|
-
<el-option :value="false" label="禁用"></el-option>
|
37
|
-
</el-select>
|
37
|
+
<el-input v-model="formData.remark" size="small" clearable/>
|
38
38
|
</template>
|
39
39
|
</vxe-form-item>
|
40
40
|
</vxe-form>
|
@@ -46,7 +46,10 @@
|
|
46
46
|
import editView from './edit.vue';
|
47
47
|
|
48
48
|
export default {
|
49
|
-
name: '
|
49
|
+
name: 'push_data:list',
|
50
|
+
props: {
|
51
|
+
flag: String
|
52
|
+
},
|
50
53
|
components: {editView},
|
51
54
|
data() {
|
52
55
|
return {
|
@@ -58,38 +61,63 @@ export default {
|
|
58
61
|
vxeOption: {},
|
59
62
|
formData: {},
|
60
63
|
advancedFormData: {},
|
64
|
+
serviceIds: [],
|
65
|
+
serverName: null
|
61
66
|
};
|
62
67
|
},
|
68
|
+
computed: {
|
69
|
+
current_prefix() {
|
70
|
+
return this.serverName ? `/${this.serverName}` : "";
|
71
|
+
}
|
72
|
+
},
|
63
73
|
mounted() {
|
64
|
-
this.
|
74
|
+
this.getServiceIds(() => {
|
75
|
+
this.initTableList();
|
76
|
+
})
|
65
77
|
},
|
66
78
|
methods: {
|
67
79
|
searchEvent() {
|
80
|
+
if(!this.serverName){
|
81
|
+
this.$baseAlert(this.$t1("请选择服务名"));
|
82
|
+
return
|
83
|
+
}
|
68
84
|
this.$refs['table-m1'].commitProxy('reload');
|
69
85
|
},
|
70
86
|
resetEvent() {
|
87
|
+
if(!this.serverName){
|
88
|
+
this.$baseAlert(this.$t1("请选择服务名"));
|
89
|
+
return
|
90
|
+
}
|
71
91
|
this.formData = {};
|
72
|
-
this.advancedFormData = {};
|
73
92
|
this.$refs['table-m1'].commitProxy('reload');
|
74
93
|
},
|
75
94
|
openEditDialog(id) {
|
76
|
-
this.copyId = 0;
|
77
95
|
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
78
|
-
this
|
79
|
-
this
|
96
|
+
this.$emit('openEditDialog', this.dataId);
|
97
|
+
/*if (this.flag !== 1) {
|
98
|
+
this.activeName = 'first';
|
99
|
+
this.$openEditView('showEdit');
|
100
|
+
} else {
|
101
|
+
this.$emit('openEditDialog', this.dataId);
|
102
|
+
}*/
|
80
103
|
},
|
81
104
|
initTableList() {
|
82
105
|
let that = this;
|
83
|
-
let
|
106
|
+
let autoLoad = false;
|
107
|
+
let serviceIds = this.serviceIds || [];
|
108
|
+
if (serviceIds.length) {
|
109
|
+
this.serverName = serviceIds[0];
|
110
|
+
autoLoad = true;
|
111
|
+
}
|
84
112
|
let tableOption = {
|
85
113
|
vue: this,
|
86
114
|
tableRef: 'table-m1',
|
87
|
-
tableName: '
|
88
|
-
path:
|
115
|
+
tableName: 'bd_push_data_list-m1',
|
116
|
+
path: this.current_prefix + '/push_data/listPage',
|
89
117
|
param: () => {
|
90
118
|
return {
|
91
119
|
...this.formData,
|
92
|
-
|
120
|
+
serverName: this.serverName
|
93
121
|
}
|
94
122
|
},
|
95
123
|
columns: [
|
@@ -232,15 +260,26 @@ export default {
|
|
232
260
|
}
|
233
261
|
}
|
234
262
|
],
|
235
|
-
config:{
|
263
|
+
config: {
|
236
264
|
proxyConfig: {
|
237
|
-
autoLoad:
|
265
|
+
autoLoad: autoLoad
|
238
266
|
}
|
239
267
|
}
|
240
268
|
};
|
241
269
|
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
242
270
|
this.vxeOption = opts;
|
243
271
|
});
|
272
|
+
},
|
273
|
+
getServiceIds(callback) {
|
274
|
+
this.$http({
|
275
|
+
url: USER_PREFIX + `/wf_obj_config/wfServiceIds`,
|
276
|
+
method: `post`,
|
277
|
+
data: {},
|
278
|
+
success: res => {
|
279
|
+
this.serviceIds = res.objx || [];
|
280
|
+
callback && callback()
|
281
|
+
}
|
282
|
+
});
|
244
283
|
}
|
245
284
|
}
|
246
285
|
};
|
@@ -2,8 +2,8 @@
|
|
2
2
|
<div id="containt">
|
3
3
|
<el-tabs v-model="activeName" class="tab-box">
|
4
4
|
<el-tab-pane :label="$t1('常规')" name="first">
|
5
|
-
<
|
6
|
-
:parent-target="_self" @reload="$reloadHandle"></
|
5
|
+
<component v-if="showEdit" visible-key="showEdit" :is="editComponentName" :_dataId.sync="dataId"
|
6
|
+
:parent-target="_self" @reload="$reloadHandle"></component>
|
7
7
|
</el-tab-pane>
|
8
8
|
<el-tab-pane :label="$t1('列表')" name="second">
|
9
9
|
<div class="grid-height">
|
@@ -50,22 +50,24 @@
|
|
50
50
|
</vxe-grid>
|
51
51
|
</div>
|
52
52
|
</el-tab-pane>
|
53
|
-
<el-tab-pane :label="$t1('在途推送数据')" name="
|
53
|
+
<!-- <el-tab-pane :label="$t1('在途推送数据')" name="pushData">
|
54
54
|
<div class="grid-height">
|
55
|
-
<push_data_list></push_data_list>
|
55
|
+
<push_data_list :flag="1" @openEditDialog="openPushDataEditView"></push_data_list>
|
56
56
|
</div>
|
57
57
|
</el-tab-pane>
|
58
|
-
<el-tab-pane :label="$t1('历史推送数据')" name="
|
58
|
+
<el-tab-pane :label="$t1('历史推送数据')" name="pushDataH">
|
59
59
|
<div class="grid-height">
|
60
|
-
<push_data_h_list></push_data_h_list>
|
60
|
+
<push_data_h_list :flag="1" @openEditDialog="openPushDataHEditView"></push_data_h_list>
|
61
61
|
</div>
|
62
|
-
</el-tab-pane
|
62
|
+
</el-tab-pane>-->
|
63
63
|
</el-tabs>
|
64
64
|
</div>
|
65
65
|
</template>
|
66
66
|
|
67
67
|
<script>
|
68
68
|
import editView from './edit.vue';
|
69
|
+
import push_data_edit from "../push_data/edit.vue";
|
70
|
+
import push_data_h_edit from "../push_data_h/edit.vue";
|
69
71
|
import push_data_list from "../push_data/list.vue";
|
70
72
|
import push_data_h_list from "../push_data_h/list.vue";
|
71
73
|
|
@@ -83,6 +85,7 @@ export default {
|
|
83
85
|
vxeOption: {},
|
84
86
|
formData: {},
|
85
87
|
advancedFormData: {},
|
88
|
+
editComponentName:null
|
86
89
|
};
|
87
90
|
},
|
88
91
|
mounted() {
|
@@ -100,6 +103,19 @@ export default {
|
|
100
103
|
openEditDialog(id) {
|
101
104
|
this.copyId = 0;
|
102
105
|
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
106
|
+
this.editComponentName = "editView"
|
107
|
+
this.activeName = 'first';
|
108
|
+
this.$openEditView('showEdit');
|
109
|
+
},
|
110
|
+
openPushDataEditView(id){
|
111
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
112
|
+
this.editComponentName = "push_data_edit"
|
113
|
+
this.activeName = 'first';
|
114
|
+
this.$openEditView('showEdit');
|
115
|
+
},
|
116
|
+
openPushDataHEditView(id){
|
117
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
118
|
+
this.editComponentName = "push_data_h_edit"
|
103
119
|
this.activeName = 'first';
|
104
120
|
this.$openEditView('showEdit');
|
105
121
|
},
|