cloud-web-corejs 1.0.54-dev.592 → 1.0.54-dev.594
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/formOplog/mixins.js +85 -80
- package/src/views/bd/setting/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +384 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +66 -0
- package/src/views/bd/setting/form_script/edit.vue +148 -82
- package/src/views/bd/setting/form_script/edit1.vue +326 -220
- package/src/views/bd/setting/form_script/mixins/edit.js +221 -207
- package/src/views/bd/setting/form_script/mixins/edit1.js +215 -201
- package/src/views/bd/setting/form_template/edit.vue +305 -205
- package/src/views/bd/setting/form_template/mixins/edit.js +19 -3
- package/src/views/bd/setting/table_model/edit.vue +383 -378
- package/src/views/bd/setting/table_model/mixins/edit.js +17 -4
- package/src/views/user/fieldTranslation/list.vue +1 -1
|
@@ -3,16 +3,41 @@
|
|
|
3
3
|
<el-form ref="editForm" :model="formScript" :disabled="readonly">
|
|
4
4
|
<div class="d-header clearfix">
|
|
5
5
|
<div class="fl">
|
|
6
|
-
<i class="el-icon-info"/>
|
|
7
|
-
{{ dataId ? $t1(
|
|
6
|
+
<i class="el-icon-info" />
|
|
7
|
+
{{ dataId ? $t1("查看表单脚本") : $t1("新增表单脚本") }}
|
|
8
8
|
</div>
|
|
9
9
|
<div class="fr">
|
|
10
10
|
<el-form>
|
|
11
|
-
<
|
|
12
|
-
|
|
11
|
+
<formVersionButton
|
|
12
|
+
v-if="!hData && formScript.id && !readonly"
|
|
13
|
+
objType="FormScript"
|
|
14
|
+
:objCode="formScript.scriptCode"
|
|
15
|
+
:relationCode="formScript.formCode"
|
|
16
|
+
@reverCallback="$baseReload()"
|
|
17
|
+
></formVersionButton>
|
|
18
|
+
<reverButton
|
|
19
|
+
v-if="!!hData"
|
|
20
|
+
objType="FormScript"
|
|
21
|
+
:objCode="formScript.scriptCode"
|
|
22
|
+
:hData="hData"
|
|
23
|
+
@reverCallback="$emit('reverCallback')"
|
|
24
|
+
></reverButton>
|
|
25
|
+
<el-button
|
|
26
|
+
type="primary"
|
|
27
|
+
plain
|
|
28
|
+
class="button-sty"
|
|
29
|
+
@click="$baseReload()"
|
|
30
|
+
icon="el-icon-refresh-right"
|
|
31
|
+
>
|
|
32
|
+
{{ $t1("重置") }}
|
|
13
33
|
</el-button>
|
|
14
|
-
<el-button
|
|
15
|
-
|
|
34
|
+
<el-button
|
|
35
|
+
type="primary"
|
|
36
|
+
class="button-sty"
|
|
37
|
+
icon="el-icon-check"
|
|
38
|
+
@click="saveData"
|
|
39
|
+
v-if="isDev && !readonly"
|
|
40
|
+
>{{ $t1("保存") }}
|
|
16
41
|
</el-button>
|
|
17
42
|
</el-form>
|
|
18
43
|
</div>
|
|
@@ -22,77 +47,108 @@
|
|
|
22
47
|
<template #default>
|
|
23
48
|
<table class="table-detail">
|
|
24
49
|
<tbody>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
<tr>
|
|
51
|
+
<th>
|
|
52
|
+
<em class="f-red">*</em>
|
|
53
|
+
{{ $t1("脚本名称") }}
|
|
54
|
+
</th>
|
|
55
|
+
<td colspan="3">
|
|
56
|
+
<el-form-item
|
|
57
|
+
prop="scriptName"
|
|
58
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
59
|
+
>
|
|
60
|
+
<el-input
|
|
61
|
+
type="text"
|
|
62
|
+
autocomplete="off"
|
|
63
|
+
v-model="formScript.scriptName"
|
|
64
|
+
clearable
|
|
65
|
+
/>
|
|
66
|
+
</el-form-item>
|
|
67
|
+
</td>
|
|
68
|
+
<th>{{ $t1("脚本编码") }}</th>
|
|
69
|
+
<td colspan="3">
|
|
70
|
+
<el-form-item
|
|
71
|
+
prop="scriptCode"
|
|
72
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
73
|
+
>
|
|
74
|
+
<el-input
|
|
75
|
+
type="text"
|
|
76
|
+
autocomplete="off"
|
|
77
|
+
v-model="formScript.scriptCode"
|
|
78
|
+
clearable
|
|
79
|
+
/>
|
|
80
|
+
</el-form-item>
|
|
81
|
+
</td>
|
|
82
|
+
</tr>
|
|
83
|
+
<tr>
|
|
84
|
+
<th>{{ $t1("是否启用") }}</th>
|
|
85
|
+
<td>
|
|
86
|
+
<el-form-item
|
|
87
|
+
prop="enabled"
|
|
88
|
+
:rules="[{ required: false, trigger: 'blur' }]"
|
|
89
|
+
>
|
|
90
|
+
<el-radio-group v-model="formScript.enabled">
|
|
91
|
+
<el-radio :label="true">{{ $t1("启用") }}</el-radio>
|
|
92
|
+
<el-radio :label="false">{{ $t1("禁用") }}</el-radio>
|
|
93
|
+
</el-radio-group>
|
|
94
|
+
</el-form-item>
|
|
95
|
+
</td>
|
|
96
|
+
<th>{{ $t1("开启事务") }}</th>
|
|
97
|
+
<td>
|
|
98
|
+
<el-radio-group v-model="formScript.transactions">
|
|
99
|
+
<el-radio :label="1">{{ $t1("是") }}</el-radio>
|
|
100
|
+
<el-radio :label="0">{{ $t1("否") }}</el-radio>
|
|
49
101
|
</el-radio-group>
|
|
50
|
-
</
|
|
51
|
-
</
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
<
|
|
55
|
-
<el-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
102
|
+
</td>
|
|
103
|
+
</tr>
|
|
104
|
+
<tr>
|
|
105
|
+
<th>{{ $t1("脚本说明") }}</th>
|
|
106
|
+
<td colspan="7">
|
|
107
|
+
<el-input
|
|
108
|
+
type="textarea"
|
|
109
|
+
:rows="2"
|
|
110
|
+
:placeholder="$t1('请输入内容')"
|
|
111
|
+
size="small"
|
|
112
|
+
v-model="formScript.scriptRemark"
|
|
113
|
+
clearable
|
|
114
|
+
></el-input>
|
|
115
|
+
</td>
|
|
116
|
+
</tr>
|
|
117
|
+
<tr>
|
|
118
|
+
<th>
|
|
119
|
+
<em class="f-red">*</em>
|
|
120
|
+
{{ $t1("脚本") }}
|
|
121
|
+
<!-- <scriptDescriptionButton path="static/readme/ApiRequest.txt"></scriptDescriptionButton>-->
|
|
122
|
+
<scriptTestButton :script.sync="formScript.script"></scriptTestButton>
|
|
123
|
+
</th>
|
|
124
|
+
<td colspan="7">
|
|
125
|
+
<el-form-item
|
|
126
|
+
prop="script"
|
|
127
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
128
|
+
>
|
|
129
|
+
<code-editor
|
|
130
|
+
mode="java"
|
|
131
|
+
:readonly="readonly"
|
|
132
|
+
v-model="formScript.script"
|
|
133
|
+
v-if="showCodeEditor"
|
|
134
|
+
></code-editor>
|
|
135
|
+
</el-form-item>
|
|
136
|
+
</td>
|
|
137
|
+
</tr>
|
|
138
|
+
<tr>
|
|
139
|
+
<th>{{ $t1("唯一标识") }}</th>
|
|
140
|
+
<td colspan="7">{{ formScript.sid }}</td>
|
|
141
|
+
</tr>
|
|
142
|
+
<tr>
|
|
143
|
+
<th>{{ $t1("创建人") }}</th>
|
|
144
|
+
<td>{{ formScript.createBy }}</td>
|
|
145
|
+
<th>{{ $t1("创建时间") }}</th>
|
|
146
|
+
<td>{{ formScript.createDate }}</td>
|
|
147
|
+
<th>{{ $t1("更新人") }}</th>
|
|
148
|
+
<td>{{ formScript.modifyBy }}</td>
|
|
149
|
+
<th>{{ $t1("更新时间") }}</th>
|
|
150
|
+
<td>{{ formScript.modifyDate }}</td>
|
|
151
|
+
</tr>
|
|
96
152
|
</tbody>
|
|
97
153
|
</table>
|
|
98
154
|
</template>
|
|
@@ -103,18 +159,28 @@
|
|
|
103
159
|
</template>
|
|
104
160
|
</baseTabPane>
|
|
105
161
|
</baseTabs>
|
|
106
|
-
<preformDialog
|
|
107
|
-
|
|
108
|
-
|
|
162
|
+
<preformDialog
|
|
163
|
+
v-if="showPreformDialog"
|
|
164
|
+
:visiable.sync="showPreformDialog"
|
|
165
|
+
:placeholder="
|
|
166
|
+
formScript.transactions !== 1 ? $t1('注:当前脚本未开启事务') : null
|
|
167
|
+
"
|
|
168
|
+
@confirm="confirmPreformDialog"
|
|
169
|
+
></preformDialog>
|
|
109
170
|
</el-form>
|
|
110
171
|
</div>
|
|
111
172
|
</template>
|
|
112
173
|
|
|
113
174
|
<script>
|
|
114
175
|
import mixin from "./mixins/edit";
|
|
115
|
-
|
|
176
|
+
import formVersionButton from "@base/views/bd/setting/formVersion/button.vue";
|
|
177
|
+
import reverButton from "@base/views/bd/setting/formVersion/reverButton.vue";
|
|
116
178
|
export default {
|
|
117
|
-
name:
|
|
118
|
-
mixins: [mixin]
|
|
179
|
+
name: "user_form_scriptEdit",
|
|
180
|
+
mixins: [mixin],
|
|
181
|
+
components: {
|
|
182
|
+
formVersionButton,
|
|
183
|
+
reverButton,
|
|
184
|
+
},
|
|
119
185
|
};
|
|
120
186
|
</script>
|