fix: update crudDemo jsonData

This commit is contained in:
smallwei 2018-04-29 11:57:19 +08:00
parent 8642e413aa
commit 8883e075cf
4 changed files with 13 additions and 15 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ yarn-debug.log*
yarn-error.log*
package-lock.json
.idea/
config/index.js

View File

@ -3,10 +3,8 @@ export const tableData = [{
name: "lengleng",
number: 12,
type: '0',
stars: {
address: 'https://gitee.com/log4j/pig/badge/star.svg?theme=white',
git: 'https://gitee.com/smallweigit/avue',
},
stars: 'https://gitee.com/log4j/pig/badge/star.svg?theme=white',
git: 'https://gitee.com/log4j/pig',
address: "https://gitee.com/log4j",
info: 'Pig是基于Spring Cloud、OAuth2.0使用Vue前后分离的开发平台,支持账号、 短信、 SSO等多种登录。 ',
},
@ -15,10 +13,8 @@ export const tableData = [{
name: "smallwei",
number: 20,
type: '1',
stars: {
address: 'https://gitee.com/smallweigit/avue/badge/star.svg?theme=white',
git: 'https://gitee.com/log4j/pig',
},
stars: 'https://gitee.com/smallweigit/avue/badge/star.svg?theme=white',
git: 'https://gitee.com/smallweigit/avue',
address: "https://gitee.com/smallweigit",
info: 'Avue是一个后台集成解决方案它基于 Vue.js 和 element。 使用了最新的前端技术栈,支持权限验证,第三方网站嵌套等功能。',
}

View File

@ -44,8 +44,6 @@ export const tableOption = {
"prop": "stars",
"sortable": true,
"solt": true,
"addVisdiplay": false,
"editVisdiplay": false
},
{
"label": "码云",

View File

@ -14,9 +14,12 @@
<el-form-item label="地址">
<a :href="props.row.address" target="_blank">{{props.row.address}}</a>
</el-form-item>
<el-form-item label="项目地址">
<a :href="props.row.git" target="_blank">{{props.row.git}}</a>
</el-form-item>
<el-form-item label="stars">
<a :href='props.row.stars.git' target="_blank">
<img :src="props.row.stars.address" alt='star' />
<a :href='props.row.address' target="_blank">
<img :src="props.row.stars" alt='star' />
</a>
</el-form-item>
</el-form>
@ -25,12 +28,12 @@
<el-tag>{{scope.row.username}}</el-tag>
</template>
<template slot-scope="scope" slot="stars">
<a :href='scope.row.stars.git' target="_blank">
<img :src="scope.row.stars.address" alt='star' />
<a :href='scope.row.git' target="_blank">
<img :src="scope.row.stars" alt='star' />
</a>
</template>
<template slot-scope="scope" slot="address">
<a :href="scope.row.address" target="_blank">{{scope.row.address}}</a>
<a :href="scope.row.git" target="_blank">{{scope.row.address}}</a>
</template>
</avue-crud>
</div>