eslint 报错

This commit is contained in:
xiongchengqiang 2020-12-10 20:20:33 +08:00
parent acc9c6993e
commit d863322a84
18 changed files with 533 additions and 535 deletions

View File

@ -186,7 +186,7 @@ export default [{
} }
] ]
}, { }, {
path: "/table", path: '/table',
name: 'table', name: 'table',
component: () => component: () =>
import('@/views/kpi/tablePrint'), import('@/views/kpi/tablePrint'),

View File

@ -289,7 +289,7 @@ export default {
} }
}) })
} else { } else {
parent.taskDtos = parent.taskDtos.filter(i !== item) parent.taskDtos = parent.taskDtos.filter(i => i !== item)
} }
this.$forceUpdate() this.$forceUpdate()
}, },
@ -307,7 +307,7 @@ export default {
this.formItem.taskDtos.push(this.formTask) this.formItem.taskDtos.push(this.formTask)
} else { } else {
this.editItem.name = this.formTask.name this.editItem.name = this.formTask.name
this.editItem.processRate = this.formTask.processRate || "0" this.editItem.processRate = this.formTask.processRate || '0'
} }
this.$forceUpdate() this.$forceUpdate()
this.handleCancelTask() this.handleCancelTask()
@ -464,7 +464,6 @@ export default {
i = Object.assign({}, this.formIndicators, { checkWeight: this.formIndicators.checkWeight / 100 }) i = Object.assign({}, this.formIndicators, { checkWeight: this.formIndicators.checkWeight / 100 })
} }
_index++ _index++
} }
return i return i
}) })
@ -473,7 +472,7 @@ export default {
this.showIndicators = false this.showIndicators = false
} }
}) })
console.log(" this.obj", this.obj) console.log(' this.obj', this.obj)
}, },
// //
hanidleEdit (item, index, type) { hanidleEdit (item, index, type) {
@ -484,7 +483,7 @@ export default {
return return
} }
} }
this.zhibiaoTitle = index === -1 ? "添加指标" : "编辑指标" this.zhibiaoTitle = index === -1 ? '添加指标' : '编辑指标'
if (index === -1) { if (index === -1) {
this.formIndicators = { this.formIndicators = {
checkWeight: 0 checkWeight: 0

View File

@ -242,7 +242,7 @@ export default {
beforeMount () { }, beforeMount () { },
mounted () { mounted () {
console.log(this.resultRecordId) 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: { methods: {
async handleResetData (resultRecordId) { async handleResetData (resultRecordId) {
@ -298,8 +298,6 @@ export default {
this.$loadingStart() this.$loadingStart()
await this.handleGetNext() await this.handleGetNext()
this.$loadingEnd() this.$loadingEnd()
}, },
handleFilter (item) { handleFilter (item) {
return item ? item.filter(i => !i.isDelete) : [] return item ? item.filter(i => !i.isDelete) : []
@ -326,7 +324,8 @@ export default {
let _boolean = true let _boolean = true
arr.map(i => { arr.map(i => {
const res = i.detailDtos.reduce((result, item) => { const res = i.detailDtos.reduce((result, item) => {
return result += item.checkWeight result += item.checkWeight
return result
}, 0).toFixed(5) }, 0).toFixed(5)
if (i.weight !== Number(res)) { if (i.weight !== Number(res)) {
this.$message.error(i.name + '维度内的权重和必须为100%') this.$message.error(i.name + '维度内的权重和必须为100%')

View File

@ -245,7 +245,7 @@ export default {
message: '请输入任务名称', message: '请输入任务名称',
trigger: 'blur' trigger: 'blur'
} }
], ]
}, },
form: { form: {
name: '', name: '',
@ -374,7 +374,7 @@ export default {
return item ? item.filter(i => !i.isDelete) : [] return item ? item.filter(i => !i.isDelete) : []
}, },
handleClick (tab, event) { handleClick (tab, event) {
console.log(tab, event); console.log(tab, event)
}, },
handleAddTask () { handleAddTask () {
this.dialogFormVisible = true this.dialogFormVisible = true

View File

@ -185,7 +185,7 @@
</template> </template>
<script> <script>
import { apiSaveDetail, apiGet375, apiSaveapproval, apiTaskDetail } from '@/api/assessment' import { apiSaveDetail, apiGet375, apiSaveapproval, apiTaskDetail } from '@/api/assessment'
import process from './process.vue'; import process from './process.vue'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
@ -222,7 +222,7 @@ export default {
loadingZan: false, loadingZan: false,
input: '', input: '',
scoreList: [], scoreList: [],
taskInfo: {}, taskInfo: {}
// score: { // score: {
// lastScore: '', // lastScore: '',
// scoreLevel: '' // scoreLevel: ''
@ -309,7 +309,7 @@ export default {
result += Number(item.Score) result += Number(item.Score)
return result return result
}, 0) }, 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) { handleGetScorlList (list) {
console.log('list: ', list) console.log('list: ', list)

View File

@ -89,7 +89,7 @@
<div class="performance-content-jilu-title commonFont"> <div class="performance-content-jilu-title commonFont">
记录 记录
</div> </div>
<div v-for="(i,index) in formList.resultCommentList" <div v-for="(i) in formList.resultCommentList"
:key="i.id" :key="i.id"
class="performance-content-jilu-item commonFont"> class="performance-content-jilu-item commonFont">
<div class="performance-content-jilu-item-time"> <div class="performance-content-jilu-item-time">