seriesList.vue 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. <template>
  2. <div class="right" :style="{ height: height, width: width }">
  3. <div class="searchbox">
  4. <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
  5. <div class="search_content">
  6. <span>
  7. <svg t="1676477903545" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2780" width="16" height="16"><path d="M474.453333 884.053333c-225.28 0-409.6-184.32-409.6-409.6s184.32-409.6 409.6-409.6 409.6 184.32 409.6 409.6-184.32 409.6-409.6 409.6z m0-68.266666c187.733333 0 341.333333-153.6 341.333334-341.333334s-153.6-341.333333-341.333334-341.333333-341.333333 153.6-341.333333 341.333333 153.6 341.333333 341.333333 341.333334z m252.586667 54.613333c-13.653333-13.653333-10.24-37.546667 3.413333-47.786667s37.546667-10.24 47.786667 3.413334l64.853333 78.506666c13.653333 13.653333 10.24 37.546667-3.413333 47.786667s-37.546667 10.24-47.786667-3.413333l-64.853333-78.506667z" fill="#2c2c2c" p-id="2781"></path></svg>
  8. <span>筛选搜索</span>
  9. </span>
  10. <button type="button" class="el-button el-button--primary el-button--small">
  11. <span>查询搜索</span>
  12. </button>
  13. <button type="button" class="el-button el-button--default el-button--small">
  14. <span>重置</span>
  15. </button>
  16. </div>
  17. <div class="block">
  18. <div class="block_left">
  19. <div>
  20. <span class="demonstration">藏品名称(套):</span>
  21. </div>
  22. <div class="block_input">
  23. <el-input v-model="input" placeholder="请输入藏品名称" clearable ></el-input>
  24. </div>
  25. </div>
  26. <div class="block_right">
  27. <div>
  28. <span class="demonstration">创建时间:</span>
  29. </div>
  30. <el-date-picker v-model="value1" type="daterange" align="right" unlink-panels range-separator="至"
  31. start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions">
  32. </el-date-picker>
  33. </div>
  34. </div>
  35. </el-form>
  36. </div>
  37. <div class="total">
  38. <i class="el-icon-tickets" style="margin-right: 5px;"></i>
  39. <span>套系列表 共有</span>
  40. <span style="color: rgb(24, 144, 255);">{{ total1 }}</span>
  41. <span>条数据 </span>
  42. <button type="button" class="el-button el-button--default el-button--small total-but-add">
  43. <span>添加</span>
  44. </button>
  45. </div>
  46. <div class="list">
  47. <div>
  48. <div class="list-total">
  49. <el-radio-group v-model="radio1">
  50. <el-radio-button label="在售"></el-radio-button>
  51. <el-radio-button label="预售"></el-radio-button>
  52. <el-radio-button label="已过期"></el-radio-button>
  53. </el-radio-group>
  54. </div>
  55. </div>
  56. <div class="list-data">
  57. <el-table
  58. border="true"
  59. :data="tableData"
  60. style="width: 100%">
  61. <el-table-column
  62. align="center"
  63. label="ID"
  64. width="100">
  65. <template slot-scope="scope">
  66. <span >{{ scope.row.id }}</span>
  67. </template>
  68. </el-table-column>
  69. <el-table-column
  70. align="center"
  71. label="商品名称(套)"
  72. width="200">
  73. <template slot-scope="scope">
  74. <span >{{ scope.row.name }}</span>
  75. </template>
  76. </el-table-column>
  77. <el-table-column
  78. align="center"
  79. label="创建时间"
  80. width="200">
  81. <template slot-scope="scope">
  82. <span >{{ scope.row.date }}</span>
  83. </template>
  84. </el-table-column>
  85. <el-table-column
  86. align="center"
  87. label="展示时间"
  88. width="200">
  89. <template slot-scope="scope">
  90. <span >{{ scope.row.time }}</span>
  91. </template>
  92. </el-table-column>
  93. <el-table-column
  94. align="center"
  95. label="藏品数量"
  96. width="198">
  97. <template slot-scope="scope">
  98. <span >{{ scope.row.num }}</span>
  99. </template>
  100. </el-table-column>
  101. <el-table-column
  102. align="center"
  103. label="状态"
  104. width="200">
  105. <template slot-scope="scope">
  106. <div slot="reference" class="name-wrapper">
  107. <el-tag size="medium">{{ scope.row.state }}</el-tag>
  108. </div>
  109. </template>
  110. </el-table-column>
  111. <el-table-column
  112. align="center"
  113. label="操作"
  114. width="200">
  115. <template>
  116. <div>
  117. <el-button
  118. type="text"
  119. size="small">
  120. 藏品列表
  121. </el-button>
  122. </div>
  123. <el-button
  124. type="text"
  125. size="small">
  126. 上架
  127. </el-button>
  128. <el-button
  129. type="text"
  130. size="small">
  131. 修改时间
  132. </el-button>
  133. </template>
  134. </el-table-column>
  135. </el-table>
  136. </div>
  137. <div class="paging-button">
  138. <el-pagination
  139. background
  140. layout="prev, pager, next"
  141. page-size="6"
  142. pager-count="6"
  143. current-page="1"
  144. hide-on-single-page="true"
  145. :total="total1">
  146. </el-pagination>
  147. </div>
  148. </div>
  149. </div>
  150. </template>
  151. <script>
  152. export default {
  153. data() {
  154. return {
  155. tableData: [
  156. {
  157. id:12121,
  158. name: '测试',
  159. date: '2016-05-02',
  160. time:'2023-02-10:00:00-2023-02-16:00:00:00',
  161. num: 2,
  162. state:'已上架'
  163. },
  164. {
  165. id:12121,
  166. name: '测试',
  167. date: '2016-05-02',
  168. time:'2023-02-10:00:00-2023-02-16:00:00:00',
  169. num: 2,
  170. state:'已上架'
  171. },
  172. {
  173. id:121,
  174. name: '测试1',
  175. date: '2016-05-02',
  176. time:'2023-02-10:00:00-2023-02-16:00:00:00',
  177. num: 21,
  178. state:'已上架'
  179. },
  180. {
  181. id:12121,
  182. name: '测试3',
  183. date: '2016-05-02',
  184. time:'2023-02-10:00:00-2023-02-16:00:00:00',
  185. num: 6,
  186. state:'已上架'
  187. },
  188. {
  189. id:12121,
  190. name: '测试',
  191. date: '2016-05-02',
  192. time:'2023-02-10:00:00-2023-02-16:00:00:00',
  193. num: 3,
  194. state:'已上架'
  195. },
  196. {
  197. id:12121,
  198. name: '测试',
  199. date: '2016-05-02',
  200. time:'2023-02-10:00:00-2023-02-16:00:00:00',
  201. num: 2,
  202. state:'已上架'
  203. }],
  204. pickerOptions: {
  205. shortcuts: [{
  206. text: '最近一周',
  207. onClick(picker) {
  208. const end = new Date();
  209. const start = new Date();
  210. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  211. picker.$emit('pick', [start, end]);
  212. }
  213. }, {
  214. text: '最近一个月',
  215. onClick(picker) {
  216. const end = new Date();
  217. const start = new Date();
  218. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  219. picker.$emit('pick', [start, end]);
  220. }
  221. }, {
  222. text: '最近三个月',
  223. onClick(picker) {
  224. const end = new Date();
  225. const start = new Date();
  226. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  227. picker.$emit('pick', [start, end]);
  228. }
  229. }]
  230. },
  231. value1: '',
  232. input: '',
  233. radio1:"在售",
  234. total1:6,
  235. };
  236. },
  237. methods: {
  238. }
  239. };
  240. </script>
  241. <style scoped>
  242. .list-data{
  243. border: 1px solid #ebebeb;
  244. margin: -1px 15px 20px 20px;
  245. }
  246. .paging-button{
  247. margin-left: 1100px;
  248. }
  249. .list-total{
  250. margin-left: 20px;
  251. }
  252. .total-but-add{
  253. float: right;
  254. margin-top: -5px;
  255. }
  256. .block_left,.block_right {
  257. text-align:center;
  258. line-height: 36px;
  259. font-size: 14px;
  260. color: #606266;
  261. }
  262. .block_right{
  263. margin-left: 60px;
  264. }
  265. .block span{
  266. padding-left: 20px;
  267. margin-bottom: -20px;
  268. }
  269. .block div{
  270. float: left;
  271. text-align:center
  272. }
  273. .block{
  274. margin-top: 34px;
  275. }
  276. .block_input{
  277. width: 400px;
  278. }
  279. .search_content{
  280. margin-bottom: 20px;
  281. }
  282. .searchbox button {
  283. float: right;
  284. margin-left: 15px;
  285. }
  286. .searchbox,.total{
  287. border: 1px solid #ebebeb;
  288. margin: 20px 15px 20px 20px;
  289. padding: 20px;
  290. border-radius: 4px;
  291. height: 160px;
  292. }
  293. .total{
  294. border: 1px solid #ebebeb;
  295. margin: 20px 15px 20px 20px;
  296. padding: 20px;
  297. border-radius: 4px;
  298. height: 62px;
  299. }
  300. .up {
  301. width: 96%;
  302. height: 170px;
  303. margin-top: 20px;
  304. margin-left: 2%;
  305. border: 1px solid #ccc;
  306. border-radius: 4px;
  307. }
  308. .up-title {
  309. font-size: 20px;
  310. width: 20%;
  311. margin-left: 20px;
  312. margin-top: 20px;
  313. float: left;
  314. }
  315. .btn {
  316. float: right;
  317. padding-right: 3%;
  318. margin-top: 2.5%;
  319. }
  320. .up-input {
  321. width: 250px;
  322. margin-left: 15px;
  323. }
  324. .up-input-title {
  325. margin-left: 40px;
  326. float: left;
  327. }
  328. .up-input-right {
  329. margin-left: 15px;
  330. width: 500px;
  331. }
  332. .up-input-title-right {
  333. width: 800px;
  334. margin-left: 450px;
  335. }
  336. .left-up {
  337. width: 80%;
  338. float: left;
  339. height: 37px;
  340. margin-top: 50px;
  341. }
  342. .right-up {
  343. width: 16%;
  344. margin-top: 2%;
  345. float: right;
  346. }
  347. .anniu {
  348. padding-right: 5%;
  349. }
  350. .down {
  351. margin-top: 40px;
  352. }
  353. .down-add {
  354. padding: 10px;
  355. margin: 0 27px;
  356. border: 1px solid #ccc;
  357. border-radius: 2px
  358. }
  359. .down-title {
  360. padding-top: 10px;
  361. color: #303133;
  362. }
  363. .down-table {
  364. margin-top: 15px;
  365. text-align: center;
  366. margin: 35px 27px;
  367. }
  368. .el-table .el-table__header-wrapper th,
  369. .el-table .el-table__fixed-header-wrapper th {
  370. word-break: break-word;
  371. /* background-color: #f8f8f9; */
  372. color: #515a6e;
  373. height: 40px;
  374. font-size: 13px;
  375. text-align: center;
  376. }
  377. .bottom-number {
  378. padding-top: 5px;
  379. color: #303133;
  380. float: right;
  381. }
  382. .bottom-page {
  383. float: right;
  384. }
  385. .el-icon-search {
  386. padding-right: 10px;
  387. }
  388. .btn-delete {
  389. margin-left: 20px;
  390. }
  391. /**
  392. 自适应
  393. */
  394. /* .demonstration{
  395. width: 50%;
  396. } */
  397. .right {
  398. float: none;
  399. width: 100%;
  400. height: 100%;
  401. /* background-color: #9dc3e6; */
  402. }
  403. </style>