修改试卷管理和积分管理逻辑
This commit is contained in:
@@ -66,7 +66,58 @@ const custom = {
|
||||
getProvinceName(province) {
|
||||
if(province < 0 || !province) return ''
|
||||
return cityList[province].name
|
||||
},
|
||||
getExamGroupType() {
|
||||
return [
|
||||
{
|
||||
name:'1',
|
||||
value:1
|
||||
},
|
||||
{
|
||||
name:'10',
|
||||
value:10
|
||||
},{
|
||||
name:'100',
|
||||
value:100
|
||||
},{
|
||||
name:'1000',
|
||||
value:1000
|
||||
},
|
||||
{
|
||||
name:'1万',
|
||||
value:10000
|
||||
},
|
||||
{
|
||||
name:'10万',
|
||||
value:100000
|
||||
},
|
||||
{
|
||||
name:'100万',
|
||||
value:1000000
|
||||
},
|
||||
{
|
||||
name:'1000万',
|
||||
value:10000000
|
||||
},
|
||||
]
|
||||
},
|
||||
timestampToDate(stamp) { // 时间戳转日期
|
||||
var time = new Date(stamp);
|
||||
var y = time.getFullYear();
|
||||
var m = time.getMonth()+1;
|
||||
var d = time.getDate();
|
||||
const date = `${y}-${m}-${d}`
|
||||
console.log(date)
|
||||
return date
|
||||
},
|
||||
getSTdPerson(num) {
|
||||
const flag = 10000
|
||||
if(num<flag) {
|
||||
return num
|
||||
}
|
||||
else{
|
||||
return num/flag+'万'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
export default custom
|
||||
|
Reference in New Issue
Block a user