提交
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="block commonMajor" style="width: 100%">
|
<div class="block commonMajor" style="width: 100%">
|
||||||
<el-button type="primary" plain size="mini" @click="handleAdd" style="float:right"><i class="el-icon-plus" ></i>Add Research areas </el-button>
|
<el-button type="primary" plain size="mini" @click="handleAdd" style="float:right"><i class="el-icon-plus" ></i>Add Field </el-button>
|
||||||
|
|
||||||
<el-dialog title="Add Research areas " :visible.sync="coreVisible1" width="780px" :close-on-click-modal="false">
|
<el-dialog title="Add Field " :visible.sync="coreVisible1" width="780px" :close-on-click-modal="false">
|
||||||
<el-form :model="coreForm1" :rules="rules1" ref="core_Form1" label-width="140px" >
|
<el-form :model="coreForm1" :rules="rules1" ref="core_Form1" label-width="140px" >
|
||||||
<el-form-item prop="major">
|
<el-form-item prop="major">
|
||||||
<span slot="label">
|
<span slot="label">
|
||||||
<i style="color: #f56c6c; margin-right: 4px">*</i>
|
<i style="color: #f56c6c; margin-right: 4px">*</i>
|
||||||
Research areas
|
Field
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@@ -16,13 +16,13 @@
|
|||||||
class="cascader-container"
|
class="cascader-container"
|
||||||
style="margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between"
|
style="margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between"
|
||||||
>
|
>
|
||||||
<!-- <span style="margin-right: 10px; font-size: 12px; color: #006699; font-weight: bold">Research areas {{ Number(index+1) }} :</span> -->
|
<!-- <span style="margin-right: 10px; font-size: 12px; color: #006699; font-weight: bold">Field {{ Number(index+1) }} :</span> -->
|
||||||
|
|
||||||
<el-cascader
|
<el-cascader
|
||||||
:ref="`cascader${index}`"
|
:ref="`cascader${index}`"
|
||||||
@change="handleChange(index)"
|
@change="handleChange(index)"
|
||||||
v-model="field.selectedValue"
|
v-model="field.selectedValue"
|
||||||
:placeholder="'Please select Research areas '"
|
:placeholder="'Please select Field '"
|
||||||
:options="options"
|
:options="options"
|
||||||
:props="getProps()"
|
:props="getProps()"
|
||||||
style="width: calc(100%)"
|
style="width: calc(100%)"
|
||||||
@@ -82,7 +82,7 @@ this.coreForm1.majorList = this.fields[i].selectedValue;
|
|||||||
onSubmit_core1(coreForm) {
|
onSubmit_core1(coreForm) {
|
||||||
console.log('coreForm at line 1963:', coreForm);
|
console.log('coreForm at line 1963:', coreForm);
|
||||||
if(!this.fields[0].selectedValue||this.fields[0].selectedValue.length == 0){
|
if(!this.fields[0].selectedValue||this.fields[0].selectedValue.length == 0){
|
||||||
this.$message.error('Please select Research areas !');
|
this.$message.error('Please select Field !');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.$refs.core_Form1.validate((valid) => {
|
this.$refs.core_Form1.validate((valid) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user