disguise-dialog.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <el-dialog
  2. title="添加商品"
  3. :visible.sync="dialogVisible"
  4. width="900px"
  5. :close-on-click-modal="false"
  6. :show-close="false"
  7. >
  8. <div class="filter-container">
  9. <div class="filter-control">
  10. <span>商品名称:</span>
  11. <el-input
  12. v-model="listQuery.shopName"
  13. placeholder="商品名称"
  14. clearable
  15. style="width: 160px"
  16. @keyup.enter.native="getList"
  17. @clear="getList"></el-input>
  18. </div>
  19. <div class="filter-control">
  20. <el-button type="primary" @click="getList"> 查询 </el-button>
  21. </div>
  22. </div>
  23. <el-table
  24. ref="table"
  25. v-loading="isLoading"
  26. :data="list"
  27. height="400px"
  28. border
  29. @selection-change="handleSelectionChange"
  30. >
  31. <el-table-column type="selection" width="55" :selectable="selectable"></el-table-column>
  32. <el-table-column label="商品图片" align="center" prop="image" width="80">
  33. <template slot-scope="{row}">
  34. <img :src="row.image" :alt="row.name" style="width: 40px;height: 40px;">
  35. </template>
  36. </el-table-column>
  37. <el-table-column label="商品名称" prop="name" align="center"></el-table-column>
  38. </el-table>
  39. <!-- 页码 -->
  40. <pagination
  41. :total="total"
  42. :page-sizes="[100, 200]"
  43. :page-size="100"
  44. :page.sync="listQuery.pageNum"
  45. :limit.sync="listQuery.pageSize"
  46. @pagination="getShopList"
  47. ></pagination>
  48. <div slot="footer">
  49. <el-button @click="handleCanle"> 取 消 </el-button>
  50. <el-button type="primary" :disabled="disabled" @click="handleConfirm"> 确 定 </el-button>
  51. </div>
  52. </el-dialog>