cloud-web-corejs 1.0.31 → 1.0.32
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/statusTag/index.vue +14 -14
- package/src/components/statusTag/mixins.js +5 -5
- package/src/components/table/index.js +10 -10
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +379 -379
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +125 -125
- package/src/components/xform/form-render/container-item/data-table-mixin.js +18 -18
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -2
- package/src/views/bd/setting/bd_attach_setting/edit.vue +7 -6
- package/src/views/bd/setting/bd_attach_setting/list.vue +2 -2
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +5 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +15 -23
- package/src/views/bd/setting/form_script/dialog.vue +8 -7
- package/src/views/bd/setting/form_script/edit.vue +9 -9
- package/src/views/bd/setting/form_script/edit1.vue +20 -18
- package/src/views/bd/setting/form_script/form_list.vue +5 -5
- package/src/views/bd/setting/form_script/list1.vue +8 -6
- package/src/views/bd/setting/form_script/mixins/dialog.js +15 -23
- package/src/views/bd/setting/form_script/mixins/form_list.js +52 -36
- package/src/views/bd/setting/form_script/mixins/list.js +19 -27
- package/src/views/bd/setting/form_script/mixins/list1.js +28 -36
- package/src/views/bd/setting/form_template/dialog.vue +6 -6
- package/src/views/bd/setting/form_template/edit.vue +30 -37
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +3 -3
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +5 -4
- package/src/views/bd/setting/form_template/itemEdit.vue +29 -25
- package/src/views/bd/setting/form_template/itemList.vue +1 -1
- package/src/views/bd/setting/form_template/list.vue +15 -13
- package/src/views/bd/setting/form_template/mixins/dialog.js +7 -14
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +4 -4
- package/src/views/bd/setting/form_template/mixins/itemList.js +43 -57
- package/src/views/bd/setting/form_template/mixins/list.js +40 -77
- package/src/views/bd/setting/form_template/preformDialog.vue +1 -1
- package/src/views/bd/setting/menu_kind/authDialog.vue +7 -2
- package/src/views/bd/setting/menu_kind/dialog.vue +2 -2
- package/src/views/bd/setting/menu_kind/list.vue +7 -10
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +14 -33
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +14 -18
- package/src/views/bd/setting/menu_kind/mixins/list.js +17 -24
- package/src/views/bd/setting/table_model/dialog.vue +8 -6
- package/src/views/bd/setting/table_model/edit.vue +79 -41
- package/src/views/bd/setting/table_model/list.vue +8 -11
- package/src/views/bd/setting/table_model/mixins/dialog.js +6 -6
- package/src/views/bd/setting/table_model/mixins/edit.js +54 -84
- package/src/views/bd/setting/table_model/mixins/list.js +26 -58
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +14 -16
- package/src/views/bd/setting/table_model/zdDialog.vue +8 -6
- package/src/views/bd/setting/utils/index.js +60 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
title="导入模板文件列表"
|
|
3
|
+
:title="$t1('导入模板文件列表')"
|
|
4
4
|
:append-to-body="true"
|
|
5
5
|
:modal-append-to-body="true"
|
|
6
6
|
:close-on-click-modal="falseValue"
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
32
32
|
plain>{{ $t1('重置') }}
|
|
33
33
|
</vxe-button>
|
|
34
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{
|
|
34
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{
|
|
35
|
+
$t1('搜索')
|
|
36
|
+
}}
|
|
35
37
|
</vxe-button>
|
|
36
38
|
</template>
|
|
37
39
|
</tableForm>
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
<div class="fr">
|
|
10
10
|
<el-form>
|
|
11
|
-
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
11
|
+
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
12
|
+
{{ $t1('重置') }}
|
|
12
13
|
</el-button>
|
|
13
|
-
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{$t1('保存')}}
|
|
14
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
|
14
15
|
</el-button>
|
|
15
16
|
</el-form>
|
|
16
17
|
</div>
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
<tr>
|
|
24
25
|
<th>
|
|
25
26
|
<em class="f-red">*</em>
|
|
26
|
-
模板文件名称
|
|
27
|
+
{{ $t1('模板文件名称') }}
|
|
27
28
|
</th>
|
|
28
29
|
<td colspan="3">
|
|
29
30
|
<el-form-item prop="name" :rules="[{ required: true, trigger: 'blur' }]">
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
<tr>
|
|
35
36
|
<th>
|
|
36
37
|
<em class="f-red">*</em>
|
|
37
|
-
模板文件编码
|
|
38
|
+
{{ $t1('模板文件编码') }}
|
|
38
39
|
</th>
|
|
39
40
|
<td colspan="3">
|
|
40
41
|
<el-form-item prop="code" :rules="[{ required: true, trigger: 'blur' }]">
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
<tr>
|
|
46
47
|
<th>
|
|
47
48
|
<em class="f-red">*</em>
|
|
48
|
-
表单分类
|
|
49
|
+
{{ $t1('表单分类') }}
|
|
49
50
|
</th>
|
|
50
51
|
<td colspan="3">
|
|
51
52
|
<el-form-item prop="menuKindName"
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
</td>
|
|
79
80
|
</tr>
|
|
80
81
|
<tr>
|
|
81
|
-
<th
|
|
82
|
+
<th>{{ $t1('模板文件') }}</th>
|
|
82
83
|
<td>
|
|
83
84
|
<baseUpload
|
|
84
85
|
:limit="1"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</el-tab-pane>
|
|
8
8
|
<el-tab-pane :label="$t1('列表')" name="second">
|
|
9
9
|
<div class="tree-box fl">
|
|
10
|
-
<div class="tit"><b
|
|
10
|
+
<div class="tit"><b>{{ $t1('表单分类') }}</b></div>
|
|
11
11
|
<div class="tree-btns" style="margin-top: 10px;">
|
|
12
12
|
</div>
|
|
13
13
|
<el-tree
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</vxe-button>
|
|
50
50
|
</template>
|
|
51
51
|
<template #menuKindName>
|
|
52
|
-
<vxe-form-item title="
|
|
52
|
+
<vxe-form-item :title="$t1('表单分类') + ':'" field="tag">
|
|
53
53
|
<template v-slot>
|
|
54
54
|
<el-input v-model="currentMenuKindName" disabled></el-input>
|
|
55
55
|
</template>
|
|
@@ -39,17 +39,17 @@ modules = {
|
|
|
39
39
|
columns: [
|
|
40
40
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
41
41
|
{
|
|
42
|
-
title: '模板文件名称',
|
|
42
|
+
title: this.$t1('模板文件名称'),
|
|
43
43
|
field: 'name',
|
|
44
44
|
width: 180,
|
|
45
45
|
fixed: 'left'
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
title: '模板文件编码',
|
|
48
|
+
title: this.$t1('模板文件编码'),
|
|
49
49
|
field: 'code',
|
|
50
50
|
width: 180
|
|
51
51
|
},
|
|
52
|
-
{title: '表单分类', field: 'menuKindName', width: 150},
|
|
52
|
+
{title: this.$t1('表单分类'), field: 'menuKindName', width: 150},
|
|
53
53
|
{
|
|
54
54
|
title: this.$t1('备注'),
|
|
55
55
|
field: 'remark',
|
|
@@ -68,8 +68,8 @@ modules = {
|
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
searchColumns: [
|
|
71
|
-
{title:
|
|
72
|
-
{title:
|
|
71
|
+
{title: this.$t1('模板文件名称'), field: "name", type: "input", common: true},
|
|
72
|
+
{title: this.$t1('模板文件编码'), field: "code", type: "input", common: true},
|
|
73
73
|
{title: this.$t1('备注'), field: "remark", type: "input", common: true},
|
|
74
74
|
],
|
|
75
75
|
config: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import tableForm from "@base/components/table/tableForm.vue";
|
|
2
2
|
import editView from "@base/views/bd/setting/bd_attach_setting/edit.vue";
|
|
3
3
|
import {treeScollx} from "@base/utils/global";
|
|
4
|
+
import {getJsxBtn} from "@base/views/bd/setting/utils";
|
|
4
5
|
|
|
5
6
|
let modules = {};
|
|
6
7
|
modules = {
|
|
@@ -88,17 +89,17 @@ modules = {
|
|
|
88
89
|
columns: [
|
|
89
90
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
90
91
|
{
|
|
91
|
-
title: '模板文件名称',
|
|
92
|
+
title: this.$t1('模板文件名称'),
|
|
92
93
|
field: 'name',
|
|
93
94
|
width: 180,
|
|
94
95
|
fixed: 'left'
|
|
95
96
|
},
|
|
96
97
|
{
|
|
97
|
-
title: '模板文件编码',
|
|
98
|
+
title: this.$t1('模板文件编码'),
|
|
98
99
|
field: 'code',
|
|
99
100
|
width: 180
|
|
100
101
|
},
|
|
101
|
-
{title: '表单分类', field: 'menuKindName', width: 150},
|
|
102
|
+
{title: this.$t1('表单分类'), field: 'menuKindName', width: 150},
|
|
102
103
|
{
|
|
103
104
|
title: this.$t1('备注'),
|
|
104
105
|
field: 'remark',
|
|
@@ -116,29 +117,20 @@ modules = {
|
|
|
116
117
|
sortable: false,
|
|
117
118
|
slots: {
|
|
118
119
|
default: ({row}) => {
|
|
119
|
-
return
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}}
|
|
127
|
-
>
|
|
128
|
-
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
|
129
|
-
popper-class="tooltip-skin">
|
|
130
|
-
<i class="el-icon-edit"/>
|
|
131
|
-
</el-tooltip>
|
|
132
|
-
</a>
|
|
133
|
-
</div>
|
|
134
|
-
];
|
|
120
|
+
return getJsxBtn({
|
|
121
|
+
iconName: "el-icon-edit",
|
|
122
|
+
content: this.$t1('查看'),
|
|
123
|
+
onclick: () => {
|
|
124
|
+
this.openEditDialog(row);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
135
127
|
}
|
|
136
128
|
}
|
|
137
129
|
}
|
|
138
130
|
],
|
|
139
131
|
searchColumns: [
|
|
140
132
|
{
|
|
141
|
-
title:
|
|
133
|
+
title: this.$t1('表单分类'),
|
|
142
134
|
field: "menuKindName",
|
|
143
135
|
type: "input",
|
|
144
136
|
common: true,
|
|
@@ -146,8 +138,8 @@ modules = {
|
|
|
146
138
|
defaultValueEnabled: false,
|
|
147
139
|
slot: "menuKindName"
|
|
148
140
|
},
|
|
149
|
-
{title:
|
|
150
|
-
{title:
|
|
141
|
+
{title: this.$t1('模板文件名称'), field: "name", type: "input", common: true},
|
|
142
|
+
{title: this.$t1('模板文件编码'), field: "code", type: "input", common: true},
|
|
151
143
|
{title: this.$t1('备注'), field: "remark", type: "input", common: true},
|
|
152
144
|
],
|
|
153
145
|
config: {
|
|
@@ -172,7 +164,7 @@ modules = {
|
|
|
172
164
|
let param = {enabled: true};
|
|
173
165
|
let url = !id ? USER_PREFIX + '/menuKind/getAllList' : USER_PREFIX + '/menuKind/getChildren';
|
|
174
166
|
this.$http({
|
|
175
|
-
|
|
167
|
+
aes: true,
|
|
176
168
|
url: url,
|
|
177
169
|
method: 'post',
|
|
178
170
|
data: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
:title="title || '表单脚本列表'"
|
|
3
|
+
:title="title || $t1('表单脚本列表')"
|
|
4
4
|
:append-to-body="true"
|
|
5
5
|
:modal-append-to-body="true"
|
|
6
6
|
:close-on-click-modal="falseValue"
|
|
@@ -36,31 +36,32 @@
|
|
|
36
36
|
<div class="clearfix screen-btns">
|
|
37
37
|
<div class="fr">
|
|
38
38
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
39
|
-
plain>{{$t1('重置')}}
|
|
39
|
+
plain>{{ $t1('重置') }}
|
|
40
40
|
</vxe-button>
|
|
41
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
41
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
42
|
+
{{ $t1('搜索') }}
|
|
42
43
|
</vxe-button>
|
|
43
44
|
</div>
|
|
44
45
|
</div>
|
|
45
46
|
<vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData"
|
|
46
47
|
@submit="searchEvent"
|
|
47
48
|
@reset="resetEvent">
|
|
48
|
-
<vxe-form-item title="
|
|
49
|
+
<vxe-form-item :title="$t1('脚本名称') + ':'" field="scriptName">
|
|
49
50
|
<template v-slot>
|
|
50
51
|
<el-input v-model="formData.scriptName" size="small" clearable/>
|
|
51
52
|
</template>
|
|
52
53
|
</vxe-form-item>
|
|
53
|
-
<vxe-form-item title="
|
|
54
|
+
<vxe-form-item :title="$t1('脚本编码') + ':'" field="scriptCode">
|
|
54
55
|
<template v-slot>
|
|
55
56
|
<el-input v-model="formData.scriptCode" size="small" clearable/>
|
|
56
57
|
</template>
|
|
57
58
|
</vxe-form-item>
|
|
58
|
-
<vxe-form-item title="
|
|
59
|
+
<vxe-form-item :title="$t1('脚本说明') + ':'" field="scriptRemark">
|
|
59
60
|
<template v-slot>
|
|
60
61
|
<el-input v-model="formData.scriptRemark" size="small" clearable/>
|
|
61
62
|
</template>
|
|
62
63
|
</vxe-form-item>
|
|
63
|
-
<vxe-form-item title="
|
|
64
|
+
<vxe-form-item :title="$t1('脚本') + ':'" field="script">
|
|
64
65
|
<template v-slot>
|
|
65
66
|
<el-input v-model="formData.script" size="small" clearable/>
|
|
66
67
|
</template>
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<tr>
|
|
26
26
|
<th>
|
|
27
27
|
<em class="f-red">*</em>
|
|
28
|
-
脚本名称
|
|
28
|
+
{{ $t1('脚本名称') }}
|
|
29
29
|
</th>
|
|
30
30
|
<td colspan="3">
|
|
31
31
|
<el-form-item prop="scriptName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
32
32
|
<el-input type="text" autocomplete="off" v-model="formScript.scriptName" clearable/>
|
|
33
33
|
</el-form-item>
|
|
34
34
|
</td>
|
|
35
|
-
<th
|
|
35
|
+
<th>{{ $t1('脚本编码') }}</th>
|
|
36
36
|
<td colspan="3">
|
|
37
37
|
<el-form-item prop="scriptCode" :rules="[{ required: true, trigger: 'blur' }]">
|
|
38
38
|
<el-input type="text" autocomplete="off" v-model="formScript.scriptCode" clearable/>
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
</td>
|
|
41
41
|
</tr>
|
|
42
42
|
<tr>
|
|
43
|
-
<th
|
|
43
|
+
<th>{{ $t1('开启事务') }}</th>
|
|
44
44
|
<td>
|
|
45
45
|
<el-radio-group v-model="formScript.transactions">
|
|
46
|
-
<el-radio :label="1"
|
|
47
|
-
<el-radio :label="0"
|
|
46
|
+
<el-radio :label="1">{{ $t1('是') }}</el-radio>
|
|
47
|
+
<el-radio :label="0">{{ $t1('否') }}</el-radio>
|
|
48
48
|
</el-radio-group>
|
|
49
49
|
</td>
|
|
50
50
|
</tr>
|
|
51
51
|
<tr>
|
|
52
|
-
<th
|
|
52
|
+
<th>{{ $t1('脚本说明') }}</th>
|
|
53
53
|
<td colspan="7">
|
|
54
54
|
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
|
|
55
55
|
v-model="formScript.scriptRemark"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<tr>
|
|
60
60
|
<th>
|
|
61
61
|
<em class="f-red">*</em>
|
|
62
|
-
脚本
|
|
62
|
+
{{ $t1('脚本') }}
|
|
63
63
|
<!-- <scriptDescriptionButton path="static/readme/ApiRequest.txt"></scriptDescriptionButton>-->
|
|
64
64
|
<scriptTestButton :script.sync="formScript.script"></scriptTestButton>
|
|
65
65
|
</th>
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
</td>
|
|
72
72
|
</tr>
|
|
73
73
|
<tr>
|
|
74
|
-
<th
|
|
74
|
+
<th>{{ $t1('唯一标识') }}</th>
|
|
75
75
|
<td colspan="7">{{ formScript.sid }}</td>
|
|
76
76
|
</tr>
|
|
77
77
|
<tr>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
</table>
|
|
89
89
|
</template>
|
|
90
90
|
</baseTabPane>
|
|
91
|
-
<baseTabPane label="操作日志">
|
|
91
|
+
<baseTabPane :label="$t1('操作日志')">
|
|
92
92
|
<template #default>
|
|
93
93
|
<formOplogTable :parent-target="_self" ref="oplogTable"></formOplogTable>
|
|
94
94
|
</template>
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
<tr>
|
|
24
24
|
<th>
|
|
25
25
|
<em class="f-red">*</em>
|
|
26
|
-
脚本名称
|
|
26
|
+
{{ $t1('脚本名称') }}
|
|
27
27
|
</th>
|
|
28
28
|
<td>
|
|
29
29
|
<el-form-item prop="scriptName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
30
30
|
<el-input type="text" autocomplete="off" v-model="formScript.scriptName" clearable/>
|
|
31
31
|
</el-form-item>
|
|
32
32
|
</td>
|
|
33
|
-
<th
|
|
33
|
+
<th>{{ $t1('脚本编码') }}</th>
|
|
34
34
|
<td colspan="3">
|
|
35
35
|
<el-form-item prop="scriptCode" :rules="[{ required: true, trigger: 'blur' }]">
|
|
36
36
|
<el-input type="text" autocomplete="off" v-model="formScript.scriptCode" clearable/>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<tr>
|
|
41
41
|
<th>
|
|
42
42
|
<em class="f-red">*</em>
|
|
43
|
-
表单分类
|
|
43
|
+
{{ $t1('表单分类') }}
|
|
44
44
|
</th>
|
|
45
45
|
<td colspan="5">
|
|
46
46
|
<el-form-item v-if="formScript.formCode=='intf'" prop="menuKindName"
|
|
@@ -64,26 +64,26 @@
|
|
|
64
64
|
</tr>
|
|
65
65
|
|
|
66
66
|
<tr>
|
|
67
|
-
<th
|
|
67
|
+
<th>{{ $t1('表单模板编码') }}</th>
|
|
68
68
|
<td colspan="3">
|
|
69
69
|
{{ formScript.formCode }}
|
|
70
70
|
</td>
|
|
71
|
-
<th>Url
|
|
71
|
+
<th>{{ $t1('Url路径') }}</th>
|
|
72
72
|
<td colspan="3">
|
|
73
73
|
/{{ formScript.formCode }}/{{ formScript.scriptCode }}
|
|
74
74
|
</td>
|
|
75
75
|
</tr>
|
|
76
76
|
<tr>
|
|
77
|
-
<th
|
|
77
|
+
<th>{{ $t1('开启事务') }}</th>
|
|
78
78
|
<td>
|
|
79
79
|
<el-radio-group v-model="formScript.transactions">
|
|
80
|
-
<el-radio :label="1"
|
|
81
|
-
<el-radio :label="0"
|
|
80
|
+
<el-radio :label="1">{{ $t1('是') }}</el-radio>
|
|
81
|
+
<el-radio :label="0">{{ $t1('否') }}</el-radio>
|
|
82
82
|
</el-radio-group>
|
|
83
83
|
</td>
|
|
84
84
|
</tr>
|
|
85
85
|
<tr>
|
|
86
|
-
<th
|
|
86
|
+
<th>{{ $t1('自定义URL') }}</th>
|
|
87
87
|
<td colspan="7">
|
|
88
88
|
<el-form-item prop="uri" :rules="[{ required: false, trigger: 'blur' }]">
|
|
89
89
|
<el-input type="text" autocomplete="off" v-model="formScript.uri" clearable/>
|
|
@@ -94,25 +94,27 @@
|
|
|
94
94
|
<th class="no"></th>
|
|
95
95
|
<td colspan="7">
|
|
96
96
|
<span class="fl tips">
|
|
97
|
-
<div
|
|
97
|
+
<div>{{ $t1('注') }}:</div>
|
|
98
98
|
<div style="padding-left: 20px">
|
|
99
|
-
<p>
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
<p>{{
|
|
100
|
+
$t1('1.不配置"自定义URL",默认的请求地址为:http://域名/服务前缀/bd_api/表单编码/脚本编码。')
|
|
101
|
+
}}</p>
|
|
102
|
+
<p>{{ $t1('2.需要特殊配置URL,"自定义URL"必须以/a_api开头。') }}</p>
|
|
103
|
+
<p>{{ $t1('3.第三方接口调用(DW),"自定义URL"必须/d_api开头。') }}</p>
|
|
102
104
|
</div>
|
|
103
105
|
</span>
|
|
104
106
|
</td>
|
|
105
107
|
</tr>
|
|
106
108
|
<tr>
|
|
107
109
|
<th>
|
|
108
|
-
项目标签
|
|
110
|
+
{{ $t1('项目标签') }}
|
|
109
111
|
</th>
|
|
110
112
|
<td colspan="7">
|
|
111
113
|
<projectTagView v-model="formScript.formScriptTagDTOs" :readonly="true"></projectTagView>
|
|
112
114
|
</td>
|
|
113
115
|
</tr>
|
|
114
116
|
<tr>
|
|
115
|
-
<th
|
|
117
|
+
<th>{{ $t1('脚本说明') }}</th>
|
|
116
118
|
<td colspan="7">
|
|
117
119
|
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
|
|
118
120
|
v-model="formScript.scriptRemark"
|
|
@@ -122,7 +124,7 @@
|
|
|
122
124
|
<tr>
|
|
123
125
|
<th>
|
|
124
126
|
<em class="f-red">*</em>
|
|
125
|
-
脚本
|
|
127
|
+
{{ $t1('脚本') }}
|
|
126
128
|
<!-- <scriptDescriptionButton path="static/readme/ApiRequest.txt"></scriptDescriptionButton>-->
|
|
127
129
|
<scriptTestButton :script.sync="formScript.script"></scriptTestButton>
|
|
128
130
|
</th>
|
|
@@ -134,7 +136,7 @@
|
|
|
134
136
|
</td>
|
|
135
137
|
</tr>
|
|
136
138
|
<tr>
|
|
137
|
-
<th
|
|
139
|
+
<th>{{ $t1('唯一标识') }}</th>
|
|
138
140
|
<td colspan="7">{{ formScript.sid }}</td>
|
|
139
141
|
</tr>
|
|
140
142
|
<tr>
|
|
@@ -151,7 +153,7 @@
|
|
|
151
153
|
</table>
|
|
152
154
|
</template>
|
|
153
155
|
</baseTabPane>
|
|
154
|
-
<baseTabPane label="操作日志">
|
|
156
|
+
<baseTabPane :label="$t1('操作日志')">
|
|
155
157
|
<template #default>
|
|
156
158
|
<formOplogTable :parent-target="_self" ref="oplogTable"></formOplogTable>
|
|
157
159
|
</template>
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
<tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
|
|
15
15
|
<template #buttonLeft>
|
|
16
16
|
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
|
|
17
|
-
v-if="isDev">{{ $t1('新增') }}
|
|
17
|
+
v-if="isDev && menuKindAuth.editAuth===1">{{ $t1('新增') }}
|
|
18
18
|
</vxe-button>
|
|
19
19
|
<projectTagAddButton :option="addProjectTagOption" v-if="isDev"></projectTagAddButton>
|
|
20
20
|
<projectTagDeleteButton :option="deleteProjectTagOption" v-if="isDev"></projectTagDeleteButton>
|
|
21
21
|
<el-button icon="el-icon-setting" class="button-sty" @click="showScriptDialog=true" type="success"
|
|
22
|
-
v-if="isDev"
|
|
23
|
-
|
|
22
|
+
v-if="isDev && menuKindAuth.editAuth===1"
|
|
23
|
+
>{{ $t1('选择模板,初始化后台脚本') }}
|
|
24
24
|
</el-button>
|
|
25
25
|
</template>
|
|
26
26
|
<template #buttonRight>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</vxe-button>
|
|
32
32
|
</template>
|
|
33
33
|
<template #tag>
|
|
34
|
-
<vxe-form-item title="
|
|
34
|
+
<vxe-form-item :title="$t1('项目标签') + ':'" field="tag">
|
|
35
35
|
<template v-slot>
|
|
36
36
|
<el-input
|
|
37
37
|
class="search-input"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
</template>
|
|
67
67
|
</x-tabs>
|
|
68
68
|
<scriptDialog v-if="showScriptDialog" :visiable.sync="showScriptDialog" @confirm="confirmScriptDialog"
|
|
69
|
-
:param="{ scriptType:99 }" :multi="true" title="初始化模板脚本"></scriptDialog>
|
|
69
|
+
:param="{ scriptType:99 }" :multi="true" :title="$t1('初始化模板脚本')"></scriptDialog>
|
|
70
70
|
<projectTagDialog v-if="showProjectTagDialog3"
|
|
71
71
|
:visiable.sync="showProjectTagDialog3"
|
|
72
72
|
@confirm="confirmProjectTagDialog3"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</el-tab-pane>
|
|
9
9
|
<el-tab-pane :label="$t1('列表')" name="second">
|
|
10
10
|
<div class="tree-box fl">
|
|
11
|
-
<div class="tit"><b
|
|
11
|
+
<div class="tit"><b>{{ $t1('表单分类') }}</b></div>
|
|
12
12
|
<div class="tree-btns" style="margin-top: 10px;">
|
|
13
13
|
</div>
|
|
14
14
|
<el-tree
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
|
|
42
42
|
v-if="isDev && currentFormType.editAuth===1">{{ $t1('新增') }}
|
|
43
43
|
</vxe-button>
|
|
44
|
-
<vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport"
|
|
44
|
+
<vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport"
|
|
45
|
+
v-if="currentFormType.editAuth===1">{{ $t1('导入发布') }}
|
|
45
46
|
</vxe-button>
|
|
46
47
|
<vxe-button status="success" class="button-sty" icon="el-icon-upload2" @click="jsonExport"
|
|
47
48
|
v-if="isDev && currentFormType.exportAuth===1">{{ $t1('导出发布') }}
|
|
@@ -51,20 +52,21 @@
|
|
|
51
52
|
</template>
|
|
52
53
|
<template #buttonRight>
|
|
53
54
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
54
|
-
plain>{{$t1('重置')}}
|
|
55
|
+
plain>{{ $t1('重置') }}
|
|
55
56
|
</vxe-button>
|
|
56
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
57
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
58
|
+
{{ $t1('搜索') }}
|
|
57
59
|
</vxe-button>
|
|
58
60
|
</template>
|
|
59
61
|
<template #menuKindName>
|
|
60
|
-
<vxe-form-item title="
|
|
62
|
+
<vxe-form-item :title="$t1('表单分类') + ':'" field="tag">
|
|
61
63
|
<template v-slot>
|
|
62
64
|
<el-input v-model="currentMenuKindName" disabled></el-input>
|
|
63
65
|
</template>
|
|
64
66
|
</vxe-form-item>
|
|
65
67
|
</template>
|
|
66
68
|
<template #tag>
|
|
67
|
-
<vxe-form-item title="
|
|
69
|
+
<vxe-form-item :title="$t1('项目标签') + ':'" field="tag">
|
|
68
70
|
<template v-slot>
|
|
69
71
|
<el-input
|
|
70
72
|
class="search-input"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import editView from "@base/views/bd/setting/form_script/edit.vue";
|
|
2
2
|
import {selectDialogMixins} from "@base/mixins/selectDialog";
|
|
3
|
+
import {getJsxStatus,getJsxBtn} from "@base/views/bd/setting/utils/index";
|
|
3
4
|
|
|
4
5
|
let modules = {};
|
|
5
6
|
modules = {
|
|
@@ -52,38 +53,38 @@ modules = {
|
|
|
52
53
|
columns: [
|
|
53
54
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
54
55
|
{
|
|
55
|
-
title: '脚本名称',
|
|
56
|
+
title: this.$t1('脚本名称'),
|
|
56
57
|
field: 'scriptName',
|
|
57
58
|
width: 180,
|
|
58
59
|
fixed: 'left'
|
|
59
60
|
},
|
|
60
61
|
{
|
|
61
|
-
title: '脚本编码',
|
|
62
|
+
title: this.$t1('脚本编码'),
|
|
62
63
|
field: 'scriptCode',
|
|
63
64
|
width: 180
|
|
64
65
|
},
|
|
65
66
|
{
|
|
66
|
-
title: '脚本说明',
|
|
67
|
+
title: this.$t1('脚本说明'),
|
|
67
68
|
field: 'scriptRemark',
|
|
68
69
|
width: 250
|
|
69
70
|
},
|
|
70
71
|
{
|
|
71
72
|
field: 'transactions',
|
|
72
|
-
title: '开启事务',
|
|
73
|
+
title: this.$t1('开启事务'),
|
|
73
74
|
width: 150,
|
|
74
75
|
slots: {
|
|
75
76
|
default: ({row}) => {
|
|
76
77
|
if (row.transactions == 1) {
|
|
77
|
-
return
|
|
78
|
+
return getJsxStatus(null,this.$t1('是'))
|
|
78
79
|
} else {
|
|
79
|
-
return
|
|
80
|
+
return getJsxStatus('s-3',this.$t1('否'))
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
},
|
|
84
85
|
{
|
|
85
86
|
field: 'sid',
|
|
86
|
-
title: '唯一标识',
|
|
87
|
+
title: this.$t1('唯一标识'),
|
|
87
88
|
width: 250
|
|
88
89
|
},
|
|
89
90
|
{
|
|
@@ -98,22 +99,13 @@ modules = {
|
|
|
98
99
|
sortable: false,
|
|
99
100
|
slots: {
|
|
100
101
|
default: ({row}) => {
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}}
|
|
109
|
-
>
|
|
110
|
-
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
|
111
|
-
popper-class="tooltip-skin">
|
|
112
|
-
<i class="el-icon-edit"/>
|
|
113
|
-
</el-tooltip>
|
|
114
|
-
</a>
|
|
115
|
-
</div>
|
|
116
|
-
];
|
|
102
|
+
return getJsxBtn({
|
|
103
|
+
iconName: "el-icon-edit",
|
|
104
|
+
content: this.$t1('查看'),
|
|
105
|
+
onclick: () => {
|
|
106
|
+
this.openEditDialog(row);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
117
109
|
}
|
|
118
110
|
}
|
|
119
111
|
}
|