index.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <zj-page-container>
  3. <zj-page-fill class="neibuview">
  4. <zj-form-container>
  5. <zj-form-module title="评价信息">
  6. <zj-table :is-drop="true" :columns="evaluationColumns" :table-data="evaluationData" :table-attributes="{
  7. border: true
  8. }" />
  9. </zj-form-module>
  10. </zj-form-container>
  11. </zj-page-fill>
  12. </zj-page-container>
  13. </template>
  14. <script>
  15. import { listPageV2 } from "@/api/workOrder/appraise";
  16. import { tableDataParsing } from "@/utils/common.js"
  17. export default {
  18. props: {
  19. id: {
  20. type: [String, Number],
  21. default: null,
  22. }
  23. },
  24. data() {
  25. return {
  26. evaluationData: [],
  27. evaluationColumns: []
  28. }
  29. },
  30. created() {
  31. listPageV2({ "pageNum": 1, "pageSize": -1, "params": [{ "param": "a.id", "compare": "=", "value": this.id }] }).then(res => {
  32. this.evaluationColumns = tableDataParsing(res.fieldBeans)
  33. this.$nextTick(() => {
  34. this.evaluationData = res.data.records
  35. })
  36. })
  37. },
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .neibuview {
  42. box-sizing: border-box;
  43. padding-left: 16px;
  44. ::v-deep .zj-page-fill-scroll {
  45. box-sizing: border-box;
  46. padding-right: 16px;
  47. &>div:nth-child(1) {
  48. margin-top: 20px;
  49. }
  50. }
  51. }
  52. </style>