eslint 报错
This commit is contained in:
parent
acc9c6993e
commit
d863322a84
@ -186,7 +186,7 @@ export default [{
|
||||
}
|
||||
]
|
||||
}, {
|
||||
path: "/table",
|
||||
path: '/table',
|
||||
name: 'table',
|
||||
component: () =>
|
||||
import('@/views/kpi/tablePrint'),
|
||||
|
||||
@ -289,7 +289,7 @@ export default {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
parent.taskDtos = parent.taskDtos.filter(i !== item)
|
||||
parent.taskDtos = parent.taskDtos.filter(i => i !== item)
|
||||
}
|
||||
this.$forceUpdate()
|
||||
},
|
||||
@ -307,7 +307,7 @@ export default {
|
||||
this.formItem.taskDtos.push(this.formTask)
|
||||
} else {
|
||||
this.editItem.name = this.formTask.name
|
||||
this.editItem.processRate = this.formTask.processRate || "0"
|
||||
this.editItem.processRate = this.formTask.processRate || '0'
|
||||
}
|
||||
this.$forceUpdate()
|
||||
this.handleCancelTask()
|
||||
@ -464,7 +464,6 @@ export default {
|
||||
i = Object.assign({}, this.formIndicators, { checkWeight: this.formIndicators.checkWeight / 100 })
|
||||
}
|
||||
_index++
|
||||
|
||||
}
|
||||
return i
|
||||
})
|
||||
@ -473,7 +472,7 @@ export default {
|
||||
this.showIndicators = false
|
||||
}
|
||||
})
|
||||
console.log(" this.obj", this.obj)
|
||||
console.log(' this.obj', this.obj)
|
||||
},
|
||||
// 编辑
|
||||
hanidleEdit (item, index, type) {
|
||||
@ -484,7 +483,7 @@ export default {
|
||||
return
|
||||
}
|
||||
}
|
||||
this.zhibiaoTitle = index === -1 ? "添加指标" : "编辑指标"
|
||||
this.zhibiaoTitle = index === -1 ? '添加指标' : '编辑指标'
|
||||
if (index === -1) {
|
||||
this.formIndicators = {
|
||||
checkWeight: 0
|
||||
|
||||
@ -242,7 +242,7 @@ export default {
|
||||
beforeMount () { },
|
||||
mounted () {
|
||||
console.log(this.resultRecordId)
|
||||
console.log("🚀 ~ file: index.vue ~ line 308 ~ handleGetNext ~ this.obj", this.obj)
|
||||
console.log('🚀 ~ file: index.vue ~ line 308 ~ handleGetNext ~ this.obj', this.obj)
|
||||
},
|
||||
methods: {
|
||||
async handleResetData (resultRecordId) {
|
||||
@ -298,8 +298,6 @@ export default {
|
||||
this.$loadingStart()
|
||||
await this.handleGetNext()
|
||||
this.$loadingEnd()
|
||||
|
||||
|
||||
},
|
||||
handleFilter (item) {
|
||||
return item ? item.filter(i => !i.isDelete) : []
|
||||
@ -326,7 +324,8 @@ export default {
|
||||
let _boolean = true
|
||||
arr.map(i => {
|
||||
const res = i.detailDtos.reduce((result, item) => {
|
||||
return result += item.checkWeight
|
||||
result += item.checkWeight
|
||||
return result
|
||||
}, 0).toFixed(5)
|
||||
if (i.weight !== Number(res)) {
|
||||
this.$message.error(i.name + '维度内的权重和必须为100%!')
|
||||
|
||||
@ -245,7 +245,7 @@ export default {
|
||||
message: '请输入任务名称',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
]
|
||||
},
|
||||
form: {
|
||||
name: '',
|
||||
@ -374,7 +374,7 @@ export default {
|
||||
return item ? item.filter(i => !i.isDelete) : []
|
||||
},
|
||||
handleClick (tab, event) {
|
||||
console.log(tab, event);
|
||||
console.log(tab, event)
|
||||
},
|
||||
handleAddTask () {
|
||||
this.dialogFormVisible = true
|
||||
|
||||
@ -185,7 +185,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { apiSaveDetail, apiGet375, apiSaveapproval, apiTaskDetail } from '@/api/assessment'
|
||||
import process from './process.vue';
|
||||
import process from './process.vue'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
@ -222,7 +222,7 @@ export default {
|
||||
loadingZan: false,
|
||||
input: '',
|
||||
scoreList: [],
|
||||
taskInfo: {},
|
||||
taskInfo: {}
|
||||
// score: {
|
||||
// lastScore: '',
|
||||
// scoreLevel: ''
|
||||
@ -309,7 +309,7 @@ export default {
|
||||
result += Number(item.Score)
|
||||
return result
|
||||
}, 0)
|
||||
return '总分:' + (this.scoreList.filter(i => i.minScore <= result && i.maxScore > result).length > 0 ? this.scoreList.filter(i => i.minScore <= result && i.maxScore > result)[0].name : "--")
|
||||
return '总分:' + (this.scoreList.filter(i => i.minScore <= result && i.maxScore > result).length > 0 ? this.scoreList.filter(i => i.minScore <= result && i.maxScore > result)[0].name : '--')
|
||||
},
|
||||
handleGetScorlList (list) {
|
||||
console.log('list: ', list)
|
||||
|
||||
@ -89,7 +89,7 @@
|
||||
<div class="performance-content-jilu-title commonFont">
|
||||
记录
|
||||
</div>
|
||||
<div v-for="(i,index) in formList.resultCommentList"
|
||||
<div v-for="(i) in formList.resultCommentList"
|
||||
:key="i.id"
|
||||
class="performance-content-jilu-item commonFont">
|
||||
<div class="performance-content-jilu-item-time">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user