approveWagonPlease.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <!-- 批车作业页面 -->
  3. <div class="trainTransport">
  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. <el-button type="primary" @click="btnclick">
  10. <i class="el-icon-plus"></i>新增
  11. </el-button>
  12. </div>
  13. <dilTable v-bind.sync="option">
  14. <el-table-column fixed="right" label="操作" width="50">
  15. <template slot-scope="scope">
  16. <el-button
  17. @click="updateClick(scope.row.resultId)"
  18. type="text"
  19. size="small"
  20. >
  21. 修改
  22. </el-button>
  23. </template>
  24. </el-table-column>
  25. </dilTable>
  26. </div>
  27. </template>
  28. <script>
  29. export default {
  30. name: "wagonPlease",
  31. data() {
  32. return {
  33. input: "",
  34. option: {
  35. // 表格请求数据的地址
  36. requestUrl: "/api/v1/tms/getApproveAllWagonPlease?apiId=70&resultType=3",
  37. },
  38. };
  39. },
  40. methods: {
  41. onclick() {
  42. this.option.requestUrl = "/api/v1/tms/getApproveAllWagonPlease?apiId=70&resultType=3&con="+this.input;
  43. },
  44. btnclick() {
  45. this.$router.push("/approveWagonPleaseAdd");
  46. },
  47. updateClick(resultId) {
  48. this.$router.push("/approveWagonPleaseEdit/" + resultId);
  49. },
  50. },
  51. };
  52. </script>
  53. <style lang='scss' scoped>
  54. .trainTransport {
  55. .top {
  56. padding: 1.25rem 0.375rem;
  57. .el-input {
  58. width: 20%;
  59. margin-right: 1.25rem;
  60. }
  61. }
  62. }
  63. </style>