|
@@ -262,16 +262,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {},
|
|
|
- activated() {
|
|
|
- // 当组件被激活时调用
|
|
|
- this.getPageBase();
|
|
|
- this.getPageBase2(1)
|
|
|
- this.getPageBase2(2)
|
|
|
- },
|
|
|
+ // activated() {
|
|
|
+ // // 当组件被激活时调用
|
|
|
+ // this.getPageBase();
|
|
|
+ // this.getPageBase2(1)
|
|
|
+ // this.getPageBase2(2)
|
|
|
+ // },
|
|
|
mounted() {
|
|
|
- this.getPageBase();
|
|
|
+ // this.getPageBase();
|
|
|
this.getPageBase2(1)
|
|
|
this.getPageBase2(2)
|
|
|
+ console.log('666');
|
|
|
+
|
|
|
// console.log(JSON.stringify(this.TeaTabJson));
|
|
|
},
|
|
|
methods: {
|
|
@@ -399,8 +401,6 @@ export default {
|
|
|
.post(this.$store.state.api + "addTestExamineWorks2", params)
|
|
|
.then(res => {
|
|
|
console.log("addTestExamineWorks2", res);
|
|
|
- // this.getData();
|
|
|
- // this.handleData();
|
|
|
})
|
|
|
.catch(error => {
|
|
|
console.log(error);
|
|
@@ -421,7 +421,7 @@ export default {
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "getTestExamineByUserId2", params)
|
|
|
.then(res => {
|
|
|
- console.log("getTestExamineByUserId", res);
|
|
|
+ // console.log("getTestExamineByUserId", res);
|
|
|
|
|
|
if (res.data[0].length > 0) {
|
|
|
|
|
@@ -454,12 +454,6 @@ export default {
|
|
|
this.handleData();
|
|
|
this.tabLoad = false;
|
|
|
}
|
|
|
- // this.$forceUpdate();
|
|
|
- // else {
|
|
|
- // this.allData.type = 1;
|
|
|
- // this.getPageBase();
|
|
|
- // this.tabLoad = false;
|
|
|
- // }
|
|
|
})
|
|
|
.catch(error => {
|
|
|
console.log(error);
|
|
@@ -486,8 +480,6 @@ export default {
|
|
|
this.PageBaseData = JSON.parse(res.data[0][0].json);
|
|
|
// 先获取基础模板,然后再获取用户又没有填写过,填写过就开始循环赋值给基础模板,最后提交基础模板
|
|
|
this.getData();
|
|
|
-
|
|
|
- // this.handleData();
|
|
|
})
|
|
|
.catch(error => {
|
|
|
console.log(error);
|