|
@@ -181,7 +181,7 @@
|
|
选择文件
|
|
选择文件
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
- <el-button size="small" type="success" @click="submitUpload">
|
|
|
|
|
|
+ <el-button size="small" type="primary" @click="submitUpload">
|
|
确认上传
|
|
确认上传
|
|
</el-button>
|
|
</el-button>
|
|
<el-button size="small" type="danger" @click="removeFile">
|
|
<el-button size="small" type="danger" @click="removeFile">
|
|
@@ -268,7 +268,9 @@
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
:current-page="currentPage"
|
|
:current-page="currentPage"
|
|
:page-size="pageSize"
|
|
:page-size="pageSize"
|
|
- layout="total, prev, pager, next, jumper"
|
|
|
|
|
|
+ :page-sizes="[10, 30, 50, 100]"
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
:total="total"
|
|
:total="total"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
@@ -356,6 +358,10 @@ export default {
|
|
name: ""
|
|
name: ""
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ handleSizeChange(val) {
|
|
|
|
+ this.pageSize = val;
|
|
|
|
+ this.searchForm();
|
|
|
|
+ },
|
|
toExamSite(row) {
|
|
toExamSite(row) {
|
|
this.$router.push({ path: "/basic/examSite/" + row.id });
|
|
this.$router.push({ path: "/basic/examSite/" + row.id });
|
|
},
|
|
},
|
|
@@ -598,11 +604,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
uploadError(response) {
|
|
uploadError(response) {
|
|
- var jsonStr = response.message.substring(4);
|
|
|
|
- var resp = eval("(" + jsonStr + ")");
|
|
|
|
|
|
+ var json = JSON.parse(response.message);
|
|
if (response.status == 500) {
|
|
if (response.status == 500) {
|
|
this.$notify({
|
|
this.$notify({
|
|
- message: resp.desc,
|
|
|
|
|
|
+ message: json.desc,
|
|
type: "error"
|
|
type: "error"
|
|
});
|
|
});
|
|
}
|
|
}
|