信息填报

master
lion 2 years ago
parent ea09d17ff5
commit c7d667110b

@ -1,8 +1,8 @@
<template> <template>
<div> <div>
<el-dialog title="填报" width="860px" :visible.sync="visible"> <el-dialog title="填报" width="80%" :visible.sync="visible">
<xy-table style="width: 820px" <xy-table style="width: 100%"
stripe stripe
ref="xyTable" ref="xyTable"
:req-opt="select" :req-opt="select"
@ -11,6 +11,9 @@
:action="getByCategory" :action="getByCategory"
:table-item="table" :table-item="table"
:destroy-action="destroy"> :destroy-action="destroy">
<!-- <template v-slot:files>
</template> -->
</xy-table> </xy-table>
</el-dialog> </el-dialog>
</div> </div>
@ -42,7 +45,23 @@ export default {
prop: "content", prop: "content",
label: "内容", label: "内容",
align: "left", align: "left",
minWidth: 200 width: 200
},
{
prop: "files",
label: "附件",
align: "left",
minWidth: 200,
customFn:row=>{
return (
row.files?
row.files.map((item,index)=>{
return(<div>
<a href={item.url} target="_blank">{item.original_name}</a>
</div>)
}):''
)
}
}, },
{ {
prop: "operate", prop: "operate",

@ -1,8 +1,8 @@
<template> <template>
<div> <div>
<el-dialog title="填报详情" width="860px" :visible.sync="visible"> <el-dialog title="填报详情" width="80%" :visible.sync="visible">
<xy-table style="width: 820px" <xy-table style="width: 100%"
stripe stripe
ref="xyTable" ref="xyTable"
:req-opt="select" :req-opt="select"
@ -104,7 +104,23 @@ export default {
prop: "content", prop: "content",
label: "内容", label: "内容",
align: "left", align: "left",
minWidth: 200 width: 200
},
{
prop: "files",
label: "附件",
align: "left",
minWidth: 200,
customFn:row=>{
return (
row.files?
row.files.map((item,index)=>{
return(<div>
<a href={item.url} target="_blank">{item.original_name}</a>
</div>)
}):''
)
}
}, },
{ {
prop: "operate", prop: "operate",

@ -1,8 +1,8 @@
<template> <template>
<div> <div>
<el-dialog title="填报" width="860px" :visible.sync="visible"> <el-dialog title="填报" width="100%" :visible.sync="visible">
<xy-table style="width: 820px" <xy-table style="width: 80%"
stripe stripe
ref="xyTable" ref="xyTable"
:req-opt="select" :req-opt="select"
@ -42,7 +42,23 @@ export default {
prop: "content", prop: "content",
label: "内容", label: "内容",
align: "left", align: "left",
minWidth: 200 width: 200
},
{
prop: "files",
label: "附件",
align: "left",
minWidth: 200,
customFn:row=>{
return (
row.files?
row.files.map((item,index)=>{
return(<div>
<a href={item.url} target="_blank">{item.original_name}</a>
</div>)
}):''
)
}
}, },
{ {
prop: "operate", prop: "operate",

Loading…
Cancel
Save