cloud-web-corejs 1.0.54-dev.265 → 1.0.54-dev.267
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/baseAttachment/index.vue +49 -49
- package/src/components/baseAttachment/mixins.js +266 -1
- package/src/components/wf/content.vue +90 -4
- package/src/components/wf/wf.js +126 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +17 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +25 -0
- package/src/layout/components/TagsView/index.vue +2 -2
- package/src/views/bd/setting/push_data/edit.vue +28 -10
- package/src/views/bd/setting/push_data/list.vue +64 -84
- package/src/views/bd/setting/push_data_h/edit.vue +50 -187
- package/src/views/bd/setting/push_data_h/list.vue +123 -94
- package/src/views/bd/setting/request_async_setting/list.vue +20 -10
- package/src/views/user/wf/wf_manage/list.vue +28 -0
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +16 -2
- package/src/views/user/wf/wf_obj_config/list.vue +14 -0
@@ -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="pushDataH">
|
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,61 @@
|
|
20
18
|
<table class="table-detail">
|
21
19
|
<tbody>
|
22
20
|
<tr>
|
23
|
-
<th>
|
24
|
-
|
25
|
-
|
26
|
-
</
|
27
|
-
<
|
28
|
-
|
29
|
-
<el-input type="text" autocomplete="off" v-model="requestAsyncSetting.reqCode" clearable/>
|
30
|
-
</el-form-item>
|
31
|
-
</td>
|
21
|
+
<th>{{ $t1('任务编码') }}</th>
|
22
|
+
<td>{{ pushDataH.taskCode }}</td>
|
23
|
+
<th>{{ $t1('产生业务数据时间') }}</th>
|
24
|
+
<td>{{ pushDataH.generateDate }}</td>
|
25
|
+
<th>{{ $t1('插入历史表时间') }}</th>
|
26
|
+
<td>{{ pushDataH.hCreateDate }}</td>
|
32
27
|
</tr>
|
33
28
|
<tr>
|
34
|
-
<th>
|
35
|
-
|
36
|
-
|
37
|
-
</
|
38
|
-
<
|
39
|
-
|
40
|
-
<el-input type="text" autocomplete="off" v-model="requestAsyncSetting.reqName" clearable/>
|
41
|
-
</el-form-item>
|
42
|
-
</td>
|
29
|
+
<th>{{ $t1('回传的数据类型') }}</th>
|
30
|
+
<td>{{ pushDataH.callbackDataType }}</td>
|
31
|
+
<th>{{ $t1('回传的单据数据编码或ID') }}</th>
|
32
|
+
<td>{{ pushDataH.callbackCode }}</td>
|
33
|
+
<th>{{ $t1('回传的组织编码') }}</th>
|
34
|
+
<td>{{ pushDataH.callbackCompanyCode }}</td>
|
43
35
|
</tr>
|
44
36
|
<tr>
|
45
|
-
<th>
|
46
|
-
|
47
|
-
{{ $t1('执行组织编码') }}
|
48
|
-
</th>
|
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>
|
37
|
+
<th>{{ $t1('备注') }}</th>
|
38
|
+
<td colspan="7">{{ pushDataH.remark }}</td>
|
55
39
|
</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
40
|
<tr>
|
78
|
-
<th>
|
79
|
-
|
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
|
-
|
41
|
+
<th>{{ $t1('真实数据') }}</th>
|
42
|
+
<td colspan="7">{{ pushDataH.data }}</td>
|
91
43
|
</tr>
|
92
44
|
<tr>
|
93
|
-
<th>
|
94
|
-
|
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>
|
45
|
+
<th>{{ $t1('别的服务传输数据过来的数据标识') }}</th>
|
46
|
+
<td colspan="7">{{ pushDataH.transfer }}</td>
|
103
47
|
</tr>
|
104
48
|
|
105
49
|
<tr>
|
106
|
-
<th>{{ $t1('
|
107
|
-
<td>{{
|
108
|
-
<th>{{ $t1('创建时间') }}</th>
|
109
|
-
<td>{{ requestAsyncSetting.createDate }}</td>
|
110
|
-
<th>{{ $t1('更新人') }}</th>
|
111
|
-
<td>{{ requestAsyncSetting.modifyBy }}</td>
|
112
|
-
<th>{{ $t1('更新时间') }}</th>
|
113
|
-
<td>{{ requestAsyncSetting.modifyDate }}</td>
|
114
|
-
</tr>
|
115
|
-
</tbody>
|
116
|
-
</table>
|
117
|
-
</template>
|
118
|
-
</baseTabPane>
|
119
|
-
<baseTabPane :label="$t1('数据组合脚本')">
|
120
|
-
<template #default>
|
121
|
-
<table class="table-detail">
|
122
|
-
<tbody>
|
123
|
-
<tr>
|
124
|
-
<tr>
|
125
|
-
<th>
|
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>
|
50
|
+
<th>{{ $t1('数据唯一标识') }}</th>
|
51
|
+
<td colspan="7">{{ pushDataH.sid }}</td>
|
136
52
|
</tr>
|
137
|
-
</tbody>
|
138
|
-
</table>
|
139
|
-
</template>
|
140
|
-
</baseTabPane>
|
141
|
-
<baseTabPane :label="$t1('推送数据服务信息')">
|
142
|
-
<template #default>
|
143
|
-
<table class="table-detail">
|
144
|
-
<tbody>
|
145
53
|
<tr>
|
146
|
-
<th>
|
147
|
-
|
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>
|
54
|
+
<th>{{ $t1('处理结果描述') }}</th>
|
55
|
+
<td colspan="7">{{ pushDataH.resultDesc }}</td>
|
155
56
|
</tr>
|
156
57
|
<tr>
|
157
|
-
<th>
|
158
|
-
|
159
|
-
</th>
|
160
|
-
<td
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
</el-form-item>
|
166
|
-
</td>
|
58
|
+
<th>{{ $t1('冗余字段1') }}</th>
|
59
|
+
<td>{{ pushDataH.field1 }}</td>
|
60
|
+
<th>{{ $t1('冗余字段2') }}</th>
|
61
|
+
<td>{{ pushDataH.field2 }}</td>
|
62
|
+
<th>{{ $t1('冗余字段3') }}</th>
|
63
|
+
<td>{{ pushDataH.field3 }}</td>
|
64
|
+
<th>{{ $t1('冗余字段4') }}</th>
|
65
|
+
<td>{{ pushDataH.field4 }}</td>
|
167
66
|
</tr>
|
168
67
|
<tr>
|
169
|
-
<th>
|
170
|
-
|
171
|
-
|
172
|
-
</
|
173
|
-
<
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
</td>
|
68
|
+
<th>{{ $t1('冗余字段5') }}</th>
|
69
|
+
<td>{{ pushDataH.field5 }}</td>
|
70
|
+
<th>{{ $t1('服务名') }}</th>
|
71
|
+
<td>{{ pushDataH.serverName }}</td>
|
72
|
+
<th>{{ $t1('创建人') }}</th>
|
73
|
+
<td>{{ pushDataH.createBy }}</td>
|
74
|
+
<th>{{ $t1('创建时间') }}</th>
|
75
|
+
<td>{{ pushDataH.createDate }}</td>
|
178
76
|
</tr>
|
179
77
|
</tbody>
|
180
78
|
</table>
|
@@ -187,10 +85,10 @@
|
|
187
85
|
|
188
86
|
<script>
|
189
87
|
export default {
|
190
|
-
name: '
|
88
|
+
name: 'push_data_hEdit',
|
191
89
|
props: {
|
192
90
|
_dataId: [String, Number],
|
193
|
-
|
91
|
+
serverName: String
|
194
92
|
},
|
195
93
|
components: {},
|
196
94
|
data() {
|
@@ -198,7 +96,7 @@ export default {
|
|
198
96
|
isEdit: false,
|
199
97
|
tabIndex: 'first',
|
200
98
|
dataId: '',
|
201
|
-
|
99
|
+
pushDataH: {
|
202
100
|
enabled: true,
|
203
101
|
connectTimeout: 10000,
|
204
102
|
readTimeout: 60000,
|
@@ -209,6 +107,11 @@ export default {
|
|
209
107
|
showCodeEditor: false
|
210
108
|
};
|
211
109
|
},
|
110
|
+
computed: {
|
111
|
+
current_prefix() {
|
112
|
+
return this.serverName ? `/${this.serverName}` : "";
|
113
|
+
}
|
114
|
+
},
|
212
115
|
created() {
|
213
116
|
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
214
117
|
},
|
@@ -217,13 +120,10 @@ export default {
|
|
217
120
|
},
|
218
121
|
methods: {
|
219
122
|
getData() {
|
220
|
-
if (this.copyId) {
|
221
|
-
return;
|
222
|
-
}
|
223
123
|
if (this.dataId && !isNaN(this.dataId)) {
|
224
124
|
this.isEdit = true;
|
225
125
|
this.$commonHttp({
|
226
|
-
url:
|
126
|
+
url: this.current_prefix + `/push_data_h/get`,
|
227
127
|
method: `post`,
|
228
128
|
data: {
|
229
129
|
id: this.dataId
|
@@ -231,47 +131,10 @@ export default {
|
|
231
131
|
isLoading: true,
|
232
132
|
modalStrictly: true,
|
233
133
|
success: res => {
|
234
|
-
this.
|
235
|
-
this.showCodeEditor = true;
|
134
|
+
this.pushDataH = res.objx || {};
|
236
135
|
}
|
237
136
|
});
|
238
|
-
} else {
|
239
|
-
this.showCodeEditor = true;
|
240
137
|
}
|
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
138
|
}
|
276
139
|
}
|
277
140
|
};
|
@@ -4,9 +4,9 @@
|
|
4
4
|
<template #form>
|
5
5
|
<div class="clearfix screen-btns">
|
6
6
|
<div class="fl">
|
7
|
-
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
|
7
|
+
<!-- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
|
8
8
|
{{ $t1('新增') }}
|
9
|
-
</vxe-button
|
9
|
+
</vxe-button>-->
|
10
10
|
</div>
|
11
11
|
<div class="fr">
|
12
12
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
@@ -19,22 +19,45 @@
|
|
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="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
|
-
|
36
|
-
|
37
|
-
|
37
|
+
<el-input v-model="formData.remark" size="small" clearable/>
|
38
|
+
</template>
|
39
|
+
</vxe-form-item>
|
40
|
+
<vxe-form-item title="查询时间:">
|
41
|
+
<template v-slot>
|
42
|
+
<el-date-picker
|
43
|
+
v-model="formData.startTime"
|
44
|
+
type="datetime"
|
45
|
+
placeholder=""
|
46
|
+
size="small"
|
47
|
+
clearable
|
48
|
+
value-format="yyyy-MM-dd HH:mm:ss"
|
49
|
+
:picker-options="$baseStartPickerOptions(formData.endTime)"
|
50
|
+
></el-date-picker>
|
51
|
+
<span>-</span>
|
52
|
+
<el-date-picker
|
53
|
+
v-model="formData.endTime"
|
54
|
+
type="datetime"
|
55
|
+
placeholder=""
|
56
|
+
size="small"
|
57
|
+
clearable
|
58
|
+
value-format="yyyy-MM-dd HH:mm:ss"
|
59
|
+
:picker-options="$baseEndPickerOptions(formData.startTime)"
|
60
|
+
></el-date-picker>
|
38
61
|
</template>
|
39
62
|
</vxe-form-item>
|
40
63
|
</vxe-form>
|
@@ -46,7 +69,7 @@
|
|
46
69
|
import editView from './edit.vue';
|
47
70
|
|
48
71
|
export default {
|
49
|
-
name: '
|
72
|
+
name: 'push_data_h:list',
|
50
73
|
components: {editView},
|
51
74
|
data() {
|
52
75
|
return {
|
@@ -58,151 +81,146 @@ export default {
|
|
58
81
|
vxeOption: {},
|
59
82
|
formData: {},
|
60
83
|
advancedFormData: {},
|
84
|
+
serviceIds: [],
|
85
|
+
serverName: null
|
61
86
|
};
|
62
87
|
},
|
88
|
+
computed: {
|
89
|
+
current_prefix() {
|
90
|
+
return this.serverName ? `/${this.serverName}` : "";
|
91
|
+
}
|
92
|
+
},
|
63
93
|
mounted() {
|
64
|
-
this.
|
94
|
+
this.getServiceIds(() => {
|
95
|
+
this.initTableList();
|
96
|
+
})
|
65
97
|
},
|
66
98
|
methods: {
|
67
99
|
searchEvent() {
|
100
|
+
if (!this.serverName) {
|
101
|
+
this.$baseAlert(this.$t1("请选择服务名"));
|
102
|
+
return
|
103
|
+
}
|
68
104
|
this.$refs['table-m1'].commitProxy('reload');
|
69
105
|
},
|
70
106
|
resetEvent() {
|
107
|
+
if (!this.serverName) {
|
108
|
+
this.$baseAlert(this.$t1("请选择服务名"));
|
109
|
+
return
|
110
|
+
}
|
71
111
|
this.formData = {};
|
72
|
-
this.advancedFormData = {};
|
73
112
|
this.$refs['table-m1'].commitProxy('reload');
|
74
113
|
},
|
75
114
|
openEditDialog(id) {
|
76
|
-
this.copyId = 0;
|
77
115
|
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
78
|
-
this
|
79
|
-
this.$openEditView('showEdit');
|
116
|
+
this.$emit('openEditDialog', this.dataId);
|
80
117
|
},
|
81
118
|
initTableList() {
|
82
119
|
let that = this;
|
83
|
-
let
|
120
|
+
let autoLoad = false;
|
121
|
+
let serviceIds = this.serviceIds || [];
|
122
|
+
if (serviceIds.length) {
|
123
|
+
this.serverName = serviceIds[0];
|
124
|
+
autoLoad = true;
|
125
|
+
}
|
84
126
|
let tableOption = {
|
85
127
|
vue: this,
|
86
128
|
tableRef: 'table-m1',
|
87
|
-
tableName: '
|
88
|
-
path:
|
129
|
+
tableName: 'bd_push_data_h_list-m1',
|
130
|
+
path: this.current_prefix + '/push_data_h/listPage',
|
89
131
|
param: () => {
|
90
132
|
return {
|
91
133
|
...this.formData,
|
92
|
-
|
134
|
+
serverName: this.serverName
|
93
135
|
}
|
94
136
|
},
|
95
137
|
columns: [
|
96
138
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
97
139
|
{
|
98
|
-
title: '
|
99
|
-
field: '
|
140
|
+
title: '任务编码',
|
141
|
+
field: 'taskCode',
|
100
142
|
width: 150,
|
101
143
|
fixed: 'left'
|
102
144
|
},
|
103
145
|
{
|
104
|
-
title: '
|
105
|
-
field: '
|
146
|
+
title: '产生业务数据时间',
|
147
|
+
field: 'generateDate',
|
148
|
+
width: 200,
|
149
|
+
},
|
150
|
+
{
|
151
|
+
title: '插入历史表时间',
|
152
|
+
field: 'hCreateDate',
|
153
|
+
width: 200,
|
154
|
+
},
|
155
|
+
{
|
156
|
+
title: '处理结果描述',
|
157
|
+
field: 'resultDesc',
|
106
158
|
width: 150,
|
107
|
-
fixed: 'left'
|
108
159
|
},
|
160
|
+
|
109
161
|
{
|
110
|
-
title: '
|
111
|
-
field: '
|
162
|
+
title: '回传的数据类型',
|
163
|
+
field: 'callbackDataType',
|
112
164
|
width: 150
|
113
165
|
},
|
114
166
|
{
|
115
|
-
title: '
|
116
|
-
field: '
|
117
|
-
width:
|
167
|
+
title: '回传的单据数据编码或ID',
|
168
|
+
field: 'callbackCode',
|
169
|
+
width: 200
|
118
170
|
},
|
119
|
-
|
120
|
-
title: '
|
121
|
-
field: '
|
171
|
+
{
|
172
|
+
title: '回传的组织编码',
|
173
|
+
field: 'callbackCompanyCode',
|
122
174
|
width: 150
|
123
175
|
},
|
124
176
|
{
|
125
|
-
title: '
|
126
|
-
field: '
|
127
|
-
width:
|
128
|
-
}
|
177
|
+
title: '别的服务传输数据过来的数据标识',
|
178
|
+
field: 'transfer',
|
179
|
+
width: 250
|
180
|
+
},
|
129
181
|
{
|
130
|
-
|
131
|
-
|
132
|
-
width: 150
|
133
|
-
slots: {
|
134
|
-
default: ({row}) => {
|
135
|
-
if (row.enabled) {
|
136
|
-
return [
|
137
|
-
<div class="txt-status">
|
138
|
-
<span>启用</span>
|
139
|
-
</div>
|
140
|
-
];
|
141
|
-
} else {
|
142
|
-
return [
|
143
|
-
<div class="txt-status disable">
|
144
|
-
<span>禁用</span>
|
145
|
-
</div>
|
146
|
-
];
|
147
|
-
}
|
148
|
-
}
|
149
|
-
}
|
182
|
+
title: '数据唯一标识',
|
183
|
+
field: 'sid',
|
184
|
+
width: 150
|
150
185
|
},
|
151
186
|
{
|
152
|
-
title: '
|
153
|
-
field: '
|
187
|
+
title: '冗余字段1',
|
188
|
+
field: 'field1',
|
154
189
|
width: 150
|
155
190
|
},
|
156
191
|
{
|
157
|
-
title: '
|
158
|
-
field: '
|
192
|
+
title: '冗余字段2',
|
193
|
+
field: 'field2',
|
159
194
|
width: 150
|
160
195
|
},
|
161
196
|
{
|
162
|
-
title: '
|
163
|
-
field: '
|
197
|
+
title: '冗余字段3',
|
198
|
+
field: 'field3',
|
164
199
|
width: 150
|
165
200
|
},
|
166
201
|
{
|
167
|
-
|
168
|
-
|
169
|
-
width: 150
|
170
|
-
slots: {
|
171
|
-
default: ({row}) => {
|
172
|
-
if (row.enabled) {
|
173
|
-
return [
|
174
|
-
<div class="txt-status">
|
175
|
-
<span>启用</span>
|
176
|
-
</div>
|
177
|
-
];
|
178
|
-
} else {
|
179
|
-
return [
|
180
|
-
<div class="txt-status disable">
|
181
|
-
<span>禁用</span>
|
182
|
-
</div>
|
183
|
-
];
|
184
|
-
}
|
185
|
-
}
|
186
|
-
}
|
202
|
+
title: '冗余字段4',
|
203
|
+
field: 'field4',
|
204
|
+
width: 150
|
187
205
|
},
|
188
206
|
{
|
189
|
-
|
190
|
-
|
207
|
+
title: '冗余字段5',
|
208
|
+
field: 'field5',
|
191
209
|
width: 150
|
192
210
|
},
|
193
211
|
{
|
194
|
-
|
195
|
-
|
212
|
+
title: '服务名',
|
213
|
+
field: 'serverName',
|
196
214
|
width: 150
|
197
215
|
},
|
198
216
|
{
|
199
|
-
field: '
|
200
|
-
title: this.$t1('
|
217
|
+
field: 'createBy',
|
218
|
+
title: this.$t1('创建人'),
|
201
219
|
width: 150
|
202
220
|
},
|
203
221
|
{
|
204
|
-
field: '
|
205
|
-
title: this.$t1('
|
222
|
+
field: 'createDate',
|
223
|
+
title: this.$t1('创建时间'),
|
206
224
|
width: 150
|
207
225
|
},
|
208
226
|
{
|
@@ -232,15 +250,26 @@ export default {
|
|
232
250
|
}
|
233
251
|
}
|
234
252
|
],
|
235
|
-
config:{
|
253
|
+
config: {
|
236
254
|
proxyConfig: {
|
237
|
-
autoLoad:
|
255
|
+
autoLoad: autoLoad
|
238
256
|
}
|
239
257
|
}
|
240
258
|
};
|
241
259
|
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
242
260
|
this.vxeOption = opts;
|
243
261
|
});
|
262
|
+
},
|
263
|
+
getServiceIds(callback) {
|
264
|
+
this.$http({
|
265
|
+
url: USER_PREFIX + `/wf_obj_config/wfServiceIds`,
|
266
|
+
method: `post`,
|
267
|
+
data: {},
|
268
|
+
success: res => {
|
269
|
+
this.serviceIds = res.objx || [];
|
270
|
+
callback && callback()
|
271
|
+
}
|
272
|
+
});
|
244
273
|
}
|
245
274
|
}
|
246
275
|
};
|