|
|
@@ -196,10 +196,14 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
+ <!-- <el-option v-for="dict in dict.type.sys_org_type" :key="dict.value" :label="dict.label"
|
|
|
+ :value="parseInt(dict.value)"></el-option> -->
|
|
|
<el-form-item label="培训机构类型" prop="execOrgType">
|
|
|
<el-select v-model="form.execOrgType" placeholder="请选择执行机构类型" @change="execOrgTypeChanged()">
|
|
|
- <el-option v-for="dict in dict.type.sys_org_type" :key="dict.value" :label="dict.label"
|
|
|
+
|
|
|
+ <el-option v-for="dict in getUserOrgType" :key="dict.value" :label="dict.label"
|
|
|
:value="parseInt(dict.value)"></el-option>
|
|
|
+
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -366,6 +370,20 @@ export default {
|
|
|
disabledDate: this.disabledDate,
|
|
|
},
|
|
|
};
|
|
|
+ },
|
|
|
+ computed:{
|
|
|
+ getUserOrgType(){
|
|
|
+ console.log("computed allSysOrgTypes",this.dict.type.sys_org_type,this.$store.getters.orgType);
|
|
|
+ let tempArry =[];
|
|
|
+ this.dict.type.sys_org_type.forEach(x=>{
|
|
|
+ if(Number(x.value)>this.$store.getters.orgType)
|
|
|
+ {
|
|
|
+ tempArry.push(x);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // console.log("computed getUserOrgType",tempArry);
|
|
|
+ return tempArry;
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
@@ -522,6 +540,7 @@ export default {
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
+
|
|
|
this.initRoleList();
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
@@ -614,8 +633,12 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
-
|
|
|
+ // console.log("mounted",this.$options.dicts);
|
|
|
+ // let a= this.getSysOrgType;
|
|
|
+ // console.log(" handleAdd getSysOrgType",a);
|
|
|
},
|
|
|
-
|
|
|
+ // updated(){
|
|
|
+ // console.log("update",this.$options.dicts);
|
|
|
+ // },
|
|
|
};
|
|
|
</script>
|