|
@@ -52,7 +52,7 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ <!-- v-if="allData.type != 2" -->
|
|
<el-button
|
|
<el-button
|
|
v-if="allData.type != 2"
|
|
v-if="allData.type != 2"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -60,6 +60,14 @@
|
|
@click="Submit"
|
|
@click="Submit"
|
|
>提交</el-button
|
|
>提交</el-button
|
|
>
|
|
>
|
|
|
|
+
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="allData.type != 2"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="saveBtn"
|
|
|
|
+ >保存</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="flex: 1;overflow: hidden;" class="notes">
|
|
<div style="flex: 1;overflow: hidden;" class="notes">
|
|
@@ -273,7 +281,7 @@ export default {
|
|
this.getPageBase2(1)
|
|
this.getPageBase2(1)
|
|
this.getPageBase2(2)
|
|
this.getPageBase2(2)
|
|
console.log('666');
|
|
console.log('666');
|
|
-
|
|
|
|
|
|
+
|
|
// console.log(JSON.stringify(this.TeaTabJson));
|
|
// console.log(JSON.stringify(this.TeaTabJson));
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -551,6 +559,41 @@ export default {
|
|
handleClose(done) {
|
|
handleClose(done) {
|
|
this.getPageBase();
|
|
this.getPageBase();
|
|
done();
|
|
done();
|
|
|
|
+ },
|
|
|
|
+ //保存按钮
|
|
|
|
+ saveBtn(){
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ let PageBaseDataCopy = JSON.parse(JSON.stringify(this.PageBaseData));
|
|
|
|
+
|
|
|
|
+ for (const e of PageBaseDataCopy) {
|
|
|
|
+ for (const k of e.children) {
|
|
|
|
+ if (k.testid.test.length > 0) {
|
|
|
|
+ k.testid.test = k.testid.test.map(item => item.courseId);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ let params = [
|
|
|
|
+ {
|
|
|
|
+ uid: this.userid,
|
|
|
|
+ oid: this.oid,
|
|
|
|
+ org: this.org,
|
|
|
|
+ type: this.pType,
|
|
|
|
+ json: JSON.stringify(PageBaseDataCopy),
|
|
|
|
+ ttype: 1,
|
|
|
|
+ tid:this.testExamineBaseList[0].id
|
|
|
|
+ }
|
|
|
|
+ ];
|
|
|
|
+ // return console.log(params);
|
|
|
|
+ this.ajax
|
|
|
|
+ .post(this.$store.state.api + "addTestExamineWorks2", params)
|
|
|
|
+ .then(res => {
|
|
|
|
+ console.log("addTestExamineWorks2", res);
|
|
|
|
+ this.$message.success("保存成功")
|
|
|
|
+ })
|
|
|
|
+ .catch(error => {
|
|
|
|
+ console.log(error);
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|