Pārlūkot izejas kodu

修复this 获取不到数据问题

zhl 4 gadi atpakaļ
vecāks
revīzija
740de7fc66

+ 4 - 2
ruoyi-ui/src/components/ProjectDec/SignContract.vue

@@ -1300,6 +1300,7 @@ export default {
   methods: {
   methods: {
     //审核
     //审核
     applyBtn() {
     applyBtn() {
+      var that=this
       this.$confirm("是否确认审核", "提醒", {
       this.$confirm("是否确认审核", "提醒", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
@@ -1308,7 +1309,7 @@ export default {
         .then(function () {
         .then(function () {
           return setExamine({
           return setExamine({
             code: 3,
             code: 3,
-            bmProjectId: this.queryParams.bmProjectId,
+            bmProjectId: that.queryParams.bmProjectId,
           });
           });
         })
         })
         .then(() => {
         .then(() => {
@@ -1318,6 +1319,7 @@ export default {
     },
     },
     //驳回
     //驳回
     backBtn() {
     backBtn() {
+      var that=this
       this.$confirm("是否确认驳回", "提醒", {
       this.$confirm("是否确认驳回", "提醒", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
@@ -1326,7 +1328,7 @@ export default {
         .then(function () {
         .then(function () {
           return setReject({
           return setReject({
             code: 2,
             code: 2,
-            bmProjectId: this.queryParams.bmProjectId,
+            bmProjectId: that.queryParams.bmProjectId,
           });
           });
         })
         })
         .then(() => {
         .then(() => {

+ 4 - 2
ruoyi-ui/src/views/management/nstruction/index.vue

@@ -810,6 +810,7 @@ export default {
   methods: {
   methods: {
     //审核
     //审核
     applyBtn() {
     applyBtn() {
+      var that=this
       this.$confirm("是否确认审核", "提醒", {
       this.$confirm("是否确认审核", "提醒", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
@@ -818,7 +819,7 @@ export default {
         .then(function () {
         .then(function () {
           return setExamine({
           return setExamine({
             code: 3,
             code: 3,
-            bmProjectId: this.bmProjectId,
+            bmProjectId: that.bmProjectId,
           });
           });
         })
         })
         .then(() => {
         .then(() => {
@@ -828,6 +829,7 @@ export default {
     },
     },
     //驳回
     //驳回
     backBtn() {
     backBtn() {
+      var that=this
       this.$confirm("是否确认驳回", "提醒", {
       this.$confirm("是否确认驳回", "提醒", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
@@ -836,7 +838,7 @@ export default {
         .then(function () {
         .then(function () {
           return setReject({
           return setReject({
             code: 2,
             code: 2,
-            bmProjectId: this.bmProjectId,
+            bmProjectId: that.bmProjectId,
           });
           });
         })
         })
         .then(() => {
         .then(() => {

+ 4 - 2
ruoyi-ui/src/views/management/roduction/index.vue

@@ -324,6 +324,7 @@ export default {
         });
         });
     },
     },
     applyBtn() {
     applyBtn() {
+      var that=this
       this.$confirm("是否确认审核", "提醒", {
       this.$confirm("是否确认审核", "提醒", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
@@ -332,7 +333,7 @@ export default {
         .then(function () {
         .then(function () {
           return setExamine({
           return setExamine({
             code: 3,
             code: 3,
-            bmProjectId: this.bmProjectId,
+            bmProjectId: that.bmProjectId,
           });
           });
         })
         })
         .then(() => {
         .then(() => {
@@ -341,6 +342,7 @@ export default {
         });
         });
     },
     },
     backBtn() {
     backBtn() {
+      var that=this
       this.$confirm("是否确认驳回", "提醒", {
       this.$confirm("是否确认驳回", "提醒", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
@@ -349,7 +351,7 @@ export default {
         .then(function () {
         .then(function () {
           return setReject({
           return setReject({
             code: 2,
             code: 2,
-            bmProjectId: scrop.id,
+            bmProjectId: that.bmProjectId,
           });
           });
         })
         })
         .then(() => {
         .then(() => {

+ 4 - 2
ruoyi-ui/src/views/under/index.vue

@@ -880,6 +880,7 @@ export default {
   methods: {
   methods: {
     //审核
     //审核
     applyBtn() {
     applyBtn() {
+      var that=this
       this.$confirm("是否确认审核", "提醒", {
       this.$confirm("是否确认审核", "提醒", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
@@ -888,7 +889,7 @@ export default {
         .then(function () {
         .then(function () {
           return setExamine({
           return setExamine({
             code: 3,
             code: 3,
-            bmProjectId: this.bmProjectId,
+            bmProjectId: that.bmProjectId,
           });
           });
         })
         })
         .then(() => {
         .then(() => {
@@ -898,6 +899,7 @@ export default {
     },
     },
     //驳回
     //驳回
     backBtn() {
     backBtn() {
+      var that=this
       this.$confirm("是否确认驳回", "提醒", {
       this.$confirm("是否确认驳回", "提醒", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
@@ -906,7 +908,7 @@ export default {
         .then(function () {
         .then(function () {
           return setReject({
           return setReject({
             code: 2,
             code: 2,
-            bmProjectId: this.bmProjectId,
+            bmProjectId: that.bmProjectId,
           });
           });
         })
         })
         .then(() => {
         .then(() => {