drawerDetail.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div>
  3. <el-button size="small" type="text" @click="onShow" :disabled="disabled">{{$t(btn_title)}}</el-button>
  4. <el-drawer
  5. :visible.sync="drawer"
  6. size="85%"
  7. style="padding-top: 0px !important;"
  8. append-to-body
  9. >
  10. <projectDetail ref="detailRef" :pageDisabled="true"></projectDetail>
  11. </el-drawer>
  12. <!-- <projectDetail ref="detailRef" v-if="drawer"></projectDetail>-->
  13. </div>
  14. </template>
  15. <script>
  16. import projectDetail from '@/HDrpManagement/projectChange/modules/detail'
  17. export default {
  18. name: "drawerDetail",
  19. props:['data','detailPath','idName','disabled','overview','listqueryid','total','btn_title'],
  20. components:{
  21. projectDetail
  22. },
  23. computed:{
  24. },
  25. data () {
  26. return {
  27. drawer:false
  28. }
  29. },
  30. methods:{
  31. onShow () {
  32. this.drawer = true
  33. console.log(this.data,'输出data销售漏斗')
  34. console.log(this.data[this.idName],'输出id33333')
  35. let query = {id:this.data[this.idName],rowindex:this.data.rowindex,listqueryid:this.listqueryid}
  36. console.log(query,'query数据222')
  37. this.$router.push({path:this.detailPath.path,query:Object.assign({},query,this.detailPath.param)})
  38. // this.$router.push({path:'/funnelProjectDetail',query:{id:this.data[key],rowindex:this.data.rowindex}})
  39. }
  40. },
  41. }
  42. </script>
  43. <style scoped>
  44. .detail__panel{
  45. background:#f1f2f3;
  46. overflow-y: scroll;
  47. font-size: 14px;
  48. color:#666;
  49. height:100vh;
  50. }
  51. .stage__panel{
  52. padding: 0px 10px 0px 10px ;
  53. height: 32px;
  54. line-height: 32px;
  55. min-width:85px;
  56. border-radius: 2px;
  57. transform: skewX(-20deg);
  58. margin-left:15px;
  59. margin-bottom: 10px;
  60. text-align: center;
  61. cursor: pointer;
  62. background: #EEEEEE;
  63. }
  64. .stage__panel > div {
  65. transform: skewX(45deg);
  66. }
  67. /deep/ .el-drawer {
  68. background-color: #e8e9e9;
  69. }
  70. /deep/ .el-drawer__header {
  71. padding: 0px !important;
  72. margin-bottom: 0 !important;
  73. font-size: 16px !important;
  74. font-family: PingFang SC-Bold, PingFang SC;
  75. font-weight: bold !important;
  76. color: #333333 !important;
  77. }
  78. /deep/ header{
  79. height: 0 !important;
  80. }
  81. </style>