From 7c124560b27add087b4aa8fc457de1e84f950d9c Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 23 Nov 2021 15:19:33 +0800
Subject: [PATCH] 样式 (1:搜索按钮放入右侧,2:隐藏表格显影按钮,3:页码改为(15,30,50,100))
---
src/views/trainExam/index.vue | 39 +++++++++++++++++++++++----------------
1 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/src/views/trainExam/index.vue b/src/views/trainExam/index.vue
index f588891..487a60c 100644
--- a/src/views/trainExam/index.vue
+++ b/src/views/trainExam/index.vue
@@ -1,15 +1,20 @@
/*
* @Author: Morpheus
* @Date: 2021-07-05 16:31:54
- * @Last Modified by: Morpheus
- * @Last Modified time: 2021-07-18 17:09:52
+ * @Last Modified by: liu
+ * @Last Modified time: 2021-11-23 14:12:55
* menu-name 考试管理
*/
<template>
<el-row class="morpheus-box-paper">
<el-col :span="24">
<el-card>
- <div class="exam-card-body">
+ <div
+ :class="[
+ 'exam-card-body',
+ $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+ ]"
+ >
<avue-crud
v-model="form"
class="company-box"
@@ -53,7 +58,7 @@
<template slot="menuLeft">
<el-button
- style="display:none"
+ style="display: none"
type="danger"
size="small"
icon="el-icon-delete"
@@ -164,6 +169,7 @@
menuWidth: 230,
dialogClickModal: false,
column: auditColumn,
+ ...this.$store.state.control.clearOtherBut,
},
questionBankOption: {
// 操作栏多余按钮去除
@@ -191,7 +197,7 @@
// 操作栏宽度
menuWidth: 280,
labelWidth: 140,
-
+ ...this.$store.state.control.clearOtherBut,
column: [
{
label: "考试名称",
@@ -217,7 +223,7 @@
trigger: "blur",
},
],
- span:24,
+ span: 24,
width: 200,
},
// {
@@ -327,7 +333,7 @@
editDetail: false,
// hide: true,
display: false,
- width: 80
+ width: 80,
},
{
label: "申请人所属学校",
@@ -373,7 +379,7 @@
type: "textarea",
span: 24,
slot: true,
- hide:true,
+ hide: true,
// 表单新增时是否禁止
addDisabled: false,
// 表单新增时是否可见
@@ -489,6 +495,7 @@
pageSize: 10,
currentPage: 1,
total: 16,
+ ...this.$store.state.control.changePageSize,
},
questionBankQuery: {},
questionBankSelectionList: [],
@@ -519,8 +526,8 @@
this.questionBankLoading = false;
params["examType"] = 2;
//如果是培训公司管理员,则只能看到当前培训公司申请的考试
- if(this.userInfo.role_name =="培训公司管理员"){
- params['deptId'] = this.userInfo.dept_id;
+ if (this.userInfo.role_name == "培训公司管理员") {
+ params["deptId"] = this.userInfo.dept_id;
}
getList(
page.currentPage,
@@ -592,7 +599,7 @@
});
}
},
- examScoreViews(row){
+ examScoreViews(row) {
//模拟考试
if (row.examType == 2) {
this.$router.push({
@@ -604,7 +611,7 @@
// 新增
questionBankRowSave(row, done, loading) {
row.startTime = row.startTime + ":00";
- row['examType'] = 2;
+ row["examType"] = 2;
// row.endTime = row.examTime[1];
// row.examTime = JSON.stringify(row.examTime);
add(row).then(
@@ -627,10 +634,10 @@
// row.examTime = row.examTime.split(",");
// }
const data = {
- id:row.id,
- startTime:row.startTime + ":00",
- endTime:row.endTime + ":00",
- }
+ id: row.id,
+ startTime: row.startTime + ":00",
+ endTime: row.endTime + ":00",
+ };
// row.startTime = row.startTime + ":00";
// row.endTime = row.endTime + ":00";
// row.endTime = row.examTime[1];
--
Gitblit v1.9.3