@@ -17,7 +17,7 @@
|
|||||||
{{ userInfo.name }}
|
{{ userInfo.name }}
|
||||||
</a>
|
</a>
|
||||||
<div class="delimiter fl align-middle"></div>
|
<div class="delimiter fl align-middle"></div>
|
||||||
<a href=" " @click="logout" class="logout fl align-middle" title="退出登陆">
|
<a href="javascript:void(0);" @click="logout" class="logout fl align-middle" title="退出登陆">
|
||||||
<!-- <i class="iconfont icon-logout"></i> -->
|
<!-- <i class="iconfont icon-logout"></i> -->
|
||||||
<Icon type="md-power" color="#fff" size="18" />
|
<Icon type="md-power" color="#fff" size="18" />
|
||||||
</a>
|
</a>
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="path-nav" v-if="!isAlone">
|
<div class="path-nav" v-if="!isAlone">
|
||||||
<Breadcrumb separator=">">
|
<Breadcrumb separator=">">
|
||||||
<a :href="baseHost + '/BschHome/front/index.html'">
|
<a :href="baseHost + '/userhome/front/index.html'">
|
||||||
<BreadcrumbItem>
|
<BreadcrumbItem>
|
||||||
<i class="iconfont icon-category"></i>
|
<i class="iconfont icon-category"></i>
|
||||||
首页
|
首页
|
||||||
|
|||||||
@@ -407,8 +407,8 @@
|
|||||||
uploadHeader() { //附件上传header
|
uploadHeader() { //附件上传header
|
||||||
let config = {};
|
let config = {};
|
||||||
if (localStorage.getItem("currentRole")) {
|
if (localStorage.getItem("currentRole")) {
|
||||||
let currentRole = localStorage.getItem("currentRole");
|
let currentRole = localStorage.getItem("currentRole");
|
||||||
config["currentRole"] = currentRole;
|
config["currentRole"] = currentRole;
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -173,25 +173,25 @@
|
|||||||
<!-- 弹窗4:学号导入 -->
|
<!-- 弹窗4:学号导入 -->
|
||||||
<Modal v-model="stuIdImportModalVisible" title="学生学号导入" width="520">
|
<Modal v-model="stuIdImportModalVisible" title="学生学号导入" width="520">
|
||||||
<div class="main-contents">
|
<div class="main-contents">
|
||||||
<Form ref="UpParmas2.datapre" :model="UpParmas2.datapre" :label-width="100" inline>
|
<Form ref="UpParmas2.datapre" :model="UpParmas2.datapre" :label-width="100" inline>
|
||||||
<FormItem label="Excel上传:" style="margin-bottom:10px;width:100%;">
|
<FormItem label="Excel上传:" style="margin-bottom:10px;width:100%;">
|
||||||
<i-input type="text" style="width:90%;" v-model="UpParmas2.fileName" class="import-input" placeholder="未选中任何文件.." readonly></i-input>
|
<i-input type="text" style="width:90%;" v-model="UpParmas2.fileName" class="import-input" placeholder="未选中任何文件.." readonly></i-input>
|
||||||
<Upload class="fr btn"
|
<Upload class="fr btn"
|
||||||
:action="UpParmas2.actionUrl"
|
:action="UpParmas2.actionUrl"
|
||||||
:data="UpParmas2.datapre"
|
:data="UpParmas2.datapre"
|
||||||
:show-upload-list="false"
|
:show-upload-list="false"
|
||||||
:headers="uploadHeader"
|
:headers="uploadHeader"
|
||||||
accept=".xls,.xlsx"
|
accept=".xls,.xlsx"
|
||||||
:before-upload="handleUpload2"
|
:before-upload="handleUpload2"
|
||||||
:on-success="importFile2"
|
:on-success="importFile2"
|
||||||
>
|
>
|
||||||
<i-button icon="md-add"></i-button>
|
<i-button icon="md-add"></i-button>
|
||||||
</Upload>
|
</Upload>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem v-if="UpParmas2.fileName" style="margin-bottom:10px">
|
<FormItem v-if="UpParmas2.fileName" style="margin-bottom:10px">
|
||||||
<div v-if="UpParmas2.listData.code!=0" style="color:red">导入失败,请修改Excel文件中相关数据后再重新上传!</div>
|
<div v-if="UpParmas2.listData.code!=0" style="color:red">导入失败,请修改Excel文件中相关数据后再重新上传!</div>
|
||||||
<div v-if="UpParmas2.listData.code==0" style="color:green">导入成功!</div>
|
<div v-if="UpParmas2.listData.code==0" style="color:green">导入成功!</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
||||||
<Alert show-icon>
|
<Alert show-icon>
|
||||||
@@ -338,22 +338,22 @@ export default {
|
|||||||
datapre:{},
|
datapre:{},
|
||||||
actionUrl:APIConfig.BschClassSystem.importStudentClassNo,
|
actionUrl:APIConfig.BschClassSystem.importStudentClassNo,
|
||||||
columns:[
|
columns:[
|
||||||
{
|
{
|
||||||
title: '行号',
|
title: '行号',
|
||||||
key: 'rows',
|
key: 'rows',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width:'80'
|
width:'80'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '内容',
|
title: '内容',
|
||||||
key: 'columnValue',
|
key: 'columnValue',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '错误详情',
|
title: '错误详情',
|
||||||
key: 'errorMsg',
|
key: 'errorMsg',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -392,8 +392,8 @@ export default {
|
|||||||
uploadHeader() { //附件上传header
|
uploadHeader() { //附件上传header
|
||||||
let config = {};
|
let config = {};
|
||||||
if (localStorage.getItem("currentRole")) {
|
if (localStorage.getItem("currentRole")) {
|
||||||
let currentRole = localStorage.getItem("currentRole");
|
let currentRole = localStorage.getItem("currentRole");
|
||||||
config["currentRole"] = currentRole;
|
config["currentRole"] = currentRole;
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
@@ -401,7 +401,7 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getgradeselect();
|
this.getgradeselect();
|
||||||
this.getClassTree();
|
this.getClassTree();
|
||||||
this.initTableColumn()
|
this.initTableColumn();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//获取年级下拉
|
//获取年级下拉
|
||||||
@@ -409,10 +409,10 @@ export default {
|
|||||||
const _this = this;
|
const _this = this;
|
||||||
var item={};
|
var item={};
|
||||||
_this.$api.get(APIConfig.BschClassSystem.getgradeselect, item, resp => {
|
_this.$api.get(APIConfig.BschClassSystem.getgradeselect, item, resp => {
|
||||||
if(resp.code==0)
|
if(resp.code==0)
|
||||||
{
|
{
|
||||||
this.gradeselectlist=resp.data;
|
this.gradeselectlist=resp.data;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//获取班级下拉
|
//获取班级下拉
|
||||||
@@ -422,10 +422,10 @@ export default {
|
|||||||
gradeId:_this.enrollYear
|
gradeId:_this.enrollYear
|
||||||
};
|
};
|
||||||
_this.$api.get(APIConfig.BschClassSystem.getschclassselect, item, resp => {
|
_this.$api.get(APIConfig.BschClassSystem.getschclassselect, item, resp => {
|
||||||
if(resp.code==0)
|
if(resp.code==0)
|
||||||
{
|
{
|
||||||
this.schclassselectlist=resp.data;
|
this.schclassselectlist=resp.data;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//获取学生状态列表
|
//获取学生状态列表
|
||||||
@@ -513,12 +513,12 @@ export default {
|
|||||||
this.enrollYear=treeNode.enrollYear?treeNode.enrollYear+'':'';
|
this.enrollYear=treeNode.enrollYear?treeNode.enrollYear+'':'';
|
||||||
this.classId=treeNode.classId?treeNode.classId+'':'';
|
this.classId=treeNode.classId?treeNode.classId+'':'';
|
||||||
this.selectnodeid=treeNode.id;
|
this.selectnodeid=treeNode.id;
|
||||||
this.pageNum = 1
|
this.pageNum = 1;
|
||||||
this.loadData()
|
this.loadData();
|
||||||
},
|
},
|
||||||
// 多选行回调
|
// 多选行回调
|
||||||
selectionChange(rows) {
|
selectionChange(rows) {
|
||||||
this.selectedRows = rows
|
this.selectedRows = rows;
|
||||||
},
|
},
|
||||||
|
|
||||||
// 加载列表数据
|
// 加载列表数据
|
||||||
@@ -623,7 +623,7 @@ export default {
|
|||||||
this.$api.post(url, JSON.stringify(newItem), resp => {
|
this.$api.post(url, JSON.stringify(newItem), resp => {
|
||||||
if (resp.code == 0) {
|
if (resp.code == 0) {
|
||||||
this.$Message.success("编辑保存成功!");
|
this.$Message.success("编辑保存成功!");
|
||||||
this.editModalVisible = false
|
this.editModalVisible = false;
|
||||||
this.loadData();
|
this.loadData();
|
||||||
} else if (resp.code == 4) {
|
} else if (resp.code == 4) {
|
||||||
this.$Message.info(resp.msg);
|
this.$Message.info(resp.msg);
|
||||||
@@ -635,7 +635,7 @@ export default {
|
|||||||
// 批量删除
|
// 批量删除
|
||||||
batchDelete() {
|
batchDelete() {
|
||||||
if (!this.selectedRows.length) {
|
if (!this.selectedRows.length) {
|
||||||
return this.$Message.warning('请先勾选学生')
|
return this.$Message.warning('请先勾选学生');
|
||||||
}
|
}
|
||||||
this.$Modal.confirm({
|
this.$Modal.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@@ -646,8 +646,8 @@ export default {
|
|||||||
this.$api.post(url,{}, resp => {
|
this.$api.post(url,{}, resp => {
|
||||||
if (resp.code == 0) {
|
if (resp.code == 0) {
|
||||||
this.$Message.success("删除成功!");
|
this.$Message.success("删除成功!");
|
||||||
this.selectedRows = []
|
this.selectedRows = [];
|
||||||
this.loadData()
|
this.loadData();
|
||||||
} else if (resp.code == 4) {
|
} else if (resp.code == 4) {
|
||||||
this.$Message.info(resp.msg);
|
this.$Message.info(resp.msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user