|
|
@@ -368,6 +368,9 @@ export default {
|
|
|
planName: [
|
|
|
{required: true, message: "培训名称不能为空", trigger: "blur"}
|
|
|
],
|
|
|
+ type: [
|
|
|
+ {required: true, message: "培训类型不能为空", trigger: "blur"}
|
|
|
+ ],
|
|
|
planCycle: [
|
|
|
{required: true, message: "计划周期不能为空", trigger: "blur"}
|
|
|
],
|
|
|
@@ -490,10 +493,27 @@ export default {
|
|
|
checkCreateByTopOrg(row) {
|
|
|
return row.createByTopOrg !== 1 && this.checkCanEdit(row);
|
|
|
},
|
|
|
- eduTypeSelected(row) {
|
|
|
- this.form.planCycle =3;
|
|
|
- this.form.execTimes =1;
|
|
|
-
|
|
|
+ eduTypeSelected() {
|
|
|
+ if (this.form.type==0){
|
|
|
+ this.form.planCycle =3;
|
|
|
+ this.form.execTimes =1;
|
|
|
+ this.form.execOrgType =3;
|
|
|
+ }
|
|
|
+ if (this.form.type==1){
|
|
|
+ this.form.planCycle =6;
|
|
|
+ this.form.execTimes =2;
|
|
|
+ this.form.execOrgType =3;
|
|
|
+ }
|
|
|
+ if (this.form.type==2){
|
|
|
+ this.form.planCycle =4;
|
|
|
+ this.form.execTimes =1;
|
|
|
+ this.form.execOrgType =4;
|
|
|
+ }
|
|
|
+ if (this.form.type==3){
|
|
|
+ this.form.planCycle =6;
|
|
|
+ this.form.execTimes =2;
|
|
|
+ this.form.execOrgType =4;
|
|
|
+ }
|
|
|
},
|
|
|
execOrgTypeChanged(row) {
|
|
|
this.$refs['orgTreeSelect'].clear();
|
|
|
@@ -521,6 +541,7 @@ export default {
|
|
|
reset() {
|
|
|
this.form = {
|
|
|
id: null,
|
|
|
+ type:null,
|
|
|
planName: null,
|
|
|
planCycle: null,
|
|
|
execTimes: null,
|