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:
wxg0103 2022-10-15 21:21:59 +08:00 committed by fit2-zhao
parent 88622fa526
commit 26573638f2
3 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,6 @@
import {post} from "../plugins/request"
export function saveNoticeTemplate(notice) {
return post('/notice/template/save', notice);
}

View File

@ -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;
});

View File

@ -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());
}