cloud-web-corejs 1.0.128 → 1.0.130
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/VabUpload/view.vue +138 -55
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/errorMsg/mixins.js +1 -2
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/jsonImport/mixins.js +2 -1
- package/src/components/langImport/mixins.js +17 -16
- package/src/components/wf/content.vue +772 -411
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/xform/form-designer/designer.js +3 -2
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -9
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +17 -4
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +4 -0
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +185 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +13 -4
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -2
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -366
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +0 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +372 -253
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +9 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +7 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +37 -30
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +5 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -19
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +132 -0
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +13 -10
- package/src/components/xform/form-render/container-item/data-table-mixin.js +5 -4
- package/src/components/xform/form-render/indexMixin.js +3 -2
- package/src/components/xform/lang/zh-CN.js +3 -0
- package/src/components/xform/utils/util.js +1 -1451
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1 -1
- package/src/views/user/notify_message/dialog.vue +24 -19
- package/src/views/user/outLink/form_view.vue +211 -211
- package/src/views/user/wf/wfReport/index.vue +448 -0
- package/src/views/user/wf/wf_manage/list.vue +344 -251
- package/src/views/user/wf/wf_transfer_setting/edit.vue +229 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +308 -0
@@ -0,0 +1,229 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="detail-wrap">
|
3
|
+
<el-form ref="editForm" :model="wfTransferSetting">
|
4
|
+
<div class="d-header clearfix">
|
5
|
+
<div class="fl">
|
6
|
+
<i class="el-icon-info" />
|
7
|
+
{{ dataId ? $t1("查看转派设置") : $t1("新增转派设置") }}
|
8
|
+
</div>
|
9
|
+
<div class="fr">
|
10
|
+
<el-button
|
11
|
+
type="primary"
|
12
|
+
plain
|
13
|
+
class="button-sty"
|
14
|
+
@click="$baseReload()"
|
15
|
+
icon="el-icon-refresh-right"
|
16
|
+
>
|
17
|
+
{{ $t1("重置") }}
|
18
|
+
</el-button>
|
19
|
+
<el-button
|
20
|
+
type="primary"
|
21
|
+
class="button-sty"
|
22
|
+
icon="el-icon-check"
|
23
|
+
@click="saveData"
|
24
|
+
>{{ $t1("保存") }}
|
25
|
+
</el-button>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<baseTabs>
|
29
|
+
<baseTabPane :label="$t1('基本信息')">
|
30
|
+
<template #default>
|
31
|
+
<table class="table-detail">
|
32
|
+
<tbody>
|
33
|
+
<tr>
|
34
|
+
<th>
|
35
|
+
<em class="f-red">*</em>
|
36
|
+
{{ $t1("审批人") }}
|
37
|
+
</th>
|
38
|
+
<td>
|
39
|
+
<el-form-item
|
40
|
+
prop="transferFromName"
|
41
|
+
:rules="[
|
42
|
+
{
|
43
|
+
required: true,
|
44
|
+
trigger: ['blur', 'change'],
|
45
|
+
},
|
46
|
+
]"
|
47
|
+
>
|
48
|
+
<el-input
|
49
|
+
class="search-input"
|
50
|
+
max="200"
|
51
|
+
v-model="wfTransferSetting.transferFromName"
|
52
|
+
@clear="
|
53
|
+
wfTransferSetting.transferFromName = null;
|
54
|
+
wfTransferSetting.transferFrom = null;
|
55
|
+
"
|
56
|
+
v-el-readonly
|
57
|
+
clearable
|
58
|
+
>
|
59
|
+
<i
|
60
|
+
slot="suffix"
|
61
|
+
class="el-input__icon el-icon-search"
|
62
|
+
@click="showUserDialog1 = true"
|
63
|
+
></i>
|
64
|
+
</el-input>
|
65
|
+
</el-form-item>
|
66
|
+
</td>
|
67
|
+
<th>
|
68
|
+
{{ $t1("转派给") }}
|
69
|
+
</th>
|
70
|
+
<td>
|
71
|
+
<el-form-item
|
72
|
+
prop="transferToName"
|
73
|
+
:rules="[
|
74
|
+
{
|
75
|
+
required: false,
|
76
|
+
trigger: ['blur', 'change'],
|
77
|
+
},
|
78
|
+
]"
|
79
|
+
>
|
80
|
+
<el-input
|
81
|
+
class="search-input"
|
82
|
+
max="200"
|
83
|
+
v-model="wfTransferSetting.transferToName"
|
84
|
+
@clear="
|
85
|
+
wfTransferSetting.transferToName = null;
|
86
|
+
wfTransferSetting.transferTo = null;
|
87
|
+
"
|
88
|
+
v-el-readonly
|
89
|
+
clearable
|
90
|
+
>
|
91
|
+
<i
|
92
|
+
slot="suffix"
|
93
|
+
class="el-input__icon el-icon-search"
|
94
|
+
@click="showUserDialog2 = true"
|
95
|
+
></i>
|
96
|
+
</el-input>
|
97
|
+
</el-form-item>
|
98
|
+
</td>
|
99
|
+
</tr>
|
100
|
+
<tr>
|
101
|
+
<th>{{ $t1("创建人") }}</th>
|
102
|
+
<td>{{ wfTransferSetting._createBy }}</td>
|
103
|
+
<th>{{ $t1("创建时间") }}</th>
|
104
|
+
<td>{{ wfTransferSetting.createDate }}</td>
|
105
|
+
<th>{{ $t1("更新人") }}</th>
|
106
|
+
<td>{{ wfTransferSetting._modifyBy }}</td>
|
107
|
+
<th>{{ $t1("更新时间") }}</th>
|
108
|
+
<td>{{ wfTransferSetting.modifyDate }}</td>
|
109
|
+
</tr>
|
110
|
+
</tbody>
|
111
|
+
</table>
|
112
|
+
</template>
|
113
|
+
</baseTabPane>
|
114
|
+
</baseTabs>
|
115
|
+
</el-form>
|
116
|
+
<userDialog
|
117
|
+
v-if="showUserDialog1"
|
118
|
+
:visiable.sync="showUserDialog1"
|
119
|
+
@confirm="confirmUserDialog1"
|
120
|
+
:multi="false"
|
121
|
+
/>
|
122
|
+
<userDialog
|
123
|
+
v-if="showUserDialog2"
|
124
|
+
:visiable.sync="showUserDialog2"
|
125
|
+
@confirm="confirmUserDialog2"
|
126
|
+
:multi="false"
|
127
|
+
/>
|
128
|
+
</div>
|
129
|
+
</template>
|
130
|
+
|
131
|
+
<script>
|
132
|
+
import userDialog from "@base/views/user/user/dialog";
|
133
|
+
export default {
|
134
|
+
name: "wfTransferSettingEdit",
|
135
|
+
props: {
|
136
|
+
_dataId: [String, Number],
|
137
|
+
},
|
138
|
+
components: { userDialog },
|
139
|
+
data() {
|
140
|
+
return {
|
141
|
+
isEdit: false,
|
142
|
+
tabIndex: "first",
|
143
|
+
dataId: "",
|
144
|
+
wfTransferSetting: {
|
145
|
+
transferFromName: null,
|
146
|
+
transferToName: null,
|
147
|
+
transferFrom: null,
|
148
|
+
transferTo: null,
|
149
|
+
},
|
150
|
+
showUserDialog1: false,
|
151
|
+
showUserDialog2: false,
|
152
|
+
};
|
153
|
+
},
|
154
|
+
created() {
|
155
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
156
|
+
},
|
157
|
+
mounted() {
|
158
|
+
this.getData();
|
159
|
+
},
|
160
|
+
methods: {
|
161
|
+
getData() {
|
162
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
163
|
+
this.isEdit = true;
|
164
|
+
this.$commonHttp({
|
165
|
+
url: USER_PREFIX + `/wf_transfer_setting/get`,
|
166
|
+
method: `post`,
|
167
|
+
data: {
|
168
|
+
id: this.dataId,
|
169
|
+
},
|
170
|
+
isLoading: true,
|
171
|
+
modalStrictly: true,
|
172
|
+
success: (res) => {
|
173
|
+
this.wfTransferSetting = res.objx || {};
|
174
|
+
},
|
175
|
+
});
|
176
|
+
}
|
177
|
+
},
|
178
|
+
saveData() {
|
179
|
+
this.$refs.editForm.$baseValidate((valid) => {
|
180
|
+
if (valid) {
|
181
|
+
this.$baseConfirm(this.$t1("您确定要保存吗?")).then(() => {
|
182
|
+
var url =
|
183
|
+
USER_PREFIX +
|
184
|
+
(this.isEdit ? `/wf_transfer_setting/update` : `/wf_transfer_setting/save`);
|
185
|
+
this.$http({
|
186
|
+
url: url,
|
187
|
+
method: `post`,
|
188
|
+
data: this.wfTransferSetting,
|
189
|
+
isLoading: true,
|
190
|
+
success: (res) => {
|
191
|
+
this.$message({
|
192
|
+
message: res.content,
|
193
|
+
type: "success",
|
194
|
+
duration: 500,
|
195
|
+
onClose: (t) => {
|
196
|
+
if (this.isEdit) {
|
197
|
+
this.$baseReload();
|
198
|
+
} else {
|
199
|
+
this.$baseReload({
|
200
|
+
updateParam: {
|
201
|
+
_dataId: res.objx,
|
202
|
+
},
|
203
|
+
});
|
204
|
+
}
|
205
|
+
},
|
206
|
+
});
|
207
|
+
},
|
208
|
+
});
|
209
|
+
});
|
210
|
+
}
|
211
|
+
});
|
212
|
+
},
|
213
|
+
confirmUserDialog1(rows) {
|
214
|
+
if (rows.length) {
|
215
|
+
let row = rows[0];
|
216
|
+
this.wfTransferSetting.transferFrom = row.id;
|
217
|
+
this.wfTransferSetting.transferFromName = row.nickName;
|
218
|
+
}
|
219
|
+
},
|
220
|
+
confirmUserDialog2(rows) {
|
221
|
+
if (rows.length) {
|
222
|
+
let row = rows[0];
|
223
|
+
this.wfTransferSetting.transferTo = row.id;
|
224
|
+
this.wfTransferSetting.transferToName = row.nickName;
|
225
|
+
}
|
226
|
+
},
|
227
|
+
},
|
228
|
+
};
|
229
|
+
</script>
|
@@ -0,0 +1,308 @@
|
|
1
|
+
<template>
|
2
|
+
<div id="containt">
|
3
|
+
<el-tabs v-model="activeName" class="tab-box">
|
4
|
+
<el-tab-pane :label="$t1('常规')" name="first">
|
5
|
+
<editView
|
6
|
+
v-if="showEdit"
|
7
|
+
visible-key="showEdit"
|
8
|
+
:_dataId.sync="dataId"
|
9
|
+
:parent-target="_self"
|
10
|
+
@reload="$reloadHandle"
|
11
|
+
></editView>
|
12
|
+
</el-tab-pane>
|
13
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
14
|
+
<div class="grid-height">
|
15
|
+
<vxe-grid
|
16
|
+
ref="table-m1"
|
17
|
+
v-bind="vxeOption"
|
18
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
19
|
+
@custom="$vxeTableUtil.customHandle"
|
20
|
+
>
|
21
|
+
<template #form>
|
22
|
+
<tableForm
|
23
|
+
:formData.sync="formData"
|
24
|
+
@searchEvent="searchEvent"
|
25
|
+
@resetEvent="resetEvent"
|
26
|
+
>
|
27
|
+
<template #buttonLeft>
|
28
|
+
<vxe-button
|
29
|
+
status="primary"
|
30
|
+
class="button-sty"
|
31
|
+
icon="el-icon-plus"
|
32
|
+
@click="openEditDialog"
|
33
|
+
>
|
34
|
+
{{ $t1("新增") }}
|
35
|
+
</vxe-button>
|
36
|
+
</template>
|
37
|
+
<template #buttonRight>
|
38
|
+
<vxe-button
|
39
|
+
icon="el-icon-brush"
|
40
|
+
class="button-sty"
|
41
|
+
@click="resetEvent"
|
42
|
+
type="text"
|
43
|
+
status="primary"
|
44
|
+
plain
|
45
|
+
>{{ $t1("重置") }}
|
46
|
+
</vxe-button>
|
47
|
+
<vxe-button
|
48
|
+
status="warning"
|
49
|
+
icon="el-icon-search"
|
50
|
+
class="button-sty"
|
51
|
+
@click="searchEvent"
|
52
|
+
>
|
53
|
+
{{ $t1("搜索") }}
|
54
|
+
</vxe-button>
|
55
|
+
</template>
|
56
|
+
<template #transferFromName>
|
57
|
+
<vxe-form-item :title="$t1('审批人') + ':'" field="transferFromName">
|
58
|
+
<template v-slot>
|
59
|
+
<el-input
|
60
|
+
class="search-input"
|
61
|
+
max="200"
|
62
|
+
v-model="formData.transferFromName"
|
63
|
+
@clear="
|
64
|
+
formData.transferFromName = null;
|
65
|
+
formData.transferFrom = null;
|
66
|
+
$forceUpdate();
|
67
|
+
"
|
68
|
+
v-el-readonly
|
69
|
+
clearable
|
70
|
+
>
|
71
|
+
<i
|
72
|
+
slot="suffix"
|
73
|
+
class="el-input__icon el-icon-search"
|
74
|
+
@click="showUserDialog1 = true"
|
75
|
+
></i>
|
76
|
+
</el-input>
|
77
|
+
</template>
|
78
|
+
</vxe-form-item>
|
79
|
+
</template>
|
80
|
+
<template #transferToName>
|
81
|
+
<vxe-form-item :title="$t1('转派到') + ':'" field="transferToName">
|
82
|
+
<template v-slot>
|
83
|
+
<el-input
|
84
|
+
class="search-input"
|
85
|
+
max="200"
|
86
|
+
v-model="formData.transferToName"
|
87
|
+
@clear="
|
88
|
+
formData.transferToName = null;
|
89
|
+
formData.transferTo = null;
|
90
|
+
$forceUpdate();
|
91
|
+
"
|
92
|
+
v-el-readonly
|
93
|
+
clearable
|
94
|
+
>
|
95
|
+
<i
|
96
|
+
slot="suffix"
|
97
|
+
class="el-input__icon el-icon-search"
|
98
|
+
@click="showUserDialog2 = true"
|
99
|
+
></i>
|
100
|
+
</el-input>
|
101
|
+
</template>
|
102
|
+
</vxe-form-item>
|
103
|
+
</template>
|
104
|
+
</tableForm>
|
105
|
+
</template>
|
106
|
+
</vxe-grid>
|
107
|
+
</div>
|
108
|
+
</el-tab-pane>
|
109
|
+
</el-tabs>
|
110
|
+
<userDialog
|
111
|
+
v-if="showUserDialog1"
|
112
|
+
:visiable.sync="showUserDialog1"
|
113
|
+
@confirm="confirmUserDialog1"
|
114
|
+
:multi="false"
|
115
|
+
/>
|
116
|
+
<userDialog
|
117
|
+
v-if="showUserDialog2"
|
118
|
+
:visiable.sync="showUserDialog2"
|
119
|
+
@confirm="confirmUserDialog2"
|
120
|
+
:multi="false"
|
121
|
+
/>
|
122
|
+
</div>
|
123
|
+
</template>
|
124
|
+
|
125
|
+
<script>
|
126
|
+
import editView from "./edit.vue";
|
127
|
+
import tableForm from "@base/components/table/tableForm.vue";
|
128
|
+
import userDialog from "@base/views/user/user/dialog";
|
129
|
+
export default {
|
130
|
+
name: "wf_transfer_setting:list",
|
131
|
+
components: { tableForm, editView, userDialog },
|
132
|
+
data() {
|
133
|
+
return {
|
134
|
+
activeName: "second",
|
135
|
+
dataId: 0,
|
136
|
+
showEdit: false,
|
137
|
+
vxeOption: {},
|
138
|
+
formData: {},
|
139
|
+
showUserDialog1: false,
|
140
|
+
showUserDialog2: false,
|
141
|
+
};
|
142
|
+
},
|
143
|
+
mounted() {
|
144
|
+
this.initTableList();
|
145
|
+
},
|
146
|
+
methods: {
|
147
|
+
searchEvent() {
|
148
|
+
this.$refs["table-m1"].commitProxy("reload");
|
149
|
+
},
|
150
|
+
resetEvent() {
|
151
|
+
this.formData = {};
|
152
|
+
this.$refs["table-m1"].commitProxy("reload");
|
153
|
+
},
|
154
|
+
openEditDialog(id) {
|
155
|
+
this.dataId = !id || typeof id == "object" ? 0 : id;
|
156
|
+
this.activeName = "first";
|
157
|
+
this.$openEditView("showEdit");
|
158
|
+
},
|
159
|
+
initTableList() {
|
160
|
+
let that = this;
|
161
|
+
let tableOption = {
|
162
|
+
vue: this,
|
163
|
+
tableRef: "table-m1",
|
164
|
+
tableName: "wf_wf_transfer_setting_list-m1",
|
165
|
+
path: USER_PREFIX + "/wf_transfer_setting/listPage",
|
166
|
+
param: () => {
|
167
|
+
return this.formData;
|
168
|
+
},
|
169
|
+
columns: [
|
170
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
171
|
+
{
|
172
|
+
title: this.$t1("审批人"),
|
173
|
+
field: "transferFromName",
|
174
|
+
width: 150,
|
175
|
+
fixed: "left",
|
176
|
+
},
|
177
|
+
{
|
178
|
+
title: this.$t1("转派给"),
|
179
|
+
field: "transferToName",
|
180
|
+
width: 250,
|
181
|
+
},
|
182
|
+
{
|
183
|
+
title: this.$t1("创建人"),
|
184
|
+
field: "_createBy",
|
185
|
+
width: 150,
|
186
|
+
},
|
187
|
+
{
|
188
|
+
title: this.$t1("创建时间"),
|
189
|
+
field: "createDate",
|
190
|
+
width: 150,
|
191
|
+
},
|
192
|
+
{
|
193
|
+
title: this.$t1("更新人"),
|
194
|
+
field: "_modifyBy",
|
195
|
+
width: 150,
|
196
|
+
},
|
197
|
+
{
|
198
|
+
title: this.$t1("更新时间"),
|
199
|
+
field: "modifyDate",
|
200
|
+
width: 150,
|
201
|
+
},
|
202
|
+
{
|
203
|
+
width: 90,
|
204
|
+
fixed: "right",
|
205
|
+
title: "",
|
206
|
+
sortable: false,
|
207
|
+
slots: {
|
208
|
+
default: ({ row }) => {
|
209
|
+
return [
|
210
|
+
<div>
|
211
|
+
<a
|
212
|
+
href="javascript:void(0);"
|
213
|
+
class="a-link"
|
214
|
+
onclick={() => {
|
215
|
+
this.openEditDialog(row.id);
|
216
|
+
}}
|
217
|
+
>
|
218
|
+
<el-tooltip
|
219
|
+
enterable={false}
|
220
|
+
effect="dark"
|
221
|
+
content={this.$t1("查看")}
|
222
|
+
placement="top"
|
223
|
+
popper-class="tooltip-skin"
|
224
|
+
>
|
225
|
+
<i class="el-icon-edit" />
|
226
|
+
</el-tooltip>
|
227
|
+
</a>
|
228
|
+
<a
|
229
|
+
href="javascript:void(0);"
|
230
|
+
class="a-link"
|
231
|
+
onclick={() => {
|
232
|
+
this.delete(row);
|
233
|
+
}}
|
234
|
+
>
|
235
|
+
<el-tooltip
|
236
|
+
enterable={false}
|
237
|
+
effect="dark"
|
238
|
+
content={this.$t1("删除")}
|
239
|
+
placement="top"
|
240
|
+
popper-class="tooltip-skin"
|
241
|
+
>
|
242
|
+
<i class="el-icon-delete" />
|
243
|
+
</el-tooltip>
|
244
|
+
</a>
|
245
|
+
</div>,
|
246
|
+
];
|
247
|
+
},
|
248
|
+
},
|
249
|
+
},
|
250
|
+
],
|
251
|
+
searchColumns: [
|
252
|
+
{
|
253
|
+
title: this.$t1("审批人"),
|
254
|
+
field: "transferFromName",
|
255
|
+
type: "input",
|
256
|
+
slot: "transferFromName",
|
257
|
+
common: true,
|
258
|
+
},
|
259
|
+
{
|
260
|
+
title: this.$t1("转派给"),
|
261
|
+
field: "transferToName",
|
262
|
+
type: "input",
|
263
|
+
slot: "transferToName",
|
264
|
+
common: true,
|
265
|
+
},
|
266
|
+
],
|
267
|
+
};
|
268
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
269
|
+
this.vxeOption = opts;
|
270
|
+
});
|
271
|
+
},
|
272
|
+
confirmUserDialog1(rows) {
|
273
|
+
if (rows.length) {
|
274
|
+
let row = rows[0];
|
275
|
+
this.$set(this.formData, "transferFrom", row.id);
|
276
|
+
this.$set(this.formData, "transferFromName", row.nickName);
|
277
|
+
}
|
278
|
+
},
|
279
|
+
confirmUserDialog2(rows) {
|
280
|
+
if (rows.length) {
|
281
|
+
let row = rows[0];
|
282
|
+
this.$set(this.formData, "transferTo", row.id);
|
283
|
+
this.$set(this.formData, "transferToName", row.nickName);
|
284
|
+
}
|
285
|
+
},
|
286
|
+
delete(row) {
|
287
|
+
this.$baseConfirm(this.$t1("您确定要删除选中行数据吗?")).then(() => {
|
288
|
+
var url = USER_PREFIX + "/wf_transfer_setting/delete";
|
289
|
+
this.$http({
|
290
|
+
url: url,
|
291
|
+
method: `post`,
|
292
|
+
data: {
|
293
|
+
id: row.id,
|
294
|
+
},
|
295
|
+
isLoading: true,
|
296
|
+
success: (res) => {
|
297
|
+
this.$message({
|
298
|
+
message: res.content,
|
299
|
+
type: "success",
|
300
|
+
});
|
301
|
+
this.searchEvent();
|
302
|
+
},
|
303
|
+
});
|
304
|
+
});
|
305
|
+
},
|
306
|
+
},
|
307
|
+
};
|
308
|
+
</script>
|