disguise-dialog.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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="供应商名称" prop="name" align="center"></el-table-column>
  33. <el-table-column label="联系人" prop="linkMan" align="center"></el-table-column>
  34. <el-table-column label="手机号" prop="contractMobile" align="center">
  35. <template slot-scope="{ row }">
  36. {{ row.contractMobile ? row.contractMobile : '---' }}
  37. </template>
  38. </el-table-column>
  39. <el-table-column label="供应商状态" prop="status" align="center">
  40. <template slot-scope="{ row }">
  41. <el-tag v-if="row.status === 90" type="success" size="small">已上线</el-tag>
  42. </template>
  43. </el-table-column>
  44. </el-table>
  45. <!-- 页码 -->
  46. <pagination
  47. :total="total"
  48. :page-sizes="[100, 200]"
  49. :page-size="100"
  50. :page.sync="listQuery.pageNum"
  51. :limit.sync="listQuery.pageSize"
  52. @pagination="getShopList"
  53. ></pagination>
  54. <div slot="footer">
  55. <el-button @click="handleCanle"> 取 消 </el-button>
  56. <el-button type="primary" :disabled="disabled" @click="handleConfirm"> 确 定 </el-button>
  57. </div>
  58. </el-dialog>