mooho-base-admin-plus 0.4.42 → 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.4.42",
4
+ "version": "0.4.44",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -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)"></view-table>
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
  };
@@ -7,7 +7,7 @@
7
7
  <view-table ref="table" view-code="DictType" :selectEnable="true" @create="$refs.form.open()" @edit="({ row, index }) => $refs.form.open(row)">
8
8
  <template #filterCommand>
9
9
  <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">{{ $t('Front_Btn_Export') }}</Button>
10
- <file-upload url="api/DictType/importFile" accept=".dict" @on-success="importFileSuccess" style="display: inline-block; margin-left: 4px; margin-right: 4px">
10
+ <file-upload url="api/DictType/importFile" accept=".dict" @on-success="importFileSuccess">
11
11
  <template #>
12
12
  <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">{{ $t('Front_Btn_Import') }}</Button>
13
13
  </template>
@@ -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>
@@ -21,7 +21,7 @@
21
21
  >
22
22
  <template #filterCommand>
23
23
  <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">{{ $t('Front_Btn_Export') }}</Button>
24
- <file-upload url="api/Permission/importFile" accept=".pms" @on-success="importFileSuccess" style="display: inline-block; margin-left: 4px; margin-right: 4px">
24
+ <file-upload url="api/Permission/importFile" accept=".pms" @on-success="importFileSuccess">
25
25
  <template #>
26
26
  <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">{{ $t('Front_Btn_Import') }}</Button>
27
27
  </template>
@@ -7,7 +7,7 @@
7
7
  <view-table ref="table" view-code="Process" :selectEnable="true" @create="$refs.form.open()" @edit="({ row, index }) => $refs.form.open(row)">
8
8
  <template #filterCommand>
9
9
  <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">{{ $t('Front_Btn_Export') }}</Button>
10
- <file-upload url="api/Process/importFile" accept=".proc" @on-success="importFileSuccess" style="display: inline-block; margin-left: 4px; margin-right: 4px">
10
+ <file-upload url="api/Process/importFile" accept=".proc" @on-success="importFileSuccess">
11
11
  <template #>
12
12
  <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">{{ $t('Front_Btn_Import') }}</Button>
13
13
  </template>
@@ -7,7 +7,7 @@
7
7
  <view-table ref="table" view-code="TableView" :filter="filter" :selectEnable="true" @create="create" @edit="edit">
8
8
  <template #filterCommand>
9
9
  <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">{{ $t('Front_Btn_Export') }}</Button>
10
- <file-upload url="api/DataView/importFile" accept=".view" @on-success="importFileSuccess" style="display: inline-block; margin-left: 4px; margin-right: 4px">
10
+ <file-upload url="api/DataView/importFile" accept=".view" @on-success="importFileSuccess">
11
11
  <template #>
12
12
  <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">{{ $t('Front_Btn_Import') }}</Button>
13
13
  </template>
@@ -242,20 +242,17 @@
242
242
  display: inline-table;
243
243
  }
244
244
 
245
- .filter button + button {
245
+ .filter button + button,
246
+ .filter button + .ivu-dropdown,
247
+ .filter button + .ivu-upload,
248
+ .filter .ivu-upload + .ivu-upload,
249
+ .filter .ivu-upload + .ivu-dropdown,
250
+ .filter .ivu-upload + button,
251
+ .filter .ivu-dropdown + button {
246
252
  margin-left: 4px;
247
253
  margin-bottom: 0;
248
254
  }
249
255
 
250
- .filter .ivu-upload {
251
- margin-left: 2px !important;
252
- margin-right: 2px !important;
253
- }
254
-
255
- .ivu-dropdown {
256
- margin-right: 4px;
257
- }
258
-
259
256
  /* 表格内部按钮 */
260
257
  .ivu-table-cell button + button {
261
258
  margin-left: 4px;