|
|
@@ -60,13 +60,14 @@
|
|
|
<el-table-column align="center" v-for="(item,index) in tableHeaders" :key="index" :prop="item.day" width="50">
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
<div style="width: 20px">{{ item.day }}</div>
|
|
|
- <div v-if="item.week=='周六'" style="width: 24px;color: #1c84c6">{{ item.week }}</div>
|
|
|
- <div v-else-if="item.week=='周日'" style="width: 24px;color: #1c84c6">{{ item.week }}</div>
|
|
|
- <div v-else-if="item.week=='今日'" style="width: 24px;color: #008000">{{ item.week }}</div>
|
|
|
- <div v-else style="width: 24px">{{ item.week }}</div>
|
|
|
+ <div v-if="item.week=='周六'" style="width: 24px;font-size: 12px;color: #1c84c6">{{ item.week }}</div>
|
|
|
+ <div v-else-if="item.week=='周日'" style="width: 24px;font-size: 12px;color: #1c84c6">{{ item.week }}</div>
|
|
|
+ <div v-else-if="item.week=='今日'" style="width: 24px;font-size: 12px;color: #008000">{{ item.week }}</div>
|
|
|
+ <div v-else style="width: 24px;font-size: 12px">{{ item.week }}</div>
|
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
|
<el-popover
|
|
|
+ v-if="scope.row[item.day].value!=''"
|
|
|
placement="top"
|
|
|
width="680"
|
|
|
trigger="click">
|
|
|
@@ -88,10 +89,10 @@
|
|
|
<div>
|
|
|
<div>{{ scope.row.description }}</div>
|
|
|
<span v-for="(file,index) in scope.row.fileList">
|
|
|
- <a :href="file.url" style="color: darkgreen">
|
|
|
- <span v-html="file.fileName"></span>
|
|
|
- </a>
|
|
|
- </span>
|
|
|
+ <a :href="file.url" style="color: darkgreen">
|
|
|
+ <span v-html="file.fileName"></span>
|
|
|
+ </a>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -186,7 +187,6 @@ export default {
|
|
|
open: false,
|
|
|
form: {},
|
|
|
feedbacks: [],
|
|
|
- visible: false,
|
|
|
rules: {
|
|
|
feedbackType: [
|
|
|
{required: true, message: "反馈类型不能为空", trigger: "change"}
|
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
'3': '#f56c6c',
|
|
|
'4': '#67c23a',
|
|
|
'5': '#e6a23c',
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -223,8 +223,8 @@ export default {
|
|
|
},
|
|
|
getList() {
|
|
|
listView(this.queryParams).then(res => {
|
|
|
- this.tableData = res.data
|
|
|
this.tableHeaders = this.getMonthDate(this.queryParams.month);
|
|
|
+ this.tableData = res.data
|
|
|
})
|
|
|
},
|
|
|
cellStyle({row, column, rowIndex, columnIndex}) {
|
|
|
@@ -242,19 +242,24 @@ export default {
|
|
|
},
|
|
|
|
|
|
cellClick(row, column, cell, event) {
|
|
|
- if (!row[column.property].color || row[column.property].color === 'white') {
|
|
|
+ if (!row[column.property].color || row[column.property].color === '1') {
|
|
|
return
|
|
|
}
|
|
|
+ if (!row[column.property].value || row[column.property].value === '') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
let date = this.queryParams.month + '-' + column.property
|
|
|
+ if (DateUtil.unix(date) > DateUtil.unix()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
getFeedbackList(row.id, date).then(res => {
|
|
|
this.feedbacks = res.data
|
|
|
})
|
|
|
},
|
|
|
cellDbClick(row, column, cell, event) {
|
|
|
- if (!row[column.property].color || row[column.property].color === 'white') {
|
|
|
+ if (!row[column.property].color || row[column.property].color === '1') {
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
let feedbackDate = this.queryParams.month + '-' + column.property
|
|
|
if (DateUtil.unix(feedbackDate) > DateUtil.unix()) {
|
|
|
this.$message.warning("反馈时间不能超过:" + DateUtil.day())
|