11wqe1 преди 3 дни
родител
ревизия
b98bacf827
променени са 4 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 3 3
      src/components/sidebarL.vue
  2. 3 3
      src/components/topPage.vue
  3. 1 1
      src/views/HomeView.vue
  4. 2 2
      src/views/login/loginPage.vue

+ 3 - 3
src/components/sidebarL.vue

@@ -308,7 +308,7 @@ import { myMixin } from "@/mixins/mixin.js"
                 // 添加打开应用
                 this.$emit('AddAppJson',pl)
 
-                this.addOp3('1', "", { type:this.prefixL + val.toolId + this.roleUser.type == 1 ? '_teacher' : '_student' + "_open" }, "success")
+                this.addOp3('1', "", { type:this.prefixL + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') + "_open" }, "success")
 
             },
             
@@ -409,7 +409,7 @@ import { myMixin } from "@/mixins/mixin.js"
 
                 let pl = {json:_url ,stateL :true,toolId :val.toolId}
 
-                this.addOp3('1', "", { type:this.prefixL + val.toolId +this.roleUser.type == 1 ? '_teacher' : '_student' +  "_open" }, "success")
+                this.addOp3('1', "", { type:this.prefixL + val.toolId +(this.roleUser.type == 1 ? '_teacher' : '_student') +  "_open" }, "success")
 
                 this.$emit('AddAppJson',pl)
             },
@@ -419,7 +419,7 @@ import { myMixin } from "@/mixins/mixin.js"
                 
                 // // 基本用法:打开指定 URL
                 window.open(val.url, "_blank");
-                this.addOp3('1', "", {id :val.id,name:val.name ,type:this.prefixL +this.roleUser.type == 1 ? '_teacher' : '_student' +   "appstoreOpen" }, "success")
+                this.addOp3('1', "", {id :val.id,name:val.name ,type:this.prefixL +(this.roleUser.type == 1 ? '_teacher' : '_student') +   "appstoreOpen" }, "success")
 
             },
         },

+ 3 - 3
src/components/topPage.vue

@@ -509,7 +509,7 @@ import { myMixin } from "@/mixins/mixin.js"
                 
                 this.$emit('cutUrl',pl)
 
-                this.addOp3('1', "", { type:this.prefixL + val.toolId + this.roleUser.type == 1 ? '_teacher' : '_student' + "_open" }, "success")
+                this.addOp3('1', "", { type:this.prefixL + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') + "_open" }, "success")
                 
             },
             async openApp2(val){
@@ -562,12 +562,12 @@ import { myMixin } from "@/mixins/mixin.js"
                 
                 this.$emit('cutUrl',pl)
 
-                this.addOp3('1', "", { type:this.prefixL + val.toolId + this.roleUser.type == 1 ? '_teacher' : '_student' +  "_open" }, "success")
+                this.addOp3('1', "", { type:this.prefixL + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') +  "_open" }, "success")
             },
             // 打开CocoFlow应用
             openNewWindow(val) {
                 console.log(val);
-                this.addOp3('1', "", {id :val.id,name:val.name ,type:this.prefixL + this.roleUser.type == 1 ? '_teacher' : '_student' + "appstoreOpen" }, "success")
+                this.addOp3('1', "", {id :val.id,name:val.name ,type:this.prefixL + (this.roleUser.type == 1 ? '_teacher' : '_student') + "appstoreOpen" }, "success")
 
                 // // 基本用法:打开指定 URL
                 window.open(val.url, "_blank");

+ 1 - 1
src/views/HomeView.vue

@@ -418,7 +418,7 @@ export default {
 			this.addOp3(
 				"1",
 				"",
-				{ type: this.prefixL + val.toolId + this.roleUser.type == 1 ? '_teacher' : '_student' +  "stu_open" },
+				{ type: this.prefixL + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') +  "stu_open" },
 				"success"
 			);
 		},

+ 2 - 2
src/views/login/loginPage.vue

@@ -677,7 +677,7 @@ export default {
 							this.addOp3(
 								"1",
 								"",
-								{ type: this.prefixL + userjson.data[0][0].type == 1 ? '_teacher' : '_student' +"login" },
+								{ type: this.prefixL + (userjson.data[0][0].type == 1 ? '_teacher' : '_student') +"login" },
 								"success",
 								_data.userid
 							);
@@ -1027,7 +1027,7 @@ export default {
 						this.addOp3(
 							"1",
 							"",
-							{ type: this.prefixL + userjson.data[0][0].type == 1 ? '_teacher' : '_student' + "login" },
+							{ type: this.prefixL + (userjson.data[0][0].type == 1 ? '_teacher' : '_student') + "login" },
 							"success",
 							_data.userid
 						);