wq 5 years ago
parent
commit
7125a6c35e
34 changed files with 649 additions and 0 deletions
  1. 13 0
      src/layout/businessneed/claimForm.vue
  2. 13 0
      src/layout/businessneed/claimList.vue
  3. 13 0
      src/layout/businessneed/stockForm.vue
  4. 13 0
      src/layout/businessneed/stockList.vue
  5. 39 0
      src/layout/common/detailTop.vue
  6. 13 0
      src/layout/common/followSearchInfo.vue
  7. 13 0
      src/layout/common/needSearchInfo.vue
  8. 50 0
      src/layout/common/searchInfo.vue
  9. 41 0
      src/layout/common/topInfo.vue
  10. 13 0
      src/layout/done/followHistoryForm.vue
  11. 13 0
      src/layout/done/followHistoryList.vue
  12. 13 0
      src/layout/financeclaims/financeClaimInfo.vue
  13. 13 0
      src/layout/financeclaims/financeClaimsForm.vue
  14. 13 0
      src/layout/financeclaims/financeclaimsList.vue
  15. 13 0
      src/layout/follow/followForm.vue
  16. 13 0
      src/layout/follow/followList.vue
  17. 13 0
      src/layout/follow/followStcokList.vue
  18. 13 0
      src/layout/follow/followStockForm.vue
  19. 0 0
      src/store/claimneed.js
  20. 0 0
      src/store/financeclaim.js
  21. 0 0
      src/store/follow.js
  22. 0 0
      src/store/stockneed.js
  23. 81 0
      src/views/businessneed/claim.vue
  24. 13 0
      src/views/businessneed/claimDetail.vue
  25. 13 0
      src/views/businessneed/stock.vue
  26. 13 0
      src/views/businessneed/stockDetail.vue
  27. 13 0
      src/views/done/doneclaim.vue
  28. 13 0
      src/views/done/followHistoryDetail.vue
  29. 13 0
      src/views/financeclaims/financeClaimDetail.vue
  30. 13 0
      src/views/financeclaims/financeClaimIndex.vue
  31. 113 0
      src/views/follow/followDetail.vue
  32. 13 0
      src/views/follow/followStockDetail.vue
  33. 13 0
      src/views/follow/followindex.vue
  34. 13 0
      src/views/follow/followstock.vue

+ 13 - 0
src/layout/businessneed/claimForm.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "claimForm"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/businessneed/claimList.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "claimList.vue"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/businessneed/stockForm.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "stockForm"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/businessneed/stockList.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "stockList"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 39 - 0
src/layout/common/detailTop.vue

@@ -0,0 +1,39 @@
+<template>
+  <div id="detailTop">
+    <el-row>
+      <el-col :span="24">
+        <el-col :span="22" class="title">
+          信息管理
+        </el-col>
+        <el-col :span="2" class="btn">
+          <el-button type="text" icon="el-icon-arrow-left" @click="goBack">返回</el-button>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'detailTop',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {
+    goBack() {
+      this.$emit('goBack');
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.title {
+  padding: 10px 0;
+}
+.btn {
+  text-align: center;
+}
+</style>

+ 13 - 0
src/layout/common/followSearchInfo.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followSearchInfo"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/common/needSearchInfo.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "needSearchInfo"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 50 - 0
src/layout/common/searchInfo.vue

@@ -0,0 +1,50 @@
+<template>
+  <div id="searchInfo">
+    <el-row>
+      <el-col :span="24" class="info">
+        <el-col :span="10" class="input">
+          <el-input placeholder="请输入内容" v-model="input"> </el-input>
+        </el-col>
+        <el-col :span="2" class="btn">
+          <el-button type="primary" icon="el-icon-search" circle></el-button>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'searchInfo',
+  props: {},
+  components: {},
+  data: () => ({
+    input: '',
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.info {
+  padding: 15px 0;
+}
+.info .input {
+  padding: 6px 0;
+}
+.info .btn {
+  text-align: center;
+}
+
+/deep/.el-button {
+  color: #fff;
+  background-color: red;
+  border-color: red;
+}
+/deep/.el-input__inner {
+  height: 30px;
+  line-height: 30px;
+}
+</style>

+ 41 - 0
src/layout/common/topInfo.vue

@@ -0,0 +1,41 @@
+<template>
+  <div id="topInfo">
+    <el-row>
+      <el-col :span="24">
+        <el-col :span="22" style="padding: 13px 0px;">
+          <el-breadcrumb separator-class="el-icon-arrow-right">
+            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
+            <el-breadcrumb-item>{{ topTitle }}</el-breadcrumb-item>
+          </el-breadcrumb>
+        </el-col>
+        <el-col :span="2">
+          <span v-if="display === 'block'">
+            <el-button type="text" @click="clickBtn()" icon="el-icon-plus">添加信息</el-button>
+          </span>
+          <span v-else></span>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'topInfo',
+  props: {
+    topTitle: null,
+    display: null,
+  },
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {
+    clickBtn() {
+      this.$emit('clickBtn');
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 13 - 0
src/layout/done/followHistoryForm.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followHistoryForm"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/done/followHistoryList.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followHistoryList"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/financeclaims/financeClaimInfo.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "financeClaimInfo"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/financeclaims/financeClaimsForm.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "financeClaimsForm"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/financeclaims/financeclaimsList.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "financeclaimsList"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/follow/followForm.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followForm"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/follow/followList.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followList"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/follow/followStcokList.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followStcokList"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/layout/follow/followStockForm.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followStockForm"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 0 - 0
src/store/claimneed.js


+ 0 - 0
src/store/financeclaim.js


+ 0 - 0
src/store/follow.js


+ 0 - 0
src/store/stockneed.js


+ 81 - 0
src/views/businessneed/claim.vue

@@ -0,0 +1,81 @@
+<template>
+  <div id="index">
+    <el-col :span="24" class="debt">
+      <el-col :span="24" class="top">
+        <topInfo :topTitle="topTitle" :display="display" @clickBtn="clickBtn"></topInfo>
+      </el-col>
+      <el-col :span="24" class="search">
+        <searchInfo></searchInfo>
+      </el-col>
+      <el-col :span="24" class="main">
+        <claimList :debtTable="debtTable" :total="total" @deleteRow="deleteRow" @clickRest="clickRest"></claimList>
+      </el-col>
+    </el-col>
+  </div>
+</template>
+
+<script>
+import topInfo from '@/layout/common/topInfo.vue';
+import searchInfo from '@/layout/common/searchInfo.vue';
+import claimList from '@/layout/businessneed/claimList.vue';
+import { createNamespacedHelpers, mapGetters } from 'vuex';
+const { mapActions: otheruser } = createNamespacedHelpers('otheruser');
+const { mapActions: character } = createNamespacedHelpers('character');
+export default {
+  name: 'index',
+  props: {},
+  components: {
+    topInfo, //头部导航
+    searchInfo, //搜素
+    otheruserList, //其他用户列表
+  },
+  data: () => ({
+    topTitle: '其他用户',
+    display: 'none',
+    debtTable: [],
+    total: '',
+  }),
+  created() {
+    this.searchInfo();
+  },
+  computed: {},
+  methods: {
+    ...otheruser(['query', 'delete']),
+    ...character({ userquery: 'query' }),
+
+    ...otheruser(['query', 'delete', 'update']),
+    async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
+      const res = await this.query({ skip, limit, ...info });
+      this.$set(this, `debtTable`, res.data);
+      this.$set(this, `total`, res.total);
+    },
+    // 删除
+    async deleteRow(id) {
+      const res = await this.delete(id);
+      this.$checkRes(res, '删除成功', '删除失败');
+      this.searchInfo();
+    },
+    async clickRest(id) {
+      let data = {};
+      data.id = id;
+      data.passwd = '123456';
+      const res = await this.update(data);
+      if (res.errcode === 0) {
+        this.$message({
+          message: '密码重置成功',
+          type: 'success',
+        });
+      }
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.debt {
+  padding: 20px;
+}
+.top {
+  border-bottom: 1px solid #ccc;
+}
+</style>

+ 13 - 0
src/views/businessneed/claimDetail.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "claimDetail"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/views/businessneed/stock.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "stock"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/views/businessneed/stockDetail.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "stockDetail"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/views/done/doneclaim.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "doneclaim"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/views/done/followHistoryDetail.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followHistoryDetail"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/views/financeclaims/financeClaimDetail.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "financeClaimDetail"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/views/financeclaims/financeClaimIndex.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "financeClaimIndex"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 113 - 0
src/views/follow/followDetail.vue

@@ -0,0 +1,113 @@
+<template>
+    <div id="followDetail">
+        <el-row>
+            <el-col :span="24" class="debt">
+                <el-col :span="24" class="top">
+                    <topInfo :topTitle="topTitle" :display="display"></topInfo>
+                </el-col>
+                <el-col :span="24" class="main">
+                    <el-col :span="24" class="back">
+                        <detailTop @goBack="goBack"></detailTop>
+                    </el-col>
+                    <el-col :span="24" class="info">
+                        <followForm :ruleForm="followForm" @shouxin = "shouxin"></followForm>
+                    </el-col>
+                </el-col>
+            </el-col>
+        </el-row>
+    </div>
+</template>
+
+<script>
+  import topInfo from '@/layout/common/topInfo.vue';
+  import detailTop from '@/layout/common/detailTop.vue';
+  import followForm from '@/layout/follow/followForm.vue';
+  import { createNamespacedHelpers, mapGetters } from 'vuex';
+  const { mapActions: claimneed } = createNamespacedHelpers('claimneed');
+  export default {
+    name: 'followDetail',
+    props: {},
+    components: {
+      topInfo, //头部导航
+      detailTop, //头部返回
+      followForm, //关注债权需求详情
+    },
+    data: () => ({
+      display: 'none',
+      topTitle: '关注债权需求详情',
+      followForm: {},
+      charList: {
+        name: '10',
+      },
+    }),
+    created() {
+      this.searchInfo();
+    },
+    computed: {
+      id() {
+        return this.$route.query.id;
+      },
+      sxid(){
+        return this.$route.query.sxid;
+      },
+    },
+    methods: {
+      ...claimneed(['one']),
+      async searchInfo() {
+        if (this.id) {
+          const res = await this.one({id:this.id});
+          this.$set(this, `followForm`, res.data);
+        }
+      },
+      // 提交
+      // async submitForm({ data }) {
+      //   let res;
+      //   if (this.id) {
+      //     res = await this.update(data);
+      //     if (res.errcode === 0) {
+      //       this.$message({
+      //         message: '信息修改成功',
+      //         type: 'success',
+      //       });
+      //     }
+      //   } else {
+      //     res = await this.create(data);
+      //     if (res.errcode === 0) {
+      //       this.$message({
+      //         message: '信息创建成功',
+      //         type: 'success',
+      //       });
+      //     }
+      //   }
+      //   if (this.$checkRes(res)) this.resetForm();
+      //
+      //   console.log(res.data);
+      // },
+      // 关注
+      async shouxin({ data }) {
+
+      },
+      // 返回
+      goBack() {
+        this.$router.go(-1);
+      },
+    },
+  };
+</script>
+
+<style lang="less" scoped>
+    .debt {
+        padding: 20px;
+    }
+    .top {
+        border-bottom: 1px solid #ccc;
+    }
+    .main {
+        border-radius: 10px;
+        margin: 20px 0 0 0;
+        box-shadow: 0 0 3px #666;
+    }
+    .main .back {
+        padding: 10px 0 10px 15px;
+    }
+</style>

+ 13 - 0
src/views/follow/followStockDetail.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followStockDetail"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/views/follow/followindex.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followindex"
+  };
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/views/follow/followstock.vue

@@ -0,0 +1,13 @@
+<template>
+    $END$
+</template>
+
+<script>
+  export default {
+    name: "followstock"
+  };
+</script>
+
+<style scoped>
+
+</style>