|
@@ -295,11 +295,11 @@
|
|
|
<TabAudit v-if="showAuditPanel" :window-no="windowNo" :tab-index="tabIndex" :tab="tab" :model-data="modelData" />
|
|
<TabAudit v-if="showAuditPanel" :window-no="windowNo" :tab-index="tabIndex" :tab="tab" :model-data="modelData" />
|
|
|
</Modal>
|
|
</Modal>
|
|
|
|
|
|
|
|
- <Modal v-model:show="modal3" :large="true" :show-canel-button="false" :show-ok-button="false">
|
|
|
|
|
|
|
+ <Modal v-model:show="modal3" :large="true" :show-canel-button="false" :show-ok-button="false" title="创建评论">
|
|
|
<TraceCommentCreate ref="traceCommentCreate" :trace-id="modelData.id" :window-no="modelData.windowNo" />
|
|
<TraceCommentCreate ref="traceCommentCreate" :trace-id="modelData.id" :window-no="modelData.windowNo" />
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<button type="submit" class="btn btn-default" @click="saveAndSendNotification">
|
|
<button type="submit" class="btn btn-default" @click="saveAndSendNotification">
|
|
|
- 推送
|
|
|
|
|
|
|
+ 确认
|
|
|
</button>
|
|
</button>
|
|
|
<button type="button" class="btn btn-default" @click="cancelNotification">
|
|
<button type="button" class="btn btn-default" @click="cancelNotification">
|
|
|
取消
|
|
取消
|
|
@@ -789,8 +789,7 @@ export default {
|
|
|
|
|
|
|
|
saveAndSendNotification: function () {
|
|
saveAndSendNotification: function () {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
- var status = _self.$refs.traceCommentCreate.photograph();
|
|
|
|
|
- console.log('11111111111 '+ status);
|
|
|
|
|
|
|
+ _self.$refs.traceCommentCreate.photograph();
|
|
|
_self.sendNotification();
|
|
_self.sendNotification();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -804,10 +803,11 @@ export default {
|
|
|
Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe7'), true);
|
|
Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe7'), true);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (notification.userIds == null || notification.userIds.length == 0) {
|
|
|
|
|
- Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe8'), true);
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (notification.userIds == null || notification.userIds.length == 0) {
|
|
|
|
|
+ // Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe8'), true);
|
|
|
|
|
+ // _self.modal3 = false;
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
if (notification.theme == null || notification.theme.trim() == '') {
|
|
if (notification.theme == null || notification.theme.trim() == '') {
|
|
|
Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe9'), true);
|
|
Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe9'), true);
|
|
|
return;
|
|
return;
|
|
@@ -843,7 +843,7 @@ export default {
|
|
|
data: JSON.stringify(notification),
|
|
data: JSON.stringify(notification),
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
|
_self.loading=false;
|
|
_self.loading=false;
|
|
|
- Notify.success(_self.$t('lang.tabButton.describe11'), _self.$t('lang.tabButton.describe12'), true);
|
|
|
|
|
|
|
+ Notify.success(_self.$t('lang.tabButton.describe11'), '操作成功', true);
|
|
|
_self.modal3 = false;
|
|
_self.modal3 = false;
|
|
|
_self.$refs.traceComment.getTraceComment();
|
|
_self.$refs.traceComment.getTraceComment();
|
|
|
},
|
|
},
|