contactsInfo.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <div style="padding: 10px 0px 0px 10px">
  3. <el-table
  4. :data="data"
  5. border
  6. height="calc(100vh - 60px)"
  7. style="width: 100%">
  8. <el-table-column
  9. prop="name"
  10. label="姓名"
  11. width="0">
  12. </el-table-column>
  13. <el-table-column
  14. prop="wechatnum"
  15. label="微信"
  16. width="0">
  17. </el-table-column>
  18. <el-table-column
  19. prop="phonenumber"
  20. label="手机号"
  21. width="0">
  22. <!-- <template slot-scope="scope">
  23. <span>{{tool.formatAmount(scope.row.signamount,2)}}</span>
  24. </template>-->
  25. </el-table-column>
  26. <el-table-column
  27. prop="depname"
  28. label="部门"
  29. width="0">
  30. <!-- <template slot-scope="scope">
  31. <span >{{tool.formatAmount(scope.row.discountrate * 100,2)}}%</span>
  32. </template>-->
  33. </el-table-column>
  34. <el-table-column
  35. prop="position"
  36. label="职位"
  37. width="100">
  38. </el-table-column>
  39. <!-- <el-table-column
  40. prop="operation"
  41. width="100"
  42. label="操作">
  43. <template slot-scope="scope">
  44. &lt;!&ndash; <el-input v-model="scope.row.remarks" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>&ndash;&gt;
  45. <el-button size="mini" type="text" @click="rowChange(scope.row)">详 情</el-button>
  46. &lt;!&ndash; <detailsInfo :row="scope.row"></detailsInfo>&ndash;&gt;
  47. </template>
  48. </el-table-column>-->
  49. </el-table>
  50. </div>
  51. </template>
  52. <script>
  53. export default {
  54. name: "contractInfo",
  55. props:['data'],
  56. methods:{
  57. rowChange(data){
  58. this.$store.dispatch('changeDetailDrawer',false)
  59. setTimeout(()=>{
  60. let route = this.$route
  61. route.query.portrait = 'xm'
  62. console.log(route,'route')
  63. if (route.path !== '/projectChangeDetail') {
  64. this.oldRoute = {path:route.path,query:route.query}
  65. this.$store.dispatch('setHistoryRouter',this.oldRoute)
  66. }
  67. this.$router.replace({
  68. path:'/projectChangeDetail',
  69. query:{
  70. id:data.sa_projectid,
  71. rowindex:data.rowindex,
  72. }
  73. })
  74. this.$store.dispatch('changeDetailDrawer',true)
  75. },500)
  76. }
  77. }
  78. }
  79. </script>
  80. <style scoped>
  81. </style>