add.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <el-card shadow="never">
  3. <el-tabs v-model="activeName" @tab-click="handleClick">
  4. <el-tab-pane label="用户管理" name="first">
  5. <template>
  6. <el-table :data="tableData" style="width: 100%">
  7. <el-table-column prop="date" label="日期" width="180"></el-table-column>
  8. <el-table-column prop="name" label="姓名" width="180"></el-table-column>
  9. <el-table-column prop="address" label="地址"></el-table-column>
  10. </el-table>
  11. </template>
  12. </el-tab-pane>
  13. <el-tab-pane label="配置管理" name="second">配置管理2</el-tab-pane>
  14. <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
  15. <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane>
  16. </el-tabs>
  17. </el-card>
  18. <!-- <el-card shadow="never">
  19. <el-form ref="form" :model="form" label-width="0" stripe>
  20. <el-form-item>
  21. <yun-table :columns="columns" :common-search="false" :pagination="false" tabs="type" toolbar=""
  22. :common-search="false" :search-form-visible="false" :extend="extend">
  23. </yun-table>
  24. </el-form-item>
  25. <el-form-item>
  26. <el-button type="primary" @click="onSubmit">立即创建</el-button>
  27. <el-button>取消</el-button>
  28. </el-form-item>
  29. </el-form>
  30. </el-card> -->
  31. </template>
  32. <script>
  33. import table from "@components/Table.js";
  34. export default {
  35. components: { 'YunTable': table },
  36. data() {
  37. return {
  38. activeName: 'first',
  39. tableData: [{
  40. date: '2016-05-02',
  41. name: '王小虎',
  42. address: '上海市普陀区金沙江路 1518 弄'
  43. }, {
  44. date: '2016-05-04',
  45. name: '王小虎',
  46. address: '上海市普陀区金沙江路 1517 弄'
  47. }, {
  48. date: '2016-05-01',
  49. name: '王小虎',
  50. address: '上海市普陀区金沙江路 1519 弄'
  51. }, {
  52. date: '2016-05-03',
  53. name: '王小虎',
  54. address: '上海市普陀区金沙江路 1516 弄'
  55. }]
  56. };
  57. },
  58. /*data: {
  59. extend: {
  60. index_url: 'general/category/index',
  61. },
  62. columns: [
  63. { checkbox: true },
  64. { field: 'type', title: __('规格'), width: 120, searchList: Yunqi.data.typeList},
  65. { field: 'nickname', title: __('包装箱'), formatter: Yunqi.formatter.select },
  66. {
  67. field: 'weigh', title: __('价格'), width: 220, formatter: function (data) {
  68. let html = Yunqi.formatter.html;
  69. html.value = `<input class="input" value='' />`;
  70. return html;
  71. }
  72. },
  73. ],
  74. row: Yunqi.data.row,
  75. tableData: [
  76. {
  77. "name": "哈密",
  78. "num": "3940.00"
  79. },
  80. {
  81. "name": "紫薯",
  82. "num": "8915.00"
  83. }
  84. ],
  85. value: "",
  86. form: {
  87. nameValue: null,
  88. },
  89. options: [],//品种
  90. },*/
  91. methods: {
  92. handleClick(tab, event) {
  93. console.log(tab, event);
  94. }
  95. }
  96. }
  97. </script>
  98. <style>
  99. .input {
  100. border: none;
  101. width: 100%;
  102. box-shadow: 0 0 0 1px #dcdfe6 inset;
  103. line-height: 24px;
  104. min-height: 31px;
  105. caret-color: #999;
  106. box-sizing: border-box;
  107. padding: 0 10px;
  108. border-radius: 4px;
  109. }
  110. .input:active {
  111. border: none !important;
  112. border-color: #fff !important;
  113. }
  114. .input:focus {
  115. outline: none;
  116. border: none !important;
  117. border-color: #fff !important;
  118. border: 1px solid #fff !important;
  119. }
  120. .button {
  121. display: flex;
  122. align-items: center;
  123. justify-content: flex-end;
  124. padding-top: 15px;
  125. }
  126. </style>