wholeList.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div id="auditList">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
  6. <p class="textOver">
  7. <span @click="$router.push({ path: '/userCenter/matter/detailinfo', query: { id: item.id } })">{{ item.product_name }}</span>
  8. </p>
  9. <p>
  10. <span class="ptwo"><span>营销人名称:</span>{{ item.market_username || '暂无' }}</span>
  11. <span class="ptwo"><span>购买人名称:</span>{{ item.username || '暂无' }}</span>
  12. </p>
  13. <p class="newptwo">
  14. <span>状态:</span
  15. >{{
  16. item.status == '0' ? '正在洽谈' : item.status == '1' ? '达成意向' : item.status == '2' ? '我的交易' : item.status == '4' ? '合同审核中' : '未识别'
  17. }}
  18. </p>
  19. <p class="textOver"><span>说明:</span>{{ item.description || '暂无' }}</p>
  20. </el-col>
  21. </el-col>
  22. </el-row>
  23. </div>
  24. </template>
  25. <script>
  26. import { mapState, createNamespacedHelpers } from 'vuex';
  27. const { mapActions: transaction } = createNamespacedHelpers('transaction');
  28. export default {
  29. name: 'auditList',
  30. props: {},
  31. components: {},
  32. data: function() {
  33. return {
  34. list: [],
  35. };
  36. },
  37. created() {
  38. this.searchInfo();
  39. },
  40. methods: {
  41. ...transaction({ transactionList: 'query', transactiondtetle: 'delete', shenheupdate: 'update' }),
  42. async searchInfo({ skip = 0, limit = 1000, ...info } = {}) {
  43. let userid = this.user.uid;
  44. let market_userid = this.user.uid;
  45. const res = await this.transactionList({ skip, limit, userid, ...info });
  46. const arr = await this.transactionList({ skip, limit, market_userid, ...info });
  47. var newData = res.data.concat(arr.data);
  48. if (this.$checkRes(newData)) {
  49. this.$set(this, `list`, newData);
  50. }
  51. },
  52. submit() {
  53. console.log('submit');
  54. },
  55. },
  56. computed: {
  57. ...mapState(['user']),
  58. pageTitle() {
  59. return `${this.$route.meta.title}`;
  60. },
  61. },
  62. metaInfo() {
  63. return { title: this.$route.meta.title };
  64. },
  65. };
  66. </script>
  67. <style lang="less" scoped>
  68. .info {
  69. border-top: 1px solid #f5f5f5;
  70. .list {
  71. background: #fff;
  72. padding: 0 10px;
  73. border-bottom: 1px solid #ccc;
  74. p {
  75. font-size: 14px;
  76. color: #000;
  77. padding: 5px 0;
  78. }
  79. p:first-child {
  80. font-size: 16px;
  81. }
  82. p:nth-child(2) .ptwo {
  83. display: inline-block;
  84. width: 50%;
  85. }
  86. p:nth-child(2) .ptwo span:first-child {
  87. color: #ccc;
  88. }
  89. p:last-child span {
  90. color: #ccc;
  91. }
  92. }
  93. }
  94. .newptwo {
  95. color: #ccc !important;
  96. }
  97. </style>