index.vue 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216
  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="$t('员工姓名')" prop="name">
  5. <el-input
  6. v-model="queryParams.name"
  7. :placeholder="$t('请输入') + $t('员工姓名')"
  8. clearable
  9. size="small"
  10. @keyup.enter.native="handleQuery"
  11. />
  12. </el-form-item>
  13. <el-form-item :label="$t('性别')" prop="sexs">
  14. <el-select v-model="queryParams.sexs" :placeholder="$t('请选择') + $t('性别')" clearable size="small" multiple>
  15. <el-option
  16. v-for="dict in sexOptions"
  17. :key="dict.dictValue"
  18. :label="dict.dictLabel"
  19. :value="dict.dictValue"
  20. />
  21. </el-select>
  22. </el-form-item>
  23. <el-form-item :label="$t('部门')" prop="units">
  24. <el-select v-model="units" :placeholder="$t('请选择') + $t('部门')" clearable size="small" multiple>
  25. <el-option
  26. v-for="dict in unitOptions"
  27. :key="dict.dictValue"
  28. :label="dict.dictLabel"
  29. :value="dict.dictValue"
  30. />
  31. </el-select>
  32. </el-form-item>
  33. <el-form-item :label="$t('班值')" prop="teams">
  34. <el-select v-model="teams" :placeholder="$t('请选择') + $t('班值')" clearable size="small" multiple>
  35. <el-option
  36. v-for="dict in teamOptions"
  37. :key="dict.dictValue"
  38. :label="dict.dictLabel"
  39. :value="dict.dictValue"
  40. />
  41. </el-select>
  42. </el-form-item>
  43. <el-form-item :label="$t('实际岗位')" prop="actualposts" label-width="200">
  44. <el-select v-model="actualposts" :placeholder="$t('请选择') + $t('实际岗位')" clearable size="small" multiple>
  45. <el-option
  46. v-for="dict in actualpostOptions"
  47. :key="dict.dictValue"
  48. :label="dict.dictLabel"
  49. :value="dict.dictValue"
  50. />
  51. </el-select>
  52. </el-form-item>
  53. <el-form-item :label="$t('学历')" prop="educations" label-width="200">
  54. <el-select v-model="educations" :placeholder="$t('请选择') + $t('学历')" clearable size="small" multiple>
  55. <el-option
  56. v-for="dict in educationOptions"
  57. :key="dict.dictValue"
  58. :label="dict.dictLabel"
  59. :value="dict.dictValue"
  60. />
  61. </el-select>
  62. </el-form-item>
  63. <el-form-item :label="$t('英语能力')" prop="enAbilitys" label-width="200">
  64. <el-select v-model="enAbilitys" :placeholder="$t('请选择') + $t('英语能力')" clearable size="small" multiple>
  65. <el-option
  66. v-for="dict in enAbilityOptions"
  67. :key="dict.dictValue"
  68. :label="dict.dictLabel"
  69. :value="dict.dictValue"
  70. />
  71. </el-select>
  72. </el-form-item>
  73. <el-form-item>
  74. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('搜索') }}</el-button>
  75. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('重置') }}</el-button>
  76. </el-form-item>
  77. </el-form>
  78. <el-row :gutter="10" class="mb8">
  79. <el-col :span="1.5">
  80. <el-button
  81. type="primary"
  82. icon="el-icon-plus"
  83. size="mini"
  84. @click="handleAdd"
  85. v-hasPermi="['plant:staffmgr:add']"
  86. >{{ $t('新增') }}</el-button>
  87. </el-col>
  88. <el-col :span="1.5">
  89. <el-button
  90. type="success"
  91. icon="el-icon-edit"
  92. size="mini"
  93. :disabled="single"
  94. @click="handleUpdate"
  95. v-hasPermi="['plant:staffmgr:edit']"
  96. >{{ $t('修改') }}</el-button>
  97. </el-col>
  98. <el-col :span="1.5">
  99. <el-button
  100. type="danger"
  101. icon="el-icon-delete"
  102. size="mini"
  103. :disabled="multiple"
  104. @click="handleDelete"
  105. v-hasPermi="['plant:staffmgr:remove']"
  106. >{{ $t('删除') }}</el-button>
  107. </el-col>
  108. <el-col :span="1.5">
  109. <el-button
  110. type="info"
  111. icon="el-icon-upload2"
  112. size="mini"
  113. @click="handleImport"
  114. v-hasPermi="['plant:staffmgr:edit']"
  115. >{{ $t('导入') }}</el-button>
  116. </el-col>
  117. <el-col :span="1.5">
  118. <el-button
  119. type="warning"
  120. icon="el-icon-download"
  121. size="mini"
  122. @click="handleExport"
  123. v-hasPermi="['plant:staffmgr:export']"
  124. >{{ $t('导出') }}</el-button>
  125. </el-col>
  126. <el-col :span="1.5">
  127. <el-button
  128. type="primary"
  129. icon="el-icon-s-data"
  130. size="mini"
  131. @click="handleData"
  132. >{{ $t('数据分析') }}</el-button>
  133. </el-col>
  134. <el-col :span="1.5">
  135. <el-button
  136. type="success"
  137. icon="el-icon-s-release"
  138. size="mini"
  139. @click="handleLeft"
  140. >{{ $t('离职名单') }}</el-button>
  141. </el-col>
  142. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  143. </el-row>
  144. <el-table v-loading="loading" :data="staffmgrList" @selection-change="handleSelectionChange" :height="clientHeight" border>
  145. <el-table-column type="selection" width="55" align="center" />
  146. <el-table-column :label="$t('装置名称')" align="center" prop="plantCode" :formatter="plantCodeFormat" />
  147. <el-table-column :label="$t('员工编号')" align="center" prop="staffid" :show-overflow-tooltip="true"/>
  148. <el-table-column :label="$t('员工姓名')" align="center" prop="name" :show-overflow-tooltip="true"/>
  149. <el-table-column :label="$t('性别')" align="center" prop="sex" :formatter="sexFormat" />
  150. <el-table-column :label="$t('出生日期')" align="center" prop="birthday" width="100">
  151. <template slot-scope="scope">
  152. <span>{{ parseTime(scope.row.birthday, '{y}-{m}-{d}') }}</span>
  153. </template>
  154. </el-table-column>
  155. <el-table-column :label="$t('部门')" align="center" prop="unit" :formatter="unitFormat" />
  156. <el-table-column :label="$t('班值')" align="center" prop="team" :formatter="teamFormat" />
  157. <el-table-column :label="$t('实际岗位')" align="center" prop="actualpost" width="120" :formatter="actualpostFormat" />
  158. <el-table-column :label="$t('联系方式')" align="center" prop="contact" width="150" :show-overflow-tooltip="true"/>
  159. <el-table-column :label="$t('学历')" align="center" prop="education" :formatter="educationFormat" />
  160. <el-table-column :label="$t('英语能力')" align="center" prop="enAbility" :formatter="enAbilityFormat" />
  161. <el-table-column :label="$t('邮箱')" align="center" prop="mail" width="230" :show-overflow-tooltip="true"/>
  162. <!--<el-table-column :label="$t('隐患查找数量')" align="center" prop="accidentNum" width="100" :show-overflow-tooltip="true"/>
  163. <el-table-column :label="$t('技能评估得分')" align="center" prop="skillScore" width="100" :show-overflow-tooltip="true"/>-->
  164. <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
  165. <!--<el-table-column label="特殊职能" align="center" prop="specialDuty" :formatter="specialDutyFormat" />-->
  166. <el-table-column :label="$t('操作')" align="center" fixed="right" width="220" class-name="small-padding fixed-width">
  167. <template slot-scope="scope">
  168. <el-button
  169. size="mini"
  170. type="text"
  171. icon="el-icon-edit"
  172. @click="handleUpdate(scope.row)"
  173. v-hasPermi="['plant:staffmgr:edit']"
  174. >{{ $t('修改') }}</el-button>
  175. <el-button
  176. size="mini"
  177. type="text"
  178. icon="el-icon-delete"
  179. @click="handleDelete(scope.row)"
  180. v-hasPermi="['plant:staffmgr:remove']"
  181. >{{ $t('删除') }}</el-button>
  182. <el-button
  183. size="mini"
  184. type="text"
  185. icon="el-icon-s-release"
  186. @click="handleLeftDelete(scope.row)"
  187. v-hasPermi="['plant:staffmgr:remove']"
  188. >{{ $t('离职') }}</el-button>
  189. <el-button
  190. size="mini"
  191. type="text"
  192. icon="el-icon-document"
  193. @click="handleDoc(scope.row)"
  194. v-hasPermi="['plant:staffmgr:edit']"
  195. >{{ $t('附件') }}</el-button>
  196. </template>
  197. </el-table-column>
  198. </el-table>
  199. <pagination
  200. v-show="total>0"
  201. :total="total"
  202. :page.sync="queryParams.pageNum"
  203. :limit.sync="queryParams.pageSize"
  204. @pagination="getList"
  205. />
  206. <!-- 添加或修改人员管理对话框 -->
  207. <el-dialog v-dialogDrag ref="dialog__wrapper" :title="title" :visible.sync="open" width="700px" append-to-body>
  208. <el-form ref="form" :model="form" :rules="rules" label-width="80px">
  209. <el-row>
  210. <el-col :span="12">
  211. <el-form-item :label="$t('装置名称')" prop="plantCode">
  212. <el-select v-model="form.plantCode" :placeholder="$t('请选择') + $t('装置名称')">
  213. <el-option
  214. v-for="dict in plantCodeOptions"
  215. :key="dict.dictValue"
  216. :label="dict.dictLabel"
  217. :value="dict.dictValue"
  218. ></el-option>
  219. </el-select>
  220. </el-form-item>
  221. </el-col>
  222. <el-col :span="12">
  223. <el-form-item :label="$t('员工编号')" prop="staffid">
  224. <el-input v-model="form.staffid" :placeholder="$t('请输入') + $t('员工编号')" />
  225. </el-form-item>
  226. </el-col>
  227. </el-row>
  228. <el-row>
  229. <el-col :span="12">
  230. <el-form-item :label="$t('员工姓名')" prop="name">
  231. <el-input v-model="form.name" :placeholder="$t('请输入') + $t('员工姓名')" />
  232. </el-form-item>
  233. </el-col>
  234. <el-col :span="12">
  235. <el-form-item :label="$t('性别')" prop="sex">
  236. <el-select v-model="form.sex" :placeholder="$t('请选择') + $t('性别')">
  237. <el-option
  238. v-for="dict in sexOptions"
  239. :key="dict.dictValue"
  240. :label="dict.dictLabel"
  241. :value="dict.dictValue"
  242. ></el-option>
  243. </el-select>
  244. </el-form-item>
  245. </el-col>
  246. </el-row>
  247. <el-row>
  248. <el-col :span="12">
  249. <el-form-item :label="$t('出生日期')" prop="birthday">
  250. <el-date-picker clearable size="small" style="width: 200px"
  251. v-model="form.birthday"
  252. type="date"
  253. value-format="yyyy-MM-dd"
  254. :placeholder="$t('请选择') + $t('出生日期')">
  255. </el-date-picker>
  256. </el-form-item>
  257. </el-col>
  258. <el-col :span="12">
  259. <el-form-item :label="$t('部门')" prop="unit">
  260. <el-select v-model="form.unit" :placeholder="$t('请选择') + $t('部门')">
  261. <el-option
  262. v-for="dict in unitOptions"
  263. :key="dict.dictValue"
  264. :label="dict.dictLabel"
  265. :value="dict.dictValue"
  266. ></el-option>
  267. </el-select>
  268. </el-form-item>
  269. </el-col>
  270. </el-row>
  271. <el-row>
  272. <el-col :span="12">
  273. <el-form-item :label="$t('班值')" prop="team">
  274. <el-select v-model="form.team" :placeholder="$t('请选择') + $t('班值')">
  275. <el-option
  276. v-for="dict in teamOptions"
  277. :key="dict.dictValue"
  278. :label="dict.dictLabel"
  279. :value="dict.dictValue"
  280. ></el-option>
  281. </el-select>
  282. </el-form-item>
  283. </el-col>
  284. <el-col :span="12">
  285. <el-form-item :label="$t('实际岗位')" prop="actualpost">
  286. <el-select v-model="form.actualpost" :placeholder="$t('请选择') + $t('实际岗位')">
  287. <el-option
  288. v-for="dict in actualpostOptions"
  289. :key="dict.dictValue"
  290. :label="dict.dictLabel"
  291. :value="dict.dictValue"
  292. ></el-option>
  293. </el-select>
  294. </el-form-item>
  295. </el-col>
  296. </el-row>
  297. <el-row>
  298. <el-col :span="12">
  299. <el-form-item :label="$t('联系方式')" prop="contact">
  300. <el-input v-model="form.contact" :placeholder="$t('请输入') + $t('联系方式')" />
  301. </el-form-item>
  302. </el-col>
  303. <el-col :span="12">
  304. <el-form-item :label="$t('学历')" prop="educations">
  305. <el-select v-model="form.education" :placeholder="$t('请选择') + $t('学历')">
  306. <el-option
  307. v-for="dict in educationOptions"
  308. :key="dict.dictValue"
  309. :label="dict.dictLabel"
  310. :value="dict.dictValue"
  311. ></el-option>
  312. </el-select>
  313. </el-form-item>
  314. </el-col>
  315. </el-row>
  316. <el-row>
  317. <el-col :span="12">
  318. <el-form-item :label="$t('英语能力')" prop="enAbility">
  319. <el-select v-model="form.enAbility" :placeholder="$t('请选择') + $t('英语能力')">
  320. <el-option
  321. v-for="dict in enAbilityOptions"
  322. :key="dict.dictValue"
  323. :label="dict.dictLabel"
  324. :value="dict.dictValue"
  325. ></el-option>
  326. </el-select>
  327. </el-form-item>
  328. </el-col>
  329. <el-col :span="12">
  330. <el-form-item :label="$t('邮箱')" prop="mail">
  331. <el-input v-model="form.mail" :placeholder="$t('请输入') + $t('邮箱')" />
  332. </el-form-item>
  333. </el-col>
  334. </el-row>
  335. <el-row>
  336. <el-col :span="12">
  337. <el-form-item :label="$t('上级领导')" prop="pId">
  338. <treeselect v-model="form.pId" :options="pIdOptions" :normalizer="normalizer" :placeholder="$t('请选择') + $t('上级领导')" />
  339. </el-form-item>
  340. </el-col>
  341. <el-col :span="12">
  342. <el-form-item :label="$t('归属部门')" prop="deptId">
  343. <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" :placeholder="$t('请选择') + $t('归属部门')" />
  344. </el-form-item>
  345. </el-col>
  346. </el-row>
  347. <el-row>
  348. <el-col :span="12">
  349. <el-form-item :label="$t('备注')" prop="remarks">
  350. <el-input v-model="form.remarks" :placeholder="$t('请输入') + $t('备注')" type="textarea" />
  351. </el-form-item>
  352. </el-col>
  353. <el-col :span="12">
  354. <!--<el-form-item label="证件照" prop="photo">
  355. <el-upload
  356. ref="photo"
  357. class="avatar-uploader"
  358. :headers="photo.headers"
  359. :action="photo.url + '?pType=' + photo.pType + '&pId=' + photo.pId"
  360. :show-file-list="false"
  361. :on-progress="handleAvatarProgress"
  362. :on-success="handleAvatarSuccess"
  363. :auto-upload="false"
  364. >
  365. <img v-if="form.photo" :src="photoUrl" class="avatar">
  366. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  367. </el-upload>
  368. </el-form-item>-->
  369. <el-form-item :label="$t('证件照')" prop="photo" v-if="notPhoto === true">
  370. <el-upload
  371. ref="photo"
  372. :headers="photo.headers"
  373. :action="photo.url + '?pType=' + photo.pType + '&pId=' + photo.pId"
  374. :show-file-list="false"
  375. :on-success="handleAvatarSuccess"
  376. list-type="picture-card">
  377. <img v-if="photoUrl" :src="photoUrl" class="avatar">
  378. <i v-else class="el-icon-plus "></i>
  379. </el-upload>
  380. <el-dialog v-dialogDrag :visible.sync="dialogVisible" append-to-body>
  381. <img width="100%" :src="dialogImageUrl" alt="">
  382. </el-dialog>
  383. </el-form-item>
  384. </el-col>
  385. </el-row>
  386. <el-row>
  387. <el-col :span="12">
  388. <el-form-item :label="$t('特殊职能')" prop="specialDuty">
  389. <el-select v-model="specialDutys" multiple :placeholder="$t('请选择') + $t('特殊职能')">
  390. <el-option
  391. v-for="dict in specialDutyOptions"
  392. :key="dict.dictValue"
  393. :label="dict.dictLabel"
  394. :value="dict.dictValue"
  395. ></el-option>
  396. </el-select>
  397. </el-form-item>
  398. </el-col>
  399. </el-row>
  400. </el-form>
  401. <div slot="footer" class="dialog-footer">
  402. <el-button type="primary" @click="submitForm">{{ $t('确 定') }}</el-button>
  403. <el-button @click="cancel">{{ $t('取 消') }}</el-button>
  404. </div>
  405. </el-dialog>
  406. <!-- 用户导入对话框 -->
  407. <el-dialog v-dialogDrag :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
  408. <el-upload
  409. ref="upload"
  410. :limit="1"
  411. accept=".xlsx, .xls"
  412. :headers="upload.headers"
  413. :action="upload.url"
  414. :disabled="upload.isUploading"
  415. :on-progress="handleFileUploadProgress"
  416. :on-success="handleFileSuccess"
  417. :auto-upload="false"
  418. drag
  419. >
  420. <i class="el-icon-upload"></i>
  421. <div class="el-upload__text">
  422. {{ $t('将文件拖到此处,或') }}
  423. <em>{{ $t('点击上传') }}</em>
  424. </div>
  425. <div class="el-upload__tip" slot="tip">
  426. <!--<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据-->
  427. <el-link type="info" style="font-size:12px" @click="importTemplate">{{ $t('下载模板') }}</el-link>
  428. </div>
  429. <form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
  430. <input name="type" :value="upload.type" hidden />
  431. </form>
  432. <div class="el-upload__tip" style="color:red" slot="tip">{{ $t('提示:仅允许导入“xls”或“xlsx”格式文件!') }}</div>
  433. </el-upload>
  434. <div slot="footer" class="dialog-footer">
  435. <el-button type="primary" @click="submitFileForm">{{ $t('确 定') }}</el-button>
  436. <el-button @click="upload.open = false">{{ $t('取 消') }}</el-button>
  437. </div>
  438. </el-dialog>
  439. <!-- 报告附件对话框 -->
  440. <el-dialog v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="700px" append-to-body>
  441. <el-upload
  442. ref="doc"
  443. :limit="50"
  444. :headers="doc.headers"
  445. :action="doc.url + '?pType=' + doc.pType + '&pId=' + doc.pId"
  446. :disabled="doc.isUploading"
  447. :on-progress="handleFileDocProgress"
  448. :on-success="handleFileDocSuccess"
  449. :auto-upload="true"
  450. drag
  451. >
  452. <i class="el-icon-upload"></i>
  453. <div class="el-upload__text">
  454. {{ $t('将文件拖到此处,或') }}
  455. <em>{{ $t('点击上传') }}</em>
  456. </div>
  457. </el-upload>
  458. <el-table :data="doc.commonfileList" border>
  459. <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
  460. <template slot-scope="scope">
  461. <a class="link-type" @click="handleDownload(scope.row)">
  462. <span>{{ scope.row.fileName }}</span>
  463. </a>
  464. </template>
  465. </el-table-column>
  466. <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
  467. <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
  468. <el-table-column :label="$t('操作')" align="center" width="120" class-name="small-padding fixed-width">
  469. <template slot-scope="scope">
  470. <el-button
  471. v-if="scope.row.fileName.endsWith('pdf')"
  472. size="mini"
  473. type="text"
  474. icon="el-icon-view"
  475. @click="handleSee(scope.row)"
  476. >{{ $t('预览') }}</el-button>
  477. <el-button
  478. size="mini"
  479. type="text"
  480. icon="el-icon-download"
  481. @click="handleDownload(scope.row)"
  482. >{{ $t('下载') }}</el-button>
  483. <el-button
  484. size="mini"
  485. type="text"
  486. icon="el-icon-delete"
  487. @click="handleDeleteDoc(scope.row)"
  488. >{{ $t('删除') }}</el-button>
  489. </template>
  490. </el-table-column>
  491. </el-table>
  492. <el-dialog v-dialogDrag :title="pdf.title" :visible.sync="pdf.open" width="1700px" append-to-body>
  493. <div style="margin-top: -60px;float: right;margin-right: 40px;">
  494. <el-button size="mini" type="text" @click="openPdf">{{$t('新页面打开PDF')}}</el-button></div>
  495. <div style="margin-top: -30px">
  496. <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
  497. </div>
  498. </el-dialog>
  499. <div slot="footer" class="dialog-footer">
  500. <!-- <el-button type="primary" @click="submitFileForm">{{ $t('确 定') }}</el-button>-->
  501. <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
  502. </div>
  503. </el-dialog>
  504. <!-- 离职人员对话框 -->
  505. <el-dialog v-dialogDrag :title="left.title" :visible.sync="left.open" width="700px" append-to-body>
  506. <el-table :data="left.staffmgrList" border>
  507. <el-table-column :label="$t('装置名称')" align="center" prop="plantCode" :formatter="plantCodeFormat" />
  508. <el-table-column :label="$t('员工编号')" align="center" prop="staffid" :show-overflow-tooltip="true"/>
  509. <el-table-column :label="$t('员工姓名')" align="center" prop="name" :show-overflow-tooltip="true"/>
  510. <el-table-column :label="$t('操作')" align="center" width="120" class-name="small-padding fixed-width">
  511. <template slot-scope="scope">
  512. <el-button
  513. size="mini"
  514. type="text"
  515. @click="handleReLeft(scope.row)"
  516. >{{ $t('复职') }}</el-button>
  517. </template>
  518. </el-table-column>
  519. </el-table>
  520. <div slot="footer" class="dialog-footer">
  521. <!-- <el-button type="primary" @click="submitFileForm">{{ $t('确 定') }}</el-button>-->
  522. <el-button @click="left.open = false">{{ $t('返 回') }}</el-button>
  523. </div>
  524. </el-dialog>
  525. <el-drawer
  526. :title="$t('数据分析')"
  527. size="600px"
  528. :visible.sync="drawer"
  529. :direction="direction">
  530. <el-row>
  531. <el-col>
  532. <el-card class="box-card" shadow="hover">
  533. <div slot="header" class="clearfix">
  534. <span>{{ $t('学历统计') }}</span>
  535. </div>
  536. <div class="text item">
  537. <edu-chart> </edu-chart>
  538. </div>
  539. </el-card>
  540. </el-col>
  541. </el-row>
  542. <el-row>
  543. <el-col>
  544. <el-card class="box-card" shadow="hover">
  545. <div slot="header" class="clearfix">
  546. <span>{{ $t('英语统计') }}</span>
  547. </div>
  548. <div class="text item">
  549. <eng-chart> </eng-chart>
  550. </div>
  551. </el-card>
  552. </el-col>
  553. </el-row>
  554. <el-row>
  555. <el-col>
  556. <el-card class="box-card" shadow="hover">
  557. <div slot="header" class="clearfix">
  558. <span>{{ $t('班值统计') }}</span>
  559. </div>
  560. <div class="text item">
  561. <team-chart> </team-chart>
  562. </div>
  563. </el-card>
  564. </el-col>
  565. </el-row>
  566. </el-drawer>
  567. </div>
  568. </template>
  569. <script>
  570. import { listStaffmgr, listpIdStaffmgr, listLeftStaffmgr, getStaffmgr, delStaffmgr, delLeftStaffmgr,reLeftStaffmgr ,addStaffmgr, updateStaffmgr, exportStaffmgr } from "@/api/plant/staffmgr";
  571. import { allFileList, listCommonfile, getCommonfile, delCommonfile, addCommonfile, updateCommonfile, exportCommonfile} from "@/api/common/commonfile";
  572. import { treeselect } from "@/api/system/dept";
  573. import { getToken } from "@/utils/auth";
  574. import Treeselect from "@riophae/vue-treeselect";
  575. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  576. import EduChart from "./eduChart";
  577. import EngChart from "./engChart";
  578. import TeamChart from "./teamChart";
  579. export default {
  580. name: "Staffmgr",
  581. components: {TeamChart, EngChart, EduChart, Treeselect },
  582. data() {
  583. return {
  584. drawer: false,
  585. direction: 'rtl',
  586. // 遮罩层
  587. loading: true,
  588. // 选中数组
  589. ids: [],
  590. // 非单个禁用
  591. single: true,
  592. // 非多个禁用
  593. multiple: true,
  594. // 显示搜索条件
  595. showSearch: false,
  596. // 总条数
  597. total: 0,
  598. // 人员管理表格数据
  599. staffmgrList: [],
  600. //目标措施树选项
  601. pIdOptions: [],
  602. // 弹出层标题
  603. title: "",
  604. // 部门树选项
  605. deptOptions: undefined,
  606. clientHeight:300,
  607. // 是否显示弹出层
  608. open: false,
  609. // 装置名称字典
  610. plantCodeOptions: [],
  611. // 性别字典
  612. sexOptions: [],
  613. // 部门字典
  614. unitOptions: [],
  615. // 班值字典
  616. teamOptions: [],
  617. // 实际岗位字典
  618. actualpostOptions: [],
  619. // 学历字典
  620. educationOptions: [],
  621. // 英语能力字典
  622. enAbilityOptions: [],
  623. // 特殊职能字典
  624. specialDutyOptions: [],
  625. //照片url
  626. photoUrl: '',
  627. //新增不可上传照片
  628. notPhoto: false,
  629. // 用户导入参数
  630. upload: {
  631. downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
  632. //下载模板类型
  633. type: "staffmgr",
  634. // 是否显示弹出层(用户导入)
  635. open: false,
  636. // 弹出层标题(用户导入)
  637. title: "",
  638. // 是否禁用上传
  639. isUploading: false,
  640. // 是否更新已经存在的用户数据
  641. updateSupport: 0,
  642. // 设置上传的请求头部
  643. headers: { Authorization: "Bearer " + getToken() },
  644. // 上传的地址
  645. url: process.env.VUE_APP_BASE_API + "/plant/staffmgr/importData"
  646. },
  647. // 报告附件参数
  648. doc: {
  649. file: "",
  650. // 是否显示弹出层(报告附件)
  651. open: false,
  652. // 弹出层标题(报告附件)
  653. title: "",
  654. // 是否禁用上传
  655. isUploading: false,
  656. // 是否更新已经存在的用户数据
  657. updateSupport: 0,
  658. // 报告附件上传位置编号
  659. ids: 0,
  660. // 设置上传的请求头部
  661. headers: { Authorization: "Bearer " + getToken() },
  662. // 上传的地址
  663. url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
  664. commonfileList: null,
  665. queryParams: {
  666. pId: null,
  667. pType: 'staffmgr'
  668. },
  669. pType: 'staffmgr',
  670. pId: null
  671. },
  672. // 人员证件照参数
  673. photo: {
  674. file: "",
  675. // 报告附件上传位置编号
  676. ids: 0,
  677. // 设置上传的请求头部
  678. headers: { Authorization: "Bearer " + getToken() },
  679. // 上传的地址
  680. url: process.env.VUE_APP_BASE_API + "/plant/staffmgr/uploadPhoto",
  681. pType: 'staffmgrPhoto',
  682. pId: null
  683. },
  684. //证件照回显
  685. dialogImageUrl: '',
  686. dialogVisible: false,
  687. pdf : {
  688. title: '',
  689. pdfUrl: '',
  690. numPages: null,
  691. open: false,
  692. pageNum: 1,
  693. pageTotalNum: 1,
  694. loadedRatio: 0,
  695. },
  696. // 离职人员
  697. left: {
  698. file: "",
  699. // 是否显示弹出层(报告附件)
  700. open: false,
  701. // 弹出层标题(报告附件)
  702. title: "",
  703. staffmgrList: []
  704. },
  705. // 查询参数
  706. queryParams: {
  707. pageNum: 1,
  708. pageSize: 20,
  709. name: null,
  710. sexs: null,
  711. sex: [],
  712. unit: null,
  713. team: null,
  714. actualpost: null,
  715. education: null,
  716. enAbility: null,
  717. educations: null,
  718. units: null,
  719. teams: null,
  720. actualposts: null,
  721. enAbilitys: null,
  722. photo: null
  723. },
  724. querypIdParams: {
  725. units: '10,18',
  726. },
  727. educations: [],
  728. units: [],
  729. teams: [],
  730. actualposts: [],
  731. enAbilitys: [],
  732. specialDutys: [],
  733. // 表单参数
  734. form: {},
  735. // 表单校验
  736. rules: {
  737. plantCode: [
  738. { required: true, message: this.$t('装置名称') + this.$t('不能为空'), trigger: "change" }
  739. ],
  740. staffid: [
  741. { required: true, message: this.$t('员工编号') + this.$t('不能为空'), trigger: "blur" }
  742. ],
  743. name: [
  744. { required: true, message: this.$t('员工姓名') + this.$t('不能为空'), trigger: "blur" }
  745. ],
  746. sex: [
  747. { required: true, message: this.$t('性别') + this.$t('不能为空'), trigger: "change" }
  748. ],
  749. unit: [
  750. { required: true, message: this.$t('部门') + this.$t('不能为空'), trigger: "change" }
  751. ],
  752. team: [
  753. { required: true, message: this.$t('班值') + this.$t('不能为空'), trigger: "change" }
  754. ],
  755. actualpost: [
  756. { required: true, message: this.$t('实际岗位') + this.$t('不能为空'), trigger: "change" }
  757. ],
  758. pId: [
  759. { required: true, message: this.$t('上级领导') + this.$t('不能为空'), trigger: "change" }
  760. ],
  761. deptId: [
  762. { required: true, message: this.$t('归属部门') + this.$t('不能为空'), trigger: "change" }
  763. ],
  764. }
  765. };
  766. },
  767. watch: {
  768. // 根据名称筛选部门树
  769. deptName(val) {
  770. this.$refs.tree.filter(val);
  771. }
  772. },
  773. created() {
  774. //设置表格高度对应屏幕高度
  775. this.$nextTick(() => {
  776. this.clientHeight = (document.body.clientHeight - 80) * 0.8
  777. })
  778. this.getList();
  779. this.getpIdTreeselect();
  780. this.getTreeselect();
  781. this.getDicts("PLANT_DIVIDE").then(response => {
  782. this.plantCodeOptions = response.data;
  783. });
  784. this.getDicts("sys_user_sex").then(response => {
  785. this.sexOptions = response.data;
  786. });
  787. this.getDicts("STAFF_UNIT").then(response => {
  788. this.unitOptions = response.data;
  789. });
  790. this.getDicts("TEAM_DIVIDE").then(response => {
  791. this.teamOptions = response.data;
  792. });
  793. this.getDicts("ACTUALPOST").then(response => {
  794. this.actualpostOptions = response.data;
  795. });
  796. this.getDicts("EDUCATION").then(response => {
  797. this.educationOptions = response.data;
  798. });
  799. this.getDicts("ENGLISHABILITY").then(response => {
  800. this.enAbilityOptions = response.data;
  801. });
  802. this.getDicts("SPECIAL_DUTY").then(response => {
  803. this.specialDutyOptions = response.data;
  804. });
  805. },
  806. methods: {
  807. /** 查询人员管理列表 */
  808. getList() {
  809. this.loading = true;
  810. this.queryParams.educations = this.educations.join()
  811. this.queryParams.units = this.units.join()
  812. this.queryParams.teams = this.teams.join()
  813. this.queryParams.actualposts = this.actualposts.join()
  814. this.queryParams.enAbilitys = this.enAbilitys.join()
  815. listStaffmgr(this.queryParams).then(response => {
  816. this.staffmgrList = response.rows;
  817. this.total = response.total;
  818. this.loading = false;
  819. });
  820. },
  821. /** 查询部门下拉树结构 */
  822. getTreeselect() {
  823. treeselect().then(response => {
  824. this.deptOptions = response.data;
  825. });
  826. },
  827. /** 转换目标录入数据结构 */
  828. normalizer(node) {
  829. if (node.children && !node.children.length) {
  830. delete node.children;
  831. }
  832. return {
  833. id: node.id,
  834. label: node.name,
  835. children: node.children
  836. };
  837. },
  838. // 装置名称字典翻译
  839. plantCodeFormat(row, column) {
  840. return this.selectDictLabel(this.plantCodeOptions, row.plantCode);
  841. },
  842. // 性别字典翻译
  843. sexFormat(row, column) {
  844. return this.selectDictLabel(this.sexOptions, row.sex);
  845. },
  846. // 部门字典翻译
  847. unitFormat(row, column) {
  848. return this.selectDictLabel(this.unitOptions, row.unit);
  849. },
  850. // 班值字典翻译
  851. teamFormat(row, column) {
  852. return this.selectDictLabel(this.teamOptions, row.team);
  853. },
  854. // 实际岗位字典翻译
  855. actualpostFormat(row, column) {
  856. return this.selectDictLabel(this.actualpostOptions, row.actualpost);
  857. },
  858. // 学历字典翻译
  859. educationFormat(row, column) {
  860. return this.selectDictLabel(this.educationOptions, row.education);
  861. },
  862. // 英语能力字典翻译
  863. enAbilityFormat(row, column) {
  864. return this.selectDictLabel(this.enAbilityOptions, row.enAbility);
  865. },
  866. // 特殊职能字典翻译
  867. specialDutyFormat(row, column) {
  868. return this.selectDictLabel(this.specialDutyOptions, row.specialDuty);
  869. },
  870. /** 查询列表下拉树结构 */
  871. getpIdTreeselect() {
  872. listpIdStaffmgr(this.querypIdParams).then(response => {
  873. this.pIdOptions = [];
  874. const data = { id: 0, name: this.$t('顶级节点'), children: [] };
  875. data.children = this.handleTree(response.data, "id", "pId");
  876. this.pIdOptions.push(data);
  877. });
  878. },
  879. // 取消按钮
  880. cancel() {
  881. this.open = false;
  882. this.reset();
  883. },
  884. // 表单重置
  885. reset() {
  886. this.photoUrl= '';
  887. this.form = {
  888. id: null,
  889. plantCode: null,
  890. staffid: null,
  891. name: null,
  892. sex: null,
  893. birthday: null,
  894. unit: null,
  895. team: null,
  896. actualpost: null,
  897. contact: null,
  898. education: null,
  899. enAbility: null,
  900. accidentNum: null,
  901. mail: null,
  902. delFlag: null,
  903. createrCode: null,
  904. photoUrl: '',
  905. createdate: null,
  906. updaterCode: null,
  907. updatedate: null,
  908. deptId: null,
  909. skillScore: null,
  910. remarks: null,
  911. photo: null,
  912. pId: null,
  913. specialDuty: null
  914. };
  915. this.resetForm("form");
  916. },
  917. /** 搜索按钮操作 */
  918. handleQuery() {
  919. this.queryParams.pageNum = 1;
  920. this.getList();
  921. },
  922. /** 重置按钮操作 */
  923. resetQuery() {
  924. this.resetForm("queryForm");
  925. this.educations = []
  926. this.units = []
  927. this.teams = []
  928. this.actualposts = []
  929. this.enAbilitys = []
  930. this.handleQuery();
  931. },
  932. // 多选框选中数据
  933. handleSelectionChange(selection) {
  934. this.ids = selection.map(item => item.id)
  935. this.single = selection.length!==1
  936. this.multiple = !selection.length
  937. },
  938. /** 新增按钮操作 */
  939. handleAdd() {
  940. this.reset();
  941. this.open = true;
  942. this.notPhoto = false;
  943. this.title = this.$t('新增') + " " + this.$t('人员管理');
  944. },
  945. /** 修改按钮操作 */
  946. handleUpdate(row) {
  947. this.reset();
  948. const id = row.id || this.ids
  949. getStaffmgr(id).then(response => {
  950. this.form = response.data;
  951. if (response.data.photo) {
  952. this.photoUrl = process.env.VUE_APP_BASE_API + response.data.photo;
  953. }
  954. this.open = true;
  955. this.notPhoto = true;
  956. this.title = this.$t('修改') + this.$t('人员管理');
  957. });
  958. this.photo.pId = row.id;
  959. },
  960. /** 提交按钮 */
  961. submitForm() {
  962. this.$refs["form"].validate(valid => {
  963. if (valid) {
  964. /*this.$refs.photo.submit();*/
  965. this.form.specialDuty = this.specialDutys.join();
  966. if (this.form.id != null) {
  967. updateStaffmgr(this.form).then(response => {
  968. this.msgSuccess(this.$t('修改成功'));
  969. this.open = false;
  970. this.getList();
  971. });
  972. } else {
  973. addStaffmgr(this.form).then(response => {
  974. this.msgSuccess(this.$t('新增成功'));
  975. this.open = false;
  976. this.getList();
  977. });
  978. }
  979. }
  980. });
  981. },
  982. /** 删除按钮操作 */
  983. handleDelete(row) {
  984. const ids = row.id || this.ids;
  985. this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
  986. confirmButtonText: this.$t('确定'),
  987. cancelButtonText: this.$t('取消'),
  988. type: "warning"
  989. }).then(function() {
  990. return delStaffmgr(ids);
  991. }).then(() => {
  992. this.getList();
  993. this.msgSuccess(this.$t('删除成功'));
  994. })
  995. },
  996. /** 删除按钮操作 */
  997. handleLeftDelete(row) {
  998. const ids = row.id;
  999. this.$confirm(this.$t('是否确认离职?'), this.$t('警告'), {
  1000. confirmButtonText: this.$t('确定'),
  1001. cancelButtonText: this.$t('取消'),
  1002. type: "warning"
  1003. }).then(function() {
  1004. return delLeftStaffmgr(ids);
  1005. }).then(() => {
  1006. this.getList();
  1007. this.msgSuccess(this.$t('离职成功'));
  1008. })
  1009. },
  1010. /** 导出按钮操作 */
  1011. handleExport() {
  1012. const queryParams = this.queryParams;
  1013. this.$confirm(this.$t('是否确认导出所有人员管理数据项?'), this.$t('提示'), {
  1014. confirmButtonText: this.$t('确定'),
  1015. cancelButtonText: this.$t('取消'),
  1016. type: "warning"
  1017. }).then(function() {
  1018. return exportStaffmgr(queryParams);
  1019. }).then(response => {
  1020. this.download(response.msg);
  1021. })
  1022. },
  1023. /** 导入按钮操作 */
  1024. handleImport() {
  1025. this.upload.title = this.$t('用户导入');
  1026. this.upload.open = true;
  1027. },
  1028. /** 下载模板操作 */
  1029. importTemplate() {
  1030. this.$refs['downloadFileForm'].submit()
  1031. },
  1032. // 文件上传中处理
  1033. handleFileUploadProgress(event, file, fileList) {
  1034. this.upload.isUploading = true;
  1035. },
  1036. // 文件上传成功处理
  1037. handleFileSuccess(response, file, fileList) {
  1038. this.upload.open = false;
  1039. this.upload.isUploading = false;
  1040. this.$refs.upload.clearFiles();
  1041. if (response.data[0] != null) {
  1042. this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据') + "," + this.$t('第') + response.data + this.$t('行数据出现错误导入失败')+"。", this.$t('导入结果'), { dangerouslyUseHTMLString: true });
  1043. }else {
  1044. this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据'), this.$t('导入结果'), { dangerouslyUseHTMLString: true });
  1045. }
  1046. this.getList();
  1047. },
  1048. // 提交上传文件
  1049. submitFileForm() {
  1050. this.$refs.upload.submit();
  1051. },
  1052. /** 报告附件按钮操作 */
  1053. handleDoc(row) {
  1054. this.doc.id = row.id;
  1055. this.doc.title = row.name + "的相关附件";
  1056. this.doc.open = true;
  1057. this.doc.queryParams.pId = row.id
  1058. this.doc.pId = row.id
  1059. this.getFileList()
  1060. this.$nextTick(() => {
  1061. this.$refs.doc.clearFiles()
  1062. })
  1063. },
  1064. getFileList (){
  1065. allFileList(this.doc.queryParams).then(response => {
  1066. this.doc.commonfileList = response;
  1067. });
  1068. },
  1069. //附件上传中处理
  1070. handleFileDocProgress(event, file, fileList) {
  1071. this.doc.file = file;
  1072. this.doc.isUploading = true;
  1073. },
  1074. //附件上传成功处理
  1075. handleFileDocSuccess(response, file, fileList) {
  1076. this.doc.isUploading = false;
  1077. this.$alert(response.msg, this.$t('导入结果'), { dangerouslyUseHTMLString: true });
  1078. this.getFileList()
  1079. },
  1080. /** 删除按钮操作 */
  1081. handleDeleteDoc(row) {
  1082. const ids = row.id || this.ids;
  1083. this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
  1084. confirmButtonText: this.$t('确定'),
  1085. cancelButtonText: this.$t('取消'),
  1086. type: "warning"
  1087. }).then(function() {
  1088. return delCommonfile(ids);
  1089. }).then(() => {
  1090. this.getFileList()
  1091. this.msgSuccess(this.$t('删除成功'));
  1092. })
  1093. },
  1094. // 文件下载处理
  1095. handleDownload(row) {
  1096. var name = row.fileName;
  1097. var url = row.fileUrl;
  1098. var suffix = url.substring(url.lastIndexOf("."), url.length);
  1099. const a = document.createElement('a')
  1100. a.setAttribute('download', name)
  1101. a.setAttribute('target', '_blank')
  1102. a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
  1103. a.click()
  1104. },
  1105. openPdf(){
  1106. window.open(this.pdf.pdfUrl);//path是文件的全路径地址
  1107. },
  1108. handleSee (row){
  1109. this.pdf.open =true
  1110. this.pdf.title = row.fileName
  1111. this.pdf.pdfUrl = process.env.VUE_APP_BASE_API +'/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl
  1112. },
  1113. handleLeft(){
  1114. this.left.open = true;
  1115. this.left.title = this.$t('离职人员信息');
  1116. this.getLeftData();
  1117. },
  1118. getLeftData(){
  1119. listLeftStaffmgr().then(response => {
  1120. this.left.staffmgrList = response;
  1121. });
  1122. },
  1123. handleReLeft(row){
  1124. const ids = row.id;
  1125. this.$confirm(this.$t('是否确认复职?'), this.$t('警告'), {
  1126. confirmButtonText: this.$t('确定'),
  1127. cancelButtonText: this.$t('取消'),
  1128. type: "warning"
  1129. }).then(function() {
  1130. return reLeftStaffmgr(ids);
  1131. }).then(() => {
  1132. this.getLeftData();
  1133. this.getList();
  1134. this.msgSuccess(this.$t('复职成功'));
  1135. })
  1136. },
  1137. //数据分析
  1138. handleData(){
  1139. this.drawer = true
  1140. },
  1141. handleAvatarProgress(event, file, fileList) {
  1142. this.photo.file = file;
  1143. this.photoUrl = file;
  1144. },
  1145. handleAvatarSuccess (res, file, fileList) {
  1146. this.photoUrl = URL.createObjectURL(file.raw);
  1147. this.$alert(res.msg, this.$t('导入结果'), { dangerouslyUseHTMLString: true });
  1148. },
  1149. handlePictureCardPreview(file) {
  1150. console.info("111" + file.url)
  1151. this.dialogImageUrl = file.url;
  1152. this.dialogVisible = true;
  1153. },
  1154. }
  1155. };
  1156. </script>
  1157. <style>
  1158. .text {
  1159. font-size: 14px;
  1160. }
  1161. .item {
  1162. margin-bottom: 18px;
  1163. }
  1164. .clearfix {
  1165. color: #1e1e1e;
  1166. }
  1167. .clearfix:before,
  1168. .clearfix:after {
  1169. display: table;
  1170. content: "";
  1171. }
  1172. .clearfix:after {
  1173. clear: both
  1174. }
  1175. .box-card {
  1176. width: 100%;
  1177. }
  1178. .el-drawer__body {
  1179. overflow: auto;
  1180. }
  1181. .el-drawer__container ::-webkit-scrollbar {
  1182. display: none;
  1183. }
  1184. .avatar-uploader .el-upload {
  1185. border: 1px dashed #d9d9d9;
  1186. border-radius: 6px;
  1187. cursor: pointer;
  1188. position: relative;
  1189. overflow: hidden;
  1190. }
  1191. .avatar-uploader .el-upload:hover {
  1192. border-color: #409EFF;
  1193. }
  1194. .avatar-uploader-icon {
  1195. font-size: 28px;
  1196. color: #8c939d;
  1197. width: 178px;
  1198. height: 178px;
  1199. line-height: 178px;
  1200. text-align: center;
  1201. }
  1202. .avatar {
  1203. width: 120px;
  1204. height: 140px;
  1205. }
  1206. </style>