信息填报

master
lion 1 year ago
parent ea09d17ff5
commit c7d667110b

@ -1,8 +1,8 @@
<template>
<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
ref="xyTable"
:req-opt="select"
@ -11,6 +11,9 @@
:action="getByCategory"
:table-item="table"
:destroy-action="destroy">
<!-- <template v-slot:files>
</template> -->
</xy-table>
</el-dialog>
</div>
@ -42,7 +45,23 @@ export default {
prop: "content",
label: "内容",
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",

@ -1,8 +1,8 @@
<template>
<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
ref="xyTable"
:req-opt="select"
@ -104,7 +104,23 @@ export default {
prop: "content",
label: "内容",
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",

@ -1,8 +1,8 @@
<template>
<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
ref="xyTable"
:req-opt="select"
@ -42,7 +42,23 @@ export default {
prop: "content",
label: "内容",
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",

Loading…
Cancel
Save