Commit 9e68f2a0 authored by Zhang Xiaojie's avatar Zhang Xiaojie

申请管理DTO

parent 94636ebe
...@@ -9,17 +9,14 @@ interface info{ ...@@ -9,17 +9,14 @@ interface info{
interface list{ interface list{
id:number, id:number,
time:string, time:string,
children:{ children:Array<info>
info:Array<info>
}
} }
const details:Array<list>=[ const details:Array<list>=[
{ {
id:0, id:0,
time:'2021/6', time:'2021/6',
children:{ children:[
info:[
{ {
path:'../../assets/icons/avator.png', path:'../../assets/icons/avator.png',
name:'真实姓名', name:'真实姓名',
...@@ -40,13 +37,11 @@ const details:Array<list>=[ ...@@ -40,13 +37,11 @@ const details:Array<list>=[
current: 'pending' current: 'pending'
}, },
] ]
}
}, },
{ {
id:1, id:1,
time:'2021/5', time:'2021/5',
children:{ children:[
info:[
{ {
path:'../../assets/icons/avator.png', path:'../../assets/icons/avator.png',
name:'真实姓名', name:'真实姓名',
...@@ -55,7 +50,6 @@ const details:Array<list>=[ ...@@ -55,7 +50,6 @@ const details:Array<list>=[
} }
] ]
} }
}
] ]
export { export {
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<!-- 申请详情 --> <!-- 申请详情 -->
<div :details="list" v-for="(item,index) in list" :key="index"> <div :details="list" v-for="(item,index) in list" :key="index">
<p class=" text-right text-xs text-text-secondary pr-4 pb-2 ">{{item.time}}</p> <p class=" text-right text-xs text-text-secondary pr-4 pb-2 ">{{item.time}}</p>
<div v-for="(detail,i) in item.children.info" :key="i"> <div v-for="(detail,i) in item.children" :key="i">
<request :detail="detail" class=" pb-4" v-on:change="changeState($event,index,i)" /> <request :detail="detail" class=" pb-4" @change="changeState($event,index,i)" />
</div> </div>
</div> </div>
</div> </div>
...@@ -40,8 +40,8 @@ export default Vue.extend({ ...@@ -40,8 +40,8 @@ export default Vue.extend({
console.log('click left') console.log('click left')
}, },
changeState(state:string,index:number,i:number){ changeState(state:string,index:number,i:number){
this.list[index].children.info[i].current = state this.list[index].children[i].current = state
console.log(state,index,i); // console.log(state,index,i);
} }
}, },
props:{ props:{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment