liushengqiang 2 gadi atpakaļ
vecāks
revīzija
4b2eeff1a0

+ 9 - 6
src/views/adapayAccount/formYizhifu.vue

@@ -479,11 +479,15 @@ import { yeepayUpload, createMember, updateMember } from "./api.js";
 import { policy } from "@/api/appTenant";
 export default {
   name: "AYePayAccount",
+  props:{
+    row:{
+      type:Object,
+      default:()=>{}
+    }
+  },
   data() {
-    const query = this.$route.query;
     return {
       payType: "create",
-      row: query.row ? JSON.parse(query.row) : {},
       backList: yiBankJson,
       cityList: cityJson,
       cityOptions: yizhifuJson,
@@ -536,13 +540,12 @@ export default {
     };
   },
   mounted() {
+    console.log(this.row)
     this.__init();
   },
   methods: {
     __init() {
-      const query = this.$route.query;
-      this.payType = query.type;
-      this.row = query.row ? JSON.parse(query.row) : {};
+      // this.payType = query.type;
       if (this.payType == "update") {
         const row = this.row;
         this.id = row.id;
@@ -644,7 +647,7 @@ export default {
         console.log("🚀 ~ file:", file);
         let formData = new FormData();
         formData.append("file", file.raw);
-        yeepayUpload(formData);
+        // yeepayUpload(formData);
         this.form[form_key] = file.raw;
         this.$refs["accountForm"].validateField(form_key);
       } catch (e) {

+ 3 - 1
src/views/adapayAccount/second.vue

@@ -148,7 +148,7 @@
       :wrapperClosable="false"
       :with-header="false"
     >
-      <FormYizhifu @close="drawer = false" />
+      <FormYizhifu :row="activeRow" @close="drawer = false" />
     </el-drawer>
 
     <el-dialog
@@ -292,6 +292,7 @@ export default {
   data() {
     return {
       drawer: false,
+      activeRow: null,
       zeroVisible: false,
       backList: bankJson,
       rules: {
@@ -382,6 +383,7 @@ export default {
       this.$refs[formName].resetFields();
     },
     onOperationAccount(type, row) {
+      this.activeRow = row ? row : null;
       let tagTitle = "创建";
       if (type == "update") {
         tagTitle = "修改";

+ 3 - 3
vue.config.js

@@ -18,10 +18,10 @@ const name = defaultSettings.title || "管乐迷后台管理系统"; // page tit
 // let target = "https://online.dayaedu.com"; //线上
 // let target = 'http://192.168.3.251:8000' // 何国威
 // let target = 'http://192.168.3.20:8000' //邹璇
-// let target = 'http://192.168.1.102:8000' //勇哥
-// let target = 'http://192.168.3.146:8000' //王昭
+// let target = 'http://192.168.0.110:8000' //勇哥
+let target = 'http://192.168.3.253:8000' //俊池
 // let target = 'http://dev.dayaedu.com' // 开发环境
-let target = "https://test.dayaedu.com"; //测试环境
+// let target = "https://test.dayaedu.com"; //测试环境
 // let target = "https://online.dayaedu.com"; //测试环境
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {