mooho-base-admin-plus 0.4.43 → 0.4.44
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
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
<PageHeader :title="$route.meta.title" :content="$route.meta.description" hidden-breadcrumb />
|
|
5
5
|
</div>
|
|
6
6
|
<Card :bordered="false" dis-hover class="ivu-mt">
|
|
7
|
-
<view-table ref="table" view-code="ApplicationType" @create="$refs.form.open()" @edit="({ row }) => edit(row)"
|
|
7
|
+
<view-table ref="table" view-code="ApplicationType" @create="$refs.form.open()" @edit="({ row }) => edit(row)">
|
|
8
|
+
<template #command="{ row }">
|
|
9
|
+
<Button size="small" :title="$t('Front_Btn_NotificationSetting')" type="primary" custom-icon="fa fa-mail-bulk" @click="notificationSetting(row)"></Button>
|
|
10
|
+
</template>
|
|
11
|
+
</view-table>
|
|
8
12
|
</Card>
|
|
9
13
|
<modal-form ref="form" view-code="ApplicationTypeEdit" @on-after-save="$refs.table.loadData()" @on-change="formChange">
|
|
10
14
|
<template #column="{ code }">
|
|
@@ -36,6 +40,11 @@
|
|
|
36
40
|
<Button type="primary" custom-icon="fa fa-save" @click="save">{{ $t('Front_Btn_Save') }}</Button>
|
|
37
41
|
</template>
|
|
38
42
|
</modal-form>
|
|
43
|
+
<modal-form ref="notificationSettingForm" view-code="ApplicationNotificationSetting">
|
|
44
|
+
<template #footer>
|
|
45
|
+
<Button type="primary" custom-icon="fa fa-save" @click="saveSetting">{{ $t('Front_Btn_Save') }}</Button>
|
|
46
|
+
</template>
|
|
47
|
+
</modal-form>
|
|
39
48
|
<column-check ref="columnCheck" />
|
|
40
49
|
</div>
|
|
41
50
|
</template>
|
|
@@ -50,6 +59,7 @@
|
|
|
50
59
|
components: { columnCheck },
|
|
51
60
|
data() {
|
|
52
61
|
return {
|
|
62
|
+
applicationType: null,
|
|
53
63
|
processProperties: []
|
|
54
64
|
};
|
|
55
65
|
},
|
|
@@ -176,6 +186,36 @@
|
|
|
176
186
|
}
|
|
177
187
|
|
|
178
188
|
this.$refs.propertyTable.loadData(this.processProperties);
|
|
189
|
+
},
|
|
190
|
+
// 通知设置
|
|
191
|
+
notificationSetting(row) {
|
|
192
|
+
this.applicationType = row;
|
|
193
|
+
let setting = {};
|
|
194
|
+
if (!!(row.notificationSetting || '').trim()) {
|
|
195
|
+
setting = JSON.parse(row.notificationSetting);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
this.$refs.notificationSettingForm.open(setting);
|
|
199
|
+
},
|
|
200
|
+
// 保存通知设置
|
|
201
|
+
async saveSetting() {
|
|
202
|
+
let isOK = await this.$refs.notificationSettingForm.validate();
|
|
203
|
+
|
|
204
|
+
if (!isOK) {
|
|
205
|
+
this.error('Front_Msg_Form_Validate_Fail');
|
|
206
|
+
} else {
|
|
207
|
+
this.confirm('Front_Msg_Sure_To_Save', async () => {
|
|
208
|
+
let data = this.$refs.notificationSettingForm.getFullData();
|
|
209
|
+
|
|
210
|
+
this.applicationType.notificationSetting = JSON.stringify(data);
|
|
211
|
+
|
|
212
|
+
await modelApi.update('ApplicationType', this.applicationType);
|
|
213
|
+
this.success('Front_Msg_Success', () => {
|
|
214
|
+
this.$refs.notificationSettingForm.close();
|
|
215
|
+
this.$refs.table.loadData();
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
}
|
|
179
219
|
}
|
|
180
220
|
}
|
|
181
221
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="i-layout-page-header">
|
|
4
|
+
<PageHeader :title="$route.meta.title" :content="$route.meta.description" hidden-breadcrumb />
|
|
5
|
+
</div>
|
|
6
|
+
<Card :bordered="false" dis-hover class="ivu-mt">
|
|
7
|
+
<view-table ref="table" view-code="MailTemplate" @create="$refs.form.open()" @edit="({ row, index }) => $refs.form.open(row)"></view-table>
|
|
8
|
+
</Card>
|
|
9
|
+
<modal-form ref="form" view-code="MailTemplateEdit" @on-after-save="$refs.table.loadData()" />
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
<script>
|
|
13
|
+
import mixinPage from '../../mixins/page';
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
name: 'system-mailTemplate',
|
|
17
|
+
mixins: [mixinPage],
|
|
18
|
+
components: {},
|
|
19
|
+
data() {
|
|
20
|
+
return {};
|
|
21
|
+
},
|
|
22
|
+
computed: {},
|
|
23
|
+
created() {},
|
|
24
|
+
methods: {}
|
|
25
|
+
};
|
|
26
|
+
</script>
|