|
@@ -5,9 +5,9 @@
|
|
<van-list :finished="true" >
|
|
<van-list :finished="true" >
|
|
<van-cell v-for="item in list" :key="item.id" :id="item.id" :title="item.name" @click="onClick">
|
|
<van-cell v-for="item in list" :key="item.id" :id="item.id" :title="item.name" @click="onClick">
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
- <span>工种</span>
|
|
|
|
- <span>工号</span>
|
|
|
|
|
|
+ <div style="width:100%;text-align: left;" >
|
|
|
|
+ <span style="width:50%;color:#323232;">工种</span>
|
|
|
|
+ <span style="float:right;color:#323232;">工号</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</van-cell>
|
|
</van-cell>
|
|
@@ -55,7 +55,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onClick(e){
|
|
onClick(e){
|
|
- console.log(item, '点击的数据')
|
|
|
|
|
|
+ console.log(e.currentTarget.innerText, '点击的数据')
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/MemberInfo',
|
|
path: '/MemberInfo',
|
|
query: {
|
|
query: {
|
|
@@ -63,9 +63,9 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
- console.log(e)
|
|
|
|
|
|
+ /* console.log(e)
|
|
console.log(e.currentTarget.id)
|
|
console.log(e.currentTarget.id)
|
|
- console.log(e.currentTarget.innerText)
|
|
|
|
|
|
+ console.log(e.currentTarget.innerText) */
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|