wuhongyu 5 tahun lalu
induk
melakukan
a8fbb26e7d

+ 17 - 3
src/layout/enterprise/context.vue

@@ -28,6 +28,7 @@
                           <el-col :span="6" class="fbListCenterR">
                             <el-col :span="24" class="bainji">
                               <el-link :underline="false" @click="jiaoyisuccess(item)">同意交易</el-link>
+                              <el-link :underline="false" @click="deteles(item)">删除</el-link>
                             </el-col>
                           </el-col>
                         </el-col>
@@ -69,7 +70,9 @@
                           </el-col>
                           <el-col :span="6" class="fbListCenterR">
                             <el-col :span="24" class="bainji">
-                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                              <el-link :underline="false" @click="deteles(item)">删除</el-link>
+                              <el-link :underline="false" @click="success(item)">审核通过</el-link>
+                              <el-link :underline="false" @click="shibai(item)">审核失败</el-link>
                             </el-col>
                           </el-col>
                         </el-col>
@@ -111,7 +114,7 @@
                           </el-col>
                           <el-col :span="6" class="fbListCenterR">
                             <el-col :span="24" class="bainji">
-                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                              <el-link :underline="false" @click="deteles(item)">删除</el-link>
                             </el-col>
                           </el-col>
                         </el-col>
@@ -153,7 +156,7 @@
                           </el-col>
                           <el-col :span="6" class="fbListCenterR">
                             <el-col :span="24" class="bainji">
-                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                              <el-link :underline="false" @click="deteles(item)">删除</el-link>
                             </el-col>
                           </el-col>
                         </el-col>
@@ -220,6 +223,17 @@ export default {
     messFabu() {
       this.$router.push({ path: '/enterprise/enterprisexuqiu' });
     },
+
+    success(item) {
+      this.$emit('success', { item });
+    },
+
+    shibai(item) {
+      this.$emit('shibai', { item });
+    },
+    jiaoyisuccess(item) {
+      this.$emit('jiaoyisuccess', { item });
+    },
     handleClick(tab, event) {
       console.log(tab, event);
     },

+ 1 - 1
src/layout/enterprise/contextfabuxx.vue

@@ -285,7 +285,7 @@
                     </el-pagination>
                   </el-col>
                 </el-tab-pane> -->
-<!-- 
+                <!-- 
                 <el-tab-pane label="交易取消" name="fgrr">
                   <el-col :span="24" class="info">
                     <el-col :span="24" v-for="(item, index) in jiaoyilist" :key="index">

+ 23 - 2
src/views/enterprise/enterprisedg.vue

@@ -16,6 +16,9 @@
       :faqilist="faqilist"
       :totalfaqi="totalfaqi"
       @handleCurrentChangefaqi="handleCurrentChangefaqi"
+      @jiaoyisuccess="jiaoyisuccess"
+      @shibai="shibai"
+      @success="success"
     ></enterprisedg-detail>
   </div>
 </template>
@@ -60,10 +63,9 @@ export default {
   },
   computed: {},
   methods: {
-    ...transaction({ transactionList: 'query', transactiondtetle: 'delete' }),
+    ...transaction({ transactionList: 'query', transactiondtetle: 'delete', shenheupdate: 'update' }),
     ...login({ logout: 'logout', transactiondtetle: 'delete' }),
     // 查询
-
     async faqijiaoyi({ skip = 0, limit = 3, ...info } = {}) {
       let status = 0;
       skip = this.skip;
@@ -107,6 +109,25 @@ export default {
         this.$set(this, `total3`, res.total);
       }
     },
+    //审核
+    async jiaoyisuccess({ item }) {
+      item.status = '1';
+      let res = await this.shenheupdate(item);
+      this.jiaoyi1();
+      this.$checkRes(res, '同意成功', '审核失败');
+    },
+    async shibai({ item }) {
+      item.status = '3';
+      let res = await this.shenheupdate(item);
+      this.$checkRes(res, '审核成功', '审核失败');
+      this.jiaoyi3();
+    },
+    async success({ item }) {
+      item.status = '2';
+      let res = await this.shenheupdate(item);
+      this.$checkRes(res, '审核成功', '审核失败');
+      this.jiaoyi2();
+    },
     //分页
     async handleCurrentChangefaqi({ skip, limit, currentPage }) {
       this.$set(this, `skip`, skip);

+ 2 - 1
src/views/enterprise/enterprisefabu.vue

@@ -41,6 +41,7 @@ const { mapActions: mapSite } = createNamespacedHelpers('site');
 const { mapActions: mapRecruit } = createNamespacedHelpers('market');
 const { mapActions: marketproduct } = createNamespacedHelpers('marketproduct');
 const { mapActions: transaction } = createNamespacedHelpers('transaction');
+const { mapActions: login } = createNamespacedHelpers('login');
 
 export default {
   name: 'adviserList',
@@ -92,7 +93,7 @@ export default {
     ...mapRecruit({ columnList: 'query', columnInfo: 'fetch' }),
     ...marketproduct({ productList: 'query', columnInfo: 'fetch', marketcerate: 'create', productdeltet: 'delete' }),
     ...transaction({ list: 'query', columnInfo: 'fetch', marketcerate: 'create', delete: 'delete', shenheupdate: 'update' }),
-
+    ...login({ logout: 'logout', transactiondtetle: 'delete' }),
     // 查询列表
     async searchInfo({ skip = 0, limit = 3, ...info } = {}) {
       skip = this.skip;

+ 4 - 3
src/views/enterprise/enterprisejb.vue

@@ -7,7 +7,7 @@
 <script>
 import enterprisejbDetail from '@/components/enterprise/enterprisejb.vue';
 import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
-
+const { mapActions: login } = createNamespacedHelpers('login');
 const { mapActions: market } = createNamespacedHelpers('market');
 export default {
   name: 'adviserList',
@@ -36,6 +36,7 @@ export default {
   },
   methods: {
     ...market(['fetch']),
+    ...login({ logout: 'logout', transactiondtetle: 'delete' }),
     // 查询基本信息
     async searchInfo() {
       let res = await this.fetch(this.user.userid);
@@ -56,7 +57,7 @@ export default {
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {
- this.$router.push({ path: '/' });
+        this.$router.push({ path: '/' });
       } else if (id === '注销账号') {
         this.logout();
         this.$message({
@@ -66,7 +67,7 @@ export default {
         this.toLogin();
       }
     },
-      async toLogin() {
+    async toLogin() {
       this.$router.push({ path: '/' });
     },
   },

+ 2 - 1
src/views/enterprise/enterprisexuqiu.vue

@@ -18,6 +18,7 @@ import enterprisexuqiuDetail from '@/components/enterprise/enterprisexuqiu.vue';
 import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
 const { mapActions: mapMarkettype } = createNamespacedHelpers('markettype');
 const { mapActions: mapMarketproduct } = createNamespacedHelpers('marketproduct');
+const { mapActions: login } = createNamespacedHelpers('login');
 
 export default {
   name: 'adviserList',
@@ -62,7 +63,7 @@ export default {
   methods: {
     ...mapMarkettype({ markettypeList: 'query' }),
     ...mapMarketproduct({ productFetch: 'fetch', productCreate: 'create', productUpdate: 'update' }),
-
+    ...login({ logout: 'logout', transactiondtetle: 'delete' }),
     async searchInfo() {
       if (this.$route.query.id) {
         const res = await this.productFetch(this.id);

+ 2 - 0
src/views/enterprise/enterprisexx.vue

@@ -8,6 +8,7 @@
 import enterprisexxDetail from '@/components/enterprise/enterprisexx.vue';
 import { createNamespacedHelpers, mapGetters } from 'vuex';
 const { mapActions: mapSite } = createNamespacedHelpers('site');
+const { mapActions: login } = createNamespacedHelpers('login');
 export default {
   name: 'adviserList',
   props: {},
@@ -29,6 +30,7 @@ export default {
   created() {},
   computed: {},
   methods: {
+    ...login({ logout: 'logout', transactiondtetle: 'delete' }),
     async onsaveClick({ id }) {
       console.log(id);
       if (id === '基本信息') {

+ 2 - 0
src/views/enterprise/xiugai.vue

@@ -9,6 +9,7 @@ import xiugaiDetail from '@/components/enterprise/xiugai.vue';
 import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
 const { mapActions: mapSite } = createNamespacedHelpers('site');
 const { mapActions: mapMarket } = createNamespacedHelpers('market');
+const { mapActions: login } = createNamespacedHelpers('login');
 export default {
   name: 'adviserList',
   props: {},
@@ -33,6 +34,7 @@ export default {
     ...mapState(['user']),
   },
   methods: {
+    ...login({ logout: 'logout', transactiondtetle: 'delete' }),
     ...mapMarket({ userFetch: 'fetch', userCreate: 'create', userUpdate: 'update' }),
     async onsaveClick({ id }) {
       console.log(id);