Browse Source

代码格式处理及错误处理

master
yujintao 6 years ago
parent
commit
a5f6c8ced2
  1. 2
      src/views/modules/custom/evaluateinfo.vue
  2. 22
      src/views/modules/user/alluser.vue

2
src/views/modules/custom/evaluateinfo.vue

@ -59,7 +59,7 @@
align="center" align="center"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(item) in scope.row.optionsList"> <div v-for="(item) in scope.row.optionsList" :key="item">
<div v-if="item.optionId == option.optionId"> <div v-if="item.optionId == option.optionId">
<div v-if="item.selectFlag == 1 && item.roleCode == 1"> <div v-if="item.selectFlag == 1 && item.roleCode == 1">
<img src="@/assets/img/like.png"> <img src="@/assets/img/like.png">

22
src/views/modules/user/alluser.vue

@ -146,7 +146,7 @@ export default {
realName: '', realName: '',
mobile: '', mobile: '',
startTime: '', startTime: '',
endTime: '', endTime: ''
}, },
deptIdList: [], deptIdList: [],
options: [], options: [],
@ -234,29 +234,17 @@ export default {
this.dataForm.startTime = this.time[0] this.dataForm.startTime = this.time[0]
this.dataForm.endTime = this.time[1] this.dataForm.endTime = this.time[1]
}, },
formatState: function (row, column) {
let state = row.state
if (state === '1') {
return '待审核'
} else if (state === '2') {
return '审核不通过'
} else if (state === '3') {
return '审核通过'
} else if (state === '0') {
return '已注册'
}
},
formatPartyFlag: function (row, column) { formatPartyFlag: function (row, column) {
return row.partyFlag === '1' ? '是' : row.state === '0' ? '未知' : '否' return row.partyFlag === '1' ? '是' : row.state === '0' ? '未知' : '否'
}, },
formatState: function (row, column) { formatState: function (row, column) {
if (row.state == 0) { if (row.state === 0) {
return '已注册' return '已注册'
} else if (row.state == 1) { } else if (row.state === 1) {
return '已完善信息待审核' return '已完善信息待审核'
} else if (row.state == 2) { } else if (row.state === 2) {
return '信息审核不通过' return '信息审核不通过'
} else if (row.state == 3) { } else if (row.state === 3) {
return '信息审核通过' return '信息审核通过'
} }
}, },

Loading…
Cancel
Save