You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cardFillDo.vue 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <!-- 卡签补办 -->
  3. <crud-template ref="crudRef" :homeData="datas">
  4. <!-- 自定义搜索 -->
  5. <template #search="{ searchCondition }">
  6. <!-- 搜索 监听回车 @keyup.enter.native="search"-->
  7. <el-input v-model="searchCondition.fileTwo" clearable placeholder="车牌号码"
  8. style="width: 200px;margin: 0 10px 0 10px;" />
  9. <el-select v-model="searchCondition.fileThree" placeholder="--请输入车牌颜色--" style="margin-right: 10px;">
  10. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
  11. </el-select>
  12. </template>
  13. <!-- 自定义编辑提交按钮 -->
  14. <template #operation="{ scope, tableFrom }">
  15. <el-button size="small" @click="reissue(scope, tableFrom)">补卡</el-button>
  16. </template>
  17. <!-- 自定义弹框内容 -->
  18. <template #dialog="{ form }">
  19. <el-form :model="form">
  20. <el-form-item>
  21. <div class="as-layout-horizontal">
  22. <el-input v-model="form.crud" type="input" placeholder="读新卡信息" />
  23. <el-button type="primary" icon="CreditCard" style="margin-left: 10px;">读卡</el-button>
  24. </div>
  25. </el-form-item>
  26. <el-form-item>
  27. <el-input v-model="form.crud" disabled type="input" :placeholder="form.four" />
  28. </el-form-item>
  29. </el-form>
  30. </template>
  31. <!-- 弹窗页脚 -->
  32. <template #footer>
  33. <span>
  34. <el-button @click="crudRef.dialogFormVisible = false">取消</el-button>
  35. <el-button type="primary">提交</el-button>
  36. </span>
  37. </template>
  38. </crud-template>
  39. </template>
  40. <script setup lang="ts">
  41. // @ts-ignore crudFrom模板
  42. import CrudTemplate from "@/crud/index.vue"
  43. import {
  44. Data
  45. } from '@/data/cardAfter/cardFillDo' //表单配置
  46. import {
  47. tableData
  48. } from "@/data/tableData" //表单数据
  49. import {
  50. ref,
  51. reactive
  52. } from 'vue'
  53. import axios from 'axios';
  54. import {
  55. getCurrentInstance
  56. } from 'vue'
  57. const {
  58. proxy
  59. }: any = getCurrentInstance();
  60. proxy.$request.get('api/user', {}, {
  61. baseURL: 'http://localhost:8080'
  62. }).then((res: {}) => {
  63. console.log(res);
  64. }).catch((err: {}) => {
  65. console.log(err);
  66. })
  67. const datas = reactive(Data);
  68. const crudRef = ref()
  69. const reissue = (scope: any, tableFrom: any) => {
  70. crudRef.value.dialogFormVisible = true
  71. crudRef.value.title = '补卡信息'
  72. }
  73. const options = [{
  74. value: 'Option1',
  75. label: '蓝色',
  76. },
  77. {
  78. value: 'Option2',
  79. label: '黄色',
  80. },
  81. {
  82. value: 'Option3',
  83. label: '黑色',
  84. },
  85. {
  86. value: 'Option4',
  87. label: '白色',
  88. },
  89. {
  90. value: 'Option5',
  91. label: '渐变绿色',
  92. },
  93. {
  94. value: 'Option6',
  95. label: '黄绿双拼色',
  96. },
  97. {
  98. value: 'Option7',
  99. label: '蓝白渐变色',
  100. },
  101. {
  102. value: 'Option8',
  103. label: '未确定',
  104. },
  105. {
  106. value: 'Option9',
  107. label: '绿色',
  108. },
  109. {
  110. value: 'Option10',
  111. label: '红色',
  112. },
  113. ]
  114. </script>
  115. <style lang="scss" scoped>
  116. </style>