itdmTestPlanList1.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {{ src/App.vue }}
  2. <template>
  3. <div class="container" style="height:650px;">
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline" @keyup.enter.native="getHjlist">
  6. <a-row :gutter="24">
  7. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8. <a-form-item label="委托编号">
  9. <a-input placeholder="请输入委托编号" v-model="tasks.queryParam.weituoNo"></a-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  13. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  14. <a-button type="primary" @click="getHjlist" icon="search">查询</a-button>
  15. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">提交</a-button>
  16. </span>
  17. </a-col>
  18. </a-row>
  19. </a-form>
  20. </div>
  21. <gantt ref="gantt" class="left-container" :tasks="tasks" style="height:600px;"></gantt>
  22. </div>
  23. </template>
  24. <script>
  25. import Gantt from '../../../components/Gantt.vue';
  26. import { getAction } from '@api/manage'
  27. import { gantt } from 'dhtmlx-gantt'
  28. export default {
  29. name: 'app',
  30. components: {Gantt},
  31. data () {
  32. return {
  33. tasks: {
  34. // data: [
  35. // ],
  36. // collections: {
  37. // staff:[],
  38. // manager:[],
  39. // chuanganqi:[],
  40. // },
  41. queryParam:{
  42. weituoNo: undefined
  43. },
  44. },
  45. }
  46. },
  47. methods: {
  48. getHjlist(){
  49. let that = this
  50. var queryParam = that.tasks.queryParam
  51. this.$refs.gantt.getinit( queryParam )
  52. },
  53. searchReset(){
  54. this.$refs.gantt.searchReset()
  55. }
  56. }
  57. }
  58. </script>
  59. <style>
  60. html, body {
  61. height: 100%;
  62. margin: 0;
  63. padding: 0;
  64. /* overflow:hidden; */
  65. }
  66. .container {
  67. height: 100%;
  68. width: 100%;
  69. }
  70. .left-container {
  71. overflow: hidden;
  72. position: relative;
  73. height: 100%;
  74. }
  75. </style>