77ebf04d
梁保满
个人版
|
1
2
3
4
5
6
7
|
<template>
<div>
<back-box>
<template slot="title">
<span>备题组卷</span>
</template>
<template slot="btns">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
8
9
|
<el-tooltip v-if="!code && gdClass" effect="dark" content="已归档试卷" placement="bottom">
<el-button type="primary" icon="fa fa-archive" size="mini" plain circle @click="toArchiving"></el-button>
|
799818f7
梁保满
背题组卷
|
10
|
</el-tooltip>
|
77ebf04d
梁保满
个人版
|
11
12
|
</template>
</back-box>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
13
14
|
<div class="examinationPaper-type">
<el-button-group>
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
15
16
|
<el-button size="large" :type="query.type == 1 ? 'primary' : 'default'" @click="changPaperType(1)">备题</el-button>
<el-button size="large" :type="query.type == 2 ? 'primary' : 'default'" @click="changPaperType(2)">组卷</el-button>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
17
|
</el-button-group>
|
77ebf04d
梁保满
个人版
|
18
|
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
19
|
<p>
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
20
|
<el-button v-if="query.type == 1" type="primary" size="mini" icon="el-icon-plus" round @click="diaUp = true">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
21
22
|
导入课件</el-button>
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
23
|
<el-dropdown v-if="query.type == 2" trigger="click" @command="handleAdd">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
24
25
26
27
28
29
30
31
|
<el-button type="primary" size="mini" icon="el-icon-plus" round>添加试卷</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="1">导入试卷</el-dropdown-item>
<el-dropdown-item :command="2">手动创建</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</p>
</div>
|
77ebf04d
梁保满
个人版
|
32
33
|
<div class="answer-header">
<div class="sel-box">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
34
35
|
<el-select class="sel" v-model="query.classId" placeholder="选择班级" @change="changClazz">
<el-option v-for="item in classList" :key="item.value" :label="item.label" :value="item.value">
|
77ebf04d
梁保满
个人版
|
36
37
|
</el-option>
</el-select>
|
352c53cc
梁保满
上传word回传数据
|
38
|
<el-select class="sel" v-model="query.subjectName" placeholder="选择科目" @change="getData(false)">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
39
|
<el-option v-for="item in subjectList" :key="item.value" :label="item.label" :value="item.value">
|
77ebf04d
梁保满
个人版
|
40
41
|
</el-option>
</el-select>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
42
|
|
352c53cc
梁保满
上传word回传数据
|
43
44
|
<el-input placeholder="试卷名称" v-model="query.title" class="input-with-select" @keyup.enter.native="getData(true)">
<el-button slot="append" icon="el-icon-search" @click="getData(true)"></el-button>
|
77ebf04d
梁保满
个人版
|
45
46
47
48
|
</el-input>
</div>
</div>
<p class="tips" v-show="archivedTotal">
|
cffc1a98
梁保满
3-8BUG
|
49
|
<span>回收站内已有{{ archivedTotal }}份答题卡,</span>
|
77ebf04d
梁保满
个人版
|
50
51
|
<router-link to="/examinationPaperRecycle">点击查看>></router-link>
</p>
|
352c53cc
梁保满
上传word回传数据
|
52
53
|
<div class="content">
<p class="tab-box">
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
54
|
<span :class="['tab-s', query.share == 0 ? 'active' : '']" @click="changShare(0)">我自编的 ({{ totalCount.my
|
352c53cc
梁保满
上传word回传数据
|
55
|
}})</span>
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
56
|
<span :class="['tab-s', query.share == 1 ? 'active' : '']" @click="changShare(1)">年级共享的 ({{ totalCount.share
|
352c53cc
梁保满
上传word回传数据
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
}})</span>
</p>
<ul v-if="tableData && tableData.length" v-loading="loading">
<li class="item" v-for="item in tableData" :key="item.id">
<div class="pic-box">
<p class="i-box"><i class="fa fa-map-o"></i></p>
<p class="ids">{{ item.id }}</p>
</div>
<div class="info">
<p class="title">
{{ item.title }}
<span class="label" v-if="!!item.tag">{{ item.tag }}</span>
</p>
<p class="num">
总题数:{{ item.questionNum }}
<em class="s-line">|</em>
|
77da338a
梁保满
自测问题修改
|
73
74
75
76
|
<template v-if="query.type == 2">
预计时长:{{ item.examsDuration }}
<em class="s-line">|</em>
</template>
|
352c53cc
梁保满
上传word回传数据
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
<template v-if="role != 'ROLE_PERSONAL'">
授课端同步:
<span class="clazz" v-for="(clazzChild, indexs) in item.classList" :key="clazzChild.classId"
:class="clazzChild.keepStatus == 1 ? 'active' : ''">{{
`${clazzChild.className}${indexs != item.classList.length - 1 ? "、" : ""
}`
}}
<i v-if="clazzChild.keepStatus == 1" class="el-icon-success"></i></span>
<el-tooltip effect="dark" content="刷新同步状态" placement="right">
<i class="icon-refresh el-icon-refresh" @click="refreshStic"></i>
</el-tooltip>
</template>
</p>
<p class="person">
{{ item.realName }}<em class="s-line">|</em><span class="date">{{ item.modifiedTime }}</span>
</p>
</div>
<div class="btn-box">
<el-tooltip effect="dark" content="修改答案" placement="bottom">
<el-button class="edit" type="primary" size="mini" circle icon="el-icon-edit"
@click="toEdit(item)"></el-button>
</el-tooltip>
<el-dropdown trigger="click" @command="handleDropdownClick($event, item)">
<el-button type="info" size="mini" circle icon="el-icon-more"></el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="1"
v-if="userName == item.realName && role != 'ROLE_PERSONAL'">修改分享范围</el-dropdown-item>
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
104
|
<el-dropdown-item v-show="query.type == 2" :command="2">复制</el-dropdown-item>
|
77da338a
梁保满
自测问题修改
|
105
|
<el-dropdown-item v-show="query.share == 0" :command="3">放入回收站</el-dropdown-item>
|
352c53cc
梁保满
上传word回传数据
|
106
107
108
109
110
111
112
113
114
115
116
|
</el-dropdown-menu>
</el-dropdown>
</div>
</li>
</ul>
<div class="pagination-box">
<el-pagination small="" layout="total,prev, pager, next" :hide-on-single-page="true" :total="total"
@current-change="changePage" :current-page="page" :page-size="size">
</el-pagination>
</div>
<el-empty v-if="!loading && tableData.length == 0" content="没有更多数据" :image-size="100"></el-empty>
|
77ebf04d
梁保满
个人版
|
117
|
</div>
|
352c53cc
梁保满
上传word回传数据
|
118
119
|
|
5cfb0264
梁保满
班级管理交互优化
|
120
|
<el-dialog :close-on-click-modal="false" title="选择分享范围" :visible.sync="dialogVisible" width="400">
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
121
122
123
124
125
126
127
128
129
130
131
132
133
|
<el-form :model="shareForm" :rules="shareRulesForm" label-width="160px">
<el-form-item prop="share" label="分享范围:">
<el-radio-group v-model="shareForm.sharingType">
<el-radio :label="0">任课班级分享</el-radio>
<el-radio :label="1">全年级分享</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveShare">确 定</el-button>
<el-button @click="dialogVisible = false">取 消</el-button>
</div>
</el-dialog>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
134
|
<el-dialog :close-on-click-modal="false" title="上传word文档" :visible.sync="diaUp" width="600">
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
135
|
<upload :url="url" :params="{ type: query.type }" @upSuccess="upSuccess" fileName="下载">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
136
|
<div class="down-box" slot="down">
|
4d5235d7
梁保满
学生,教师修改,顶部返回备题组卷记...
|
137
138
139
140
141
142
143
|
<p class="down-head"> <span>第一步:导出菁优网试卷,</span>
<!-- <el-link type="danger" @click="downExcel">模板下载</el-link> 。 -->
<span class="img-box">
<el-image class="img" :src="examplePic" :preview-src-list="examplePicList">
</el-image>
导出选项示例。
</span>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
144
145
146
147
148
149
150
151
|
</p>
<p>第二步:上传完成编辑好的试卷。</p>
</div>
</upload>
<div class="dialog-footer" slot="footer">
<el-button @click="diaUp = false">取 消</el-button>
</div>
</el-dialog>
|
77ebf04d
梁保满
个人版
|
152
153
154
155
|
</div>
</template>
<script>
|
23659274
梁保满
备题接口对接
|
156
|
import { downloadFile } from "@/utils";
|
5f80d60e
梁保满
备题试卷模版
|
157
|
import axios from "axios";
|
4d5235d7
梁保满
学生,教师修改,顶部返回备题组卷记...
|
158
|
import example from "@/assets/images/example.jpg"
|
77ebf04d
梁保满
个人版
|
159
160
161
162
|
export default {
name: "examinationPaper",
data() {
return {
|
e5e4a3e6
梁保满
v1.3
|
163
|
code: "",
|
47a01cb6
梁保满
v1.3测试问题
|
164
|
gdClass: 0, //已归档班级数量
|
77ebf04d
梁保满
个人版
|
165
166
|
loading: false,
userName: "",
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
167
|
dialogVisible: false,
|
77ebf04d
梁保满
个人版
|
168
169
170
|
query: {
classId: "",
subjectName: "",
|
77ebf04d
梁保满
个人版
|
171
|
title: "",
|
352c53cc
梁保满
上传word回传数据
|
172
|
type: 1, //试卷类型
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
173
|
share: 0, //分享类型
|
77ebf04d
梁保满
个人版
|
174
175
176
|
},
classList: [],
subjectList: [],
|
77ebf04d
梁保满
个人版
|
177
|
archivedTotal: 0, //已归档答题卡数量
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
178
|
tableData: [],
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
179
180
181
182
183
184
185
186
187
|
shareForm: {
id: "",
sharingType: 0, //0-任课班级/1-全年级
},
shareRulesForm: {
sharingType: [
{ required: true, message: "选择分享范围", trigger: "blur" },
],
},
|
77ebf04d
梁保满
个人版
|
188
189
190
|
total: 0,
page: 1,
size: 20,
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
191
192
|
// v1.5
|
352c53cc
梁保满
上传word回传数据
|
193
194
195
196
197
|
totalCount: {//数量统计
my: 0,
share: 0,
},
diaUp: false,//上传word弹窗开关
|
352c53cc
梁保满
上传word回传数据
|
198
|
url: "/api_html/common/paper/upload",//上传文档地址
|
4d5235d7
梁保满
学生,教师修改,顶部返回备题组卷记...
|
199
200
|
examplePic: example,
examplePicList: [example]
|
77ebf04d
梁保满
个人版
|
201
202
203
|
};
},
async created() {
|
7812e986
梁保满
班主任查看报表添加额外信息
|
204
|
this.code = this.$store.getters.csCode;
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
205
206
207
|
this.role =
this.$store.getters.info.showRole ||
this.$store.getters.info.permissions[0].role;
|
77ebf04d
梁保满
个人版
|
208
|
this.userName = this.$store.getters.info.name || "";
|
77da338a
梁保满
自测问题修改
|
209
210
|
this.query.type = this.$route.query.type || 1;
this.query.share = this.$route.query.share || 0;
|
4d5235d7
梁保满
学生,教师修改,顶部返回备题组卷记...
|
211
|
console.log(1)
|
352c53cc
梁保满
上传word回传数据
|
212
213
214
215
216
217
218
|
this._QueryClassList2()
await this._QueryClassList();
if (!this.query.classId) {
return;
}
await this._QuerySubjectList();
this._QueryData();
|
77ebf04d
梁保满
个人版
|
219
220
|
},
methods: {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
221
|
refreshStic() {
|
77da338a
梁保满
自测问题修改
|
222
223
224
|
this.loading = true;
setTimeout(() => {
this._QueryData();
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
225
226
|
}, 500);
},
|
e5e4a3e6
梁保满
v1.3
|
227
228
229
230
231
|
toArchiving() {
this.$router.push({
path: "/examinationPaperArchiving",
});
},
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
232
|
//去备题
|
77ebf04d
梁保满
个人版
|
233
|
toAdd(query) {
|
c3cdce9c
梁保满
bug
|
234
235
236
237
|
if (!this.query.classId) {
this.$message.warning("没有任课班级,请先设置。");
return;
}
|
77ebf04d
梁保满
个人版
|
238
239
|
let routerItem = {
path: "/examinationPaperAdd",
|
77da338a
梁保满
自测问题修改
|
240
241
|
listType: this.query.type,
listShare: this.query.share,
|
77ebf04d
梁保满
个人版
|
242
243
244
245
|
};
query ? (routerItem["query"] = { ...query }) : "";
this.$router.push(routerItem);
},
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
246
247
248
249
250
251
252
253
|
//去组卷
toAddAsk(query) {
if (!this.query.classId) {
this.$message.warning("没有任课班级,请先设置。");
return;
}
let routerItem = {
path: "/examinationPaperAddAsk",
|
77da338a
梁保满
自测问题修改
|
254
255
|
listType: this.query.type,
listShare: this.query.share,
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
256
257
258
259
|
};
query ? (routerItem["query"] = { ...query }) : "";
this.$router.push(routerItem);
},
|
77ebf04d
梁保满
个人版
|
260
261
262
263
264
|
toEdit(item) {
this.$router.push({
path: "/examinationPaperEdit",
query: {
paperId: item.id,
|
c6f2a550
梁保满
创建备题组卷,修改备题
|
265
|
paperType: this.query.type
|
77ebf04d
梁保满
个人版
|
266
267
268
|
},
});
},
|
352c53cc
梁保满
上传word回传数据
|
269
|
handleDropdownClick(value, item) {//更多
|
77ebf04d
梁保满
个人版
|
270
271
|
const that = this;
switch (value) {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
272
273
274
275
276
277
|
case 1:
//修改分享范围
that.shareForm.id = item.id;
that.shareForm.sharingType = item.sharingType;
that.dialogVisible = true;
break;
|
77ebf04d
梁保满
个人版
|
278
279
280
281
282
283
284
285
286
287
|
case 2:
//复制
that.toAdd({ type: 2, paperId: item.id });
break;
case 3:
//归档
that.recovery(item);
break;
}
},
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
288
289
|
changPaperType(type) {
this.query.type = type
|
e17ec739
梁保满
随堂问,即时测导出爆表修改
|
290
|
this.changShare(0)
|
4d5235d7
梁保满
学生,教师修改,顶部返回备题组卷记...
|
291
|
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
292
|
},
|
77ebf04d
梁保满
个人版
|
293
294
295
296
|
changePage(page) {
this.page = page;
this._QueryData(this.query.title);
},
|
352c53cc
梁保满
上传word回传数据
|
297
|
//修改分享范围
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
298
|
async saveShare() {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
299
300
301
302
303
304
305
306
307
308
309
310
311
312
|
const { data, status, info } = await this.$request.modifyPaper({
paperId: this.shareForm.id,
sharingType: this.shareForm.sharingType,
});
if (status === 0) {
this.shareForm.id = "";
this.shareForm.sharingType = 1;
this.dialogVisible = false;
this.$message.success(info);
this._QueryData(this.query.title == "");
} else {
this.$message.error(info);
}
},
|
352c53cc
梁保满
上传word回传数据
|
313
|
//归档
|
77ebf04d
梁保满
个人版
|
314
|
async recovery(item) {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
315
316
317
318
319
|
let modifyPaper =
this.role == "ROLE_PERSONAL"
? this.$request.pModifyPaper
: this.$request.modifyPaper;
const { data, status, info } = await modifyPaper({
|
77ebf04d
梁保满
个人版
|
320
321
322
323
|
paperId: item.id,
status: 2,
});
if (status === 0) {
|
352c53cc
梁保满
上传word回传数据
|
324
|
let type = this.query.title ? true : false;
|
77ebf04d
梁保满
个人版
|
325
326
327
328
329
330
|
this.page = 1;
this._QueryData(type);
} else {
this.$message.error(info);
}
},
|
352c53cc
梁保满
上传word回传数据
|
331
332
|
//根据试卷名称查找
async getData(bool) {
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
333
|
this.page = 1;
|
352c53cc
梁保满
上传word回传数据
|
334
|
this._QueryData(bool);
|
352c53cc
梁保满
上传word回传数据
|
335
|
},
|
77ebf04d
梁保满
个人版
|
336
337
|
//切换班级
async changClazz() {
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
338
|
this.page = 1;
|
77ebf04d
梁保满
个人版
|
339
|
await this._QuerySubjectList();
|
77ebf04d
梁保满
个人版
|
340
|
this._QueryData(false);
|
352c53cc
梁保满
上传word回传数据
|
341
342
|
},
//切换类型
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
343
344
|
async changShare(share) {
this.query.share = share
|
352c53cc
梁保满
上传word回传数据
|
345
|
this.page = 1;
|
4d5235d7
梁保满
学生,教师修改,顶部返回备题组卷记...
|
346
347
348
349
350
351
352
|
this.$router.replace({
name: "examinationPaper",
query: {
type: this.query.type,
share: this.query.share,
}
})
|
352c53cc
梁保满
上传word回传数据
|
353
|
this._QueryData(false);
|
77ebf04d
梁保满
个人版
|
354
|
},
|
47a01cb6
梁保满
v1.3测试问题
|
355
356
357
358
359
360
361
362
363
364
365
366
367
|
// 查找班级
async _QueryClassList2() {
this.loading = true;
let fetchClassList =
this.role == "ROLE_PERSONAL"
? this.$request.pClassList
: this.$request.fetchClassList;
const { data, status, info } = await fetchClassList({ status: 1 });
if (status === 0) {
this.gdClass = data?.list?.length || 0;
} else {
this.$message.error(info);
|
77ebf04d
梁保满
个人版
|
368
369
370
371
372
|
}
},
// 查找班级
async _QueryClassList() {
this.loading = true;
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
373
374
375
376
377
378
|
let fetchClassList =
this.role == "ROLE_PERSONAL"
? this.$request.pClassList
: this.$request.fetchClassList;
const { data, status, info } = await fetchClassList();
|
77ebf04d
梁保满
个人版
|
379
380
381
382
383
|
if (status === 0) {
if (!!data.list) {
this.classList =
data.list?.map((item) => {
return {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
384
|
value: this.role == "ROLE_PERSONAL" ? item.id : item.classId,
|
77ebf04d
梁保满
个人版
|
385
386
387
388
389
390
391
392
393
394
395
|
label: item.className,
};
}) || [];
this.query.classId = this.classList[0]?.value;
}
} else {
this.$message.error(info);
}
},
// 查找科目
async _QuerySubjectList() {
|
34b574e0
梁保满
细节优化
|
396
|
if (!this.query.classId) return;
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
397
398
399
400
401
402
|
let fetchSubjectList =
this.role == "ROLE_PERSONAL"
? this.$request.pSubjectList
: this.$request.fetchSubjectList;
const { data, status, info } = await fetchSubjectList({
|
77ebf04d
梁保满
个人版
|
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
|
classId: this.query.classId,
});
if (status === 0) {
this.subjectList =
data.subjectNames?.map((item) => {
return {
value: item,
label: item,
};
}) || [];
this.query.subjectName = this.subjectList[0]?.value;
} else {
this.$message.error(info);
}
},
async _QueryData(type) {
|
34b574e0
梁保满
细节优化
|
419
|
if (!this.query.classId) return;
|
77ebf04d
梁保满
个人版
|
420
421
422
423
424
|
this.loading = true;
//获取答题卡列表
let query = {};
if (!type) {
this.query.title = "";
|
77ebf04d
梁保满
个人版
|
425
|
}
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
426
|
query = { ...this.query };
|
77ebf04d
梁保满
个人版
|
427
|
for (let key in query) {
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
428
|
if (!query[key] && query[key] !== 0) {
|
352c53cc
梁保满
上传word回传数据
|
429
|
delete query[key]
|
77ebf04d
梁保满
个人版
|
430
431
432
433
434
435
436
437
438
|
}
}
if (!query.classId) {
this.total = 0;
this.tableData = [];
this.loading = false;
return;
}
this.loading = true;
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
439
440
441
442
443
444
|
let fetchPaperList =
this.role == "ROLE_PERSONAL"
? this.$request.pPaperList
: this.$request.fetchPaperList;
const { data, status, info } = await fetchPaperList({
|
77ebf04d
梁保满
个人版
|
445
446
447
448
449
450
451
|
...query,
status: 1,
page: this.page,
size: this.size,
});
this.loading = false;
if (status === 0) {
|
e17ec739
梁保满
随堂问,即时测导出爆表修改
|
452
453
|
this.totalCount.my = data?.myCount || 0;
this.totalCount.share = data?.gradeCount || 0;
|
77ebf04d
梁保满
个人版
|
454
455
456
457
458
459
460
|
this.archivedTotal = data.archivedTotal;
this.total = data.total;
this.tableData = (data.list && [...data.list]) || [];
} else {
this.$message.error(info);
}
},
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
461
462
463
464
|
//v1.5
upSuccess(res) {
|
352c53cc
梁保满
上传word回传数据
|
465
466
467
468
469
470
471
472
473
474
475
|
if (res.status == 0) {
//导入成功
this.$message.closeAll();
this.$message({
showClose: true,
message: `${res.info}`,
type: "success",
duration: 2000,
});
this.diaUp = false;
let params = JSON.stringify(res.data)
|
3ca58022
梁保满
修改添加组卷题目解析,知识点梳理等
|
476
477
478
479
480
|
if (this.query.type == 2) {
this.toAdd({ params, isUpload: 1 })
} else {
this.toAddAsk({ params })
}
|
352c53cc
梁保满
上传word回传数据
|
481
|
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
482
483
484
485
486
487
488
489
490
491
492
|
},
handleAdd(value) {
if (value == 2) {
this.toAdd()
} else {
this.diaUp = true
}
},
async downExcel() {
|
5f80d60e
梁保满
备题试卷模版
|
493
494
495
496
497
|
axios("static/试卷模板.docx", {
responseType: "arraybuffer"
}).then(res => {
let blob = new Blob([res.data], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
498
|
});
|
5f80d60e
梁保满
备题试卷模版
|
499
500
|
downloadFile("试卷模板.docx", blob);
})
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
501
|
},
|
77ebf04d
梁保满
个人版
|
502
503
504
505
506
507
508
509
510
511
512
513
514
|
},
};
</script>
<style scoped lang="scss">
.tips {
display: flex;
padding-left: 30px;
line-height: 16px;
font-size: 14px;
color: #999;
margin-bottom: 10px;
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
515
|
|
77ebf04d
梁保满
个人版
|
516
517
518
519
520
|
.content {
margin: 0 20px;
background: #f8f8f8;
padding: 12px;
border-radius: 20px;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
521
|
|
77ebf04d
梁保满
个人版
|
522
523
524
525
526
527
528
529
530
531
|
.item {
display: flex;
align-items: center;
width: 100%;
overflow: hidden;
box-sizing: border-box;
padding: 12px;
border-radius: 20px;
background: #fff;
margin-bottom: 12px;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
532
|
|
77ebf04d
梁保满
个人版
|
533
534
535
|
&:last-of-type {
margin-bottom: 0;
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
536
|
|
77ebf04d
梁保满
个人版
|
537
538
539
540
541
542
543
544
545
546
|
.pic-box {
width: 80px;
height: 80px;
border-radius: 10px;
margin-right: 10px;
flex-shrink: 0;
background: #667ffd;
text-align: center;
color: #fff;
font-weight: 500;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
547
|
|
77ebf04d
梁保满
个人版
|
548
549
550
551
552
553
|
.i-box {
padding-top: 10px;
font-size: 32px;
margin-bottom: 3px;
}
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
554
|
|
77ebf04d
梁保满
个人版
|
555
556
557
558
559
560
561
|
.info {
min-height: 80px;
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
562
|
|
77ebf04d
梁保满
个人版
|
563
564
565
566
|
.s-line {
padding: 0 5px;
color: #e2e2e2;
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
567
|
|
77ebf04d
梁保满
个人版
|
568
569
570
571
|
.title {
font-size: 16px;
color: #222;
font-weight: 500;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
572
|
|
77ebf04d
梁保满
个人版
|
573
574
575
576
577
578
579
580
581
582
583
|
.label {
display: inline-block;
font-size: 12px;
color: #2e9afe;
line-height: 16px;
padding: 0 10px;
border: 1px solid #2e9afe;
border-radius: 10px;
transform: translateY(-2px);
}
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
584
|
|
77ebf04d
梁保满
个人版
|
585
586
587
588
|
.person {
color: #666;
}
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
589
|
|
77ebf04d
梁保满
个人版
|
590
591
592
593
594
|
.clazz {
font-size: 14px;
font-weight: 500;
position: relative;
position: relative;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
595
|
|
77ebf04d
梁保满
个人版
|
596
597
598
|
&.active {
color: #667ffd;
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
599
|
|
77ebf04d
梁保满
个人版
|
600
601
602
603
604
605
|
.el-icon-success {
position: absolute;
right: 0;
top: -5px;
color: #667ffd;
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
606
|
|
77ebf04d
梁保满
个人版
|
607
608
609
610
611
612
|
&:last-of-type {
.el-icon-success {
right: -18px;
}
}
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
613
|
|
77ebf04d
梁保满
个人版
|
614
615
|
.btn-box {
flex-shrink: 0;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
616
|
|
77ebf04d
梁保满
个人版
|
617
618
619
620
|
.edit {
margin-right: 12px;
}
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
621
|
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
622
623
|
.icon-refresh {
margin-left: 20px;
|
77ebf04d
梁保满
个人版
|
624
|
cursor: pointer;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
625
|
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
626
627
|
&:hover {
color: #2e9afe;
|
77ebf04d
梁保满
个人版
|
628
629
630
631
|
}
}
}
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
632
|
|
77ebf04d
梁保满
个人版
|
633
634
635
636
637
|
.answer-header {
.sel-box {
.sel {
min-width: 160px;
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
638
|
|
77ebf04d
梁保满
个人版
|
639
640
641
642
643
|
:deep(.el-cascader__tags) {
flex-wrap: nowrap;
}
}
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
644
|
|
77ebf04d
梁保满
个人版
|
645
646
|
.dialog-footer {
text-align: center;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
647
|
|
77ebf04d
梁保满
个人版
|
648
649
650
651
652
653
|
:deep(.el-button) {
border-radius: 20px;
padding: 8px 20px 7px;
margin: 0 12px;
}
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
654
655
656
657
658
659
660
661
662
|
// v1.5
.examinationPaper-type {
padding: 16px 40px 0 20px;
width: 100%;
box-sizing: border-box;
display: flex;
justify-content: space-between;
}
|
352c53cc
梁保满
上传word回传数据
|
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
|
.content {
.tab-box {
padding-bottom: 10px;
.tab-s {
margin: 0 10px;
font-size: 17px;
line-height: 24px;
font-weight: 500;
cursor: pointer;
&:hover {
color: #667ffd;
}
&.active {
color: #667ffd;
border-bottom: 1px solid #667ffd
}
}
}
}
|
4d5235d7
梁保满
学生,教师修改,顶部返回备题组卷记...
|
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
|
.down-head {
display: flex;
align-items: center;
line-height: 22px;
.img-box {
position: relative;
color: #667ffd;
.img {
position: absolute;
left: -1px;
top: -1px;
opacity: 0;
width: 86px;
height: 22px;
}
}
}
|
77ebf04d
梁保满
个人版
|
706
|
</style>
|