mooho-base-admin-plus 0.1.68 → 0.4.0
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/dist/mooho-base-admin-plus.min.esm.js +15796 -15624
- package/dist/mooho-base-admin-plus.min.js +40 -41
- package/dist/setting.js +4 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/public/setting.js +4 -2
- package/src/api/customModel.js +1 -1
- package/src/api/dataSource.js +1 -1
- package/src/api/dataView.js +1 -1
- package/src/api/i18nText +33 -0
- package/src/api/model.js +1 -1
- package/src/components/home/notice-list.vue +2 -2
- package/src/components/home/shortcut.vue +9 -9
- package/src/components/input/dialog-select.vue +3 -3
- package/src/components/input/item-select.vue +5 -5
- package/src/components/upload/upload-attachment.vue +13 -3
- package/src/components/upload/upload-image.vue +2 -2
- package/src/components/view/column-check.vue +3 -3
- package/src/components/view/column-edit.vue +18 -18
- package/src/components/view/column-select.vue +4 -4
- package/src/components/view/condition-edit.vue +10 -10
- package/src/components/view/filter-edit.vue +30 -13
- package/src/components/view/filter-setting.vue +8 -8
- package/src/components/view/form-setting-layout.vue +37 -39
- package/src/components/view/form-setting.vue +18 -18
- package/src/components/view/group-column.vue +5 -5
- package/src/components/view/group-method.vue +5 -5
- package/src/components/view/modal-form-filter.vue +28 -25
- package/src/components/view/modal-form-sort.vue +32 -27
- package/src/components/view/modal-form.vue +30 -8
- package/src/components/view/modal-table.vue +22 -2
- package/src/components/view/table-filter.vue +22 -12
- package/src/components/view/table-setting.vue +30 -42
- package/src/components/view/view-chart.vue +6 -6
- package/src/components/view/view-form-draggable.vue +7 -4
- package/src/components/view/view-form.vue +27 -14
- package/src/components/view/view-table.vue +87 -40
- package/src/components/workflow/flow-chart.vue +22 -23
- package/src/i18n/index.js +7 -7
- package/src/index.js +13 -8
- package/src/layouts/basic-layout/header-breadcrumb/index.vue +18 -3
- package/src/layouts/basic-layout/header-i18n/index.vue +5 -6
- package/src/layouts/basic-layout/header-notice/index.vue +2 -2
- package/src/layouts/basic-layout/header-search/index.vue +3 -3
- package/src/layouts/basic-layout/header-user/index.vue +18 -18
- package/src/layouts/basic-layout/menu-side/index.vue +9 -3
- package/src/layouts/basic-layout/menu-side/menu-title.vue +5 -4
- package/src/layouts/basic-layout/tabs/index.vue +4 -4
- package/src/libs/request/index.js +18 -4
- package/src/mixins/page.js +72 -18
- package/src/pages/account/login.vue +6 -6
- package/src/pages/common/task-form.vue +33 -33
- package/src/pages/common/todo.vue +1 -1
- package/src/pages/system/apiLog.vue +7 -7
- package/src/pages/system/applicationType.vue +6 -6
- package/src/pages/system/customTable.vue +7 -7
- package/src/pages/system/dict.vue +1 -1
- package/src/pages/system/dictType.vue +4 -4
- package/src/pages/system/entityView.vue +3 -3
- package/src/pages/system/error/404.vue +1 -1
- package/src/pages/system/extendColumn.vue +7 -7
- package/src/pages/system/formView.vue +10 -10
- package/src/pages/system/i18nText.vue +98 -0
- package/src/pages/system/log.vue +4 -4
- package/src/pages/system/openUser.vue +5 -5
- package/src/pages/system/organization.vue +1 -1
- package/src/pages/system/permission.vue +5 -5
- package/src/pages/system/planJob.vue +3 -3
- package/src/pages/system/process.vue +10 -10
- package/src/pages/system/role.vue +18 -18
- package/src/pages/system/rolePropertyEdit.vue +83 -100
- package/src/pages/system/systemData.vue +4 -4
- package/src/pages/system/tableView.vue +17 -17
- package/src/pages/system/taskQueue.vue +13 -6
- package/src/pages/system/user.vue +17 -17
- package/src/pages/template/processPage.vue +22 -22
- package/src/plugins/sweetalert2/index.js +1 -5
- package/src/router/dynamic.js +7 -6
- package/src/store/modules/admin/modules/i18n.js +72 -32
- package/src/store/modules/admin/modules/menu.js +1 -0
- package/src/styles/css/default.css +4 -0
- package/test/api/barcode.js +1 -1
- package/test/api/inbound.js +1 -1
- package/test/api/movePlan.js +1 -1
- package/test/api/outbound.js +1 -1
- package/test/main.js +4 -4
- package/test/router/routes.js +2 -2
- package/src/i18n/locale.js +0 -102
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<modal-table ref="table" view-code="TableFilterColumn" :static="true" :footer-enable="true" :draggable="true" :sticky="true" @on-drag-drop="dragDrop" v-if="active">
|
|
4
4
|
<template #command="{ row, index }">
|
|
5
|
-
<Button size="small" title="
|
|
6
|
-
<Button size="small" title="
|
|
7
|
-
<Button size="small" title="
|
|
8
|
-
<Button size="small" title="
|
|
5
|
+
<Button size="small" :title="$t('Front_Btn_Edit')" type="primary" ghost custom-icon="fa fa-edit" @click="edit(row, index)"></Button>
|
|
6
|
+
<Button size="small" :title="$t('Front_Btn_Up')" type="primary" ghost custom-icon="fa fa-chevron-up" @click="up(row, index)"></Button>
|
|
7
|
+
<Button size="small" :title="$t('Front_Btn_Down')" type="primary" ghost custom-icon="fa fa-chevron-down" @click="down(row, index)"></Button>
|
|
8
|
+
<Button size="small" :title="$t('Front_Btn_Remove')" type="primary" ghost custom-icon="fa fa-times" @click="remove(row, index)"></Button>
|
|
9
9
|
</template>
|
|
10
10
|
<template #footer>
|
|
11
|
-
<Button type="primary" ghost custom-icon="fa fa-plus" @click="add"
|
|
12
|
-
<Button type="primary" custom-icon="fa fa-save" @click="save"
|
|
11
|
+
<Button type="primary" ghost custom-icon="fa fa-plus" @click="add">{{ $t('Front_Btn_Add') }}</Button>
|
|
12
|
+
<Button type="primary" custom-icon="fa fa-save" @click="save">{{ $t('Front_Btn_Save') }}</Button>
|
|
13
13
|
</template>
|
|
14
14
|
</modal-table>
|
|
15
15
|
<filter-edit ref="filterEdit" :data-view="dataView" />
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
},
|
|
108
108
|
// 保存
|
|
109
109
|
save() {
|
|
110
|
-
this.confirm('
|
|
110
|
+
this.confirm('Front_Msg_Sure_To_Save_Setting', async () => {
|
|
111
111
|
let columns = this.$refs.table.data;
|
|
112
112
|
await this.saveFilterColumn({
|
|
113
113
|
code: this.dataView.code,
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
|
|
117
117
|
this.$emit('on-change', this.dataView.code);
|
|
118
118
|
|
|
119
|
-
this.success('
|
|
119
|
+
this.success('Front_Msg_Success', () => {
|
|
120
120
|
this.$refs.table.close();
|
|
121
121
|
});
|
|
122
122
|
});
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
<div class="container">
|
|
22
22
|
<div class="left">
|
|
23
23
|
<Card :bordered="false" dis-hover class="toolbox">
|
|
24
|
-
<Divider :plain="true" dashed class="title" size="small"
|
|
24
|
+
<Divider :plain="true" dashed class="title" size="small">{{ $t('Front_Label_Default_Column_Width') }}</Divider>
|
|
25
25
|
<RadioGroup v-model="columnWidth" @on-change="columnWidthChange">
|
|
26
|
-
<Radio label="Column12"
|
|
27
|
-
<Radio label="Column6"
|
|
28
|
-
<Radio label="Column4"
|
|
29
|
-
<Radio label="Column3"
|
|
30
|
-
<Radio label="Column2"
|
|
26
|
+
<Radio label="Column12">{{ $t('Enum_ColumnWidth_Column12') }}</Radio>
|
|
27
|
+
<Radio label="Column6">{{ $t('Enum_ColumnWidth_Column6') }}</Radio>
|
|
28
|
+
<Radio label="Column4">{{ $t('Enum_ColumnWidth_Column4') }}</Radio>
|
|
29
|
+
<Radio label="Column3">{{ $t('Enum_ColumnWidth_Column3') }}</Radio>
|
|
30
|
+
<Radio label="Column2">{{ $t('Enum_ColumnWidth_Column2') }}</Radio>
|
|
31
31
|
</RadioGroup>
|
|
32
32
|
<template v-for="(componentGroup, index) in componentGroups" :key="index">
|
|
33
33
|
<Divider :plain="true" dashed class="title" size="small">{{ componentGroup.name }}</Divider>
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
</div>
|
|
65
65
|
<template #footer>
|
|
66
66
|
<div>
|
|
67
|
-
<Button type="primary" ghost custom-icon="fa fa-bars" @click="listMode"
|
|
68
|
-
<Button type="primary" v-if="!dataView.isVirtual" ghost custom-icon="fa fa-indent" @click="openColumnSelect"
|
|
69
|
-
<Button type="primary" custom-icon="fa fa-save" v-if="!isSetting" @click="save"
|
|
70
|
-
<Button type="error" custom-icon="fa fa-save" v-if="isSetting" @click="globalSave"
|
|
71
|
-
<Button type="error" custom-icon="fa fa-cog" v-if="isSetting" @click="setting"
|
|
67
|
+
<Button type="primary" ghost custom-icon="fa fa-bars" @click="listMode">{{ $t('Front_Btn_List_Mode') }}</Button>
|
|
68
|
+
<Button type="primary" v-if="!dataView.isVirtual" ghost custom-icon="fa fa-indent" @click="openColumnSelect">{{ $t('Front_Btn_Select_Column') }}</Button>
|
|
69
|
+
<Button type="primary" custom-icon="fa fa-save" v-if="!isSetting" @click="save">{{ $t('Front_Btn_Save') }}</Button>
|
|
70
|
+
<Button type="error" custom-icon="fa fa-save" v-if="isSetting" @click="globalSave">{{ $t('Front_Btn_Global_Save') }}</Button>
|
|
71
|
+
<Button type="error" custom-icon="fa fa-cog" v-if="isSetting" @click="setting">{{ $t('Front_Btn_Form_Setting') }}</Button>
|
|
72
72
|
</div>
|
|
73
73
|
</template>
|
|
74
74
|
</Modal>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
<column-edit ref="columnEdit" view-type="FormView" />
|
|
77
77
|
<modal-form ref="setting" view-code="FormViewSetting" v-if="isSetting">
|
|
78
78
|
<template #footer>
|
|
79
|
-
<Button type="primary" custom-icon="fa fa-save" @click="saveSetting"
|
|
79
|
+
<Button type="primary" custom-icon="fa fa-save" @click="saveSetting">{{ $t('Front_Btn_Save') }}</Button>
|
|
80
80
|
</template>
|
|
81
81
|
</modal-form>
|
|
82
82
|
</div>
|
|
@@ -98,7 +98,6 @@
|
|
|
98
98
|
columnWidth: 'Column6',
|
|
99
99
|
opened: false,
|
|
100
100
|
dataView: {},
|
|
101
|
-
columns: [],
|
|
102
101
|
componentGroups: []
|
|
103
102
|
};
|
|
104
103
|
},
|
|
@@ -119,8 +118,7 @@
|
|
|
119
118
|
// 打开
|
|
120
119
|
async open(dataView, columns) {
|
|
121
120
|
this.dataView = dataView;
|
|
122
|
-
this.
|
|
123
|
-
this.$refs.form.init(this.dataView, this.columns);
|
|
121
|
+
this.$refs.form.init(this.dataView, this.copy(columns));
|
|
124
122
|
this.opened = true;
|
|
125
123
|
|
|
126
124
|
const res = await enumApi.query('ControlType');
|
|
@@ -128,22 +126,22 @@
|
|
|
128
126
|
this.componentGroups = [
|
|
129
127
|
{
|
|
130
128
|
key: 'Normal',
|
|
131
|
-
name: '
|
|
129
|
+
name: this.$t('Front_Label_Normal_Control'),
|
|
132
130
|
components: []
|
|
133
131
|
},
|
|
134
132
|
{
|
|
135
133
|
key: 'Datasource',
|
|
136
|
-
name: '
|
|
134
|
+
name: this.$t('Front_Label_Data_Source_Control'),
|
|
137
135
|
components: []
|
|
138
136
|
},
|
|
139
137
|
{
|
|
140
138
|
key: 'DateTime',
|
|
141
|
-
name: '
|
|
139
|
+
name: this.$t('Front_Label_Date_Time_Control'),
|
|
142
140
|
components: []
|
|
143
141
|
},
|
|
144
142
|
{
|
|
145
143
|
key: 'Other',
|
|
146
|
-
name: '
|
|
144
|
+
name: this.$t('Front_Label_Other_Control'),
|
|
147
145
|
components: []
|
|
148
146
|
}
|
|
149
147
|
];
|
|
@@ -205,14 +203,14 @@
|
|
|
205
203
|
},
|
|
206
204
|
// 打开字段设置界面
|
|
207
205
|
edit(row, index) {
|
|
208
|
-
this.$refs.columnEdit.open(row, index, this.columns, data => {
|
|
206
|
+
this.$refs.columnEdit.open(row, index, this.$refs.form.columns, data => {
|
|
209
207
|
let columns = this.$refs.form.columns;
|
|
210
208
|
columns.splice(index, 1, data);
|
|
211
209
|
});
|
|
212
210
|
},
|
|
213
211
|
// 移除
|
|
214
212
|
remove(row, index) {
|
|
215
|
-
this.confirm('
|
|
213
|
+
this.confirm('Front_Msg_Sure_To_Remove_Control', async () => {
|
|
216
214
|
let columns = this.$refs.form.columns;
|
|
217
215
|
columns.splice(index, 1);
|
|
218
216
|
//this.$forceUpdate();
|
|
@@ -220,9 +218,9 @@
|
|
|
220
218
|
},
|
|
221
219
|
// 打开字段选择界面
|
|
222
220
|
openColumnSelect() {
|
|
223
|
-
this.$refs.columnSelect.open(this.dataView, this.columns, checked => {
|
|
221
|
+
this.$refs.columnSelect.open(this.dataView, this.$refs.form.columns, checked => {
|
|
224
222
|
// 移除未勾选的
|
|
225
|
-
let columns = this.columns.filter(column => {
|
|
223
|
+
let columns = this.$refs.form.columns.filter(column => {
|
|
226
224
|
return (
|
|
227
225
|
checked.some(item => {
|
|
228
226
|
return column.code === item.code;
|
|
@@ -230,19 +228,19 @@
|
|
|
230
228
|
);
|
|
231
229
|
});
|
|
232
230
|
|
|
233
|
-
this.columns.splice(0, this.columns.length);
|
|
231
|
+
this.$refs.form.columns.splice(0, this.$refs.form.columns.length);
|
|
234
232
|
columns.forEach(item => {
|
|
235
|
-
this.columns.push(item);
|
|
233
|
+
this.$refs.form.columns.push(item);
|
|
236
234
|
});
|
|
237
235
|
|
|
238
236
|
// 添加新勾选的
|
|
239
237
|
checked.forEach(item => {
|
|
240
238
|
if (
|
|
241
|
-
!this.columns.some(column => {
|
|
239
|
+
!this.$refs.form.columns.some(column => {
|
|
242
240
|
return column.code === item.code;
|
|
243
241
|
})
|
|
244
242
|
) {
|
|
245
|
-
this.columns.push({
|
|
243
|
+
this.$refs.form.columns.push({
|
|
246
244
|
code: item.code,
|
|
247
245
|
name: item.name,
|
|
248
246
|
dataType: item.dataType,
|
|
@@ -269,15 +267,15 @@
|
|
|
269
267
|
},
|
|
270
268
|
// 全局保存
|
|
271
269
|
globalSave() {
|
|
272
|
-
this.confirm('
|
|
273
|
-
this.confirm('
|
|
270
|
+
this.confirm('Front_Msg_Sure_To_Save_Global_Setting', () => {
|
|
271
|
+
this.confirm('Front_Msg_Sure_To_Save_Global_Setting_Confirm', async () => {
|
|
274
272
|
await this.saveDataView({
|
|
275
273
|
code: this.dataView.code,
|
|
276
|
-
columns: this.columns
|
|
274
|
+
columns: this.$refs.form.columns
|
|
277
275
|
});
|
|
278
276
|
|
|
279
277
|
this.$emit('on-change', this.dataView.code);
|
|
280
|
-
this.success('
|
|
278
|
+
this.success('Front_Msg_Success', () => {
|
|
281
279
|
this.close();
|
|
282
280
|
});
|
|
283
281
|
});
|
|
@@ -285,13 +283,13 @@
|
|
|
285
283
|
},
|
|
286
284
|
// 保存
|
|
287
285
|
save() {
|
|
288
|
-
this.confirm('
|
|
286
|
+
this.confirm('Front_Msg_Sure_To_Save_Setting', async () => {
|
|
289
287
|
await this.saveDataView({
|
|
290
288
|
code: this.dataView.code,
|
|
291
|
-
columns: this.columns
|
|
289
|
+
columns: this.$refs.form.columns
|
|
292
290
|
});
|
|
293
291
|
|
|
294
|
-
this.success('
|
|
292
|
+
this.success('Front_Msg_Success', () => {
|
|
295
293
|
this.close();
|
|
296
294
|
});
|
|
297
295
|
});
|
|
@@ -307,12 +305,12 @@
|
|
|
307
305
|
// 拖动克隆
|
|
308
306
|
clone(item) {
|
|
309
307
|
let data = this.copy(item);
|
|
310
|
-
this.columns.push(data);
|
|
308
|
+
//this.columns.push(data);
|
|
311
309
|
return data;
|
|
312
310
|
},
|
|
313
311
|
// 双击
|
|
314
312
|
dblclick(item) {
|
|
315
|
-
this.columns.push(this.copy(item));
|
|
313
|
+
this.$refs.form.columns.push(this.copy(item));
|
|
316
314
|
},
|
|
317
315
|
// 设置
|
|
318
316
|
setting() {
|
|
@@ -320,12 +318,12 @@
|
|
|
320
318
|
},
|
|
321
319
|
// 保存设置
|
|
322
320
|
saveSetting() {
|
|
323
|
-
this.confirm('
|
|
321
|
+
this.confirm('Front_Msg_Sure_To_Save_Setting', async () => {
|
|
324
322
|
let res = await this.saveDataViewSetting(this.$refs.setting.data);
|
|
325
323
|
this.dataView = res.dataView;
|
|
326
324
|
|
|
327
325
|
this.$emit('on-change', this.dataView.code);
|
|
328
|
-
this.success('
|
|
326
|
+
this.success('Front_Msg_Success', () => {
|
|
329
327
|
this.$refs.setting.close();
|
|
330
328
|
});
|
|
331
329
|
});
|
|
@@ -334,7 +332,7 @@
|
|
|
334
332
|
listMode() {
|
|
335
333
|
this.$emit('list-mode', {
|
|
336
334
|
dataView: this.dataView,
|
|
337
|
-
columns: this.columns
|
|
335
|
+
columns: this.$refs.form.columns
|
|
338
336
|
});
|
|
339
337
|
},
|
|
340
338
|
// 获取默认控件类型
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<modal-table ref="table" :static="true" :setting-enable="false" :footer-enable="true" :draggable="true" :sticky="true" @on-drag-drop="dragDrop" v-if="active">
|
|
4
4
|
<template #command="{ row, index }">
|
|
5
|
-
<Button size="small" title="
|
|
6
|
-
<Button size="small" title="
|
|
7
|
-
<Button size="small" title="
|
|
8
|
-
<Button size="small" title="
|
|
5
|
+
<Button size="small" :title="$('Front_Btn_Edit')" type="primary" ghost custom-icon="fa fa-edit" @click="edit(row, index)"></Button>
|
|
6
|
+
<Button size="small" :title="$('Front_Btn_Up')" type="primary" ghost custom-icon="fa fa-chevron-up" @click="up(row, index)"></Button>
|
|
7
|
+
<Button size="small" :title="$('Front_Btn_Down')" type="primary" ghost custom-icon="fa fa-chevron-down" @click="down(row, index)"></Button>
|
|
8
|
+
<Button size="small" :title="$('Front_Btn_Remove')" type="primary" ghost custom-icon="fa fa-times" @click="remove(row, index)"></Button>
|
|
9
9
|
</template>
|
|
10
10
|
<template #footer>
|
|
11
|
-
<Button type="primary" ghost custom-icon="fa fa-eye" @click="layoutMode"
|
|
12
|
-
<Button type="primary" v-if="!dataView.isVirtual" ghost custom-icon="fa fa-indent" @click="openColumnSelect"
|
|
13
|
-
<Button type="primary" custom-icon="fa fa-bookmark" @click="createVirtual"
|
|
14
|
-
<Button type="primary" custom-icon="fa fa-save" v-if="!isSetting" @click="save"
|
|
15
|
-
<Button type="error" custom-icon="fa fa-save" v-if="isSetting" @click="globalSave"
|
|
16
|
-
<Button type="error" custom-icon="fa fa-cog" v-if="isSetting" @click="setting"
|
|
11
|
+
<Button type="primary" ghost custom-icon="fa fa-eye" @click="layoutMode">{{ $t('Front_Btn_Preview_Mode') }}</Button>
|
|
12
|
+
<Button type="primary" v-if="!dataView.isVirtual" ghost custom-icon="fa fa-indent" @click="openColumnSelect">{{ $t('Front_Btn_Select_Column') }}</Button>
|
|
13
|
+
<Button type="primary" custom-icon="fa fa-bookmark" @click="createVirtual">{{ $t('Front_Btn_Virtual_Column') }}</Button>
|
|
14
|
+
<Button type="primary" custom-icon="fa fa-save" v-if="!isSetting" @click="save">{{ $t('Front_Btn_Save') }}</Button>
|
|
15
|
+
<Button type="error" custom-icon="fa fa-save" v-if="isSetting" @click="globalSave">{{ $t('Front_Btn_Global_Save') }}</Button>
|
|
16
|
+
<Button type="error" custom-icon="fa fa-cog" v-if="isSetting" @click="setting">{{ $t('Front_Btn_Form_Setting') }}</Button>
|
|
17
17
|
</template>
|
|
18
18
|
</modal-table>
|
|
19
19
|
<column-select ref="columnSelect" />
|
|
20
20
|
<column-edit ref="columnEdit" view-type="FormView" />
|
|
21
21
|
<modal-form ref="setting" view-code="FormViewSetting" v-if="isSetting">
|
|
22
22
|
<template #footer>
|
|
23
|
-
<Button type="primary" custom-icon="fa fa-save" @click="saveSetting"
|
|
23
|
+
<Button type="primary" custom-icon="fa fa-save" @click="saveSetting">{{ $t('Front_Btn_Save') }}</Button>
|
|
24
24
|
</template>
|
|
25
25
|
</modal-form>
|
|
26
26
|
</div>
|
|
@@ -180,15 +180,15 @@
|
|
|
180
180
|
},
|
|
181
181
|
// 全局保存
|
|
182
182
|
globalSave() {
|
|
183
|
-
this.confirm('
|
|
184
|
-
this.confirm('
|
|
183
|
+
this.confirm('Front_Msg_Sure_To_Save_Global_Setting', () => {
|
|
184
|
+
this.confirm('Front_Msg_Sure_To_Save_Global_Setting_Confirm', async () => {
|
|
185
185
|
await this.saveDataView({
|
|
186
186
|
code: this.dataView.code,
|
|
187
187
|
columns: this.$refs.table.data
|
|
188
188
|
});
|
|
189
189
|
|
|
190
190
|
this.$emit('on-change', this.dataView.code);
|
|
191
|
-
this.success('
|
|
191
|
+
this.success('Front_Msg_Success', () => {
|
|
192
192
|
this.$refs.table.close();
|
|
193
193
|
});
|
|
194
194
|
});
|
|
@@ -196,13 +196,13 @@
|
|
|
196
196
|
},
|
|
197
197
|
// 保存
|
|
198
198
|
save() {
|
|
199
|
-
this.confirm('
|
|
199
|
+
this.confirm('Front_Msg_Sure_To_Save_Setting', async () => {
|
|
200
200
|
await this.saveDataView({
|
|
201
201
|
code: this.dataView.code,
|
|
202
202
|
columns: this.$refs.table.data
|
|
203
203
|
});
|
|
204
204
|
|
|
205
|
-
this.success('
|
|
205
|
+
this.success('Front_Msg_Success', () => {
|
|
206
206
|
this.$refs.table.close();
|
|
207
207
|
});
|
|
208
208
|
});
|
|
@@ -213,12 +213,12 @@
|
|
|
213
213
|
},
|
|
214
214
|
// 保存设置
|
|
215
215
|
saveSetting() {
|
|
216
|
-
this.confirm('
|
|
216
|
+
this.confirm('Front_Msg_Sure_To_Save_Setting', async () => {
|
|
217
217
|
let res = await this.saveDataViewSetting(this.$refs.setting.data);
|
|
218
218
|
this.dataView = res.dataView;
|
|
219
219
|
|
|
220
220
|
this.$emit('on-change', this.dataView.code);
|
|
221
|
-
this.success('
|
|
221
|
+
this.success('Front_Msg_Success', () => {
|
|
222
222
|
this.$refs.setting.close();
|
|
223
223
|
});
|
|
224
224
|
});
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<modal-table ref="table" view-code="GroupColumn" :static="true" :footer-enable="true" @create="editItem()" @edit="({ row, index }) => editItem(row, index)">
|
|
4
4
|
<template #command="{ row, index }">
|
|
5
|
-
<Button size="small" title="
|
|
5
|
+
<Button size="small" :title="$t('Front_Btn_Remove')" type="warning" custom-icon="fa fa-trash-alt" @click="removeItem(row, index)"></Button>
|
|
6
6
|
</template>
|
|
7
7
|
<template #footer>
|
|
8
|
-
<Button type="primary" custom-icon="fa fa-save" @click="save"
|
|
8
|
+
<Button type="primary" custom-icon="fa fa-save" @click="save">{{ $t('Front_Btn_Save') }}</Button>
|
|
9
9
|
</template>
|
|
10
10
|
</modal-table>
|
|
11
11
|
<modal-form ref="form" view-code="GroupColumnEdit">
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
</template>
|
|
21
21
|
<template #footer>
|
|
22
|
-
<Button type="primary" custom-icon="fa fa-save" @click="saveItem"
|
|
22
|
+
<Button type="primary" custom-icon="fa fa-save" @click="saveItem">{{ $t('Front_Btn_Save') }}</Button>
|
|
23
23
|
</template>
|
|
24
24
|
</modal-form>
|
|
25
25
|
<column-check ref="columnCheck" />
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
methods: {
|
|
48
48
|
open(model, json, callback) {
|
|
49
49
|
if (!(model || '').trim()) {
|
|
50
|
-
this.error('
|
|
50
|
+
this.error('Front_Msg_Please_Select_Model_First');
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
let isOK = await this.$refs.form.validate();
|
|
71
71
|
|
|
72
72
|
if (!isOK) {
|
|
73
|
-
this.error('
|
|
73
|
+
this.error('Front_Msg_Form_Validate_Fail');
|
|
74
74
|
} else {
|
|
75
75
|
if (this.editIndex == null) {
|
|
76
76
|
this.data.push(this.$refs.form.data);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<modal-table ref="table" view-code="GroupMethod" :static="true" :footer-enable="true" @create="editItem()" @edit="({ row, index }) => editItem(row, index)">
|
|
4
4
|
<template #command="{ row, index }">
|
|
5
|
-
<Button size="small" title="
|
|
5
|
+
<Button size="small" :title="$t('Front_Btn_Remove')" type="warning" custom-icon="fa fa-trash-alt" @click="removeItem(row, index)"></Button>
|
|
6
6
|
</template>
|
|
7
7
|
<template #footer>
|
|
8
|
-
<Button type="primary" custom-icon="fa fa-save" @click="save"
|
|
8
|
+
<Button type="primary" custom-icon="fa fa-save" @click="save">{{ $t('Front_Btn_Save') }}</Button>
|
|
9
9
|
</template>
|
|
10
10
|
</modal-table>
|
|
11
11
|
<modal-form ref="form" view-code="GroupMethodEdit">
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
</template>
|
|
21
21
|
<template #footer>
|
|
22
|
-
<Button type="primary" custom-icon="fa fa-save" @click="saveItem"
|
|
22
|
+
<Button type="primary" custom-icon="fa fa-save" @click="saveItem">{{ $t('Front_Btn_Save') }}</Button>
|
|
23
23
|
</template>
|
|
24
24
|
</modal-form>
|
|
25
25
|
<column-check ref="columnCheck" />
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
methods: {
|
|
48
48
|
open(model, json, callback) {
|
|
49
49
|
if (!(model || '').trim()) {
|
|
50
|
-
this.error('
|
|
50
|
+
this.error('Front_Msg_Please_Select_Model_First');
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
let isOK = await this.$refs.form.validate();
|
|
71
71
|
|
|
72
72
|
if (!isOK) {
|
|
73
|
-
this.error('
|
|
73
|
+
this.error('Front_Msg_Form_Validate_Fail');
|
|
74
74
|
} else {
|
|
75
75
|
if (this.editIndex == null) {
|
|
76
76
|
this.data.push(this.$refs.form.data);
|
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
<Modal v-model="opened" scrollable :mask-closable="layout.maskClosable" :draggable="layout.draggable" :sticky="true" :reset-drag-position="true" :width="formView.width || '800'">
|
|
4
4
|
<template #header>
|
|
5
5
|
<div>
|
|
6
|
-
<span class="title"
|
|
7
|
-
<span class="description">
|
|
6
|
+
<span class="title">{{ $t('Front_Label_Sorting_Setting') }}</span>
|
|
7
|
+
<span class="description">{{ $t('Front_Label_Filtering_Setting_Desc') }}</span>
|
|
8
8
|
</div>
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<div class="i-table-no-border">
|
|
12
12
|
<Table stripe :columns="columnsFiltering" :data="dataFiltering">
|
|
13
13
|
<template #action="{ row, index }">
|
|
14
|
-
<Button size="small" title="
|
|
15
|
-
<Button size="small" title="
|
|
16
|
-
<Button size="small" title="
|
|
17
|
-
<Button size="small" title="
|
|
14
|
+
<Button size="small" :title="$t('Front_Btn_Edit')" type="primary" ghost custom-icon="fa fa-edit" @click="filteringFmModalopen(row)"></Button>
|
|
15
|
+
<Button size="small" :title="$t('Front_Btn_Up')" type="primary" ghost custom-icon="fa fa-chevron-up" @click="upfiltering(row, index)"></Button>
|
|
16
|
+
<Button size="small" :title="$t('Front_Btn_Down')" type="primary" ghost custom-icon="fa fa-chevron-down" @click="downfiltering(row, index)"></Button>
|
|
17
|
+
<Button size="small" :title="$t('Front_Btn_Remove')" type="primary" ghost custom-icon="fa fa-times" @click="removefiltering(row, index)"></Button>
|
|
18
18
|
</template>
|
|
19
19
|
</Table>
|
|
20
20
|
</div>
|
|
21
21
|
<template #footer>
|
|
22
|
-
<Button type="primary" ghost custom-icon="fa fa-plus" @click="filteringFmModalopen(null)"
|
|
23
|
-
<Button type="primary" custom-icon="fa fa-check" @click="SaveFiltering"
|
|
22
|
+
<Button type="primary" ghost custom-icon="fa fa-plus" @click="filteringFmModalopen(null)">{{ $t('Front_Btn_Add') }}</Button>
|
|
23
|
+
<Button type="primary" custom-icon="fa fa-check" @click="SaveFiltering">{{ $t('Front_Btn_OK') }}</Button>
|
|
24
24
|
</template>
|
|
25
25
|
<!-- 对筛选条件进行处理 -->
|
|
26
26
|
<Modal v-model="filteringFmModal" scrollable :mask-closable="layout.maskClosable" :draggable="layout.draggable" :sticky="true" :reset-drag-position="true" width="800">
|
|
27
27
|
<template #header>
|
|
28
28
|
<div>
|
|
29
|
-
<span class="title"
|
|
30
|
-
<span class="description">
|
|
29
|
+
<span class="title">{{ $t('Front_Label_Filtering_Setting_Edit') }}</span>
|
|
30
|
+
<span class="description">{{ $t('Front_Label_Filtering_Setting_Edit_Desc') }}</span>
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
33
33
|
<Form ref="filteringform">
|
|
34
34
|
<Row :gutter="24" type="flex">
|
|
35
35
|
<Col>
|
|
36
|
-
<FormItem label="
|
|
36
|
+
<FormItem :label="$t('Front_Label_Column')" prop="Code">
|
|
37
37
|
<Input type="text" v-model="data.code">
|
|
38
38
|
<template #prepend>
|
|
39
39
|
<Button custom-icon="fa fa-search" @click="openSelect()"></Button>
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
</FormItem>
|
|
43
43
|
</Col>
|
|
44
44
|
<Col>
|
|
45
|
-
<FormItem label="
|
|
45
|
+
<FormItem :label="$t('Front_Label_Operator')" prop="Operator">
|
|
46
46
|
<Select v-model="data.operator" :transfer="true">
|
|
47
47
|
<Option v-for="item in getEnumList('Operator')" :key="item.value" :value="item.id">{{ item.name }}</Option>
|
|
48
48
|
</Select>
|
|
49
49
|
</FormItem>
|
|
50
50
|
</Col>
|
|
51
51
|
<Col>
|
|
52
|
-
<FormItem label="
|
|
52
|
+
<FormItem :label="$t('Front_Label_Keyword')" prop="KeyValue">
|
|
53
53
|
<Input type="text" v-model="data.keyValue" maxlength="200" />
|
|
54
54
|
</FormItem>
|
|
55
55
|
</Col>
|
|
56
56
|
</Row>
|
|
57
57
|
</Form>
|
|
58
58
|
<template #footer>
|
|
59
|
-
<Button type="primary" custom-icon="fa fa-check" @click="saveFilteringForm($event)"
|
|
59
|
+
<Button type="primary" custom-icon="fa fa-check" @click="saveFilteringForm($event)">{{ $t('Front_Btn_OK') }}</Button>
|
|
60
60
|
</template>
|
|
61
61
|
<column-check ref="columnCheck" />
|
|
62
62
|
</Modal>
|
|
@@ -75,29 +75,34 @@
|
|
|
75
75
|
filter: String, //原表单筛选字段json值
|
|
76
76
|
dataView: {} //原表单对象
|
|
77
77
|
},
|
|
78
|
-
computed: {},
|
|
79
78
|
data() {
|
|
80
79
|
return {
|
|
81
80
|
opened: false,
|
|
82
81
|
formView: {},
|
|
83
82
|
filteringFmModal: false,
|
|
84
|
-
|
|
83
|
+
dataFiltering: [],
|
|
84
|
+
data: {}
|
|
85
|
+
};
|
|
86
|
+
},
|
|
87
|
+
computed: {
|
|
88
|
+
columnsFiltering() {
|
|
89
|
+
return [
|
|
85
90
|
{
|
|
86
91
|
type: 'index',
|
|
87
92
|
width: 100,
|
|
88
|
-
title: '
|
|
93
|
+
title: this.$t('Front_Label_Sn'),
|
|
89
94
|
align: 'center'
|
|
90
95
|
},
|
|
91
96
|
{
|
|
92
|
-
title: '
|
|
97
|
+
title: this.$t('Front_Label_Column'),
|
|
93
98
|
key: 'column'
|
|
94
99
|
},
|
|
95
100
|
{
|
|
96
|
-
title: '
|
|
101
|
+
title: this.$t('Front_Label_Operator'),
|
|
97
102
|
key: 'operatorType'
|
|
98
103
|
},
|
|
99
104
|
{
|
|
100
|
-
title: '
|
|
105
|
+
title: this.$t('Front_Label_Keyword'),
|
|
101
106
|
key: 'keyValue'
|
|
102
107
|
},
|
|
103
108
|
{
|
|
@@ -107,10 +112,8 @@
|
|
|
107
112
|
fixed: 'right',
|
|
108
113
|
align: 'center'
|
|
109
114
|
}
|
|
110
|
-
]
|
|
111
|
-
|
|
112
|
-
data: {}
|
|
113
|
-
};
|
|
115
|
+
];
|
|
116
|
+
}
|
|
114
117
|
},
|
|
115
118
|
methods: {
|
|
116
119
|
open() {
|
|
@@ -266,7 +269,7 @@
|
|
|
266
269
|
|
|
267
270
|
this.filteringFmModal = false;
|
|
268
271
|
} else {
|
|
269
|
-
this.error('
|
|
272
|
+
this.error('Front_Msg_Column_Filtering_Required');
|
|
270
273
|
}
|
|
271
274
|
},
|
|
272
275
|
SaveFiltering() {
|