瀏覽代碼

金控集团其他用户认证更新

guhongwei 5 年之前
父節點
當前提交
b303e1b52f
共有 4 個文件被更改,包括 16 次插入13 次删除
  1. 6 6
      src/layout/companyidentify/detailInfo.vue
  2. 5 0
      src/store/companyidentify.js
  3. 4 6
      src/views/companyidentify/detail.vue
  4. 1 1
      vue.config.js

+ 6 - 6
src/layout/companyidentify/detailInfo.vue

@@ -9,12 +9,11 @@
             </el-form-item>
             </el-form-item>
           </span>
           </span>
           <el-form-item label="营业执照图片:">
           <el-form-item label="营业执照图片:">
-            <el-image :src="ruleForm.business_license"></el-image>
+            <el-image :src="ruleForm.business_license" style="width:100px"></el-image>
           </el-form-item>
           </el-form-item>
           <el-form-item label="企业名称:">
           <el-form-item label="企业名称:">
             <span>{{ ruleForm.company_name }}</span>
             <span>{{ ruleForm.company_name }}</span>
           </el-form-item>
           </el-form-item>
-
           <el-form-item label="成立日期:">
           <el-form-item label="成立日期:">
             <span>{{ ruleForm.establish_date }}</span>
             <span>{{ ruleForm.establish_date }}</span>
           </el-form-item>
           </el-form-item>
@@ -72,10 +71,10 @@
             <span>{{ ruleForm.introduction }}</span>
             <span>{{ ruleForm.introduction }}</span>
           </el-form-item>
           </el-form-item>
           <el-form-item label="身份证正面图:">
           <el-form-item label="身份证正面图:">
-            <el-image :src="ruleForm.card_front"></el-image>
+            <el-image :src="ruleForm.card_front" style="width:100px"></el-image>
           </el-form-item>
           </el-form-item>
           <el-form-item label="身份证背面图:">
           <el-form-item label="身份证背面图:">
-            <el-image :src="ruleForm.card_back"></el-image>
+            <el-image :src="ruleForm.card_back" style="width:100px"></el-image>
           </el-form-item>
           </el-form-item>
           <el-form-item label="法定代表人:">
           <el-form-item label="法定代表人:">
             <span>{{ ruleForm.representative }}</span>
             <span>{{ ruleForm.representative }}</span>
@@ -88,7 +87,7 @@
           </el-form-item>
           </el-form-item>
           <span v-if="ruleForm.status === '0'">
           <span v-if="ruleForm.status === '0'">
             <el-form-item>
             <el-form-item>
-              <el-button type="primary" @click="submitForm('ruleForm')">认证通过</el-button>
+              <el-button type="primary" @click="submitForm()">认证通过</el-button>
               <el-button type="danger" @click="resetForm('ruleForm')">认证失败</el-button>
               <el-button type="danger" @click="resetForm('ruleForm')">认证失败</el-button>
             </el-form-item>
             </el-form-item>
           </span>
           </span>
@@ -127,7 +126,8 @@ export default {
       this.$emit('san', code);
       this.$emit('san', code);
     },
     },
 
 
-    submitForm(ruleForm) {
+    submitForm() {
+      this.ruleForm.status = '1';
       this.$emit('submitForm', { data: this.ruleForm });
       this.$emit('submitForm', { data: this.ruleForm });
     },
     },
     resetForm(ruleForm) {
     resetForm(ruleForm) {

+ 5 - 0
src/store/companyidentify.js

@@ -4,6 +4,7 @@ import _ from 'lodash';
 Vue.use(Vuex);
 Vue.use(Vuex);
 const api = {
 const api = {
   otheruserInfo: `/api/financial/companyidentify`,
   otheruserInfo: `/api/financial/companyidentify`,
+  otheruserStatus: `/api/financial/companyidentify/status`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -29,6 +30,10 @@ const actions = {
     const res = await this.$axios.$delete(`${api.otheruserInfo}/${payload}`);
     const res = await this.$axios.$delete(`${api.otheruserInfo}/${payload}`);
     return res;
     return res;
   },
   },
+  async updateStatus({ commit }, { id, ...data }) {
+    const res = await this.$axios.$post(`${api.otheruserStatus}/${id}`, data);
+    return res;
+  },
 };
 };
 export default {
 export default {
   namespaced: true,
   namespaced: true,

+ 4 - 6
src/views/companyidentify/detail.vue

@@ -34,7 +34,7 @@ import detailTopInfo from '@/layout/common/detailTopInfo.vue';
 import detailTop from '@/layout/common/detailTop.vue';
 import detailTop from '@/layout/common/detailTop.vue';
 import detailInfo from '@/layout/companyidentify/detailInfo.vue';
 import detailInfo from '@/layout/companyidentify/detailInfo.vue';
 import { createNamespacedHelpers } from 'vuex';
 import { createNamespacedHelpers } from 'vuex';
-const { mapActions } = createNamespacedHelpers('companyidentify');
+const { mapActions: companyidentify } = createNamespacedHelpers('companyidentify');
 const { mapActions: profession } = createNamespacedHelpers('profession');
 const { mapActions: profession } = createNamespacedHelpers('profession');
 
 
 export default {
 export default {
@@ -64,7 +64,7 @@ export default {
     },
     },
   },
   },
   methods: {
   methods: {
-    ...mapActions(['query', 'delete', 'fetch', 'update']),
+    ...companyidentify(['query', 'delete', 'fetch', 'update', 'updateStatus']),
     ...profession({ query: 'query', create: 'create' }),
     ...profession({ query: 'query', create: 'create' }),
     async searchquery() {
     async searchquery() {
       let pcode = 0;
       let pcode = 0;
@@ -104,10 +104,8 @@ export default {
     },
     },
 
 
     // 提交
     // 提交
-    submitForm(ruleForm) {
-      this.ruleForm.status = 1;
-      console.log(this.ruleForm);
-      let res = this.update(this.ruleForm);
+    async submitForm({ data }) {
+      const res = await this.updateStatus(data);
       this.$checkRes(res, '认证成功', '发布失败');
       this.$checkRes(res, '认证成功', '发布失败');
       this.$router.push({ path: '/companyidentify/index' });
       this.$router.push({ path: '/companyidentify/index' });
     },
     },

+ 1 - 1
vue.config.js

@@ -34,7 +34,7 @@ module.exports = {
         ws: true,
         ws: true,
       },
       },
       '/api': {
       '/api': {
-        target: 'http://10.16.9.108:9001',
+        target: 'http://free.liaoningdoupo.com',
         changeOrigin: true,
         changeOrigin: true,
         ws: true,
         ws: true,
       },
       },