|
@@ -213,11 +213,11 @@
|
|
</div>
|
|
</div>
|
|
<template #footer v-if="!isDisable">
|
|
<template #footer v-if="!isDisable">
|
|
<span class="notificationFooter">
|
|
<span class="notificationFooter">
|
|
- <el-button type="primary" size="mini" @click="saveevaluaStart('ruleForm', '发布')">
|
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="saveevaluaStart('ruleForm', '发布')" :disabled="showButton">
|
|
<img :src="release" style="margin-right: 10px">
|
|
<img :src="release" style="margin-right: 10px">
|
|
<span>发布公告</span>
|
|
<span>发布公告</span>
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button type="warning" size="mini" @click="saveevaluaStart('ruleForm', '草稿')">
|
|
|
|
|
|
+ <el-button type="warning" size="mini" @click="saveevaluaStart('ruleForm', '草稿')" :disabled="showButton">
|
|
<img :src="draft" style="margin-right: 10px">
|
|
<img :src="draft" style="margin-right: 10px">
|
|
<span>保存草稿</span>
|
|
<span>保存草稿</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -260,6 +260,7 @@ export default {
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
isSave: false,
|
|
isSave: false,
|
|
isDisable: false,
|
|
isDisable: false,
|
|
|
|
+ showButton: false,
|
|
title: '',
|
|
title: '',
|
|
evalradio: {},
|
|
evalradio: {},
|
|
changeDateSelect: [],
|
|
changeDateSelect: [],
|
|
@@ -423,6 +424,7 @@ export default {
|
|
//新增/修改考评启动数据
|
|
//新增/修改考评启动数据
|
|
saveAndEditnotificationData(type) {
|
|
saveAndEditnotificationData(type) {
|
|
let that = this
|
|
let that = this
|
|
|
|
+ that.showButton = true
|
|
let params = {
|
|
let params = {
|
|
serialNumber: that.ruleForm.serialNumber,
|
|
serialNumber: that.ruleForm.serialNumber,
|
|
noticeTitle: that.ruleForm.noticeTitle,
|
|
noticeTitle: that.ruleForm.noticeTitle,
|
|
@@ -448,6 +450,7 @@ export default {
|
|
message: datas.message,
|
|
message: datas.message,
|
|
type: 'error'
|
|
type: 'error'
|
|
});
|
|
});
|
|
|
|
+ that.showButton = false
|
|
} else {
|
|
} else {
|
|
const formData = new FormData()
|
|
const formData = new FormData()
|
|
if (that.filesList.length>0) {
|
|
if (that.filesList.length>0) {
|
|
@@ -467,6 +470,7 @@ export default {
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ that.showButton = false
|
|
that.dialogVisible = false
|
|
that.dialogVisible = false
|
|
that.changeDateSelect = []
|
|
that.changeDateSelect = []
|
|
that.getevalunotificationList()
|
|
that.getevalunotificationList()
|
|
@@ -484,6 +488,7 @@ export default {
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ that.showButton = false
|
|
that.dialogVisible = false
|
|
that.dialogVisible = false
|
|
that.changeDateSelect = []
|
|
that.changeDateSelect = []
|
|
that.getevalunotificationList()
|
|
that.getevalunotificationList()
|