mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 19:18:59 +08:00
fix(接口定义): 修复swagger定时同步模版报错的缺陷
--bug=1018146 --user=王孝刚 【接口测试】swagger定时任务通知,修改任务通知模板报错 https://www.tapd.cn/55049933/s/1262673 --bug=1018144 --user=王孝刚 【接口测试】swagger定时同步-任务通知,修改任务通知后,被修改的通知消失了 https://www.tapd.cn/55049933/s/1262697
This commit is contained in:
parent
88622fa526
commit
26573638f2
6
framework/sdk-parent/frontend/src/api/notice.js
Normal file
6
framework/sdk-parent/frontend/src/api/notice.js
Normal file
@ -0,0 +1,6 @@
|
||||
import {post} from "../plugins/request"
|
||||
|
||||
export function saveNoticeTemplate(notice) {
|
||||
return post('/notice/template/save', notice);
|
||||
}
|
||||
|
@ -41,6 +41,8 @@
|
||||
|
||||
<script>
|
||||
|
||||
import {saveNoticeTemplate} from "../api/notice";
|
||||
|
||||
export default {
|
||||
name: "MxNoticeTemplate",
|
||||
props: {
|
||||
@ -70,12 +72,12 @@ export default {
|
||||
saveTemplate() {
|
||||
if (this.currentRow.template == "undefined" || this.currentRow.template == "" || this.currentRow.template == null) {
|
||||
this.currentRow.template = "";
|
||||
this.$post('/notice/template/save', this.currentRow, response => {
|
||||
saveNoticeTemplate(this.currentRow).then(response => {
|
||||
this.$success(this.$t('commons.save_success'));
|
||||
this.dialogFormVisible = false;
|
||||
});
|
||||
} else {
|
||||
this.$post('/notice/template/save', this.currentRow, response => {
|
||||
saveNoticeTemplate(this.currentRow).then(response => {
|
||||
this.$success(this.$t('commons.save_success'));
|
||||
this.dialogFormVisible = false;
|
||||
});
|
||||
|
@ -153,6 +153,7 @@ public class NoticeService {
|
||||
messageDetail.setIdentification(m.getIdentification());
|
||||
messageDetail.setType(m.getType());
|
||||
messageDetail.setIsSet(m.getIsSet());
|
||||
messageDetail.setTestId(m.getTestId());
|
||||
messageDetail.setCreateTime(m.getCreateTime());
|
||||
messageDetail.setTemplate(m.getTemplate());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user