|
|
@@ -266,16 +266,8 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.pageType = this.$route.query.type;
|
|
|
- this.getDialecticalq();
|
|
|
- if (this.$route.query.type == 2) {
|
|
|
- setTimeout(() => {
|
|
|
- this._znQusetionShow();
|
|
|
- }, 500);
|
|
|
- }
|
|
|
-
|
|
|
- if (this.getPatiensInfo.pid) {
|
|
|
- this.getPatiensBasisM();
|
|
|
- }
|
|
|
+ this.loaded();
|
|
|
+ if (this.getPatiensInfo.pid) this.getPatiensBasisM();
|
|
|
},
|
|
|
mounted() {
|
|
|
this.isShrink = window.sessionStorage.getItem('dia_isShrink') == 1
|
|
|
@@ -298,6 +290,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ async loaded() {
|
|
|
+ await this.getDialecticalq();
|
|
|
+ if (+this.pageType === 2) await this._znQusetionShow();
|
|
|
+ },
|
|
|
// 设置收缩模式
|
|
|
setShrink() {
|
|
|
this.isShrink = !this.isShrink
|