cloud-web-corejs 1.0.54-dev.598 → 1.0.54-dev.599
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
|
@@ -71,6 +71,11 @@
|
|
|
71
71
|
<base-input-number v-model="formData.version" />
|
|
72
72
|
</template>
|
|
73
73
|
</vxe-form-item>
|
|
74
|
+
<vxe-form-item :title="$t1('备注') + ':'">
|
|
75
|
+
<template v-slot>
|
|
76
|
+
<el-input v-model="formData.remark" clearable />
|
|
77
|
+
</template>
|
|
78
|
+
</vxe-form-item>
|
|
74
79
|
</vxe-form>
|
|
75
80
|
</template>
|
|
76
81
|
</vxe-grid>
|
|
@@ -237,6 +242,11 @@ export default {
|
|
|
237
242
|
field: "version",
|
|
238
243
|
width: 150,
|
|
239
244
|
},
|
|
245
|
+
{
|
|
246
|
+
title: this.$t1("备注"),
|
|
247
|
+
field: "remark",
|
|
248
|
+
width: 150,
|
|
249
|
+
},
|
|
240
250
|
{
|
|
241
251
|
title: this.$t1("创建时间"),
|
|
242
252
|
field: "createDate",
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:title="$t1('您确定要回退当前版本吗?')"
|
|
4
|
+
:visible.sync="showDialog"
|
|
5
|
+
:modal-append-to-body="false"
|
|
6
|
+
:close-on-click-modal="false"
|
|
7
|
+
:modal="false"
|
|
8
|
+
custom-class="dialog-style wf-dialog formVersion-preform-dialog"
|
|
9
|
+
v-el-drag-dialog
|
|
10
|
+
v-el-dialog-center
|
|
11
|
+
@close="closeDialog"
|
|
12
|
+
>
|
|
13
|
+
<el-form ref="editForm" :model="formData">
|
|
14
|
+
<div id="containt">
|
|
15
|
+
<table class="table-detail">
|
|
16
|
+
<tbody>
|
|
17
|
+
<tr>
|
|
18
|
+
<th>
|
|
19
|
+
<span class="t">
|
|
20
|
+
<em class="f-red">*</em>
|
|
21
|
+
{{ $t1("提交内容") }}
|
|
22
|
+
</span>
|
|
23
|
+
</th>
|
|
24
|
+
<td>
|
|
25
|
+
<el-form-item
|
|
26
|
+
prop="logContent"
|
|
27
|
+
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
28
|
+
>
|
|
29
|
+
<el-input
|
|
30
|
+
type="textarea"
|
|
31
|
+
:rows="8"
|
|
32
|
+
:placeholder="$attrs.placeholder || $t1('请输入提交内容')"
|
|
33
|
+
v-model="formData.logContent"
|
|
34
|
+
></el-input>
|
|
35
|
+
</el-form-item>
|
|
36
|
+
</td>
|
|
37
|
+
</tr>
|
|
38
|
+
</tbody>
|
|
39
|
+
</table>
|
|
40
|
+
</div>
|
|
41
|
+
</el-form>
|
|
42
|
+
<span slot="footer" class="dialog-footer">
|
|
43
|
+
<el-button type="primary" plain class="button-sty" @click="closeDialog">
|
|
44
|
+
<i class="el-icon-close el-icon"></i>
|
|
45
|
+
{{ $t1("取 消") }}
|
|
46
|
+
</el-button>
|
|
47
|
+
<el-button type="primary" @click="confirmDialog" class="button-sty">
|
|
48
|
+
<i class="el-icon-check el-icon"></i>
|
|
49
|
+
{{ $t1("确 定") }}
|
|
50
|
+
</el-button>
|
|
51
|
+
</span>
|
|
52
|
+
</el-dialog>
|
|
53
|
+
</template>
|
|
54
|
+
<script>
|
|
55
|
+
export default {
|
|
56
|
+
name: "preformDialog",
|
|
57
|
+
data() {
|
|
58
|
+
return {
|
|
59
|
+
showDialog: true,
|
|
60
|
+
formData: {
|
|
61
|
+
logContent: null,
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
methods: {
|
|
66
|
+
closeDialog() {
|
|
67
|
+
this.$emit("update:visiable", false);
|
|
68
|
+
this.showDialog = false;
|
|
69
|
+
},
|
|
70
|
+
confirmDialog() {
|
|
71
|
+
this.$refs.editForm.$baseValidate((valid) => {
|
|
72
|
+
if (valid) {
|
|
73
|
+
this.closeDialog();
|
|
74
|
+
this.$emit("confirm", this.formData);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
</script>
|
|
81
|
+
<style scoped></style>
|
|
82
|
+
<style>
|
|
83
|
+
.formVersion-preform-dialog .el-dialog__header {
|
|
84
|
+
text-align: left;
|
|
85
|
+
}
|
|
86
|
+
</style>
|
|
@@ -1,66 +1,84 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-button
|
|
3
|
-
type="primary"
|
|
4
|
-
plain
|
|
5
|
-
class="button-sty"
|
|
6
|
-
icon="el-icon-set-up"
|
|
7
|
-
@click="
|
|
8
|
-
>
|
|
9
|
-
{{ $t1("回退当前版本") }}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<el-button
|
|
3
|
+
type="primary"
|
|
4
|
+
plain
|
|
5
|
+
class="button-sty"
|
|
6
|
+
icon="el-icon-set-up"
|
|
7
|
+
@click="openPreformDialog"
|
|
8
|
+
>
|
|
9
|
+
{{ $t1("回退当前版本") }}
|
|
10
|
+
<preformDialog
|
|
11
|
+
v-if="showPreformDialog"
|
|
12
|
+
:visiable.sync="showPreformDialog"
|
|
13
|
+
@confirm="confirmPreformDialog"
|
|
14
|
+
></preformDialog>
|
|
15
|
+
</el-button>
|
|
16
|
+
</template>
|
|
17
|
+
<script>
|
|
18
|
+
import { USER_PREFIX } from "@/prefixConfig";
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
name: "ftHistoryButton",
|
|
22
|
+
props: {
|
|
23
|
+
hData: Object,
|
|
24
|
+
objType: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "",
|
|
27
|
+
},
|
|
28
|
+
objCode: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
components: {
|
|
34
|
+
ftHistoryDialog: () =>
|
|
35
|
+
import("@base/views/bd/setting/formVersion/ftHistoryDialog.vue"),
|
|
36
|
+
preformDialog: () => import("./preformDialog.vue"),
|
|
37
|
+
},
|
|
38
|
+
data() {
|
|
39
|
+
return {
|
|
40
|
+
historyDialogVisible: false,
|
|
41
|
+
showPreformDialog: false,
|
|
42
|
+
formData: {
|
|
43
|
+
logContent: "",
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
methods: {
|
|
48
|
+
saveDataHandle(preformData) {
|
|
49
|
+
let url = null;
|
|
50
|
+
if (this.objType === "FormTemplate") {
|
|
51
|
+
url = USER_PREFIX + "/formTemplate/update";
|
|
52
|
+
} else if (this.objType === "FormScript") {
|
|
53
|
+
url = USER_PREFIX + "/formScript/update";
|
|
54
|
+
} else if (this.objType === "SzTaMb") {
|
|
55
|
+
url = USER_PREFIX + "/szTaMb/update";
|
|
56
|
+
}
|
|
57
|
+
this.$http({
|
|
58
|
+
// aes: true,
|
|
59
|
+
url: url,
|
|
60
|
+
method: `post`,
|
|
61
|
+
data: {
|
|
62
|
+
...this.hData,
|
|
63
|
+
rb: 1,
|
|
64
|
+
logContent: preformData.logContent,
|
|
65
|
+
},
|
|
66
|
+
isLoading: true,
|
|
67
|
+
success: (res) => {
|
|
68
|
+
this.$message({
|
|
69
|
+
message: res.content,
|
|
70
|
+
type: "success",
|
|
71
|
+
});
|
|
72
|
+
this.$emit("reverCallback");
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
openPreformDialog() {
|
|
77
|
+
this.showPreformDialog = true;
|
|
78
|
+
},
|
|
79
|
+
confirmPreformDialog(preformData) {
|
|
80
|
+
this.saveDataHandle(preformData);
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
</script>
|