wagonApprove.vue 1.5 KB

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