truckQualityRanLaoResult.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <!-- 辅料质检作业 -->
  3. <div class="homeworkPath">
  4. <div class="top">
  5. <el-input placeholder="请输入内容" class="input" 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. <el-table-column fixed="right" label="操作" width="50">
  12. <template slot-scope="scope">
  13. <el-button @click="updateClick(scope.row.resultId)" type="text" size="small">
  14. 修改
  15. </el-button>
  16. </template>
  17. </el-table-column>
  18. </dilTable>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. name: "wagonPlease",
  24. data() {
  25. return {
  26. status: "",
  27. input: "",
  28. option: {
  29. // 表格请求数据的地址
  30. requestUrl: "/api/v1/tms/getQualityResult?apiId=150&orderType=6",
  31. },
  32. };
  33. },
  34. methods: {
  35. onclick() {
  36. this.option.requestUrl = "/api/v1/tms/getQualityResult?apiId=150&orderType=6&con=" + this.input;
  37. },
  38. updateClick(resultId) {
  39. this.$router.push("/truckQualityRanLaoResultEdit/" + resultId);
  40. },
  41. },
  42. };
  43. </script>
  44. <style lang='scss' scoped>
  45. .homeworkPath {
  46. .top {
  47. padding: 1.25rem 1.875rem;
  48. .input{
  49. width: 12.5rem;
  50. }
  51. }
  52. }
  53. </style>