shipResult.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <!-- 水路货物运单页面 -->
  3. <div class="shipTransport">
  4. <div class="top">
  5. <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
  6. <el-button type="primary" class="btn" @click="onclick">
  7. <i class="el-icon-search"></i>查询
  8. </el-button>
  9. </div>
  10. <dilTable v-bind.sync="option">
  11. </dilTable>
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. name: "homeworkPath",
  17. data() {
  18. return {
  19. restaurants: [],
  20. input: "",
  21. option: {
  22. // 表格请求数据的地址
  23. requestUrl: "/api/v1/tms/listAllOrders?apiId=56",
  24. },
  25. };
  26. },
  27. mounted() {
  28. },
  29. methods: {
  30. onclick() {
  31. this.option.requestUrl = "/api/v1/tms/listAllOrders?apiId=56&con=" + this.input;
  32. },
  33. btnclick(pathId) {
  34. this.$router.push("/path/addHomeworkPath/" + pathId);
  35. },
  36. },
  37. };
  38. </script>
  39. <style lang='scss' scoped>
  40. .shipTransport {
  41. .top {
  42. padding: 1.25rem 0.375rem;
  43. .el-input {
  44. width: 20%;
  45. margin-right: 1.25rem;
  46. }
  47. }
  48. }
  49. </style>