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* yarn-error.log*
package-lock.json package-lock.json
.idea/ .idea/
config/index.js

View File

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

View File

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

View File

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