Przeglądaj źródła

解决方案跳转

xinfeng 6 lat temu
rodzic
commit
7bc031b887
45 zmienionych plików z 250 dodań i 221 usunięć
  1. 2 2
      dist/200.html
  2. 1 0
      dist/_nuxt/22b6c244ea7d7b6f083a.js
  3. 1 1
      dist/_nuxt/296514765f9341c93b91.js
  4. 0 1
      dist/_nuxt/b63d18239ee68298a014.js
  5. 2 2
      dist/index.html
  6. 2 2
      dist/login/index.html
  7. 2 2
      dist/main/404/index.html
  8. 2 2
      dist/main/artificial_order/index.html
  9. 2 2
      dist/main/artificial_orders/index.html
  10. 2 2
      dist/main/balance_change/index.html
  11. 2 2
      dist/main/cats copy/index.html
  12. 2 2
      dist/main/cats/index.html
  13. 2 2
      dist/main/cert_check/index.html
  14. 2 2
      dist/main/cert_edit/index.html
  15. 2 2
      dist/main/cert_pro/index.html
  16. 2 2
      dist/main/cloud_balance/index.html
  17. 2 2
      dist/main/cloud_developer/index.html
  18. 2 2
      dist/main/cloud_job/index.html
  19. 2 2
      dist/main/cloud_order copy/index.html
  20. 2 2
      dist/main/dev_check/index.html
  21. 2 2
      dist/main/dev_check_detail/index.html
  22. 2 2
      dist/main/dev_show/index.html
  23. 2 2
      dist/main/gongmall/index.html
  24. 2 2
      dist/main/group_list/index.html
  25. 2 2
      dist/main/index.html
  26. 2 2
      dist/main/job/index.html
  27. 2 2
      dist/main/jobs/index.html
  28. 2 2
      dist/main/orders/index.html
  29. 2 2
      dist/main/orders_detail/index.html
  30. 2 2
      dist/main/orders_frozen/index.html
  31. 2 2
      dist/main/outsource_bill/index.html
  32. 2 2
      dist/main/present_job_apply/index.html
  33. 2 2
      dist/main/publish_present/index.html
  34. 2 2
      dist/main/solution/index.html
  35. 2 2
      dist/main/solution_detail/index.html
  36. 2 2
      dist/main/user_bills/index.html
  37. 2 2
      dist/main/vip_manager/index.html
  38. 2 2
      dist/main/vip_order/index.html
  39. 2 2
      dist/main/vip_setting/index.html
  40. 2 2
      dist/main/wage_details/index.html
  41. 2 2
      dist/main/wage_settlement/index.html
  42. 2 2
      dist/main/wait_expend/index.html
  43. 2 2
      dist/main/withdraw/index.html
  44. 2 2
      dist/main/work_bill/index.html
  45. 166 137
      pages/main/index/solution_detail.vue

Plik diff jest za duży
+ 2 - 2
dist/200.html


Plik diff jest za duży
+ 1 - 0
dist/_nuxt/22b6c244ea7d7b6f083a.js


Plik diff jest za duży
+ 1 - 1
dist/_nuxt/296514765f9341c93b91.js


Plik diff jest za duży
+ 0 - 1
dist/_nuxt/b63d18239ee68298a014.js


Plik diff jest za duży
+ 2 - 2
dist/index.html


Plik diff jest za duży
+ 2 - 2
dist/login/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/404/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/artificial_order/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/artificial_orders/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/balance_change/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/cats copy/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/cats/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/cert_check/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/cert_edit/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/cert_pro/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/cloud_balance/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/cloud_developer/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/cloud_job/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/cloud_order copy/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/dev_check/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/dev_check_detail/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/dev_show/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/gongmall/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/group_list/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/job/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/jobs/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/orders/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/orders_detail/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/orders_frozen/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/outsource_bill/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/present_job_apply/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/publish_present/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/solution/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/solution_detail/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/user_bills/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/vip_manager/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/vip_order/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/vip_setting/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/wage_details/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/wage_settlement/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/wait_expend/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/withdraw/index.html


Plik diff jest za duży
+ 2 - 2
dist/main/work_bill/index.html


+ 166 - 137
pages/main/index/solution_detail.vue

@@ -9,7 +9,7 @@
         <el-image
           style="width: 50px; height: 50px"
           :src="detailData.verifying && detailData.verifying.icon_url"
-          :fit="fit"></el-image>
+          ></el-image>
       </el-col>
       <el-col :span="8">
         <el-button size="mini" @click="userinfo(detailData.verifying.uid)" type="info">用户信息</el-button>
@@ -39,7 +39,7 @@
         <el-image
           style="width: 50px; height: 50px"
           :src="detailData.companyInfo.base.logo"
-          :fit="fit"></el-image>
+          ></el-image>
       </el-col>
       <el-col :span="22">
         {{detailData.companyInfo.applyInfo.name}}
@@ -87,25 +87,29 @@
       <el-row style="padding: 5px">
         该企业已认证解决方案
       </el-row>
-      <el-row v-for="item in detailData.verifyList" :key="item.id"  style="padding: 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)">
+      <el-row v-for="item in detailData.verifyList" :key="item.id"
+        @click.native="jumpToDetail(item)"
+        style="padding: 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04); cursor: pointer;">
         <el-col :span="3">
           <el-image
             style="width: 100px; height: 100px"
             :src="item.images"
-            :fit="fit"></el-image>
+            ></el-image>
         </el-col>
         <el-col :span="15">
           <h3>{{item.title}}</h3>
           <br>
           <p>方案简介:{{item.description}}</p>
-          <p>成功案例:{{item.successful_case_list}}</p>
+          <p>成功案例:{{item.successCase || '暂未添加'}}</p>
         </el-col>
         <el-col :span="6">
-          <p>当前状态 <el-button size="mini">{{item.status}}</el-button></p>
+          <p>当前状态
+            <el-button size="mini">{{item.status}}</el-button>
+          </p>
           <br>
           <p>
             修改状态
-            <el-button size="mini" @click="updateStatus(item)" type="info">不通过 </el-button>
+            <el-button size="mini" @click.stop="updateStatus(item)" type="info">不通过</el-button>
           </p>
         </el-col>
       </el-row>
@@ -118,18 +122,20 @@
         <el-row style="padding: 5px">
           当前申请认证解决方案
         </el-row>
-        <el-row style="padding: 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)">
+        <el-row style="padding: 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04); cursor: pointer"
+          @click.native="jumpToDetail(detailData.verifying)"
+        >
           <el-col :span="3">
             <el-image
               style="width: 100px; height: 100px"
               :src="detailData.verifying.images"
-              :fit="fit"></el-image>
+              ></el-image>
           </el-col>
           <el-col :span="15">
             <h3>{{detailData.verifying.title}}</h3>
             <br>
             <p>方案简介:{{detailData.verifying.description}}</p>
-            <p>成功案例:{{detailData.verifying.successful_case_list}}</p>
+            <p>成功案例:{{detailData.verifying.successCase || '暂未添加'}}</p>
           </el-col>
           <el-col :span="6">
             <p>当前状态:{{detailData.verifying.status}}</p>
@@ -169,8 +175,9 @@
     </el-row>
     <br>
     <el-row v-for="item in detailData.audit_record" :key="item.id" style=" box-shadow: 0 2px 4px #ccc, 0 0 6px #ccc">
-      <el-col :span="18" ><h4 style="border-bottom: solid 1px brown;padding: 10px">{{item.status_name}}</h4></el-col>
-      <el-col :span="6" ><p style="border-bottom: solid 1px brown;padding: 10px">{{item.nickname}} {{item.audit_time}}</p></el-col>
+      <el-col :span="18"><h4 style="border-bottom: solid 1px brown;padding: 10px">{{item.status_name}}</h4></el-col>
+      <el-col :span="6"><p
+        style="border-bottom: solid 1px brown;padding: 10px">{{item.nickname}} {{item.audit_time}}</p></el-col>
       <p style="padding: 10px">邮件内容</p>
       <div v-html="item.audit_data" style="background-color: #ccc;padding: 10px">
         {{item.audit_data}}
@@ -180,199 +187,221 @@
 </template>
 
 <script>
-    export default {
-        data() {
-            return {
-                id: '',
-                detailData: '',
-                radio: '3',
-                reason:'',
-                company_verify_status: '未认证',
-                show:true
-            }
-        },
-        mounted() {
-            this.id = this.$route.query.id
-            this.getDetail()
-        },
-        methods: {
-            async getDetail() {
-                const id = this.id;
-                const page = 1;
-                const data = {
-                    id,
-                    page
-                }
-                let res = await this.$post("/api/admin/kaifawu/getDetail", data);
-                if (res && res.status === 1) {
-                    res.data.verifying = res.data.verifying || {}
-                    this.detailData = res.data
-                    switch(this.detailData.companyInfo.applyInfo.status){
-                        case '0':
-                            this.company_verify_status = '未申请';
-                            break;
-                        case '1':
-                            this.company_verify_status = '申请中';
-                            break;
-                        case '2':
-                            this.company_verify_status = '通过';
-                            break;
-                        case '3':
-                            this.company_verify_status = '拒绝';
-                            break;
-                    }
+  export default {
+    data() {
+      return {
+        id: '',
+        detailData: '',
+        radio: '3',
+        reason: '',
+        company_verify_status: '未认证',
+        show: true
+      }
+    },
+    mounted() {
+      this.id = this.$route.query.id
+      this.getDetail()
+    },
+    methods: {
+      async getDetail() {
+        const id = this.id;
+        const page = 1;
+        const data = {
+          id,
+          page
+        }
+        let res = await this.$post("/api/admin/kaifawu/getDetail", data);
+        if (res && res.status === 1) {
+          res.data.verifying = res.data.verifying || {}
+          this.detailData = res.data
+          switch (this.detailData.companyInfo.applyInfo.status) {
+            case '0':
+              this.company_verify_status = '未申请';
+              break;
+            case '1':
+              this.company_verify_status = '申请中';
+              break;
+            case '2':
+              this.company_verify_status = '通过';
+              break;
+            case '3':
+              this.company_verify_status = '拒绝';
+              break;
+          }
 
-                }
-            },
-            async userinfo(uid){
-                let url = window.location.href;
-                if(url.indexOf('dev')!=-1){
-                    window.open(`https://dev.test.proginn.com/rooter/user/${uid}`)
-                } else if(url.indexOf('local')!=-1){
-                    window.open(`http://local.proginn.com/rooter/user/${uid}`)
-                } else {
-                    window.open(`https://proginn.com/rooter/user/${uid}`)
-                }
-            },
-            async woinfo(uid){
-                let url = window.location.href;
-                if(url.indexOf('dev')!=-1){
-                    window.open(`https://dev.test.proginn.com/wo/${uid}`)
-                } else if(url.indexOf('local')!=-1){
-                    window.open(`http://local.proginn.com/wo/${uid}`)
-                } else {
-                    window.open(`https://proginn.com/wo/${uid}`)
-                }
-            },
-            async returnPage(){
-                let url = window.location.href;
-                window.open(`/main/solution/`,'_self')
-            },
-            async companyVerifyStatus(uid){
-                let url = window.location.href;
-                if(url.indexOf('dev')!=-1){
-                    window.open(`https://dev.test.proginn.com/rooter/companyVerifyAuditItem?uid=${uid}`)
-                } else if(url.indexOf('local')!=-1){
-                    window.open(`http://local.proginn.com/rooter/companyVerifyAuditItem?uid=${uid}`)
-                } else {
-                    window.open(`https://proginn.com/rooter/companyVerifyAuditItem?uid=${uid}`)
-                }
-            },
-            async updateStatus(item){
-                const result = 3;
-                const auditData = '您的解决方案'+item.title+'审核被拒绝!';
-                const data ={
-                    'id':item.id,
-                    result,
-                    auditData
-                };
-                let res = await this.$post("/api/admin/kaifawu/auditProvider", data);
-                if (res && res.status === 1){
-                    this.$message({
-                        message: '修改成功!',
-                        type: 'success'
-                    });
-                    this.getDetail()
-                }
-            },
-            async sendEmail(item){
-                const result = this.radio;
-                let auditData = '';
-                auditData = this.reason;
-                if(this.show&&(this.reason.length==0)){
-                    this.$message({
-                        message: '请输入拒绝原因!',
-                        type: 'warning'
-                    });
-                    return false;
-                }
+        }
+      },
+      async userinfo(uid) {
+        let url = window.location.href;
+        if (url.indexOf('dev') != -1) {
+          window.open(`https://dev.test.proginn.com/rooter/user/${uid}`)
+        } else if (url.indexOf('local') != -1) {
+          window.open(`http://local.proginn.com/rooter/user/${uid}`)
+        } else {
+          window.open(`https://proginn.com/rooter/user/${uid}`)
+        }
+      },
+      async woinfo(uid) {
+        let url = window.location.href;
+        if (url.indexOf('dev') != -1) {
+          window.open(`https://dev.test.proginn.com/wo/${uid}`)
+        } else if (url.indexOf('local') != -1) {
+          window.open(`http://local.proginn.com/wo/${uid}`)
+        } else {
+          window.open(`https://proginn.com/wo/${uid}`)
+        }
+      },
+      async returnPage() {
+        let url = window.location.href;
+        window.open(`/main/solution/`, '_self')
+      },
+      async companyVerifyStatus(uid) {
+        let url = window.location.href;
+        if (url.indexOf('dev') != -1) {
+          window.open(`https://dev.test.proginn.com/rooter/companyVerifyAuditItem?uid=${uid}`)
+        } else if (url.indexOf('local') != -1) {
+          window.open(`http://local.proginn.com/rooter/companyVerifyAuditItem?uid=${uid}`)
+        } else {
+          window.open(`https://proginn.com/rooter/companyVerifyAuditItem?uid=${uid}`)
+        }
+      },
+      async updateStatus(item) {
+        const result = 3;
+        const auditData = '您的解决方案' + item.title + '审核被拒绝!';
+        const data = {
+          'id': item.id,
+          result,
+          auditData
+        };
+        let res = await this.$post("/api/admin/kaifawu/auditProvider", data);
+        if (res && res.status === 1) {
+          this.$message({
+            message: '修改成功!',
+            type: 'success'
+          });
+          this.getDetail()
+        }
+      },
+      async sendEmail(item) {
+        const result = this.radio;
+        let auditData = '';
+        auditData = this.reason;
+        if (this.show && (this.reason.length == 0)) {
+          this.$message({
+            message: '请输入拒绝原因!',
+            type: 'warning'
+          });
+          return false;
+        }
 
-                const data ={
-                    'id':item.id,
-                    result,
-                    auditData
-                };
+        const data = {
+          'id': item.id,
+          result,
+          auditData
+        };
 
-                let res = await this.$post("/api/admin/kaifawu/auditProvider", data);
-                if (res && res.status === 1){
-                    this.$message({
-                        message: '修改成功!',
-                        type: 'success'
-                    });
-                    this.getDetail()
-                }
-            },
-            async refuse(){
-              this.show = true;
-            },
-            async pass(){
-                this.show = false;
-            },
+        let res = await this.$post("/api/admin/kaifawu/auditProvider", data);
+        if (res && res.status === 1) {
+          this.$message({
+            message: '修改成功!',
+            type: 'success'
+          });
+          this.getDetail()
+        }
+      },
+      async refuse() {
+        this.show = true;
+      },
+      async pass() {
+        this.show = false;
+      },
+      async jumpToDetail(item) {
+        console.log('item', item)
+        const {id} = item
+        let url = window.location.href;
+        let baseUrl = 'https://www.proginn.com'
+        if (url.indexOf('dev') !== -1 || url.indexOf('local') !== -1) {
+          baseUrl = `https://dev.test.proginn.com`
         }
+        window.open(`${baseUrl}/kaifain/${id}`, '_black')
+      }
     }
+  }
 </script>
 
 <style lang="scss" scoped>
   .header {
     display: flex;
   }
+
   .title-wrapper {
     display: flex;
     align-items: center;
   }
+
   .title {
     line-height: 27px;
     font-weight: bold;
     font-size: 18px;
     color: #101010;
   }
+
   .status {
     margin-left: 6px;
     line-height: 20px;
     font-size: 14px;
   }
+
   .salary {
     margin-top: 13px;
     line-height: 24px;
     font-size: 16px;
     color: #101010;
   }
+
   .skill {
     margin-top: 8px;
     line-height: 24px;
     font-size: 16px;
     color: #101010;
   }
+
   .experience {
     margin-top: 8px;
     line-height: 24px;
     font-size: 16px;
     color: #101010;
   }
+
   .owner-wrapper {
     margin-left: 100px;
     text-align: center;
   }
+
   .owner-img {
     width: 53px;
     height: 53px;
     border-radius: 50%;
   }
+
   .owner-name {
     margin-top: 8px;
     line-height: 20px;
     font-size: 14px;
     color: #3F51B5;
   }
+
   .description-wrapper {
     margin-top: 22px;
   }
+
   .description-title {
     line-height: 27px;
     font-weight: bold;
     font-size: 18px;
     color: #101010;
   }
+
   .description-content {
     margin-top: 16px;
     line-height: 24px;