This commit is contained in:
zhigang.li 2019-01-24 16:51:40 +08:00
parent f1737683df
commit bfb8f3543a
11 changed files with 26 additions and 23 deletions

View File

@ -6,7 +6,7 @@
import Icons from '_c/icons'
export default {
name: 'CommonIcon',
components: {Icons},
components: { Icons },
props: {
type: {
type: String,

View File

@ -176,7 +176,7 @@ export default {
'on-save-edit': (params) => {
this.value[params.row.initRowIndex][params.column.key] = this.edittingText
this.$emit('input', this.value)
this.$emit('on-save-edit', Object.assign(params, {value: this.edittingText}))
this.$emit('on-save-edit', Object.assign(params, { value: this.edittingText }))
this.edittingCellId = ''
}
}

View File

@ -1,5 +1,6 @@
export default {
home: 'Home',
login: 'Login',
components: 'Components',
count_to_page: 'Count-to',
tables_page: 'Table',

View File

@ -1,5 +1,6 @@
export default {
home: '首页',
login: '登录',
components: '组件',
count_to_page: '数字渐变',
tables_page: '多功能表格',

View File

@ -1,5 +1,6 @@
export default {
home: '首頁',
login: '登錄',
components: '组件',
count_to_page: '数字渐变',
tables_page: '多功能表格',

View File

@ -18,7 +18,7 @@ const USER_MAP = {
export const login = req => {
req = JSON.parse(req.body)
return {token: USER_MAP[req.userName].token}
return { token: USER_MAP[req.userName].token }
}
export const getUserInfo = req => {

View File

@ -74,7 +74,7 @@ export default {
},
actions: {
// 登录
handleLogin ({ commit }, {userName, password}) {
handleLogin ({ commit }, { userName, password }) {
userName = userName.trim()
return new Promise((resolve, reject) => {
login({

View File

@ -18,9 +18,9 @@ export default {
data () {
return {
columns: [
{title: 'Name', key: 'name', sortable: true},
{title: 'Email', key: 'email', editable: true},
{title: 'Create-Time', key: 'createTime'},
{ title: 'Name', key: 'name', sortable: true },
{ title: 'Email', key: 'email', editable: true },
{ title: 'Create-Time', key: 'createTime' },
{
title: 'Handle',
key: 'handle',

View File

@ -52,36 +52,36 @@ export default {
name: '运营商/网络服务',
type: 'line',
stack: '总量',
areaStyle: {normal: {
areaStyle: { normal: {
color: '#2d8cf0'
}},
} },
data: [120, 132, 101, 134, 90, 230, 210]
},
{
name: '银行/证券',
type: 'line',
stack: '总量',
areaStyle: {normal: {
areaStyle: { normal: {
color: '#10A6FF'
}},
} },
data: [257, 358, 278, 234, 290, 330, 310]
},
{
name: '游戏/视频',
type: 'line',
stack: '总量',
areaStyle: {normal: {
areaStyle: { normal: {
color: '#0C17A6'
}},
} },
data: [379, 268, 354, 269, 310, 478, 358]
},
{
name: '餐饮/外卖',
type: 'line',
stack: '总量',
areaStyle: {normal: {
areaStyle: { normal: {
color: '#4608A6'
}},
} },
data: [320, 332, 301, 334, 390, 330, 320]
},
{
@ -94,9 +94,9 @@ export default {
position: 'top'
}
},
areaStyle: {normal: {
areaStyle: { normal: {
color: '#398DBF'
}},
} },
data: [820, 645, 546, 745, 872, 624, 258]
}
]

View File

@ -53,11 +53,11 @@ export default {
{ title: '新增页面', icon: 'md-map', count: 14, color: '#9A66E4' }
],
pieData: [
{value: 335, name: '直接访问'},
{value: 310, name: '邮件营销'},
{value: 234, name: '联盟广告'},
{value: 135, name: '视频广告'},
{value: 1548, name: '搜索引擎'}
{ value: 335, name: '直接访问' },
{ value: 310, name: '邮件营销' },
{ value: 234, name: '联盟广告' },
{ value: 135, name: '视频广告' },
{ value: 1548, name: '搜索引擎' }
],
barData: {
Mon: 13253,

View File

@ -5,4 +5,4 @@ module.exports = {
rules: {
'import/no-extraneous-dependencies': 'off'
}
}
}