This commit is contained in:
2025-02-08 17:50:01 +08:00
parent 7c925798e3
commit b2d7c542e8

View File

@@ -1,13 +1,13 @@
<template>
<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-item prop="major">
<span slot="label">
<i style="color: #f56c6c; margin-right: 4px">*</i>
Research areas
Field
</span>
<div
@@ -16,13 +16,13 @@
class="cascader-container"
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
:ref="`cascader${index}`"
@change="handleChange(index)"
v-model="field.selectedValue"
:placeholder="'Please select Research areas '"
:placeholder="'Please select Field '"
:options="options"
:props="getProps()"
style="width: calc(100%)"
@@ -82,7 +82,7 @@ this.coreForm1.majorList = this.fields[i].selectedValue;
onSubmit_core1(coreForm) {
console.log('coreForm at line 1963:', coreForm);
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;
}
this.$refs.core_Form1.validate((valid) => {