新增队员设置默认值

base
JayChou 6 months ago
parent fa89909fa5
commit 64e73950e2
  1. 4
      src/views/registrationGroup/components/stuDialog.vue
  2. 2
      src/views/registrationGroup/components/stuList.vue

@ -13,8 +13,8 @@
<div class="search"> <div class="search">
<el-row gutter="20"> <el-row gutter="20">
<el-col :span="8"></el-col> <el-col :span="8"></el-col>
<el-col :span="12"><el-input v-model="name"></el-input></el-col> <el-col :span="12"><el-input placeholder="请输入学生姓名" v-model="name"></el-input></el-col>
<el-col :span="4"><el-button type="primary" @click="search">搜索</el-button></el-col> <el-col :span="4"><el-button type="primary" @click="search" >搜索</el-button></el-col>
</el-row> </el-row>
</div> </div>
<el-table <el-table

@ -117,7 +117,7 @@ watch(()=>userModel.userInfo,()=>{
const add = () => { const add = () => {
const length = tableData.push({ const length = tableData.push({
realname: '', // realname: '', //
captain: '', // captain: '0', //
teamSeq: tableData.length + 1, // teamSeq: tableData.length + 1, //
userId: '', // id userId: '', // id
}) })

Loading…
Cancel
Save