@@ -0,0 +1,94 @@
+<template>
+ <div>
+ <basic-container>
+ <avue-crud :data="data" :option="option"></avue-crud>
+ </basic-container>
+ </div>
+</template>
+
+<script>
+export default {
+ name: "index",
+ data() {
+ return {
+ option: {
+ align: 'center',
+ menuAlign: 'center',
+ menuWidth: 400,
+ viewBtn: true,
+ menuTitle: '操作',
+ // addTitle: '保存标题',
+ // editTitle: '编辑标题',
+ // viewTitle: '查看标题',
+ searchBtnText: '搜索',
+ emptyBtnText: '清空',
+ addBtnText: '录入明细',
+ delBtnText: '删除',
+ delBtnIcon: 'null',
+ editBtnIcon: 'null',
+ editBtnText: '编辑',
+ viewBtnText: '查看',
+ printBtnText: '打印文案',
+ excelBtnText: '导出文案',
+ updateBtnText: '修改',
+ saveBtnText: '保存',
+ cancelBtnText: '取消',
+ column: [
+ {
+ label: "排序",
+ prop: "number",
+ type: 'number',
+ span: 8,
+ mock: {
+ max: 1,
+ min: 2,
+ precision: 2
+ },
+ minRows: 0
+ },{
+ label: "标题",
+ prop: "address",
+ mock:{
+ type:'county'
+ }
+ label: "商品链接",
+ label: "图片",
+ prop: "priture",
+ type: "upload",
+ listType: "picture-img",
+ span: 24,
+ tip: "只能上传jpg/png/jpeg文件,且不超过2M,宽高比为700px:250px",
+ action: "/api/blade-resource/oss/endpoint/put-file",
+ dataType: "string",
+ propsHttp: {
+ res: "data",
+ url: "link"
+ rules: [
+ required: false,
+ message: "请上传图片",
+ trigger: "blur"
+ ]
+ };
+ methods: {}
+}
+</script>
+<style scoped>
+</style>