删除报名人

main
lijingyu007 5 months ago
parent d44268b783
commit db90b2f82a
  1. 2
      .env.development
  2. 7
      src/api/trainService/index.js
  3. 1
      src/views/trainService/signlist.vue
  4. 19
      src/views/trainService/signupStudent.vue

@ -5,7 +5,7 @@ ENV = 'development'
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api' # VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api'
VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999' VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
# VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999' # VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999'
# VUE_APP_BASE_TARGET = 'http://172.16.36.180:9999' # VUE_APP_BASE_TARGET = 'http://172.16.36.180:9999'

@ -180,3 +180,10 @@ export function addRemarkI(data) {
data, data,
}) })
} }
// 删除报名人
export function delSign(id) {
return request({
url: '/train/trainStuden/del?studentId=' + id,
method: 'delete',
})
}

@ -57,6 +57,7 @@
<span v-if="scope.row.classType == 0">校企合作班</span> <span v-if="scope.row.classType == 0">校企合作班</span>
<span v-if="scope.row.classType == 1">线下培训进阶班</span> <span v-if="scope.row.classType == 1">线下培训进阶班</span>
<span v-if="scope.row.classType == 2">可靠性人才培训班</span> <span v-if="scope.row.classType == 2">可靠性人才培训班</span>
<span v-if="scope.row.classType == 3">师资培训班</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="培训教师" align="center" prop="teacherName" /> <el-table-column label="培训教师" align="center" prop="teacherName" />

@ -40,6 +40,7 @@
>修改备注</el-button >修改备注</el-button
> >
<el-button size="mini" type="text" v-else @click="addRemark(scope.row)">添加备注</el-button> <el-button size="mini" type="text" v-else @click="addRemark(scope.row)">添加备注</el-button>
<el-button size="mini" type="text" @click="delRow(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -52,6 +53,7 @@
>修改备注</el-button >修改备注</el-button
> >
<el-button size="mini" type="text" v-else @click="addRemark(scope.row)">添加备注</el-button> <el-button size="mini" type="text" v-else @click="addRemark(scope.row)">添加备注</el-button>
<el-button size="mini" type="text" @click="delRow(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -86,7 +88,7 @@
</div> </div>
</template> </template>
<script> <script>
import { searchNum, addRemarkI } from '@/api/trainService/index.js' import { searchNum, addRemarkI, delSign } from '@/api/trainService/index.js'
// 1 2 3 4 5 status // 1 2 3 4 5 status
export default { export default {
name: 'peixunbaoming', name: 'peixunbaoming',
@ -177,6 +179,21 @@ export default {
this.resetForm('queryForm') this.resetForm('queryForm')
this.getStudentList() this.getStudentList()
}, },
//
delRow(row) {
this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
delSign(row.trainingStudentId).then((res) => {
this.getStudentList()
this.$message.success('删除成功')
})
})
.catch(() => {})
},
// //
addRemark(row) { addRemark(row) {
this.title = '添加备注' this.title = '添加备注'

Loading…
Cancel
Save