cloud-web-corejs 1.0.54-dev.597 → 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.597",
4
+ "version": "1.0.54-dev.599",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -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="saveData"
8
- >
9
- {{ $t1("回退当前版本") }}
10
- </el-button>
11
- </template>
12
- <script>
13
- import { USER_PREFIX } from "@/prefixConfig";
14
-
15
- export default {
16
- name: "ftHistoryButton",
17
- props: {
18
- hData: Object,
19
- objType: {
20
- type: String,
21
- default: "",
22
- },
23
- objCode: {
24
- type: String,
25
- default: "",
26
- },
27
- },
28
- components: {
29
- ftHistoryDialog: () =>
30
- import("@base/views/bd/setting/formVersion/ftHistoryDialog.vue"),
31
- },
32
- data() {
33
- return {
34
- historyDialogVisible: false,
35
- };
36
- },
37
- methods: {
38
- saveData() {
39
- let url = null;
40
- if (this.objType === "FormTemplate") {
41
- url = USER_PREFIX + "/formTemplate/update";
42
- } else if (this.objType === "FormScript") {
43
- url = USER_PREFIX + "/formScript/update";
44
- } else if (this.objType === "SzTaMb") {
45
- url = USER_PREFIX + "/szTaMb/update";
46
- }
47
- this.$baseConfirm(this.$t1("您确定要回退当前版本吗?")).then(() => {
48
- this.$http({
49
- aes: true,
50
- url: url,
51
- method: `post`,
52
- data: this.hData,
53
- isLoading: true,
54
- success: (res) => {
55
- this.$message({
56
- message: res.content,
57
- type: "success",
58
- });
59
- this.$emit("reverCallback");
60
- },
61
- });
62
- });
63
- },
64
- },
65
- };
66
- </script>
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>
@@ -116,7 +116,7 @@ export default {
116
116
  this.initLanguageSetting();
117
117
  },
118
118
  mounted() {
119
- this.getBdEnv();
119
+ // this.getBdEnv();
120
120
  this.getData();
121
121
  },
122
122
  methods: {
@@ -32,7 +32,7 @@
32
32
  <tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
33
33
  <template #buttonLeft>
34
34
  <vxe-button status="primary" class="button-sty" icon="el-icon-plus"
35
- @click="openFieldTranslationEditDialog()" :disabled="!currentDataType.id">
35
+ @click="openFieldTranslationEditDialog()" :disabled="!currentDataType.id" v-if="isDev">
36
36
  {{ $t1('新增') }}
37
37
  </vxe-button>
38
38
  <base-table-export :option="{ title: $t1('多语言'), targetRef: 'table-m1'}"
@@ -191,7 +191,7 @@ export default {
191
191
  }
192
192
  });*/
193
193
  await this.initLanguageSetting();
194
- this.getBdEnv();
194
+ // this.getBdEnv();
195
195
  this.initTableList();
196
196
  },
197
197
  methods: {