Selaa lähdekoodia

特殊字符问题修改2

SanHQin 1 vuosi sitten
vanhempi
commit
5b02afa4f6

+ 1 - 3
src/views/commission/commission.vue

@@ -317,7 +317,7 @@ export default {
         tid: this.pavalues.value2, //分类
         leader: this.pavalues.value3, //负责人
         year: this.pavalues.value4,
-        textInp: this.input,
+        textInp:  encodeURIComponent(this.input),
         page: this.Page.currentPage, //当前页
         lim: this.Page.lim, //限制获取几条数据
       };
@@ -326,8 +326,6 @@ export default {
         .then(
           (res) => {
             let data = res.data;
-
-            console.log(data);
             if (
               data[0].length == 0 &&
               data[5][0]["total"] != 0 &&

+ 2 - 2
src/views/commission/components/projectBook.vue

@@ -357,7 +357,7 @@ export default {
       }
       let param = {
         uid: this.$store.state.userInfo.userid,
-        t: this.qpMessage,
+        t: encodeURIComponent(this.qpMessage),
       };
       // return console.log(param);
       // console.log(param)
@@ -418,7 +418,7 @@ export default {
       let param = {
         pid: this.$route.query["pid"],
         uid: this.$store.state.userInfo.userid,
-        t: this.qpMessage,
+        t:  encodeURIComponent(this.qpMessage),
         a: this.phType,
         type: this.$store.state.userInfo.type,
       };

+ 6 - 5
src/views/firmComponents/aeincubationm.vue

@@ -352,13 +352,14 @@ export default {
     },
     createCom() {
       let param = {
-        n: this.fileName,
+        n:  encodeURIComponent(this.fileName),
         uid: this.$store.state.userInfo.userid,
       };
       this.ajax.post(this.$store.state.api + "/insertAeimFiles", param).then(
         (res) => {
           this.$message.success("创建成功");
           this.dialogVisible = false;
+					this.getCompany();
         },
         (err) => {
           console.log(err);
@@ -368,7 +369,7 @@ export default {
     getCompany() {
       this.isLoading = true;
       let param = {
-        n: this.fileNameSearch,
+        n:  encodeURIComponent(this.fileNameSearch),
         page: this.Page.nowPage,
         lim: this.Page.lim,
       };
@@ -418,9 +419,9 @@ export default {
     },
     getFile(val) {
       let param = {
-        n: this.fName,
+        n:  encodeURIComponent(this.fName),
         aid: this.fid,
-        file: JSON.stringify(val),
+        file:  encodeURIComponent(JSON.stringify(val)),
         uid: this.$store.state.userInfo.userid,
       };
       this.ajax.post(this.$store.state.api + "/updateAeimFiles", param).then(
@@ -440,7 +441,7 @@ export default {
     getCompanyFile() {
       this.isLoading1 = true;
       let param = {
-        n: this.fileNameS,
+        n:  encodeURIComponent(this.fileNameS),
         pid: this.fid,
         page: this.Page1.nowPage,
         lim: this.Page1.lim,

+ 2 - 3
src/views/firmComponents/ecompanyr.vue

@@ -309,11 +309,10 @@ export default {
       this.getData();
     },
     getFile(val) {
-      console.log(val);
       this.ajax
         .post(this.$store.state.api + "/UploadFirmFile", {
           uid: this.$store.state.userInfo.userid,
-          file: JSON.stringify(val),
+          file:  encodeURIComponent(JSON.stringify(val)),
         })
         .then((res) => {
           if (res.data == 1) {
@@ -330,7 +329,7 @@ export default {
       this.ajax
         .get(this.$store.state.api + "/GetFirmFile", {
           uid: this.$store.state.userInfo.userid,
-          tit: this.input,
+          tit:  encodeURIComponent(this.input),
           page: this.Page.nowPage,
           lim: this.Page.lim,
         })

+ 1 - 1
src/views/projectApply/newStudentProjectApply.vue

@@ -325,7 +325,7 @@ export default {
           checkList: encodeURIComponent(JSON.stringify(this.wordData["checkList"])), //优先支持项目
           schoolRadio: encodeURIComponent(JSON.stringify(this.wordData["schoolRadio"])), //美丽校园改造项目
           applyParsonRadio: encodeURIComponent(JSON.stringify(this.wordData["applyParsonRadio"])), //项 目 申 请 人
-          applyParsonName: this.wordData["applyParsonName"], //申请人姓名
+          applyParsonName:  encodeURIComponent(this.wordData["applyParsonName"]), //申请人姓名
           cid: this.wordData["college"], //学院ID,
           tel: this.wordData["tel"], //联系电话
           beh: this.wordData["beginTime"], //项目开始时间,