Browse Source

修改教师中心空教研室未自动弹出

11wqe1 5 days ago
parent
commit
de241b72fe
1 changed files with 15 additions and 4 deletions
  1. 15 4
      src/components/pages/testPerson/info/infoDialognew/index.vue

+ 15 - 4
src/components/pages/testPerson/info/infoDialognew/index.vue

@@ -192,7 +192,18 @@ import avator from '../../../../../assets/icon/test/teacher.jpg'
 import "@/common/wxLogin.js";
 
 export default {
-	props: ["dialogVisibleInfo", "userid", "oid"],
+	props: {
+    dialogVisibleInfo: {
+		type: Boolean,
+			default: false
+		},
+		userid: {
+			type: String
+		},
+		oid: {
+			type: String
+		}
+	},
 	watch: {
 		dialogVisibleInfo(newVal) {
 			if (newVal) {
@@ -242,9 +253,6 @@ export default {
             eye: require("../../../../../assets/icon/eye.png"),
 		};
 	},
-	// mounted() {
-	// 	this.getTypeInfo();
-	// },
 	methods: {
 		cha() {
 			this.$forceUpdate();
@@ -610,6 +618,9 @@ export default {
 		},
 	},
 	mounted() {
+		this.$nextTick();
+		this.getTypeInfo();
+
 		let _this = this;
 		window.addEventListener("message", function (e) {
 			// 监听 message 事件