mooho-base-admin-plus 2.10.64 → 2.10.65
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
package/src/api/task.js
CHANGED
|
@@ -56,6 +56,17 @@ export default {
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
},
|
|
59
|
+
batchRedirect(sourceID, targetID, comment) {
|
|
60
|
+
return request({
|
|
61
|
+
url: `api/${res}/batchRedirect`,
|
|
62
|
+
method: 'post',
|
|
63
|
+
data: {
|
|
64
|
+
sourceID,
|
|
65
|
+
targetID,
|
|
66
|
+
comment
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
},
|
|
59
70
|
batchDo(ids) {
|
|
60
71
|
return request({
|
|
61
72
|
url: `api/${res}/batchDo`,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="i-layout-page-header">
|
|
4
|
+
<PageHeader :title="$route.meta.title" :content="$route.meta.description" hidden-breadcrumb />
|
|
5
|
+
</div>
|
|
6
|
+
<Card :bordered="false" dis-hover class="ivu-mt">
|
|
7
|
+
<view-form ref="form" view-code="BatchRedirect"></view-form>
|
|
8
|
+
<div style="text-align: center">
|
|
9
|
+
<Button type="info" custom-icon="fa fa-share" @click="batchRedirect()">{{ $t('Front_Btn_Redirect') }}</Button>
|
|
10
|
+
</div>
|
|
11
|
+
</Card>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<script>
|
|
15
|
+
import mixinPage from '../../mixins/page';
|
|
16
|
+
import taskApi from '../../api/task';
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
name: 'system-batchRedirect',
|
|
20
|
+
mixins: [mixinPage],
|
|
21
|
+
components: {},
|
|
22
|
+
data() {
|
|
23
|
+
return {};
|
|
24
|
+
},
|
|
25
|
+
computed: {},
|
|
26
|
+
created() {},
|
|
27
|
+
methods: {
|
|
28
|
+
// 批量转移
|
|
29
|
+
async batchRedirect() {
|
|
30
|
+
let isOK = await this.$refs.form.validate();
|
|
31
|
+
|
|
32
|
+
if (!isOK) {
|
|
33
|
+
this.error('Front_Msg_Form_Validate_Fail');
|
|
34
|
+
} else {
|
|
35
|
+
let model = this.$refs.form.data;
|
|
36
|
+
|
|
37
|
+
this.confirm('Front_Msg_Sure_To_Redirect_Application|' + model.target.name, async () => {
|
|
38
|
+
await taskApi.batchRedirect(model.sourceID, model.targetID, model.comment);
|
|
39
|
+
this.success('Front_Msg_Success');
|
|
40
|
+
this.resetNotice();
|
|
41
|
+
|
|
42
|
+
setTimeout(() => {
|
|
43
|
+
this.$refs.form.reset();
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
</script>
|