|
@@ -182,7 +182,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div class="plus-table-data" :style="{ marginBottom: plusTableDataBottom }">
|
|
|
- <el-button v-if="pageDate.status < 20" type="text" @click.stop="addTableData">
|
|
|
+ <el-button v-if="pageDate && pageDate.status < 20" type="text" @click.stop="addTableData">
|
|
|
<svg-icon icon-class="data-plus" class="icon" />
|
|
|
新增
|
|
|
</el-button>
|
|
@@ -256,7 +256,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
isExpand() {
|
|
|
- return this.pageDate.status === 30 && ((this.tabsActive.search(/本月重点问题/) > -1 && this.pageType === 'readAll') || (this.pageType === 'read' && this.title === '本月重点问题'))
|
|
|
+ return this.pageDate && this.pageDate.status && this.pageDate.status === 30 && ((this.tabsActive.search(/本月重点问题/) > -1 && this.pageType === 'readAll') || (this.pageType === 'read' && this.title === '本月重点问题'))
|
|
|
},
|
|
|
selectEnum() {
|
|
|
return this.$store.state.monthlyReportEdit.selectEnum
|
|
@@ -389,7 +389,7 @@ export default {
|
|
|
})
|
|
|
// if (this.pageDate.status > 10 && this.tabsActive.indexOf('本月重点问题') < 0) {
|
|
|
// 非编辑状态,并且不是·本月重点问题·,删除操作按钮
|
|
|
- if (this.pageDate.status > 10 && !this.isExpand) {
|
|
|
+ if (this.pageDate && this.pageDate.status > 10 && !this.isExpand) {
|
|
|
newColumns.splice(newColumns.length - 1, 1)
|
|
|
}
|
|
|
return newColumns
|
|
@@ -459,7 +459,7 @@ export default {
|
|
|
* @returns {boolean}
|
|
|
*/
|
|
|
isShowButton(row) {
|
|
|
- if (this.pageType.search(/edit/) > -1 && this.pageDate.status < 20) {
|
|
|
+ if (this.pageType.search(/edit/) > -1 && this.pageDate && this.pageDate.status < 20) {
|
|
|
return true
|
|
|
}
|
|
|
if (row.analyticFeedback && row.analyticFeedback.isCommitted) {
|