Research areas

This commit is contained in:
2025-02-08 17:25:32 +08:00
parent fda8204fcd
commit 9d269da120
2 changed files with 10 additions and 10 deletions

View File

@@ -256,7 +256,7 @@
<div style="box-sizing: border-box"> <div style="box-sizing: border-box">
<div class="chunking" style="height: auto"> <div class="chunking" style="height: auto">
<!-- <el-divider></el-divider> --> <!-- <el-divider></el-divider> -->
<h2 class="infor_title">Major</h2> <h2 class="infor_title">Research areas </h2>
<div class="chunkPiece" style="height: auto;padding-top:20px;"> <div class="chunkPiece" style="height: auto;padding-top:20px;">
<common-major :userId="coreTable.user_id" @load="getPersonData()" style="position:absolute;top:10px;right:10px;"></common-major> <common-major :userId="coreTable.user_id" @load="getPersonData()" style="position:absolute;top:10px;right:10px;"></common-major>
@@ -267,7 +267,7 @@
<div class="join_link"> <div class="join_link">
<!-- 如果你想投稿 请点击 --> <!-- 如果你想投稿 请点击 -->
<p style="" v-for="(v, i) in majorsList"> <p style="" v-for="(v, i) in majorsList">
<span style="color: #006699; font-weight: bold;margin-right:10px;" >Major {{ i + 1 }}:</span <span style="color: #006699; font-weight: bold;margin-right:10px;" >Research areas {{ i + 1 }}:</span
>{{ v.str }}<i class="el-icon-delete-solid" style="color:#F56C6C !important;margin-left:10px;" @click="handleDeleteMajor(v)"></i> >{{ v.str }}<i class="el-icon-delete-solid" style="color:#F56C6C !important;margin-left:10px;" @click="handleDeleteMajor(v)"></i>
</p> </p>
<!-- 查看已投稿件列表 --> <!-- 查看已投稿件列表 -->
@@ -913,7 +913,7 @@
<!-- <el-form-item prop="major_a"> <!-- <el-form-item prop="major_a">
<span slot="label"> <span slot="label">
<i style="color: #F56C6C;margin-right: 4px;">*</i> <i style="color: #F56C6C;margin-right: 4px;">*</i>
Major Research areas
</span> </span>
<common-major v-if="coreVisible"></common-major> <common-major v-if="coreVisible"></common-major>
<el-select v-model="coreForm.major_a" placeholder="Please select major" @change="majorChange(1)" <el-select v-model="coreForm.major_a" placeholder="Please select major" @change="majorChange(1)"
@@ -1353,7 +1353,7 @@ export default {
computed: {}, computed: {},
methods: { methods: {
handleDeleteMajor(v) { handleDeleteMajor(v) {
this.$confirm('Are you sure you want to delete this Major?', 'Tip', { this.$confirm('Are you sure you want to delete this Research areas ?', 'Tip', {
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {

View File

@@ -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 Major</el-button> <el-button type="primary" plain size="mini" @click="handleAdd" style="float:right"><i class="el-icon-plus" ></i>Add Research areas </el-button>
<el-dialog title="Add Major" :visible.sync="coreVisible1" width="780px" :close-on-click-modal="false"> <el-dialog title="Add Research areas " :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>
Major Research areas
</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">Major {{ Number(index+1) }} :</span> --> <!-- <span style="margin-right: 10px; font-size: 12px; color: #006699; font-weight: bold">Research areas {{ 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 Major'" :placeholder="'Please select Research areas '"
: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 Major!'); this.$message.error('Please select Research areas !');
return false; return false;
} }
this.$refs.core_Form1.validate((valid) => { this.$refs.core_Form1.validate((valid) => {