queueFTransfer.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // 排队转移
  2. <template>
  3. <div class="sale">
  4. <div class="top">
  5. <span>车牌号:</span>
  6. <el-input placeholder="请输入内容" class="input" v-model="inputText" clearable>
  7. </el-input>
  8. <el-button type="primary" class="btn" @click="onclick(0)">
  9. <i class="el-icon-search"></i>查询
  10. </el-button>
  11. <el-button type="primary" class="btn1" @click="onclick(1)">
  12. <i class="el-icon-plus"></i>新增排队转移
  13. </el-button>
  14. </div>
  15. <div class="tab">
  16. <dilTable v-bind.sync="option"></dilTable>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. inputText: "",
  25. option: {
  26. // 表格请求数据的地址
  27. requestUrl: "/api/v1/qms/getChangeQueue?apiId=124",
  28. },
  29. };
  30. },
  31. methods: {
  32. onclick(num) {
  33. if (num == 0) {
  34. this.option.requestUrl =
  35. "/api/v1/qms/getChangeQueue?apiId=124&con=" + this.inputText+"&i="+new Date();
  36. } else if (num == 1) {
  37. this.$router.push({
  38. path: "/addqueueFTransfer/",
  39. });
  40. }
  41. },
  42. },
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. .sale {
  47. .top {
  48. width: 100%;
  49. height: 80px;
  50. display: flex;
  51. align-items: center;
  52. padding-left: 40px;
  53. }
  54. .input{
  55. width: 250px;
  56. margin-right: 20px;
  57. }
  58. .btn1{
  59. margin-left: 20px;
  60. }
  61. }
  62. </style>