|
@@ -66,7 +66,7 @@
|
|
|
v-else
|
|
|
class="edit-wrapper"
|
|
|
:style="{
|
|
|
- cursor: pageDate.status === 0 ? 'pointer' : 'auto'
|
|
|
+ cursor: pageDate.status < 20 ? 'pointer' : 'auto'
|
|
|
}"
|
|
|
>
|
|
|
<!-- <div v-if="editKeys.indexOf(`${scope.row.rowKey}_${index}`) > -1"> -->
|
|
@@ -205,7 +205,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div class="plus-table-data" :style="{ marginBottom: plusTableDataBottom }">
|
|
|
- <el-button v-if="pageDate.status === 0" type="text" @click="addTableData">
|
|
|
+ <el-button v-if="pageDate.status < 20" type="text" @click="addTableData">
|
|
|
<svg-icon icon-class="data-plus" class="icon" />
|
|
|
新增
|
|
|
</el-button>
|
|
@@ -324,7 +324,7 @@ export default {
|
|
|
editLine(row, index) {
|
|
|
// console.log(this.pageDate.status, this.domKey, this.editKeys)
|
|
|
console.log(typeof this.pageDate.status)
|
|
|
- if (this.pageDate.status === 0) {
|
|
|
+ if (this.pageDate.status < 20) {
|
|
|
this.$store.commit('monthlyReportEdit/ADD_EDIT_KEYS', this.domKey)
|
|
|
}
|
|
|
this.$forceUpdate()
|
|
@@ -379,7 +379,7 @@ export default {
|
|
|
setColumns(columns) {
|
|
|
let newColumns = _.cloneDeep(columns)
|
|
|
if (
|
|
|
- this.pageDate.status &&
|
|
|
+ this.pageDate.status > 10 &&
|
|
|
this.tabsActive.indexOf('本月重点问题') > -1
|
|
|
) {
|
|
|
newColumns = [
|
|
@@ -403,7 +403,7 @@ export default {
|
|
|
elm.align = 'center'
|
|
|
}
|
|
|
})
|
|
|
- if (this.pageDate.status && this.tabsActive.indexOf('本月重点问题') < 0) {
|
|
|
+ if (this.pageDate.status > 10&& this.tabsActive.indexOf('本月重点问题') < 0) {
|
|
|
newColumns.splice(newColumns.length - 1, 1)
|
|
|
}
|
|
|
return newColumns
|
|
@@ -470,7 +470,7 @@ export default {
|
|
|
* @returns {boolean}
|
|
|
*/
|
|
|
isShowButton(row) {
|
|
|
- if (this.pageType.search(/edit/) > -1 && this.pageDate.status === 0) {
|
|
|
+ if (this.pageType.search(/edit/) > -1 && this.pageDate.status < 20) {
|
|
|
return true
|
|
|
}
|
|
|
if (row.analyticFeedback && row.analyticFeedback.isCommitted) {
|