Sfoglia il codice sorgente

Merge branch 'dev' of http://www.baoxianzhanggui.com:8090/sxzgd/vue-insagent-pc into dev

yaoyao 2 anni fa
parent
commit
e12ac8fb29

+ 6 - 3
config/dev.env.js

@@ -6,8 +6,8 @@ module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
   NODE_ENV: '"development"',
 
 
 
 
-  ENV_CONFIG:'"dev"',
-  // BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
+  ENV_CONFIG: '"dev"',
+  BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
@@ -18,9 +18,12 @@ module.exports = merge(prodEnv, {
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http://192.168.0.250:8080/"',//
   // BASE_URL: '"http://192.168.0.250:8080/"',//
-  BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮
+  // BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮
   // BASE_URL: '"http:///192.168.0.52:8080/"',//贺礼霄
   // BASE_URL: '"http:///192.168.0.52:8080/"',//贺礼霄
   // BASE_URL: '"http:///192.168.0.55:8080/"',//蔡雅茹
   // BASE_URL: '"http:///192.168.0.55:8080/"',//蔡雅茹
+  CONSOLE_BASE_URL: '"https://test.baoxianzhanggui.com/console-api"' //控制台测试服务器
+  // CONSOLE_BASE_URL: '"https://sxzgkj.baoxianzhanggui.com/console-api"' //控制台正式服务器
+
 })
 })
 
 
 
 

+ 4 - 1
config/pre.env.js

@@ -4,7 +4,10 @@ const prodEnv = require('./prod.env')
 
 
 module.exports = merge(prodEnv, {
 module.exports = merge(prodEnv, {
   NODE_ENV: '"testing"',
   NODE_ENV: '"testing"',
-  ENV_CONFIG:'"test"',
+  ENV_CONFIG: '"test"',
   BASE_URL: '"https://pre.baoxianzhanggui.com/web-api"',//测试服务器
   BASE_URL: '"https://pre.baoxianzhanggui.com/web-api"',//测试服务器
   // BASE_URL: '"http:///192.168.0.103:8080/web-api"',//测试服务器
   // BASE_URL: '"http:///192.168.0.103:8080/web-api"',//测试服务器
+  CONSOLE_BASE_URL: '"https://pre.baoxianzhanggui.com/console-api"' //控制台测试服务器
+
+
 })
 })

+ 3 - 2
config/prod.env.js

@@ -1,6 +1,7 @@
 'use strict'
 'use strict'
 module.exports = {
 module.exports = {
   NODE_ENV: '"production"',
   NODE_ENV: '"production"',
-  ENV_CONFIG:'"prod"',
-  BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"',
+  ENV_CONFIG: '"prod"',
+  BASE_URL: '"https://sxzgkj.baoxianzhanggui.com/web-api"',
+  CONSOLE_BASE_URL: '"https://sxzgkj.baoxianzhanggui.com/console-api"' //控制台测试服务器
 }
 }

+ 3 - 1
config/test.env.js

@@ -4,6 +4,8 @@ const prodEnv = require('./prod.env')
 
 
 module.exports = merge(prodEnv, {
 module.exports = merge(prodEnv, {
   NODE_ENV: '"testing"',
   NODE_ENV: '"testing"',
-  ENV_CONFIG:'"test"',
+  ENV_CONFIG: '"test"',
   BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
   BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
+  CONSOLE_BASE_URL: '"https://test.baoxianzhanggui.com/console-api"' //控制台测试服务器
+
 })
 })

+ 15 - 1
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryUnsettled.vue

@@ -52,6 +52,7 @@
         :tableConfig="tableConfigDetailNew"
         :tableConfig="tableConfigDetailNew"
         :data="formTableDataNew"
         :data="formTableDataNew"
         @findPage="findPageNewDetail"
         @findPage="findPageNewDetail"
+        :pagination="detailPageData"
       >
       >
       </templateTable>
       </templateTable>
       <span slot="footer" class="dialog-footer">
       <span slot="footer" class="dialog-footer">
@@ -260,6 +261,7 @@ export default {
         isNotCar: "0",
         isNotCar: "0",
         isNotDocumentary: "1",
         isNotDocumentary: "1",
       },
       },
+
       dialogVisible: false,
       dialogVisible: false,
       formTableData: [],
       formTableData: [],
       tableConfigDetail: {
       tableConfigDetail: {
@@ -407,6 +409,7 @@ export default {
         isShowIndex: true,
         isShowIndex: true,
         operationWidth: "130",
         operationWidth: "130",
         tableHeight: "auto",
         tableHeight: "auto",
+        isPaginationShow: true,
         optBtns: [
         optBtns: [
           {
           {
             type: "primary",
             type: "primary",
@@ -446,6 +449,14 @@ export default {
       findPageDetailListNew: {},
       findPageDetailListNew: {},
       // 记录
       // 记录
       dialogVisiblerecord: false,
       dialogVisiblerecord: false,
+      detailPageData: {
+        pageNum: 1,
+        pageSize: 20,
+        agreementType: 2,
+        isNotCar: "0",
+        isNotDocumentary: "1",
+        totalSize: 0,
+      },
       tableConfigDetailrecord: {
       tableConfigDetailrecord: {
         columns: [
         columns: [
           {
           {
@@ -563,11 +574,14 @@ export default {
           completionStatus: data.settlementStatus || "0",
           completionStatus: data.settlementStatus || "0",
           partnerCompaniesId: data.partnerCompaniesId,
           partnerCompaniesId: data.partnerCompaniesId,
           isNotCar: "0",
           isNotCar: "0",
+          pageNum: this.detailPageData.pageNum,
+          pageSize: this.detailPageData.pageSize,
         })
         })
         .then((res) => {
         .then((res) => {
           if (res.code == 200) {
           if (res.code == 200) {
-            this.formTableDataNew = res.data.content;
+            this.formTableDataNew = res.data.records;
             this.tableConfigDetailNew.loading = false;
             this.tableConfigDetailNew.loading = false;
+            this.detailPageData.totalSize = res.data.total;
           } else {
           } else {
             this.tableConfigDetailNew.loading = false;
             this.tableConfigDetailNew.loading = false;
             this.$message.error(res.msg);
             this.$message.error(res.msg);

File diff suppressed because it is too large
+ 393 - 301
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryUnsettled.vue


+ 41 - 4
src/views/Login.vue

@@ -95,6 +95,19 @@
                       @click="refreshCaptcha"
                       @click="refreshCaptcha"
                     />
                     />
                   </el-col>
                   </el-col>
+                  <el-col :span="14">
+                    <el-form-item prop="captcha" label="">
+                      <el-select v-model="sysId">
+                        <el-option
+                          v-for="item in optionList"
+                          :key="item.id"
+                          :value="item.id"
+                          :label="item.systemName"
+                        >
+                        </el-option>
+                      </el-select>
+                    </el-form-item>
+                  </el-col>
                 </el-row>
                 </el-row>
                 <el-row style="width: 100%; margin-top: 15px">
                 <el-row style="width: 100%; margin-top: 15px">
                   <el-button
                   <el-button
@@ -143,7 +156,8 @@ import { md5 } from "@/utils/md5";
 import ThemePicker from "@/components/ThemePicker";
 import ThemePicker from "@/components/ThemePicker";
 import LangSelector from "@/components/LangSelector";
 import LangSelector from "@/components/LangSelector";
 import { login } from "@/api/user";
 import { login } from "@/api/user";
-// import CryptoJS from "crypto-js";
+import CryptoJS from "crypto-js";
+// import { getSysList } from "../http/moudules/sys";
 export default {
 export default {
   name: "Login",
   name: "Login",
   inject: ["reload"],
   inject: ["reload"],
@@ -173,6 +187,8 @@ export default {
       uuid: "",
       uuid: "",
       polling: null,
       polling: null,
       tipVisibility: false,
       tipVisibility: false,
+      optionList: [],
+      sysId: "",
     };
     };
   },
   },
   created() {
   created() {
@@ -184,8 +200,15 @@ export default {
       this.rememberPassword = true;
       this.rememberPassword = true;
     }
     }
     this.enterEvent(); //初始化回车事件
     this.enterEvent(); //初始化回车事件
+    this.getSysList();
   },
   },
   methods: {
   methods: {
+    getSysList() {
+      this.$api.sys.sysDictList().then((res) => {
+        console.log(res);
+        if (res.code === 200) this.optionList = [...res.data];
+      });
+    },
     enterEvent() {
     enterEvent() {
       if (this.$route.name === "登录") {
       if (this.$route.name === "登录") {
         document.onkeydown = (e) => {
         document.onkeydown = (e) => {
@@ -212,6 +235,7 @@ export default {
             password: this.loginForm.password,
             password: this.loginForm.password,
             captcha: this.loginForm.captcha.toLowerCase(),
             captcha: this.loginForm.captcha.toLowerCase(),
             captchaId: this.loginForm.captchaId,
             captchaId: this.loginForm.captchaId,
+            sysId: this.sysId,
           };
           };
 
 
           // this.$store
           // this.$store
@@ -258,9 +282,22 @@ export default {
                 } else {
                 } else {
                   Cookies.remove("accountInfo");
                   Cookies.remove("accountInfo");
                 }
                 }
-                Cookies.set("token", res.data); // 放置token到Cookie
-                this.getDictItems();
-                this.getUser();
+                if (this.sysId === 2) {
+                  let token = CryptoJS.AES.encrypt(
+                    res.data,
+                    "token"
+                  ).toString();
+                  // console.log(token);
+                  window.location.href =
+                    process.env.CONSOLE_BASE_URL +
+                    "/#/form/agreement?token=" +
+                    token;
+                  // alert(res.data);
+                } else {
+                  Cookies.set("token", res.data); // 放置token到Cookie
+                  this.getDictItems();
+                  this.getUser();
+                }
               }
               }
               this.loading = false;
               this.loading = false;
             })
             })

Some files were not shown because too many files changed in this diff