Bladeren bron

图片接口对接

Joe 4 jaren geleden
bovenliggende
commit
51a5d3fdb8

+ 1 - 3
src/views/overview/Overview_Summary.vue

@@ -273,14 +273,12 @@ export default {
     /** 查询优惠劵管理列表 */
     getList(query) {
       listSum(query).then((response) => {
-        console.log("listSum",response)
         if (response.data!=null ) {
           this.form.zongAmt = response.data.amt;
           this.form.zongliters = response.data.orderLiters;
         }
       });
       listOilType(query).then((response) => {
-        console.log("listOilType",response)
         if (response.hasOwnProperty("rows")) {
           for (let i in response.rows) {
             if (response.rows[i].oilType === "2") {
@@ -294,7 +292,6 @@ export default {
         }
       });
       listViewData(query).then((response) => {
-        console.log("listViewData",response)
         if (response.data!=null ) {
           if (response.data.wxAmt) {
             this.form.wxAmt = response.data.wxAmt;
@@ -398,6 +395,7 @@ export default {
           query.beginTime = this.dateCalculate();
           query.endTime = this.dateCalculate(1);
           this.getTodayList(query);
+          break;
         case 1: // 昨天
           query.beginTime = this.dateCalculate(-1);
           query.endTime = this.dateCalculate();

+ 2 - 8
src/views/point/Point_Product.vue

@@ -305,8 +305,6 @@ export default {
     handleAdd() {
       this.reset();
       this.operation = 3;
-      console.log("process.envBASE_URL",process.env.BASE_URL);
-       console.log("process.VUE_APP_URL",process.env.VUE_APP_URL);
       this.open = true;
       this.title = "添加商品信息";
     },
@@ -391,12 +389,8 @@ export default {
     },
     // 文件上传成功处理++ =
     handleAvatarSuccess(res, file) {
-      console.log("res",res);
-      console.log("file",file);
-      let imgurl = process.env.VUE_APP_BASE_API + res.fileName;
-      //this.form.waresPic = imgurl;
-      this.form.waresPic = res.url;  
-       console.log("this.form.waresPic",this.form.waresPic);
+      this.form.waresPic = res.url; 
+      this.form = {...this.form} ;
     },
     beforeAvatarUpload(file) {
       // const isJPG = file.type === "image/jpeg" || "image/png";

+ 0 - 1
src/views/station/Station_Accounting.vue

@@ -422,7 +422,6 @@ export default {
       //【**】
       this.form = {
         stationName:this.$store.state.user.stationName,
-        stationId:this.deptId,
         classStructureMan:this.$store.state.user.name
       }
       addStructure(this.form).then((response) => {

+ 2 - 11
src/views/station/Station_Configuration/info.vue

@@ -207,17 +207,8 @@ export default {
         });
     },
     handleAvatarSuccess(res, file) {
-      //console.log("img", res, file);
-      // let imgurl =
-      //   location.protocol +
-      //   "//" +
-      //   location.host +
-      //   process.env.VUE_APP_BASE_API +
-      //   res.fileName;
-      let imgurl=res.url;
-      console.log("img",imgurl);
-      console.log("img",res);
-      this.form.stationPic = imgurl;
+      this.form.stationPic = res.url;
+      this.form = {...this.form} ;
     },
     beforeAvatarUpload(file) {
       const isJPG = file.type === "image/jpeg";

+ 2 - 1
vue.config.js

@@ -36,7 +36,8 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://localhost:8080`,
-        target:"http://www.huiyj.com:9002/prod-api",
+        // target:"http://www.huiyj.com:9002/prod-api",
+        target:"http://demo.huijy.net/prod-api",
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''