下载中职证书按钮更新
This commit is contained in:
@@ -195,12 +195,12 @@
|
||||
:action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading"
|
||||
:on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="false" drag>
|
||||
<i class="el-icon-upload"></i>
|
||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
||||
<div class="el-upload__tip text-center" slot="tip">
|
||||
<div class="el-upload__tip" slot="tip">
|
||||
<el-checkbox v-model="upload.updateSupport" /> 是否更新已经存在的学生数据
|
||||
</div>
|
||||
<span>仅允许导入xls、xlsx格式文件。</span>
|
||||
<span>仅允许导入xls、xlsx格式文件.</span>
|
||||
<el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;"
|
||||
@click="importTemplate">下载模板</el-link>
|
||||
</div>
|
||||
@@ -308,9 +308,9 @@ export default {
|
||||
},
|
||||
// 学生导入参数
|
||||
upload: {
|
||||
// 是否显示弹出层(用户导入)
|
||||
// 是否显示弹出层(用户导入)
|
||||
open: false,
|
||||
// 弹出层标题(用户导入)
|
||||
// 弹出层标题(用户导入)
|
||||
title: "",
|
||||
// 是否禁用上传
|
||||
isUploading: false,
|
||||
@@ -436,7 +436,7 @@ export default {
|
||||
}
|
||||
},
|
||||
doInitPwd() {
|
||||
this.$message.info("正在初始化中,请稍候");
|
||||
this.$message.info("正在初始化中,请稍候");
|
||||
initPwd().then(res => {
|
||||
this.$message.info(res.msg);
|
||||
});
|
||||
@@ -527,9 +527,13 @@ export default {
|
||||
getStudent(stuId).then(response => {
|
||||
this.form = response.data;
|
||||
this.selectedStatus = response.data.status;
|
||||
var data = response.data;
|
||||
this.classVlue2 = [data.dept.deptId, data.srsMajors.majorId, data.srsClass.classId]
|
||||
//console.log(this.classVlue2);
|
||||
const data = response.data;
|
||||
|
||||
this.classVlue2 = [];
|
||||
if (data.dept?.deptId) this.classVlue2.push(data.dept.deptId);
|
||||
if (data.srsMajors?.majorId) this.classVlue2.push(data.srsMajors.majorId);
|
||||
if (data.srsClass?.classId) this.classVlue2.push(data.srsClass.classId);
|
||||
|
||||
this.open = true;
|
||||
this.title = "修改学生信息";
|
||||
});
|
||||
@@ -558,7 +562,7 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const stuIds = row.stuId || this.ids;
|
||||
this.$modal.confirm('是否确认删除学生信息编号为"' + stuIds + '"的数据项?').then(function () {
|
||||
this.$modal.confirm('是否确认删除学生信息编号为"' + stuIds + '"的数据项?').then(function () {
|
||||
return delStudent(stuIds);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
|
||||
Reference in New Issue
Block a user