shenqing.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <div style="height: 100vh;width: 100%;background-color: white;overflow-y: auto;">
  3. <el-tabs
  4. v-model="activeName"
  5. type="card"
  6. class="demo-tabs"
  7. @tab-click="handleClick"
  8. >
  9. <el-tab-pane label="全部" name="first">
  10. <div style="display: flex;align-items: center;line-height: 1.5;">
  11. <div style="margin-left: 1%;">流程单号:</div>
  12. <el-input v-model="input" style="width: 15%;margin-left: 1%;" />
  13. <div style="margin-left: 5%;">信息资源名称:</div>
  14. <el-input v-model="input" style="width: 15%;margin-left: 1%;" />
  15. <el-button type="primary" @click="showAdd" size="mini" style="margin-left:5%;">搜索</el-button>
  16. </div>
  17. <el-table
  18. style="margin-top: 1%;width: 98%;margin-left: 1%;overflow: auto;"
  19. :data="tableDataCan"
  20. :cell-style="{ textAlign: 'center',padding:'3px 0px' }"
  21. :header-cell-style="{fontSize: '14px', textAlign: 'center', }"
  22. max-height="45vh"
  23. :row-style="{ height: heightAll*0.01+'px',fontSize: '17px',textAlign:'center' }"
  24. border>
  25. <el-table-column prop="parName" label="流程单号">
  26. </el-table-column>
  27. <el-table-column prop="parName" label="信息资源名称">
  28. </el-table-column>
  29. <el-table-column prop="parType" label="资源类型" >
  30. </el-table-column>
  31. <el-table-column prop="parLine" label="服务">
  32. </el-table-column>
  33. <el-table-column prop="parNote" label="操作" width="120">
  34. <template #default="scope">
  35. <el-button type="danger" @click="delCan(scope.$index, scope.row)" text size="mini" style="margin-left: 0%;">删除</el-button>
  36. </template>
  37. </el-table-column>
  38. </el-table>
  39. </el-tab-pane>
  40. <el-tab-pane label="已通过" name="second">
  41. </el-tab-pane>
  42. <el-tab-pane label="流程中" name="third">
  43. </el-tab-pane>
  44. <el-tab-pane label="已终止" name="fourth">
  45. </el-tab-pane>
  46. </el-tabs>
  47. </div>
  48. </template>
  49. <script setup>
  50. import { ref, onMounted } from 'vue';
  51. import * as echarts from 'echarts';
  52. const activeName = ref('first');
  53. onMounted(() => {
  54. });
  55. </script>
  56. <style scoped>
  57. .triangle-border {
  58. width: 40px; /* 定义三角形的“容器”宽度 */
  59. height: 40px; /* 定义三角形的“容器”高度 */
  60. background-color: #33C358; /* 三角形的填充色 */
  61. /* 关键:定义多边形的三个顶点 */
  62. /* 三个点依次是:右上角(100% 0), 右下角(100% 100%), 左上角(0 0) */
  63. clip-path: polygon(100% 0, 100% 100%, 0 0);
  64. }
  65. </style>