marketing_list.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <div class="app-container" v-if="isShow == 1">
  3. <div class="screen-container">
  4. <el-form :model="form" ref="form" :inline="false">
  5. <el-row :gutter="20">
  6. <el-col :xs="24" :ms="12" :lg="12">
  7. <el-form-item label="">
  8. <el-input
  9. v-model="input"
  10. placeholder="营销活动管理"
  11. size="small"
  12. ></el-input>
  13. </el-form-item>
  14. </el-col>
  15. <el-col :xs="24" :ms="12" :lg="12" class="tr">
  16. <el-form-item>
  17. <el-button type="primary" size="small">查询</el-button>
  18. <el-button size="small">重置</el-button>
  19. </el-form-item>
  20. </el-col>
  21. </el-row>
  22. </el-form>
  23. </div>
  24. <div class="btn-group">
  25. <el-row type="flex">
  26. <el-button type="primary" class="btn" size="small">导出</el-button>
  27. <el-button type="text" size="small">打印</el-button>
  28. </el-row>
  29. </div>
  30. <div class="mymain-container">
  31. <el-table :data="tableData" border style="width: 100%">
  32. <el-table-column fixed="left" label="操作" width="120" align="center">
  33. <template slot-scope="scope">
  34. <el-button type="text" size="small">编辑</el-button>
  35. <el-button type="text" size="small">删除</el-button>
  36. </template>
  37. </el-table-column>
  38. <el-table-column prop="name" label="状态" width="120" align="center">
  39. </el-table-column>
  40. <el-table-column prop="province" label="营销活动" align="center">
  41. </el-table-column>
  42. <el-table-column prop="city" label="生效时间" align="center">
  43. </el-table-column>
  44. <el-table-column prop="address" label="结束时间" align="center">
  45. </el-table-column>
  46. <el-table-column prop="zip" label="创建者" align="center">
  47. </el-table-column>
  48. <el-table-column prop="zip" label="创建时间" align="center">
  49. </el-table-column>
  50. <el-table-column prop="zip" label="更新者" align="center">
  51. </el-table-column>
  52. <el-table-column prop="zip" label="更新时间" align="center">
  53. </el-table-column>
  54. </el-table>
  55. <Pagination />
  56. </div>
  57. </div>
  58. <AddPolicy v-else-if="isShow == 2" />
  59. <AddCondition v-else-if="isShow == 3" />
  60. <Examine v-else-if="isShow == 4" />
  61. <AddModel v-else />
  62. </template>
  63. <script>
  64. import AddPolicy from "./components/AddPolicy";
  65. import AddModel from "./components/AddModel";
  66. import Pagination from "@/components/Pagination";
  67. import AddCondition from "./components/AddCondition";
  68. import Examine from "./components/Examine";
  69. export default {
  70. data() {
  71. return {
  72. input: "",
  73. isShow: 1,
  74. tableData: [
  75. {
  76. date: "2016-05-02",
  77. name: "王小虎",
  78. province: "上海",
  79. city: "普陀区",
  80. address: "上海市普陀区金沙江路 1518 弄",
  81. zip: 200333,
  82. },
  83. {
  84. date: "2016-05-04",
  85. name: "王小虎",
  86. province: "上海",
  87. city: "普陀区",
  88. address: "上海市普陀区金沙江路 1517 弄",
  89. zip: 200333,
  90. },
  91. {
  92. date: "2016-05-01",
  93. name: "王小虎",
  94. province: "上海",
  95. city: "普陀区",
  96. address: "上海市普陀区金沙江路 1519 弄",
  97. zip: 200333,
  98. },
  99. {
  100. date: "2016-05-03",
  101. name: "王小虎",
  102. province: "上海",
  103. city: "普陀区",
  104. address: "上海市普陀区金沙江路 1516 弄",
  105. zip: 200333,
  106. },
  107. ],
  108. form: {},
  109. options: {},
  110. value: "",
  111. imageUrl: "",
  112. };
  113. },
  114. components: {
  115. Examine,
  116. AddModel,
  117. AddPolicy,
  118. Pagination,
  119. AddCondition,
  120. },
  121. };
  122. </script>
  123. <style lang="scss" scoped>
  124. .btn {
  125. width: 80px;
  126. }
  127. .mpd {
  128. padding: 20px 0 0 0;
  129. }
  130. .select_height {
  131. width: 100%;
  132. }
  133. </style>