index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
  4. <el-form-item label="题目类型" prop="quType">
  5. <el-select v-model="queryParams.quType" placeholder="请选择题目类型" clearable size="small">
  6. <el-option
  7. v-for="item in quTypes"
  8. :key="item.value"
  9. :label="item.label"
  10. :value="item.value"
  11. />
  12. </el-select>
  13. </el-form-item>
  14. <el-form-item label="题库" prop="repoIds">
  15. <repo-select v-model="queryParams.repoIds" :multi="true" />
  16. </el-form-item>
  17. <el-form-item>
  18. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  19. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  20. </el-form-item>
  21. </el-form>
  22. <el-row :gutter="10" class="mb8">
  23. <el-col :span="1.5">
  24. <el-button
  25. type="primary"
  26. icon="el-icon-plus"
  27. size="mini"
  28. @click="handleAdd"
  29. v-hasPermi="['elearn:qu:add']"
  30. >新增</el-button>
  31. </el-col>
  32. <el-col :span="1.5">
  33. <el-button
  34. type="success"
  35. icon="el-icon-edit"
  36. size="mini"
  37. :disabled="single"
  38. @click="handleUpdate"
  39. v-hasPermi="['elearn:qu:edit']"
  40. >修改</el-button>
  41. </el-col>
  42. <el-col :span="1.5">
  43. <el-button
  44. type="danger"
  45. icon="el-icon-delete"
  46. size="mini"
  47. :disabled="multiple"
  48. @click="handleDelete"
  49. v-hasPermi="['elearn:qu:remove']"
  50. >删除</el-button>
  51. </el-col>
  52. <el-col :span="1.5">
  53. <el-button
  54. type="info"
  55. icon="el-icon-upload2"
  56. size="mini"
  57. @click="handleImport"
  58. >WORD导入</el-button>
  59. </el-col>
  60. <el-col :span="1.5">
  61. <el-button
  62. type="info"
  63. icon="el-icon-upload2"
  64. size="mini"
  65. @click="handleImportExcel"
  66. >EXCEL导入</el-button>
  67. </el-col>
  68. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  69. </el-row>
  70. <el-table v-loading="loading" :data="quList" @selection-change="handleSelectionChange" :height="clientHeight" border>
  71. <el-table-column type="selection" width="55" align="center" />
  72. <el-table-column label="题目类型" align="center" prop="quType" width="100" :show-overflow-tooltip="true">
  73. <template v-slot="scope">
  74. <span v-if="scope.row.quType == 1" size="small" type="success">单选题</span>
  75. <span v-else-if="scope.row.quType == 2" size="small" type="success">多选题</span>
  76. <span v-else-if="scope.row.quType == 3" size="small" type="success">判断题</span>
  77. </template>
  78. </el-table-column>
  79. <el-table-column label="题目内容" align="left" prop="content" :show-overflow-tooltip="true"/>
  80. <el-table-column label="创建时间" align="center" prop="createdate" width="100">
  81. <template slot-scope="scope">
  82. <span>{{ parseTime(scope.row.createdate, '{y}-{m}-{d}') }}</span>
  83. </template>
  84. </el-table-column>
  85. <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
  86. <template slot-scope="scope">
  87. <el-button
  88. size="mini"
  89. type="text"
  90. icon="el-icon-edit"
  91. @click="handleUpdate(scope.row)"
  92. v-hasPermi="['elearn:qu:edit']"
  93. >修改</el-button>
  94. <el-button
  95. size="mini"
  96. type="text"
  97. icon="el-icon-delete"
  98. @click="handleDelete(scope.row)"
  99. v-hasPermi="['elearn:qu:remove']"
  100. >删除</el-button>
  101. </template>
  102. </el-table-column>
  103. </el-table>
  104. <pagination
  105. v-show="total>0"
  106. :total="total"
  107. :page.sync="queryParams.pageNum"
  108. :limit.sync="queryParams.pageSize"
  109. @pagination="getList"
  110. />
  111. <!-- 添加或修改试题对话框 -->
  112. <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
  113. <el-form ref="form" :model="form" :rules="rules" label-width="100px">
  114. <el-card>
  115. <el-form-item label="题目类型 " prop="quType">
  116. <el-select v-model="form.quType" :disabled="quTypeDisabled" class="filter-item" @change="handleTypeChange">
  117. <el-option
  118. v-for="item in quTypes"
  119. :key="item.value"
  120. :label="item.label"
  121. :value="item.value"
  122. />
  123. </el-select>
  124. </el-form-item>
  125. <el-form-item label="难度等级 " prop="qlevel">
  126. <el-select v-model="form.qlevel" class="filter-item">
  127. <el-option
  128. v-for="item in levels"
  129. :key="item.value"
  130. :label="item.label"
  131. :value="item.value"
  132. />
  133. </el-select>
  134. </el-form-item>
  135. <el-form-item label="归属题库" prop="repoIds">
  136. <repo-select v-model="form.repoIds" :multi="true" />
  137. </el-form-item>
  138. <el-form-item label="题目内容" prop="content">
  139. <el-input v-model="form.content" type="textarea" />
  140. </el-form-item>
  141. <el-form-item label="试题图片">
  142. <el-upload
  143. ref="photo"
  144. :headers="photo.headers"
  145. :action="photo.url"
  146. :show-file-list="false"
  147. :on-success="handleAvatarSuccess"
  148. list-type="picture-card">
  149. <img v-if="image" :src="image" class="avatar">
  150. <i v-else class="el-icon-plus "></i>
  151. </el-upload>
  152. <el-dialog :close-on-click-modal="false" v-dialogDrag :visible.sync="dialogVisible" append-to-body>
  153. <img width="100%" :src="dialogImageUrl" alt="">
  154. </el-dialog>
  155. </el-form-item>
  156. <el-form-item label="整题解析" prop="oriPrice">
  157. <el-input v-model="form.analysis" :precision="1" :max="999999" type="textarea" />
  158. </el-form-item>
  159. </el-card>
  160. <div v-if="form.quType!==4" class="filter-container" style="margin-top: 25px">
  161. <el-button class="filter-item" type="primary" icon="el-icon-plus" size="small" plain @click="handleAddItem">
  162. 添加
  163. </el-button>
  164. <el-table
  165. :data="form.answerList"
  166. :border="true"
  167. style="width: 100%;"
  168. >
  169. <el-table-column
  170. label="是否答案"
  171. width="120"
  172. align="center"
  173. >
  174. <template v-slot="scope">
  175. <el-checkbox v-model="scope.row.isRight" :true-label=1 :false-label=0>答案</el-checkbox>
  176. </template>
  177. </el-table-column>
  178. <!-- <el-table-column-->
  179. <!-- v-if="itemImage"-->
  180. <!-- label="选项图片"-->
  181. <!-- width="120px"-->
  182. <!-- align="center"-->
  183. <!-- >-->
  184. <!-- <template v-slot="scope">-->
  185. <!-- <file-upload-->
  186. <!-- v-model="scope.row.image"-->
  187. <!-- accept=".jpg,.jepg,.png"-->
  188. <!-- />-->
  189. <!-- </template>-->
  190. <!-- </el-table-column>-->
  191. <el-table-column
  192. label="答案内容"
  193. >
  194. <template v-slot="scope">
  195. <el-input v-model="scope.row.content" type="textarea" />
  196. </template>
  197. </el-table-column>
  198. <el-table-column
  199. label="答案解析"
  200. >
  201. <template v-slot="scope">
  202. <el-input v-model="scope.row.analysis" type="textarea" />
  203. </template>
  204. </el-table-column>
  205. <el-table-column
  206. label="操作"
  207. align="center"
  208. width="100px"
  209. >
  210. <template v-slot="scope">
  211. <el-button type="danger" icon="el-icon-delete" circle @click="removeItem(scope.$index)" />
  212. </template>
  213. </el-table-column>
  214. </el-table>
  215. </div>
  216. </el-form>
  217. <div slot="footer" class="dialog-footer">
  218. <el-button type="primary" @click="submitForm">确 定</el-button>
  219. <el-button @click="cancel">取 消</el-button>
  220. </div>
  221. </el-dialog>
  222. <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
  223. <el-upload
  224. ref="upload"
  225. :limit="1"
  226. :headers="upload.headers"
  227. :action="upload.url + '?repoIds=' + upload.repoIds"
  228. :disabled="upload.isUploading"
  229. :on-progress="handleFileUploadProgress"
  230. :on-success="handleFileSuccess"
  231. :auto-upload="false"
  232. drag
  233. >
  234. <i class="el-icon-upload"></i>
  235. <div class="el-upload__text">
  236. 将文件拖到此处,或
  237. <em>点击上传</em>
  238. </div>
  239. <div class="el-upload__tip" slot="tip">
  240. <repo-select v-model="upload.repoIds" :multi="true" />
  241. </div>
  242. <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“doc”格式文件!</div>
  243. </el-upload>
  244. <div slot="footer" class="dialog-footer">
  245. <el-button type="primary" @click="submitFileForm">确 定</el-button>
  246. <el-button @click="upload.open = false">取 消</el-button>
  247. </div>
  248. </el-dialog>
  249. <el-dialog :title="uploadExcel.title" :visible.sync="uploadExcel.open" width="400px" append-to-body>
  250. <el-upload
  251. ref="uploadExcel"
  252. :limit="1"
  253. :headers="uploadExcel.headers"
  254. :action="uploadExcel.url + '?repoIds=' + uploadExcel.repoIds"
  255. :disabled="uploadExcel.isUploading"
  256. :on-progress="handleFileUploadProgressExcel"
  257. :on-success="handleFileSuccessExcel"
  258. :auto-upload="false"
  259. drag
  260. >
  261. <i class="el-icon-upload"></i>
  262. <div class="el-upload__text">
  263. 将文件拖到此处,或
  264. <em>点击上传</em>
  265. </div>
  266. <div class="el-upload__tip" slot="tip">
  267. <repo-select v-model="uploadExcel.repoIds" :multi="true" />
  268. </div>
  269. <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“doc”格式文件!</div>
  270. </el-upload>
  271. <div slot="footer" class="dialog-footer">
  272. <el-button type="primary" @click="submitFileFormExcel">确 定</el-button>
  273. <el-button @click="uploadExcel.open = false">取 消</el-button>
  274. </div>
  275. </el-dialog>
  276. </div>
  277. </template>
  278. <script>
  279. import { listQu, getQu, delQu, addQu, updateQu, exportQu, importTemplate} from "@/api/training/elearn/qu";
  280. import { treeselect } from "@/api/system/dept";
  281. import { getToken } from "@/utils/auth";
  282. import Treeselect from "@riophae/vue-treeselect";
  283. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  284. import Editor from '@/components/Editor';
  285. import RepoSelect from '@/components/RepoSelect'
  286. export default {
  287. name: "Qu",
  288. components: { Treeselect,RepoSelect },
  289. data() {
  290. return {
  291. // 遮罩层
  292. loading: true,
  293. // 选中数组
  294. ids: [],
  295. // 非单个禁用
  296. single: true,
  297. // 非多个禁用
  298. multiple: true,
  299. // 显示搜索条件
  300. showSearch: false,
  301. // 总条数
  302. total: 0,
  303. // 试题表格数据
  304. quList: [],
  305. // 弹出层标题
  306. title: "",
  307. // 部门树选项
  308. deptOptions: undefined,
  309. quTypes: [
  310. {
  311. value: 1,
  312. label: '单选题'
  313. },
  314. {
  315. value: 2,
  316. label: '多选题'
  317. },
  318. {
  319. value: 3,
  320. label: '判断题'
  321. }
  322. ],
  323. quTypeDisabled: false,
  324. itemImage: true,
  325. levels: [
  326. { value: 1, label: '普通' },
  327. { value: 2, label: '较难' }
  328. ],
  329. clientHeight:300,
  330. // 是否显示弹出层
  331. open: false,
  332. // 用户导入参数
  333. upload: {
  334. // 是否显示弹出层(用户导入)
  335. open: false,
  336. // 弹出层标题(用户导入)
  337. title: "",
  338. // 是否禁用上传
  339. isUploading: false,
  340. // 是否更新已经存在的用户数据
  341. updateSupport: 0,
  342. // 设置上传的请求头部
  343. headers: { Authorization: "Bearer " + getToken() },
  344. // 上传的地址
  345. url: process.env.VUE_APP_BASE_API + "/elearn/qu/importData"
  346. },
  347. // 用户导入参数
  348. uploadExcel: {
  349. // 是否显示弹出层(用户导入)
  350. open: false,
  351. // 弹出层标题(用户导入)
  352. title: "",
  353. // 是否禁用上传
  354. isUploading: false,
  355. // 是否更新已经存在的用户数据
  356. updateSupport: 0,
  357. // 设置上传的请求头部
  358. headers: { Authorization: "Bearer " + getToken() },
  359. // 上传的地址
  360. url: process.env.VUE_APP_BASE_API + "/elearn/qu/importDataExcel"
  361. },
  362. photo: {
  363. imageUrl: '',
  364. fileList: [],
  365. // 设置上传的请求头部
  366. headers: { Authorization: "Bearer " + getToken() },
  367. // 上传的地址
  368. url: process.env.VUE_APP_BASE_API + "/elearn/qu/uploadFile",
  369. },
  370. image: '',
  371. dialogImageUrl: '',
  372. dialogVisible: false,
  373. // 查询参数
  374. queryParams: {
  375. pageNum: 1,
  376. pageSize: 20,
  377. quType: null,
  378. qlevel: null,
  379. content: null,
  380. image: null,
  381. analysis: null,
  382. createrCode: null,
  383. createdate: null,
  384. updaterCode: null,
  385. updatedate: null,
  386. deptId: null,
  387. remarks: null,
  388. repoIds: null,
  389. },
  390. // 表单参数
  391. form: {
  392. repoIds: [],
  393. tagList: [],
  394. answerList: []
  395. },
  396. // 表单校验
  397. rules: {
  398. }
  399. };
  400. },
  401. watch: {
  402. // 根据名称筛选部门树
  403. deptName(val) {
  404. this.$refs.tree.filter(val);
  405. }
  406. },
  407. created() {
  408. //设置表格高度对应屏幕高度
  409. this.$nextTick(() => {
  410. this.clientHeight = document.body.clientHeight -250
  411. })
  412. this.getList();
  413. this.getTreeselect();
  414. },
  415. methods: {
  416. /** 查询试题列表 */
  417. getList() {
  418. this.loading = true;
  419. listQu(this.queryParams).then(response => {
  420. this.quList = response.rows;
  421. this.total = response.total;
  422. this.loading = false;
  423. });
  424. },
  425. /** 查询部门下拉树结构 */
  426. getTreeselect() {
  427. treeselect().then(response => {
  428. this.deptOptions = response.data;
  429. });
  430. },
  431. // 取消按钮
  432. cancel() {
  433. this.open = false;
  434. this.reset();
  435. },
  436. // 表单重置
  437. reset() {
  438. this.image= null,
  439. this.form = {
  440. quId: null,
  441. quType: null,
  442. qlevel: null,
  443. content: null,
  444. image: null,
  445. analysis: null,
  446. delFlag: null,
  447. createrCode: null,
  448. createdate: null,
  449. updaterCode: null,
  450. updatedate: null,
  451. deptId: null,
  452. remarks: null,
  453. repoIds: [],
  454. tagList: [],
  455. answerList: []
  456. };
  457. this.resetForm("form");
  458. },
  459. /** 搜索按钮操作 */
  460. handleQuery() {
  461. this.queryParams.pageNum = 1;
  462. this.getList();
  463. },
  464. /** 重置按钮操作 */
  465. resetQuery() {
  466. this.resetForm("queryForm");
  467. this.queryParams.repoIds = []
  468. this.handleQuery();
  469. },
  470. // 多选框选中数据
  471. handleSelectionChange(selection) {
  472. this.ids = selection.map(item => item.quId)
  473. this.single = selection.length!==1
  474. this.multiple = !selection.length
  475. },
  476. /** 新增按钮操作 */
  477. handleAdd() {
  478. this.reset();
  479. this.open = true;
  480. this.title = "添加试题";
  481. },
  482. /** 修改按钮操作 */
  483. handleUpdate(row) {
  484. this.reset();
  485. const quId = row.quId || this.ids
  486. getQu(quId).then(response => {
  487. this.form = response.data;
  488. if (response.data.image) {
  489. this.image = process.env.VUE_APP_BASE_API + response.data.image;
  490. }
  491. this.form.repoIds = this.form.repoIds.map(Number)
  492. this.open = true;
  493. this.title = "修改试题";
  494. });
  495. },
  496. /** 提交按钮 */
  497. submitForm() {
  498. this.$refs["form"].validate(valid => {
  499. if (valid) {
  500. if (this.form.quId != null) {
  501. updateQu(this.form).then(response => {
  502. this.msgSuccess("修改成功");
  503. this.open = false;
  504. this.getList();
  505. });
  506. } else {
  507. addQu(this.form).then(response => {
  508. this.msgSuccess("新增成功");
  509. this.open = false;
  510. this.getList();
  511. });
  512. }
  513. }
  514. });
  515. },
  516. /** 删除按钮操作 */
  517. handleDelete(row) {
  518. const quIds = row.quId || this.ids;
  519. this.$confirm('是否确认删除?', "警告", {
  520. confirmButtonText: "确定",
  521. cancelButtonText: "取消",
  522. type: "warning"
  523. }).then(function() {
  524. return delQu(quIds);
  525. }).then(() => {
  526. this.getList();
  527. this.msgSuccess("删除成功");
  528. })
  529. },
  530. /** 导出按钮操作 */
  531. handleExport() {
  532. const queryParams = this.queryParams;
  533. this.$confirm('是否确认导出所有试题数据项?', "警告", {
  534. confirmButtonText: "确定",
  535. cancelButtonText: "取消",
  536. type: "warning"
  537. }).then(function() {
  538. return exportQu(queryParams);
  539. }).then(response => {
  540. this.download(response.msg);
  541. })
  542. },
  543. /** 导入按钮操作 */
  544. handleImport() {
  545. this.upload.title = "用户导入";
  546. this.upload.open = true;
  547. },
  548. handleImportExcel() {
  549. this.uploadExcel.title = "用户导入";
  550. this.uploadExcel.open = true;
  551. },
  552. /** 下载模板操作 */
  553. importTemplate() {
  554. importTemplate().then(response => {
  555. this.download(response.msg);
  556. });
  557. },
  558. // 文件上传中处理
  559. handleFileUploadProgress(event, file, fileList) {
  560. this.upload.isUploading = true;
  561. },
  562. // 文件上传成功处理
  563. handleFileSuccess(response, file, fileList) {
  564. this.upload.open = false;
  565. this.upload.isUploading = false;
  566. this.$refs.upload.clearFiles();
  567. this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
  568. this.getList();
  569. },
  570. // 提交上传文件
  571. submitFileFormExcel() {
  572. this.$refs.uploadExcel.submit();
  573. },
  574. // 文件上传中处理
  575. handleFileUploadProgressExcel(event, file, fileList) {
  576. this.uploadExcel.isUploading = true;
  577. },
  578. // 文件上传成功处理
  579. handleFileSuccessExcel(response, file, fileList) {
  580. this.uploadExcel.open = false;
  581. this.uploadExcel.isUploading = false;
  582. this.$refs.uploadExcel.clearFiles();
  583. if (response.data.length > 0) {
  584. let failrow = ''
  585. for (let i = 0; i < response.data.length; i++) {
  586. failrow += response.data[i] + ','
  587. }
  588. this.$alert(this.$t('导入成功条数:') + response.msg + '<br>' + this.$t('失败行数:') + failrow, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
  589. } else {
  590. this.$alert(this.$t('导入成功条数:') + response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
  591. }
  592. this.getList();
  593. },
  594. // 提交上传文件
  595. submitFileForm() {
  596. this.$refs.upload.submit();
  597. },
  598. handleTypeChange(v) {
  599. this.form.answerList = []
  600. if (v === 3) {
  601. this.form.answerList.push({ isRight: 1, content: '正确', analysis: '' })
  602. this.form.answerList.push({ isRight: 0, content: '错误', analysis: '' })
  603. }
  604. if (v === 1 || v === 2) {
  605. this.form.answerList.push({ isRight: 0, content: '', analysis: '' })
  606. this.form.answerList.push({ isRight: 0, content: '', analysis: '' })
  607. this.form.answerList.push({ isRight: 0, content: '', analysis: '' })
  608. this.form.answerList.push({ isRight: 0, content: '', analysis: '' })
  609. }
  610. },
  611. // 添加子项
  612. handleAddItem() {
  613. this.form.answerList.push({ isRight: 0, content: '', analysis: '' })
  614. },
  615. removeItem(index) {
  616. this.form.answerList.splice(index, 1)
  617. },
  618. handleAvatarProgress(event, file, fileList) {
  619. this.photo.file = file;
  620. this.image = file;
  621. },
  622. handleAvatarSuccess (res, file, fileList) {
  623. this.image = URL.createObjectURL(file.raw);
  624. this.form.image = fileList.map((obj)=>{return obj.response.msg}).join(",");
  625. this.$alert(res.msg, this.$t('导入结果'), { dangerouslyUseHTMLString: true });
  626. },
  627. handlePictureCardPreview(file) {
  628. console.info("111" + file.url)
  629. this.dialogImageUrl = file.url;
  630. this.dialogVisible = true;
  631. },
  632. }
  633. };
  634. </script>
  635. <style>
  636. .text {
  637. font-size: 14px;
  638. }
  639. .item {
  640. margin-bottom: 18px;
  641. }
  642. .clearfix {
  643. color: #1e1e1e;
  644. }
  645. .clearfix:before,
  646. .clearfix:after {
  647. display: table;
  648. content: "";
  649. }
  650. .clearfix:after {
  651. clear: both
  652. }
  653. .box-card {
  654. width: 100%;
  655. }
  656. .el-drawer__body {
  657. overflow: auto;
  658. }
  659. .el-drawer__container ::-webkit-scrollbar {
  660. display: none;
  661. }
  662. .avatar-uploader .el-upload {
  663. border: 1px dashed #d9d9d9;
  664. border-radius: 6px;
  665. cursor: pointer;
  666. position: relative;
  667. overflow: hidden;
  668. }
  669. .avatar-uploader .el-upload:hover {
  670. border-color: #409EFF;
  671. }
  672. .avatar-uploader-icon {
  673. font-size: 28px;
  674. color: #8c939d;
  675. width: 178px;
  676. height: 178px;
  677. line-height: 178px;
  678. text-align: center;
  679. }
  680. .avatar {
  681. width: 120px;
  682. height: 140px;
  683. }
  684. .el-tag.el-tag--info {
  685. color: #606266;
  686. }
  687. </style>