You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< script lang = "ts" setup >
import { onMounted } from 'vue'
const props = defineProps ( {
data : {
type : Object as PropType < any > ,
required : true ,
} ,
taskTableData : {
type : Array ,
default : ( ) => [ [ ] ] ,
} ,
} )
onMounted ( ( ) => {
console . log ( props . data )
console . log ( props . taskTableData , 'taskTableData' )
} )
< / script >
< template >
< div class = "wrap" >
< div class = "info-header" >
< div class = "left_box" >
< div class = "title" >
审查记录信息
< / div >
< / div >
< / div >
< div class = "content" >
< n -timeline >
< n -timeline -item color = "#507AFD" >
< template # default >
< div class = "time" >
完成时间 : 2023 - 10 - 20 13 : 00 : 01
< / div >
< / template >
< / n - t i m e l i n e - i t e m >
< n -timeline -item color = "#507AFD" >
< template # default >
< div class = "card" >
< n -collapse arrow -placement = " right " >
< template # header -extra >
审批结果 : 不合格
< / template >
< n -collapse -item title = "收起" name = "1" >
< div class = "item" >
< div class = "header" >
< SvgIcon class = "icon" name = "approve" size = "16" / >
< div class = "title" >
一级审批
< / div >
< / div >
< div class = "col-content" >
< div class = "col-item" >
< div class = "label label1" >
< div class = "point" / > 审批时间 : 2022 - 12 - 10 12 : 00 : 09
< / div >
< div class = "label label2" >
审批人 : 张三天
< / div >
< div class = "label label3" >
审批结果 : 通过
< / div >
< div class = "label" >
备注 : --
< / div >
< / div >
< / div >
< / div >
< / n - c o l l a p s e - i t e m >
< / n - c o l l a p s e >
< / div >
< / template >
< / n - t i m e l i n e - i t e m >
< / n - t i m e l i n e >
< / div >
< / div >
< / template >
< style lang = "less" scoped >
. info - header {
display : flex ;
align - items : center ;
justify - content : space - between ;
margin - bottom : 18 px ;
. left _box {
display : flex ;
align - items : center ;
. title {
display : flex ;
align - items : center ;
font - size : 16 px ;
font - family : PingFang SC , PingFang SC - Medium ;
font - weight : Medium ;
text - align : left ;
color : # 333333 ;
line - height : 22 px ;
& : before {
content : "" ;
width : 4 px ;
height : 18 px ;
background : # 507 afd ;
border - radius : 3 px ;
display : inline - block ;
margin - right : 10 px ;
}
}
}
}
. card {
background : # f9fafc ;
padding : 16 px ;
}
. point {
width : 4 px ;
height : 4 px ;
background : # 999999 ;
border - radius : 50 % ;
margin - right : 6 px ;
}
. header {
display : flex ;
align - items : center ;
margin - bottom : 12 px ;
. icon {
margin - right : 10 px ;
}
}
. col - item {
display : flex ;
align - items : center ;
padding - left : 26 px ;
. label {
display : flex ;
align - items : center ;
font - size : 14 px ;
font - family : PingFang SC , PingFang SC - Regular ;
font - weight : Regular ;
text - align : center ;
color : # 666666 ;
}
. label1 {
width : 305 px ;
}
. label2 {
width : 194 px ;
}
. label3 {
width : 208 px ;
}
}
< / style >