user.vue 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504
  1. <template>
  2. <div class="content-box">
  3. <div class="treeV">
  4. <el-input
  5. v-model="searchInput.keyWord"
  6. :clearable="true"
  7. @clear="searchBtn"
  8. placeholder="请输入姓名或者学号"
  9. class="searchTree"
  10. >
  11. <template #prefix>
  12. <el-icon class="el-input__icon"><search /></el-icon>
  13. </template>
  14. </el-input>
  15. <el-tree
  16. :data="dataSource"
  17. node-key="id"
  18. default-expand-all
  19. :expand-on-click-node="false"
  20. >
  21. <template #default="{ node, data }">
  22. <span class="custom-tree-node">
  23. <div class="title">
  24. <img src="@/assets/images/folder.png" alt="" />
  25. <!-- <img src="@/assets/images/document.png" alt="" /> -->
  26. <span>{{ node.label }}</span>
  27. </div>
  28. <el-dropdown
  29. @command="handleCommand"
  30. :hide-on-click="false"
  31. trigger="click"
  32. >
  33. <span class="el-dropdown-link">
  34. <img src="@/assets/images/edit.png" alt="" />
  35. </span>
  36. <template #dropdown>
  37. <el-dropdown-menu>
  38. <el-dropdown-item
  39. command="a"
  40. @click="amendBMClick(node, data)"
  41. >修改部门</el-dropdown-item
  42. >
  43. <el-dropdown-item command="b" @click="addBMClick(node, data)"
  44. >新建子部门</el-dropdown-item
  45. >
  46. <el-dropdown-item command="c">删除</el-dropdown-item>
  47. </el-dropdown-menu>
  48. </template>
  49. </el-dropdown>
  50. </span>
  51. </template>
  52. </el-tree>
  53. </div>
  54. <!-- 主页面 -->
  55. <div class="userRight" v-if="homeShow">
  56. <div class="left">
  57. <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
  58. <span>用户管理 </span>
  59. <span>/ 共有56622人</span>
  60. </div>
  61. <div>
  62. <div class="middle">
  63. <div class="filter">
  64. <div class="condition">
  65. <el-input
  66. v-model="searchInput.keyWord"
  67. :clearable="true"
  68. @clear="searchBtn"
  69. placeholder="请输入姓名或者学号"
  70. style="width: 240px"
  71. >
  72. <template #prefix>
  73. <el-icon class="el-input__icon"><search /></el-icon>
  74. </template>
  75. </el-input>
  76. </div>
  77. <el-button
  78. color="rgba(0, 97, 255, 1)"
  79. type="primary"
  80. class="search"
  81. @click="searchBtn"
  82. >
  83. <span>查询</span></el-button
  84. >
  85. </div>
  86. <!-- 按钮列表 -->
  87. <div class="gongneng">
  88. <el-button
  89. type="primary"
  90. color="rgba(0, 97, 255, 1)"
  91. @click="addMemberClick"
  92. plain
  93. >添加成员</el-button
  94. >
  95. <el-button
  96. type="primary"
  97. color="rgba(0, 97, 255, 1)"
  98. @click="moveMemberClick"
  99. plain
  100. >移动成员</el-button
  101. >
  102. <el-dropdown>
  103. <el-button color="rgba(0, 97, 255, 1)" @click="addClick" plain
  104. >批量操作</el-button
  105. >
  106. <template #dropdown>
  107. <el-dropdown-menu>
  108. <el-dropdown-item @click="addBatchClick"
  109. >批量导入</el-dropdown-item
  110. >
  111. <el-dropdown-item @click="delBatchClick"
  112. >批量删除</el-dropdown-item
  113. >
  114. </el-dropdown-menu>
  115. </template>
  116. </el-dropdown>
  117. <el-button
  118. type="primary"
  119. color="rgba(0, 97, 255, 1)"
  120. @click="closeAccountClick"
  121. plain
  122. >注销账号</el-button
  123. >
  124. <el-button
  125. type="primary"
  126. color="rgba(0, 97, 255, 1)"
  127. @click="delDelClick"
  128. plain
  129. >勾选删除</el-button
  130. >
  131. <el-button
  132. type="primary"
  133. color="rgba(0, 97, 255, 1)"
  134. @click="addClick"
  135. plain
  136. >导出用户</el-button
  137. >
  138. </div>
  139. </div>
  140. <div class="footer" v-loading="loading">
  141. <el-table
  142. :row-class-name="tableRowClassName"
  143. :data="tableData.list"
  144. @selection-change="handleSelectionChange"
  145. style="width: 100%"
  146. :header-cell-style="{
  147. background: 'rgba(240, 243, 247, 1)',
  148. height: '50px',
  149. border: 0,
  150. }"
  151. >
  152. <el-table-column align="center" type="selection" width="80" />
  153. <el-table-column align="center" prop="userName" label="姓名" />
  154. <el-table-column align="center" prop="position" label="学号" />
  155. <el-table-column align="center" prop="img" label="人脸照片">
  156. <template #default="{ row }">
  157. <div class="img">
  158. <img @click="imgClick(row)" :src="row.img" alt="" />
  159. </div>
  160. </template>
  161. </el-table-column>
  162. <el-table-column align="center" label="操作" width="200">
  163. <template #default="scope">
  164. <div class="edit">
  165. <div class="look" @click="editClick(scope.row)">查看</div>
  166. </div>
  167. </template>
  168. </el-table-column>
  169. </el-table>
  170. </div>
  171. <!-- 分页组件 -->
  172. <div class="pageSize">
  173. <span></span>
  174. <el-pagination
  175. background
  176. :current-page="currentPage"
  177. :page-size="pageSize"
  178. layout="total, prev, pager, next, jumper, slot"
  179. :total="total"
  180. @update:current-page="handleCurrentChange"
  181. />
  182. </div>
  183. </div>
  184. </div>
  185. <!-- 添加成员 -->
  186. <div class="addMember" v-if="addMemberShow">
  187. <div class="left">
  188. <img src="@/assets/images/close.png" alt="" @click="addMemberConcel" />
  189. <span class="add">添加成员</span>
  190. </div>
  191. <div class="content">
  192. <div class="form">
  193. <el-form
  194. ref="addMemberRef"
  195. :model="addMemberRuleForm"
  196. :rules="addMemberRules"
  197. label-width="90px"
  198. class="demo-ruleForm"
  199. :size="formSize"
  200. label-position="right"
  201. status-icon
  202. >
  203. <div class="title">
  204. <img src="@/assets/images/basicInfo.png" alt="" />
  205. <span>基本信息</span>
  206. </div>
  207. <el-form-item label="编号 :" prop="serialNumber">
  208. <el-input
  209. v-model="addMemberRuleForm.serialNumber"
  210. placeholder="请输入编号"
  211. clearable
  212. style="width: 500px"
  213. />
  214. </el-form-item>
  215. <el-form-item label="姓名 :" prop="name">
  216. <el-input
  217. v-model="addMemberRuleForm.name"
  218. placeholder="请输入姓名"
  219. clearable
  220. style="width: 500px"
  221. />
  222. </el-form-item>
  223. <el-form-item label="身份 :" prop="identity">
  224. <el-select
  225. v-model="addMemberRuleForm.identity"
  226. multiple
  227. placeholder="请选择身份"
  228. style="width: 500px"
  229. >
  230. <el-option label="教职工" value="1" />
  231. <el-option label="学生" value="2" />
  232. <el-option label="门卫" value="3" />
  233. <el-option label="领导" value="4" />
  234. </el-select>
  235. </el-form-item>
  236. <el-form-item label="身份证号 :" prop="icCard">
  237. <el-input
  238. v-model="addMemberRuleForm.icCard"
  239. placeholder="请输入身份证号"
  240. clearable
  241. style="width: 500px"
  242. />
  243. </el-form-item>
  244. <el-form-item label="性别 :" prop="sex">
  245. <el-radio-group v-model="addMemberRuleForm.radio">
  246. <el-radio :label="1">男</el-radio>
  247. <el-radio :label="2">女</el-radio>
  248. </el-radio-group>
  249. </el-form-item>
  250. <el-form-item label="部门 :" prop="department">
  251. <el-select
  252. v-model="addMemberRuleForm.department"
  253. multiple
  254. placeholder="请选择部门"
  255. style="width: 500px"
  256. >
  257. <el-option label="教职工" value="1" />
  258. <el-option label="学生" value="2" />
  259. <el-option label="门卫" value="3" />
  260. <el-option label="领导" value="4" />
  261. </el-select>
  262. </el-form-item>
  263. <el-form-item label="人脸照片 :" prop="facePhoto">
  264. <div class="facePhoto">
  265. <div v-if="addMemberRuleForm.facePhoto">
  266. <img :src="addMemberRuleForm.facePhoto" alt="facePhotoImg" />
  267. </div>
  268. <el-upload
  269. class="avatar-uploader"
  270. action="#"
  271. :on-preview="handlePreview"
  272. :on-remove="handleRemove"
  273. :on-change="handleChange"
  274. :http-request="handleUpload"
  275. :before-upload="beforeAvatarUpload"
  276. >
  277. <template #trigger>
  278. <el-button :icon="Camera">上传图片</el-button>
  279. </template>
  280. <template #tip>
  281. <div class="el-upload__tip">
  282. 支持扩展名:.jpg .png,五官清晰无遮挡,名字+后缀
  283. </div>
  284. </template>
  285. </el-upload>
  286. </div>
  287. </el-form-item>
  288. <el-form-item label="年级 :" prop="grade">
  289. <el-select
  290. v-model="addMemberRuleForm.grade"
  291. multiple
  292. placeholder="请选择年级"
  293. style="width: 500px"
  294. >
  295. <el-option label="七年级" value="1" />
  296. </el-select>
  297. </el-form-item>
  298. <el-form-item label="学院 :" prop="institute">
  299. <el-select
  300. v-model="addMemberRuleForm.institute"
  301. multiple
  302. placeholder="请选择学院"
  303. style="width: 500px"
  304. >
  305. <el-option label="万载三中" value="1" />
  306. </el-select>
  307. </el-form-item>
  308. <el-form-item label="专业 :" prop="specialty">
  309. <el-select
  310. v-model="addMemberRuleForm.specialty"
  311. multiple
  312. placeholder="请选择专业"
  313. style="width: 500px"
  314. >
  315. <el-option label="计算机" value="1" />
  316. </el-select>
  317. </el-form-item>
  318. <el-form-item label="班级 :" prop="class">
  319. <el-select
  320. v-model="addMemberRuleForm.class"
  321. multiple
  322. placeholder="请选择班级"
  323. style="width: 500px"
  324. >
  325. <el-option label="(1)班" value="1" />
  326. </el-select>
  327. </el-form-item>
  328. <el-form-item label="校区 :" prop="school">
  329. <el-select
  330. v-model="addMemberRuleForm.school"
  331. multiple
  332. placeholder="请选择校区"
  333. style="width: 500px"
  334. >
  335. <el-option label="靖安校区" value="1" />
  336. </el-select>
  337. </el-form-item>
  338. <el-form-item label="宿舍号 :" prop="dormitory">
  339. <el-input
  340. v-model="addMemberRuleForm.dormitory"
  341. placeholder="请输入宿舍号"
  342. clearable
  343. style="width: 500px"
  344. />
  345. </el-form-item>
  346. <el-form-item label="手机号 :" prop="phone">
  347. <el-input
  348. v-model="addMemberRuleForm.phone"
  349. placeholder="请输入手机号"
  350. clearable
  351. style="width: 500px"
  352. />
  353. </el-form-item>
  354. <el-form-item label="联系人 :" prop="contact">
  355. <el-select
  356. v-model="addMemberRuleForm.contact"
  357. multiple
  358. placeholder="请选择联系人"
  359. style="width: 500px"
  360. >
  361. <el-option
  362. v-for="item in options"
  363. :key="item.value"
  364. :label="item.label"
  365. :value="item.value"
  366. />
  367. </el-select>
  368. </el-form-item>
  369. <div class="title">
  370. <img src="@/assets/images/basicInfo.png" alt="" />
  371. <span>其他信息</span>
  372. </div>
  373. <el-form-item label="职称 :" prop="jobName">
  374. <el-input
  375. v-model="addMemberRuleForm.jobName"
  376. placeholder="请输入职称"
  377. clearable
  378. style="width: 500px"
  379. />
  380. </el-form-item>
  381. <el-form-item label="家庭地址 :" prop="houseAddress">
  382. <el-input
  383. v-model="addMemberRuleForm.houseAddress"
  384. placeholder="请输入家庭地址"
  385. clearable
  386. style="width: 500px"
  387. />
  388. </el-form-item>
  389. <el-form-item label="民族 :" prop="nation">
  390. <el-input
  391. v-model="addMemberRuleForm.nation"
  392. placeholder="请输入民族"
  393. clearable
  394. style="width: 500px"
  395. />
  396. </el-form-item>
  397. <el-form-item label="生源地 :" prop="originOfStudent">
  398. <el-input
  399. v-model="addMemberRuleForm.originOfStudent"
  400. placeholder="请输入生源地"
  401. clearable
  402. style="width: 500px"
  403. />
  404. </el-form-item>
  405. <el-form-item label="毕业学院 :" prop="graduateCollege">
  406. <el-input
  407. v-model="addMemberRuleForm.graduateCollege"
  408. placeholder="请输入毕业学院"
  409. clearable
  410. style="width: 500px"
  411. />
  412. </el-form-item>
  413. <el-form-item label="职务 :" prop="duty">
  414. <el-input
  415. v-model="addMemberRuleForm.duty"
  416. placeholder="请输入职务"
  417. clearable
  418. style="width: 500px"
  419. />
  420. </el-form-item>
  421. <el-form-item class="options">
  422. <el-button
  423. color="rgba(41, 109, 227, 1)"
  424. class="queding"
  425. type="primary"
  426. @click="confirmEdit(editRef)"
  427. >
  428. 确认
  429. </el-button>
  430. <el-button @click="cancelEdit(editRef)">取消</el-button>
  431. </el-form-item>
  432. </el-form>
  433. </div>
  434. </div>
  435. </div>
  436. <!-- 批量添加 -->
  437. <div class="addMember" v-if="addBatchShow">
  438. <div class="left">
  439. <img src="@/assets/images/close.png" alt="" @click="addBatchConcel" />
  440. <span class="add">批量添加</span>
  441. </div>
  442. <div class="content">
  443. <div class="form">
  444. <el-upload
  445. style="width: 500px"
  446. class="upload-demo"
  447. drag
  448. action="#"
  449. multiple
  450. :on-preview="handlePreview2"
  451. :on-remove="handleRemove2"
  452. :on-change="handleChange2"
  453. :http-request="handleUpload2"
  454. :before-upload="beforeAvatarUpload2"
  455. >
  456. <el-icon class="el-icon--upload"><upload-filled /></el-icon>
  457. <div class="el-upload__text">
  458. <span style="font-size: 20px">点击上传或拖拽文件</span><br /><em
  459. >务必按照我们的标准模板填写信息</em
  460. >
  461. </div>
  462. <!-- <template #tip>
  463. <div class="el-upload__tip">
  464. jpg/png files with a size less than 500kb
  465. </div>
  466. </template> -->
  467. </el-upload>
  468. <div class="startImport">
  469. <el-button
  470. type="primary"
  471. color="rgba(0, 97, 255, 1)"
  472. @click="addClick"
  473. plain
  474. >开始导入</el-button
  475. >
  476. <span class="downLoad">下载模板</span>
  477. </div>
  478. <div class="tableTitle">导入历史</div>
  479. <div class="footer">
  480. <el-table
  481. :row-class-name="tableRowClassName"
  482. :data="addBatchData.list"
  483. @selection-change="handleSelectionChange"
  484. :header-cell-style="{
  485. background: 'rgba(240, 243, 247, 1)',
  486. height: '45px',
  487. border: 0,
  488. }"
  489. >
  490. <el-table-column
  491. align="center "
  492. prop="userName"
  493. label="操作管理员"
  494. />
  495. <el-table-column align="center" prop="time" label="上传时间" />
  496. <el-table-column align="center" prop="status" label="导入状态" />
  497. <el-table-column
  498. align="center"
  499. prop="userPhone"
  500. label="导入成功"
  501. />
  502. <el-table-column
  503. align="center"
  504. prop="userPhone"
  505. label="导入失败"
  506. />
  507. <el-table-column align="center" label="失败列表" width="200">
  508. <template #default="scope">
  509. <div class="edit">
  510. <div class="look" @click="lookClick(scope.row)">
  511. 点击查看
  512. </div>
  513. <!-- <el-popconfirm
  514. width="220"
  515. confirm-button-text="确认"
  516. cancel-button-text="取消"
  517. :icon="InfoFilled"
  518. icon-color="#f89626"
  519. title="是否删除此房型?"
  520. @confirm="del(scope.row)"
  521. @cancel="cancelEvent"
  522. >
  523. <template #reference>
  524. <div class="del">删除</div>
  525. </template>
  526. </el-popconfirm> -->
  527. </div>
  528. </template>
  529. </el-table-column>
  530. </el-table>
  531. <div class="pageSize">
  532. <span></span>
  533. <el-pagination
  534. background
  535. :current-page="addBatch_currentPage"
  536. :page-size="addBatch_pageSize"
  537. layout="total, prev, pager, next, jumper, slot"
  538. :total="addBatch_total"
  539. @update:current-page="handleAddBatch"
  540. />
  541. </div>
  542. </div>
  543. </div>
  544. </div>
  545. </div>
  546. <!-- 批量删除 -->
  547. <div class="addMember" v-if="delBatchShow">
  548. <div class="left">
  549. <img src="@/assets/images/close.png" alt="" @click="delBatchConcel" />
  550. <span class="add">批量删除</span>
  551. </div>
  552. <div class="content">
  553. <div class="form">
  554. <el-upload
  555. style="width: 500px"
  556. class="upload-demo"
  557. drag
  558. action="#"
  559. multiple
  560. :on-preview="handlePreview3"
  561. :on-remove="handleRemove3"
  562. :on-change="handleChange3"
  563. :http-request="handleUpload3"
  564. :before-upload="beforeAvatarUpload3"
  565. >
  566. <el-icon class="el-icon--upload"><upload-filled /></el-icon>
  567. <div class="el-upload__text">
  568. <span style="font-size: 20px">点击上传或拖拽文件</span><br /><em
  569. >务必按照我们的标准模板填写信息</em
  570. >
  571. </div>
  572. <!-- <template #tip>
  573. <div class="el-upload__tip">
  574. jpg/png files with a size less than 500kb
  575. </div>
  576. </template> -->
  577. </el-upload>
  578. <div class="startImport">
  579. <el-button
  580. type="primary"
  581. color="rgba(0, 97, 255, 1)"
  582. @click="addClick"
  583. plain
  584. >开始执行批量删除</el-button
  585. >
  586. <span class="downLoad">下载模板</span>
  587. </div>
  588. <div class="tableTitle">导入历史</div>
  589. <div class="footer">
  590. <el-table
  591. :row-class-name="tableRowClassName"
  592. :data="delBatchData.list"
  593. @selection-change="handleSelectionChange"
  594. :header-cell-style="{
  595. background: 'rgba(240, 243, 247, 1)',
  596. height: '45px',
  597. border: 0,
  598. }"
  599. >
  600. <el-table-column
  601. align="center "
  602. prop="userName"
  603. label="操作管理员"
  604. />
  605. <el-table-column align="center" prop="time" label="上传时间" />
  606. <el-table-column align="center" prop="status" label="导入状态" />
  607. <el-table-column
  608. align="center"
  609. prop="userPhone"
  610. label="导入成功"
  611. />
  612. <el-table-column
  613. align="center"
  614. prop="userPhone"
  615. label="导入失败"
  616. />
  617. <el-table-column align="center" label="失败列表" width="200">
  618. <template #default="scope">
  619. <div class="edit">
  620. <div class="look" @click="lookClick(scope.row)">
  621. 点击查看
  622. </div>
  623. <!-- <el-popconfirm
  624. width="220"
  625. confirm-button-text="确认"
  626. cancel-button-text="取消"
  627. :icon="InfoFilled"
  628. icon-color="#f89626"
  629. title="是否删除此房型?"
  630. @confirm="del(scope.row)"
  631. @cancel="cancelEvent"
  632. >
  633. <template #reference>
  634. <div class="del">删除</div>
  635. </template>
  636. </el-popconfirm> -->
  637. </div>
  638. </template>
  639. </el-table-column>
  640. </el-table>
  641. <div class="pageSize">
  642. <span></span>
  643. <el-pagination
  644. background
  645. :current-page="delBatch_currentPage"
  646. :page-size="delBatch_pageSize"
  647. layout="total, prev, pager, next, jumper, slot"
  648. :total="delBatch_total"
  649. @update:current-page="handleDelBatch"
  650. />
  651. </div>
  652. </div>
  653. </div>
  654. </div>
  655. </div>
  656. <!-- 修改部门 -->
  657. <el-dialog
  658. class="amendBMDialog"
  659. v-model="amendBMVisible"
  660. :close-on-click-modal="false"
  661. :close-on-press-escape="false"
  662. title="修改部门"
  663. align-center
  664. width="500"
  665. :before-close="cancelAmendBM"
  666. >
  667. <el-form
  668. ref="amendBMRef"
  669. :model="amendBMRuleForm"
  670. :rules="amendBMRules"
  671. label-width="90px"
  672. class="demo-ruleForm"
  673. :size="formSize"
  674. label-position="left"
  675. status-icon
  676. >
  677. <el-form-item label="部门名称 :" prop="department">
  678. <el-input
  679. v-model="amendBMRuleForm.department"
  680. placeholder="请输入部门名称"
  681. clearable
  682. style="width: 340px"
  683. />
  684. </el-form-item>
  685. <div class="option">
  686. <el-button
  687. color="rgba(41, 109, 227, 1)"
  688. class="queding"
  689. type="primary"
  690. @click="confirmAmendBM(amendBMRef)"
  691. >
  692. 确认
  693. </el-button>
  694. <el-button @click="cancelAmendBM(amendBMRef)">取消</el-button>
  695. </div>
  696. </el-form>
  697. </el-dialog>
  698. <!-- 新建子部门 -->
  699. <el-dialog
  700. class="amendBMDialog"
  701. v-model="addBMVisible"
  702. :close-on-click-modal="false"
  703. :close-on-press-escape="false"
  704. title="新建子部门"
  705. align-center
  706. width="500"
  707. :before-close="cancelAddBM"
  708. >
  709. <el-form
  710. ref="addBMRef"
  711. :model="addBMRuleForm"
  712. :rules="addBMRules"
  713. label-width="90px"
  714. class="demo-ruleForm"
  715. :size="formSize"
  716. label-position="left"
  717. status-icon
  718. >
  719. <el-form-item label="部门名称 :" prop="department">
  720. <el-input
  721. v-model="addBMRuleForm.department"
  722. placeholder="请输入部门名称"
  723. clearable
  724. style="width: 340px"
  725. />
  726. </el-form-item>
  727. <div class="option">
  728. <el-button
  729. color="rgba(41, 109, 227, 1)"
  730. class="queding"
  731. type="primary"
  732. @click="confirmAddBM(addBMRef)"
  733. >
  734. 确认
  735. </el-button>
  736. <el-button @click="cancelAddBM(addBMRef)">取消</el-button>
  737. </div>
  738. </el-form>
  739. </el-dialog>
  740. <!-- 移动成员 -->
  741. <el-dialog
  742. class="moveMemberDialog"
  743. v-model="moveMemberVisible"
  744. :close-on-click-modal="false"
  745. :close-on-press-escape="false"
  746. title="移动选择用户至"
  747. align-center
  748. width="650"
  749. :before-close="cancelMoveMember"
  750. >
  751. <div class="move">
  752. <div class="moveLeft">
  753. <el-input
  754. v-model="moveSearchInput"
  755. :clearable="true"
  756. @clear="searchBtn"
  757. placeholder="请输入部门"
  758. class="searchTree"
  759. style="width: 260px"
  760. >
  761. <template #prefix>
  762. <el-icon class="el-input__icon"><search /></el-icon>
  763. </template>
  764. </el-input>
  765. <el-tree
  766. ref="moveTree"
  767. :data="dataSource"
  768. node-key="id"
  769. default-expand-all
  770. :expand-on-click-node="false"
  771. show-checkbox
  772. check-strictly
  773. @check-change="moveCheckChange"
  774. >
  775. <template #default="{ node, data }">
  776. <span class="custom-tree-node">
  777. <div class="title">
  778. <img src="@/assets/images/folder.png" alt="" />
  779. <!-- <img src="@/assets/images/document.png" alt="" /> -->
  780. <span>{{ node.label }}</span>
  781. </div>
  782. </span>
  783. </template>
  784. </el-tree>
  785. </div>
  786. <div class="moveRight">
  787. <div class="sel">已选择 :</div>
  788. <ul
  789. class="infinite-list"
  790. style="overflow: auto"
  791. infinite-scroll-immediate="false"
  792. >
  793. <li
  794. v-for="(i, index) in treeSelData.list"
  795. :key="index"
  796. class="infinite-list-item"
  797. >
  798. <span style="margin-left: 19px">{{ i.label }}</span>
  799. <el-icon @click="cancelTreeSel(i)">
  800. <Close />
  801. </el-icon>
  802. <!-- <i class="el-icon-close" @click="cancelCheck(i)"></i> -->
  803. </li>
  804. </ul>
  805. </div>
  806. </div>
  807. <div class="options">
  808. <el-button
  809. color="rgba(41, 109, 227, 1)"
  810. class="queding"
  811. type="primary"
  812. @click="confirmMoveMember"
  813. >
  814. 确认
  815. </el-button>
  816. <el-button @click="cancelMoveMember">取消</el-button>
  817. </div>
  818. </el-dialog>
  819. <!-- 注销账号 -->
  820. <el-dialog
  821. class="closeAccount"
  822. v-model="closeAccountVisible"
  823. :close-on-click-modal="false"
  824. :close-on-press-escape="false"
  825. title="注销账号"
  826. align-center
  827. width="500"
  828. :before-close="cancelCloseAccount"
  829. >
  830. <div class="content">
  831. <img src="@/assets/images/warning.png" alt="" />
  832. <span
  833. >选中的用户将会被注销账号,注销后相应的功能将无法使用,确定要操作吗?</span
  834. >
  835. </div>
  836. <div class="option">
  837. <el-button
  838. color="rgba(41, 109, 227, 1)"
  839. class="queding"
  840. type="primary"
  841. @click="confirmCloseAccount"
  842. >
  843. 确认
  844. </el-button>
  845. <el-button @click="cancelCloseAccount">取消</el-button>
  846. </div>
  847. </el-dialog>
  848. <!-- 勾选删除 -->
  849. <el-dialog
  850. class="closeAccount"
  851. v-model="selDelVisible"
  852. :close-on-click-modal="false"
  853. :close-on-press-escape="false"
  854. title="勾选删除"
  855. align-center
  856. width="500"
  857. :before-close="cancelSelDel"
  858. >
  859. <div class="content">
  860. <img src="@/assets/images/warning.png" alt="" />
  861. <span>是否删除勾选的用户?</span>
  862. </div>
  863. <div class="option">
  864. <el-button
  865. color="rgba(41, 109, 227, 1)"
  866. class="queding"
  867. type="primary"
  868. @click="confirmSelDel"
  869. >
  870. 确认
  871. </el-button>
  872. <el-button @click="cancelSelDel">取消</el-button>
  873. </div>
  874. </el-dialog>
  875. <div class="bgImg" v-if="bgImg">
  876. <el-carousel
  877. @click="bgImg = false"
  878. ref="bgImgs"
  879. indicator-position
  880. arrow="always"
  881. :autoplay="false"
  882. trigger
  883. >
  884. <el-carousel-item>
  885. <img :src="showImg" alt="" />
  886. </el-carousel-item>
  887. </el-carousel>
  888. </div>
  889. </div>
  890. </template>
  891. <script setup>
  892. import {
  893. ref,
  894. reactive,
  895. watch,
  896. nextTick,
  897. onBeforeMount,
  898. onUnmounted,
  899. } from "vue";
  900. import { useRouter } from "vue-router";
  901. import { ElMessage, ElMessageBox } from "element-plus";
  902. import { Camera } from "@element-plus/icons-vue";
  903. import { dayjs } from "element-plus";
  904. import lodash from "lodash";
  905. import axios from "axios";
  906. import { useStore } from "vuex";
  907. const store = useStore();
  908. const api = ref("");
  909. const router = useRouter();
  910. // 树形结构
  911. const dataSource = ref([
  912. {
  913. id: 1,
  914. label: "万载三中",
  915. children: [
  916. {
  917. id: 2,
  918. label: "教职工",
  919. children: [
  920. {
  921. id: 121,
  922. label: "院领导",
  923. },
  924. {
  925. id: 122,
  926. label: "董事会办公室",
  927. },
  928. {
  929. id: 123,
  930. label: "团委",
  931. },
  932. {
  933. id: 124,
  934. label: "科技园",
  935. },
  936. ],
  937. },
  938. {
  939. id: 3,
  940. label: "学生",
  941. children: [
  942. {
  943. id: 131,
  944. label: "设计与技术学院",
  945. },
  946. {
  947. id: 132,
  948. label: "商学院",
  949. },
  950. ],
  951. },
  952. {
  953. id: 4,
  954. label: "临时人员",
  955. children: [
  956. {
  957. id: 141,
  958. label: "维修",
  959. },
  960. {
  961. id: 142,
  962. label: "商品",
  963. },
  964. ],
  965. },
  966. {
  967. id: 5,
  968. label: "司机",
  969. },
  970. {
  971. id: 6,
  972. label: "食堂",
  973. children: [
  974. {
  975. id: 9,
  976. label: "一食堂",
  977. },
  978. {
  979. id: 10,
  980. label: "二食堂",
  981. },
  982. ],
  983. },
  984. ],
  985. },
  986. ]);
  987. // 主页面数据(----------------------------------------------)
  988. // 表格数据
  989. const loading = ref(false);
  990. const tableData = reactive({
  991. list: [
  992. {
  993. userName: "张三",
  994. type: "越界",
  995. position: "教学楼",
  996. img: "https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2021%2F1123%2F77d07411j00r30gwf004dc000go00b4m.jpg&thumbnail=660x2147483647&quality=80&type=jpg",
  997. remark: "请规范好学生行为",
  998. status: "已处理",
  999. time: "2023-12-02 11:05:30",
  1000. },
  1001. {
  1002. userName: "王卿",
  1003. type: "越界",
  1004. position: "教学楼",
  1005. img: "https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2021%2F1123%2F77d07411j00r30gwf004dc000go00b4m.jpg&thumbnail=660x2147483647&quality=80&type=jpg",
  1006. remark: "请规范好学生行为",
  1007. status: "已处理",
  1008. time: "2023-12-02 11:05:30",
  1009. },
  1010. {
  1011. userName: "李明",
  1012. type: "越界",
  1013. position: "教学楼",
  1014. img: "https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2021%2F1123%2F77d07411j00r30gwf004dc000go00b4m.jpg&thumbnail=660x2147483647&quality=80&type=jpg",
  1015. remark: "请规范好学生行为",
  1016. status: "已处理",
  1017. time: "2023-12-02 11:05:30",
  1018. },
  1019. {
  1020. userName: "涂涂",
  1021. type: "越界",
  1022. position: "教学楼",
  1023. img: "https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2021%2F1123%2F77d07411j00r30gwf004dc000go00b4m.jpg&thumbnail=660x2147483647&quality=80&type=jpg",
  1024. remark: "请规范好学生行为",
  1025. status: "已处理",
  1026. time: "2023-12-02 11:05:30",
  1027. },
  1028. {
  1029. userName: "小红",
  1030. type: "越界",
  1031. position: "教学楼",
  1032. img: "https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2021%2F1123%2F77d07411j00r30gwf004dc000go00b4m.jpg&thumbnail=660x2147483647&quality=80&type=jpg",
  1033. remark: "请规范好学生行为",
  1034. status: "已处理",
  1035. time: "2023-12-02 11:05:30",
  1036. },
  1037. {
  1038. userName: "小明",
  1039. type: "越界",
  1040. position: "教学楼",
  1041. img: "https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2021%2F1123%2F77d07411j00r30gwf004dc000go00b4m.jpg&thumbnail=660x2147483647&quality=80&type=jpg",
  1042. remark: "请规范好学生行为",
  1043. status: "已处理",
  1044. time: "2023-12-02 11:05:30",
  1045. },
  1046. {
  1047. userName: "例子",
  1048. type: "越界",
  1049. position: "教学楼",
  1050. img: "https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2021%2F1123%2F77d07411j00r30gwf004dc000go00b4m.jpg&thumbnail=660x2147483647&quality=80&type=jpg",
  1051. remark: "请规范好学生行为",
  1052. status: "已处理",
  1053. time: "2023-12-02 11:05:30",
  1054. },
  1055. ],
  1056. });
  1057. const searchInput = reactive({
  1058. keyWord: "",
  1059. createTime: "",
  1060. }); // 搜索按钮数据
  1061. const homeShow = ref(true);
  1062. const currentPage = ref(1); // 当前页
  1063. const pageSize = ref(10);
  1064. const total = ref(8); // 当前总数
  1065. // 修改部门 (----------------------------------------------)
  1066. const amendBMVisible = ref(false);
  1067. const amendBMRef = ref();
  1068. const amendBMRuleForm = reactive({
  1069. department: "", // 部门
  1070. id: "",
  1071. });
  1072. // 表单验证
  1073. const amendBMRules = reactive({
  1074. department: [
  1075. { required: true, message: "部门名称不能为空", trigger: "blur" },
  1076. ],
  1077. });
  1078. // 新建子部门 (----------------------------------------------)
  1079. const addBMVisible = ref(false);
  1080. const addBMRef = ref();
  1081. const addBMRuleForm = reactive({
  1082. department: "", // 部门
  1083. id: "",
  1084. });
  1085. // 表单验证
  1086. const addBMRules = reactive({
  1087. department: [
  1088. { required: true, message: "部门名称不能为空", trigger: "blur" },
  1089. ],
  1090. });
  1091. // 添加成员页面 (---------------------------------------------)
  1092. const addMemberShow = ref(false);
  1093. const addMemberRef = ref();
  1094. const addMemberRuleForm = reactive({
  1095. serialNumber: "", // 编号
  1096. name: "", // 姓名
  1097. identity: "", // 身份
  1098. icCard: "", // 身份证号
  1099. sex: "", // 性别
  1100. department: "", // 部门
  1101. facePhoto: "", // 人脸照片
  1102. grade: "", // 年级
  1103. institute: "", // 学院
  1104. specialty: "", // 专业
  1105. class: "", // 班级
  1106. school: "", // 校区
  1107. dormitory: "", // 宿舍号
  1108. phone: "", // 手机号
  1109. contact: "", // 联系人
  1110. // 其他信息
  1111. jobName: "", // 职称
  1112. houseAddress: "", // 家庭地址
  1113. nation: "", // 民族
  1114. originOfStudent: "", // 生源地
  1115. graduateCollege: "", // 毕业学院
  1116. duty: "", // 职务
  1117. id: "",
  1118. });
  1119. // 表单验证
  1120. const addMemberRules = reactive({
  1121. serialNumber: [{ required: true, message: "编号不能为空", trigger: "blur" }],
  1122. name: [{ required: true, message: "姓名不能为空", trigger: "blur" }],
  1123. identity: [{ required: true, message: "身份不能为空", trigger: "blur" }],
  1124. icCard: [{ required: true, message: "身份证号不能为空", trigger: "blur" }],
  1125. sex: [{ required: true, message: "性别不能为空", trigger: "blur" }],
  1126. department: [{ required: true, message: "部门不能为空", trigger: "blur" }],
  1127. facePhoto: [{ required: true, message: "人脸照片不能为空", trigger: "blur" }],
  1128. grade: [{ required: true, message: "年级不能为空", trigger: "blur" }],
  1129. institute: [{ required: true, message: "学院不能为空", trigger: "blur" }],
  1130. specialty: [{ required: true, message: "专业不能为空", trigger: "blur" }],
  1131. class: [{ required: true, message: "班级不能为空", trigger: "blur" }],
  1132. school: [{ required: true, message: "校区不能为空", trigger: "blur" }],
  1133. dormitory: [{ required: true, message: "宿舍号不能为空", trigger: "blur" }],
  1134. phone: [{ required: true, message: "手机号不能为空", trigger: "blur" }],
  1135. contact: [{ required: true, message: "联系人不能为空", trigger: "blur" }],
  1136. jobName: [{ required: true, message: "职称不能为空", trigger: "blur" }],
  1137. houseAddress: [
  1138. { required: true, message: "家庭地址不能为空", trigger: "blur" },
  1139. ],
  1140. nation: [{ required: true, message: "民族不能为空", trigger: "blur" }],
  1141. originOfStudent: [
  1142. { required: true, message: "生源地不能为空", trigger: "blur" },
  1143. ],
  1144. graduateCollege: [
  1145. { required: true, message: "毕业学院不能为空", trigger: "blur" },
  1146. ],
  1147. duty: [{ required: true, message: "职务不能为空", trigger: "blur" }],
  1148. });
  1149. // 批量添加 (-----------------------------------------)
  1150. const addBatchShow = ref(false);
  1151. const addBatchData = reactive({
  1152. list: [
  1153. {
  1154. userName: "张三",
  1155. status: "已处理",
  1156. time: "2023-12-02 11:05:30",
  1157. },
  1158. {
  1159. userName: "王卿",
  1160. status: "已处理",
  1161. time: "2023-12-02 11:05:30",
  1162. },
  1163. {
  1164. userName: "李明",
  1165. status: "已处理",
  1166. time: "2023-12-02 11:05:30",
  1167. },
  1168. {
  1169. userName: "涂涂",
  1170. status: "已处理",
  1171. time: "2023-12-02 11:05:30",
  1172. },
  1173. {
  1174. userName: "小红",
  1175. status: "已处理",
  1176. time: "2023-12-02 11:05:30",
  1177. },
  1178. {
  1179. userName: "小明",
  1180. status: "已处理",
  1181. time: "2023-12-02 11:05:30",
  1182. },
  1183. {
  1184. userName: "例子",
  1185. status: "已处理",
  1186. time: "2023-12-02 11:05:30",
  1187. },
  1188. ],
  1189. });
  1190. const addBatch_currentPage = ref(1); // 当前页
  1191. const addBatch_pageSize = ref(7);
  1192. const addBatch_total = ref(8); // 当前总数
  1193. // 批量删除(--------------------------------------------)
  1194. const delBatchShow = ref(false);
  1195. const delBatchData = reactive({
  1196. list: [
  1197. {
  1198. userName: "张三",
  1199. status: "已处理",
  1200. time: "2023-12-02 11:05:30",
  1201. },
  1202. {
  1203. userName: "王卿",
  1204. status: "已处理",
  1205. time: "2023-12-02 11:05:30",
  1206. },
  1207. {
  1208. userName: "李明",
  1209. status: "已处理",
  1210. time: "2023-12-02 11:05:30",
  1211. },
  1212. {
  1213. userName: "涂涂",
  1214. status: "已处理",
  1215. time: "2023-12-02 11:05:30",
  1216. },
  1217. {
  1218. userName: "小红",
  1219. status: "已处理",
  1220. time: "2023-12-02 11:05:30",
  1221. },
  1222. {
  1223. userName: "小明",
  1224. status: "已处理",
  1225. time: "2023-12-02 11:05:30",
  1226. },
  1227. {
  1228. userName: "例子",
  1229. status: "已处理",
  1230. time: "2023-12-02 11:05:30",
  1231. },
  1232. ],
  1233. });
  1234. const delBatch_currentPage = ref(1); // 当前页
  1235. const delBatch_pageSize = ref(7);
  1236. const delBatch_total = ref(8); // 当前总数
  1237. // 移动成员(-----------------------------------------------)
  1238. const selectData = reactive({ list: [] });
  1239. const moveMemberVisible = ref(false);
  1240. const moveTree = ref();
  1241. const moveSearchInput = ref();
  1242. const treeSelData = reactive({ list: [] });
  1243. // 注销账号
  1244. const closeAccountVisible = ref(false);
  1245. // 勾选删除
  1246. const selDelVisible = ref(false);
  1247. // 查看表格图片 (----------------------------------------------)
  1248. const bgImg = ref(false);
  1249. const showImg = ref();
  1250. const imgClick = (row) => {
  1251. bgImg.value = true;
  1252. showImg.value = row.img;
  1253. };
  1254. // 查看房型列表
  1255. const getList = async () => {
  1256. // loading.value = true;
  1257. // let data = {
  1258. // page: currentPage.value,
  1259. // rows: pageSize.value,
  1260. // hName: searchInput.keyWord, // 房型名称
  1261. // managerId: sessionStorage.getItem("token"),
  1262. // };
  1263. // let res = await axios({
  1264. // method: "post",
  1265. // url: api.value + "/mhotel/housequeryPage.action",
  1266. // headers: {
  1267. // // token: sessionStorage.getItem("token"),
  1268. // // user_head: sessionStorage.getItem("userhead"),
  1269. // },
  1270. // params: data,
  1271. // });
  1272. // console.log(res, "房型管理");
  1273. // if (res.data.code == 200) {
  1274. // loading.value = false;
  1275. // tableData.list = res.data.data.pageList;
  1276. // total.value = res.data.data.total;
  1277. // // ElMessage({
  1278. // // type: "success",
  1279. // // showClose: true,
  1280. // // message: res.data.message,
  1281. // // center: true,
  1282. // // });
  1283. // } else {
  1284. // loading.value = false;
  1285. // ElMessage({
  1286. // type: "error",
  1287. // showClose: true,
  1288. // message: res.data.message,
  1289. // center: true,
  1290. // });
  1291. // }
  1292. };
  1293. // 搜索功能
  1294. const searchBtn = lodash.debounce(async () => {
  1295. getList();
  1296. }, 300);
  1297. // 修改部门(------------------------------------------------)
  1298. const amendBMClick = (node, data) => {
  1299. amendBMRuleForm.department = data.label;
  1300. amendBMVisible.value = true;
  1301. console.log(node, data, "修改部门");
  1302. };
  1303. const confirmAmendBM = async (formEl) => {
  1304. if (!formEl) return;
  1305. await formEl.validate((valid, fields) => {
  1306. if (valid) {
  1307. console.log("submit!");
  1308. } else {
  1309. console.log("error submit!", fields);
  1310. }
  1311. });
  1312. };
  1313. const cancelAmendBM = () => {
  1314. amendBMVisible.value = false;
  1315. };
  1316. // 新建子部门(------------------------------------------------)
  1317. const addBMClick = (node, data) => {
  1318. addBMVisible.value = true;
  1319. console.log(node, data, "修改部门");
  1320. };
  1321. const cancelAddBM = () => {
  1322. addBMVisible.value = false;
  1323. };
  1324. //删除按钮(---------------------------------------------------)
  1325. const del = async (row) => {
  1326. let data = {
  1327. id: row.id,
  1328. };
  1329. // let res = await axios({
  1330. // method: "post",
  1331. // url: api.value + "/mhotel/housedelHouser.action",
  1332. // headers: {
  1333. // // token: sessionStorage.getItem("token"),
  1334. // // user_head: sessionStorage.getItem("userhead"),
  1335. // },
  1336. // params: data,
  1337. // });
  1338. // if (res.data.code == 200) {
  1339. // if (tableData.list.length == 1 && currentPage.value != 1) {
  1340. // currentPage.value = currentPage.value - 1;
  1341. // }
  1342. // getList();
  1343. // ElMessage({
  1344. // type: "success",
  1345. // showClose: true,
  1346. // message: res.data.message,
  1347. // center: true,
  1348. // });
  1349. // } else {
  1350. // ElMessage({
  1351. // type: "error",
  1352. // showClose: true,
  1353. // message: res.data.message,
  1354. // center: true,
  1355. // });
  1356. // }
  1357. // console.log(res);
  1358. };
  1359. // 添加成员(---------------------------------------------------)
  1360. const addMemberClick = () => {
  1361. homeShow.value = false;
  1362. addMemberShow.value = true;
  1363. };
  1364. const addMemberConcel = () => {
  1365. addMemberShow.value = false;
  1366. homeShow.value = true;
  1367. };
  1368. // 移出照片
  1369. const handleRemove = (uploadFile, uploadFiles) => {
  1370. console.log(uploadFile.uid, uploadFiles);
  1371. // fileList.list = fileList.list.filter((item) => {
  1372. // return item.uid != uploadFile.uid;
  1373. // });
  1374. // ruleForm.fileListJson = fileList.list;
  1375. };
  1376. // 点击图片的查看按钮
  1377. const handlePreview = (file) => {
  1378. // imgUrl.value = file.url;
  1379. // imgVisible.value = true;
  1380. // console.log(file, "00000000");
  1381. };
  1382. // 限制上传图片的大小
  1383. const beforeAvatarUpload = (rawFile) => {
  1384. // console.log(rawFile, 33333);
  1385. if (rawFile.type !== "image/jpeg" && rawFile.type !== "image/png") {
  1386. ElMessage.error("图片格式必须为JPG/PNG格式!");
  1387. return false;
  1388. } else if (rawFile.size / 1024 / 1024 > 10) {
  1389. ElMessage.error("图片的大小不能超过10MB!");
  1390. return false;
  1391. }
  1392. return true;
  1393. };
  1394. // 添加照片时往fileList列表中添加图片信息
  1395. const handleChange = async (file, fileLists) => {
  1396. console.log(file, "1111");
  1397. // fileList.list.push(file);
  1398. };
  1399. // 可以获取图片参数
  1400. const handleUpload = async (file) => {
  1401. // if (fileList.list.length >= 6) {
  1402. // ElMessage.error("最多可上传6张图片!");
  1403. // return false;
  1404. // }
  1405. console.log(file, "22222222");
  1406. addMemberRuleForm.facePhoto = file.file;
  1407. // let data = new FormData();
  1408. // data.set("files", file.file);
  1409. // let res = await axios({
  1410. // method: "post",
  1411. // url: api.value + "/file/cos/upload",
  1412. // headers: {},
  1413. // data: data,
  1414. // });
  1415. // console.log(res, "图片上传成功详情图");
  1416. // if (res.data.code == 1) {
  1417. // // res.data.data.uid = file.file.uid;
  1418. // // console.log([res.data.data]);
  1419. // let arr = {
  1420. // uid: file.file.uid,
  1421. // url: res.data.data,
  1422. // };
  1423. // fileList.list = fileList.list.concat([arr]);
  1424. // ruleForm.fileListJson = fileList.list;
  1425. // }
  1426. };
  1427. // 确定编辑
  1428. const confirmEdit = (formEl) => {
  1429. if (!formEl) return;
  1430. formEl.validate(async (valid, fields) => {
  1431. if (valid) {
  1432. }
  1433. });
  1434. };
  1435. // 批量添加 (------------------------------------------------------)
  1436. const addBatchClick = () => {
  1437. addBatchShow.value = true;
  1438. homeShow.value = false;
  1439. };
  1440. const addBatchConcel = () => {
  1441. homeShow.value = true;
  1442. addBatchShow.value = false;
  1443. };
  1444. // 移出照片
  1445. const handleRemove2 = (uploadFile, uploadFiles) => {
  1446. // console.log(uploadFile.uid, uploadFiles);
  1447. // fileList.list = fileList.list.filter((item) => {
  1448. // return item.uid != uploadFile.uid;
  1449. // });
  1450. // ruleForm.fileListJson = fileList.list;
  1451. };
  1452. // 点击图片的查看按钮
  1453. const handlePreview2 = (file) => {
  1454. // imgUrl.value = file.url;
  1455. // imgVisible.value = true;
  1456. console.log(file);
  1457. };
  1458. // 限制上传图片的大小
  1459. const beforeAvatarUpload2 = (rawFile) => {
  1460. console.log(rawFile.type, "文件类型");
  1461. if (
  1462. rawFile.type !==
  1463. "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
  1464. ) {
  1465. ElMessage.error("文件格式必须为xlsx格式!");
  1466. return false;
  1467. } else if (rawFile.size / 1024 / 1024 > 100) {
  1468. ElMessage.error("图片的大小不能超过100MB!");
  1469. return false;
  1470. }
  1471. return true;
  1472. };
  1473. // 添加照片时往fileList列表中添加图片信息
  1474. const handleChange2 = async (file, fileLists) => {
  1475. console.log(file, "1111");
  1476. // fileList.list.push(file);
  1477. };
  1478. // 可以获取图片参数
  1479. const handleUpload2 = async (file) => {
  1480. // if (fileList.list.length >= 6) {
  1481. // ElMessage.error("最多可上传6张图片!");
  1482. // return false;
  1483. // }
  1484. console.log(file, "22222222");
  1485. // let data = new FormData();
  1486. // data.set("files", file.file);
  1487. // let res = await axios({
  1488. // method: "post",
  1489. // url: api.value + "/file/cos/upload",
  1490. // headers: {},
  1491. // data: data,
  1492. // });
  1493. // console.log(res, "图片上传成功详情图");
  1494. // if (res.data.code == 1) {
  1495. // // res.data.data.uid = file.file.uid;
  1496. // // console.log([res.data.data]);
  1497. // let arr = {
  1498. // uid: file.file.uid,
  1499. // url: res.data.data,
  1500. // };
  1501. // fileList.list = fileList.list.concat([arr]);
  1502. // ruleForm.fileListJson = fileList.list;
  1503. // }
  1504. };
  1505. // 分页
  1506. const handleAddBatch = (value) => {
  1507. // console.log(value);
  1508. addBatch_currentPage.value = value;
  1509. };
  1510. // 批量删除 (------------------------------------------------------)
  1511. const delBatchClick = () => {
  1512. delBatchShow.value = true;
  1513. homeShow.value = false;
  1514. };
  1515. const delBatchConcel = () => {
  1516. homeShow.value = true;
  1517. delBatchShow.value = false;
  1518. };
  1519. // 移出照片
  1520. const handleRemove3 = (uploadFile, uploadFiles) => {
  1521. // console.log(uploadFile.uid, uploadFiles);
  1522. // fileList.list = fileList.list.filter((item) => {
  1523. // return item.uid != uploadFile.uid;
  1524. // });
  1525. // ruleForm.fileListJson = fileList.list;
  1526. };
  1527. // 点击图片的查看按钮
  1528. const handlePreview3 = (file) => {
  1529. // imgUrl.value = file.url;
  1530. // imgVisible.value = true;
  1531. console.log(file);
  1532. };
  1533. // 限制上传图片的大小
  1534. const beforeAvatarUpload3 = (rawFile) => {
  1535. console.log(rawFile.type, "文件类型");
  1536. if (
  1537. rawFile.type !==
  1538. "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
  1539. ) {
  1540. ElMessage.error("文件格式必须为xlsx格式!");
  1541. return false;
  1542. } else if (rawFile.size / 1024 / 1024 > 100) {
  1543. ElMessage.error("图片的大小不能超过100MB!");
  1544. return false;
  1545. }
  1546. return true;
  1547. };
  1548. // 添加照片时往fileList列表中添加图片信息
  1549. const handleChange3 = async (file, fileLists) => {
  1550. console.log(file, "1111");
  1551. // fileList.list.push(file);
  1552. };
  1553. // 可以获取图片参数
  1554. const handleUpload3 = async (file) => {
  1555. // if (fileList.list.length >= 6) {
  1556. // ElMessage.error("最多可上传6张图片!");
  1557. // return false;
  1558. // }
  1559. console.log(file, "22222222");
  1560. // let data = new FormData();
  1561. // data.set("files", file.file);
  1562. // let res = await axios({
  1563. // method: "post",
  1564. // url: api.value + "/file/cos/upload",
  1565. // headers: {},
  1566. // data: data,
  1567. // });
  1568. // console.log(res, "图片上传成功详情图");
  1569. // if (res.data.code == 1) {
  1570. // // res.data.data.uid = file.file.uid;
  1571. // // console.log([res.data.data]);
  1572. // let arr = {
  1573. // uid: file.file.uid,
  1574. // url: res.data.data,
  1575. // };
  1576. // fileList.list = fileList.list.concat([arr]);
  1577. // ruleForm.fileListJson = fileList.list;
  1578. // }
  1579. };
  1580. // 分页
  1581. const handleDelBatch = (value) => {
  1582. // console.log(value);
  1583. delBatch_currentPage.value = value;
  1584. };
  1585. // 移动成员 (----------------------------------------------------------------)
  1586. // 首页表格多选框功能
  1587. const handleSelectionChange = (val) => {
  1588. console.log(val);
  1589. selectData.list = val;
  1590. };
  1591. const moveMemberClick = () => {
  1592. if (selectData.list.length) {
  1593. moveMemberVisible.value = true;
  1594. } else {
  1595. ElMessage({
  1596. type: "warning",
  1597. showClose: true,
  1598. message: "请先选择需要移动的用户",
  1599. center: true,
  1600. });
  1601. }
  1602. };
  1603. const cancelMoveMember = () => {
  1604. moveMemberVisible.value = false;
  1605. moveTree.value.setCheckedKeys([]);
  1606. treeSelData.list = [];
  1607. };
  1608. // 移动成员里面勾选的
  1609. const moveCheckChange = (data, checked, indeterminate) => {
  1610. console.log(data, checked, indeterminate, "移动成员勾选");
  1611. // console.log(moveTree.value.getCheckedKeys());
  1612. if (checked) {
  1613. let arr = {
  1614. id: data.id,
  1615. label: data.label,
  1616. };
  1617. treeSelData.list.push(arr);
  1618. console.log(treeSelData.list);
  1619. }
  1620. };
  1621. // 移动取消勾选
  1622. const cancelTreeSel = (i) => {
  1623. console.log(i);
  1624. treeSelData.list = treeSelData.list.filter((item) => {
  1625. return item.id != i.id;
  1626. });
  1627. let arr = [];
  1628. treeSelData.list.forEach((item) => {
  1629. arr.push(item.id);
  1630. });
  1631. moveTree.value.setCheckedKeys(arr);
  1632. };
  1633. // 注销账号 (--------------------------------------------------------------------)
  1634. const closeAccountClick = () => {
  1635. if (selectData.list.length) {
  1636. closeAccountVisible.value = true;
  1637. } else {
  1638. ElMessage({
  1639. type: "warning",
  1640. showClose: true,
  1641. message: "请先选择需要注销的用户",
  1642. center: true,
  1643. });
  1644. }
  1645. };
  1646. const cancelCloseAccount = () => {
  1647. closeAccountVisible.value = false;
  1648. };
  1649. // 勾选删除 (--------------------------------------------------------------------)
  1650. const delDelClick = () => {
  1651. if (selectData.list.length) {
  1652. selDelVisible.value = true;
  1653. } else {
  1654. ElMessage({
  1655. type: "warning",
  1656. showClose: true,
  1657. message: "请先选择需要删除的用户",
  1658. center: true,
  1659. });
  1660. }
  1661. };
  1662. const cancelSelDel = () => {
  1663. selDelVisible.value = false;
  1664. };
  1665. //导出功能
  1666. // const importExcel = async () => {
  1667. // if (searchInput.createTime == null) {
  1668. // searchInput.createTime = "";
  1669. // }
  1670. // let data = new FormData();
  1671. // data.set("car_number", searchInput.carnumber);
  1672. // data.set("create_time", searchInput.createTime);
  1673. // let res = await axios({
  1674. // method: "post",
  1675. // url: api.value + "/carBook/cinfotoExcel.action",
  1676. // headers: {
  1677. // token: sessionStorage.getItem("token"),
  1678. // },
  1679. // data: data,
  1680. // });
  1681. // // console.log(res, "导出账号");
  1682. // if (res.data.code == 200) {
  1683. // // const elt = document.createElement("a");
  1684. // // elt.setAttribute(
  1685. // // "href",
  1686. // // "https://chtech.ncjti.edu.cn/carstop" + res.data.downurl
  1687. // // );
  1688. // // elt.setAttribute("download", "file.png");
  1689. // // elt.style.display = "none";
  1690. // // document.body.appendChild(elt);
  1691. // // elt.click();
  1692. // var downloadPath = "https://chtech.ncjti.edu.cn/carstop" + res.data.downurl;
  1693. // console.log("获得地址数据:", downloadPath);
  1694. // var downloadLink = document.createElement("a");
  1695. // downloadLink.style.display = "none"; // 使其隐藏
  1696. // downloadLink.href = downloadPath;
  1697. // downloadLink.download = "";
  1698. // downloadLink.click();
  1699. // document.body.appendChild(downloadLink);
  1700. // document.body.removeChild(downloadLink);
  1701. // ElMessage({
  1702. // type: "success",
  1703. // showClose: true,
  1704. // message: res.data.message,
  1705. // center: true,
  1706. // });
  1707. // } else {
  1708. // ElMessage({
  1709. // type: "error",
  1710. // showClose: true,
  1711. // message: res.data.message,
  1712. // center: true,
  1713. // });
  1714. // }
  1715. // };
  1716. // 表格斑马纹颜色修改
  1717. const tableRowClassName = ({ row, rowIndex }) => {
  1718. if (rowIndex % 2 === 0) {
  1719. return "even";
  1720. } else if (rowIndex % 2 !== 0) {
  1721. return "odd";
  1722. }
  1723. return "";
  1724. };
  1725. // 分页
  1726. const handleCurrentChange = (value) => {
  1727. // console.log(value);
  1728. currentPage.value = value;
  1729. getList();
  1730. };
  1731. onBeforeMount(async () => {
  1732. api.value = store.state.user.api;
  1733. getList();
  1734. });
  1735. onUnmounted(() => {
  1736. // document.removeEventListener("keyup", Enters);
  1737. });
  1738. </script>
  1739. <style scoped lang="scss">
  1740. .content-box {
  1741. width: 100%;
  1742. height: calc(100vh - 65px);
  1743. // margin: 20px auto;
  1744. background-color: #fff;
  1745. // color: #fff;
  1746. display: flex;
  1747. align-items: center;
  1748. justify-content: center;
  1749. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  1750. .searchTree {
  1751. width: 220px;
  1752. margin: 20px 12px;
  1753. :deep(.el-input__wrapper) {
  1754. background-color: rgba(230, 230, 230, 1);
  1755. }
  1756. }
  1757. .treeV {
  1758. width: 247px;
  1759. height: 96%;
  1760. margin-right: 20px;
  1761. border-radius: 8px;
  1762. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  1763. .el-tree-node__content {
  1764. .custom-tree-node {
  1765. flex: 1;
  1766. display: flex;
  1767. align-items: center;
  1768. justify-content: space-between;
  1769. font-size: 14px;
  1770. padding-right: 8px;
  1771. .title {
  1772. display: flex;
  1773. align-items: center;
  1774. }
  1775. img {
  1776. width: 1.2em;
  1777. height: 1.2em;
  1778. margin: 0 5px 0 0;
  1779. }
  1780. }
  1781. }
  1782. }
  1783. // 主页面
  1784. .userRight {
  1785. flex: 1;
  1786. height: 96%;
  1787. margin-right: 20px;
  1788. border-radius: 8px;
  1789. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  1790. .left {
  1791. // width: calc(100wh - 40px);
  1792. display: flex;
  1793. align-items: center;
  1794. height: 60px;
  1795. padding: 0 30px;
  1796. border-bottom: 1px solid #ccc;
  1797. color: rgb(0, 0, 0);
  1798. font-size: 20px;
  1799. font-weight: 600;
  1800. span:nth-child(2) {
  1801. margin-left: 20px;
  1802. font-size: 14px;
  1803. color: rgba(128, 128, 128, 1);
  1804. }
  1805. }
  1806. .middle {
  1807. width: 96%;
  1808. margin: 0 auto;
  1809. color: #000;
  1810. // border-bottom: 1px solid rgb(231, 231, 231);
  1811. .filter {
  1812. display: flex;
  1813. flex-wrap: wrap;
  1814. align-items: center;
  1815. margin: 10px 0 0 0;
  1816. .search {
  1817. color: #fff;
  1818. }
  1819. .condition {
  1820. display: flex;
  1821. align-items: center;
  1822. margin: 10px 30px 10px 0;
  1823. :deep(.el-input .el-input__inner) {
  1824. font-size: 14px;
  1825. }
  1826. span {
  1827. margin: 0 10px 0 0;
  1828. }
  1829. }
  1830. }
  1831. .gongneng {
  1832. margin: 10px 0 20px 0;
  1833. span {
  1834. color: #fff;
  1835. }
  1836. .el-button {
  1837. margin-right: 10px;
  1838. }
  1839. .el-dropdown {
  1840. margin: 0 10px;
  1841. }
  1842. }
  1843. :deep(.cont) {
  1844. width: 60%;
  1845. margin: 20px auto;
  1846. }
  1847. :deep(.download) {
  1848. display: flex;
  1849. align-items: center;
  1850. margin: 10px;
  1851. }
  1852. :deep(.download span) {
  1853. font-size: 16px;
  1854. margin-left: 20px;
  1855. }
  1856. :deep(.cont .el-button) {
  1857. margin-left: 60px;
  1858. margin-bottom: 30px;
  1859. }
  1860. :deep(.cont .accomplish) {
  1861. width: 100%;
  1862. display: flex;
  1863. justify-content: center;
  1864. }
  1865. :deep(.cont .accomplish .el-button) {
  1866. width: 50%;
  1867. margin: 0;
  1868. }
  1869. }
  1870. .footer {
  1871. width: 96%;
  1872. height: 550px;
  1873. margin: 10px auto 30px;
  1874. .el-table--fit {
  1875. height: 100%;
  1876. :deep(.el-table__header-wrapper) {
  1877. background-color: #000;
  1878. font-size: 14px;
  1879. tr {
  1880. // color: #000;
  1881. }
  1882. }
  1883. :deep(.el-table__row) {
  1884. height: 50px;
  1885. font-size: 14px;
  1886. // color: #000;
  1887. &:hover {
  1888. td {
  1889. background-color: rgba(223, 236, 254, 1);
  1890. }
  1891. }
  1892. }
  1893. :deep(.el-table__row):nth-child(2n) {
  1894. .el-table-fixed-column--right {
  1895. background-color: rgba(240, 243, 247, 1);
  1896. }
  1897. }
  1898. :deep(.el-table__row td) {
  1899. padding: 0;
  1900. border: 0;
  1901. .img {
  1902. display: flex;
  1903. align-items: center;
  1904. justify-content: center;
  1905. margin: 5px 0;
  1906. img {
  1907. width: 60px;
  1908. height: 60px;
  1909. cursor: pointer;
  1910. }
  1911. }
  1912. }
  1913. .el-button--primary {
  1914. margin-left: 5px;
  1915. }
  1916. :deep(.el-table__body .even) {
  1917. background-color: #fff;
  1918. }
  1919. :deep(.el-table__body .odd) {
  1920. background-color: rgba(240, 243, 247, 1);
  1921. }
  1922. :deep(.edit) {
  1923. display: flex;
  1924. align-items: center;
  1925. justify-content: center;
  1926. color: rgba(111, 182, 184, 1);
  1927. }
  1928. :deep(.look) {
  1929. padding: 0 10px;
  1930. cursor: pointer;
  1931. color: rgba(30, 125, 251, 1);
  1932. }
  1933. .del {
  1934. padding: 0 10px;
  1935. color: rgba(212, 48, 48, 1);
  1936. cursor: pointer;
  1937. }
  1938. // :deep(.look):hover {
  1939. // color: red;
  1940. // }
  1941. // :deep(.del):hover {
  1942. // color: red;
  1943. // }
  1944. }
  1945. }
  1946. }
  1947. // 批量导入
  1948. .addMember {
  1949. flex: 1;
  1950. height: 96%;
  1951. margin-right: 20px;
  1952. border-radius: 8px;
  1953. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  1954. .left {
  1955. // width: calc(100wh - 40px);
  1956. display: flex;
  1957. align-items: center;
  1958. height: 60px;
  1959. padding: 0 30px;
  1960. border-bottom: 1px solid #ccc;
  1961. color: rgb(0, 0, 0);
  1962. font-size: 20px;
  1963. font-weight: 600;
  1964. img {
  1965. width: 18px;
  1966. height: 18px;
  1967. cursor: pointer;
  1968. }
  1969. .add {
  1970. margin-left: 20px !important;
  1971. font-size: 20px !important;
  1972. color: rgba(0, 0, 0, 1) !important;
  1973. }
  1974. }
  1975. .content {
  1976. padding: 0 30px;
  1977. height: calc(100% - 71px);
  1978. margin: 10px 0 0 0;
  1979. .form {
  1980. height: 98%;
  1981. overflow: auto;
  1982. .startImport {
  1983. .el-button {
  1984. width: 500px;
  1985. height: 45px;
  1986. }
  1987. .downLoad {
  1988. color: rgba(0, 97, 255, 1);
  1989. font-size: 14px;
  1990. margin-left: 15px;
  1991. cursor: pointer;
  1992. }
  1993. }
  1994. .tableTitle {
  1995. font-size: 14px;
  1996. margin-top: 10px;
  1997. }
  1998. .footer {
  1999. width: 99%;
  2000. height: 360px;
  2001. margin: 10px auto 30px;
  2002. .el-table--fit {
  2003. height: 100%;
  2004. :deep(.el-table__header-wrapper) {
  2005. background-color: #000;
  2006. font-size: 14px;
  2007. tr {
  2008. color: #000;
  2009. }
  2010. }
  2011. :deep(.el-table__row) {
  2012. height: 45px;
  2013. font-size: 14px;
  2014. color: #000;
  2015. &:hover {
  2016. td {
  2017. background-color: rgba(223, 236, 254, 1);
  2018. }
  2019. }
  2020. }
  2021. :deep(.el-table__row):nth-child(2n) {
  2022. .el-table-fixed-column--right {
  2023. background-color: rgba(240, 243, 247, 1);
  2024. }
  2025. }
  2026. :deep(.el-table__row td) {
  2027. padding: 0;
  2028. border: 0;
  2029. }
  2030. .el-button--primary {
  2031. margin-left: 5px;
  2032. }
  2033. :deep(.el-table__body .even) {
  2034. background-color: #fff;
  2035. }
  2036. :deep(.el-table__body .odd) {
  2037. background-color: rgba(240, 243, 247, 1);
  2038. }
  2039. :deep(.edit) {
  2040. display: flex;
  2041. align-items: center;
  2042. justify-content: center;
  2043. color: rgba(111, 182, 184, 1);
  2044. }
  2045. :deep(.look) {
  2046. padding: 0 10px;
  2047. cursor: pointer;
  2048. color: rgba(30, 125, 251, 1);
  2049. }
  2050. .del {
  2051. padding: 0 10px;
  2052. color: rgba(212, 48, 48, 1);
  2053. cursor: pointer;
  2054. }
  2055. // :deep(.look):hover {
  2056. // color: red;
  2057. // }
  2058. // :deep(.del):hover {
  2059. // color: red;
  2060. // }
  2061. }
  2062. .pageSize {
  2063. display: flex;
  2064. align-items: center;
  2065. justify-content: space-between;
  2066. margin: 20px 30px 0;
  2067. span {
  2068. color: #000;
  2069. }
  2070. .el-pagination {
  2071. // width: 1600px;
  2072. :deep(.el-pagination__total) {
  2073. color: #000;
  2074. }
  2075. :deep(.el-pagination__goto) {
  2076. color: #000;
  2077. }
  2078. :deep(.el-pagination__classifier) {
  2079. color: #000;
  2080. }
  2081. :deep(.el-input__wrapper) {
  2082. border: 1px solid rgba(0, 0, 0, 1);
  2083. border-radius: 5px;
  2084. box-shadow: none;
  2085. }
  2086. :deep(.el-pager li) {
  2087. margin: 0 5px;
  2088. border: 1px solid rgba(0, 0, 0, 1);
  2089. border-radius: 5px;
  2090. background-color: transparent;
  2091. }
  2092. :deep(.el-pager li.is-active) {
  2093. // background-color: rgba(0, 97, 255, 0.8);
  2094. border: 1px solid rgba(0, 97, 255, 1);
  2095. color: rgba(0, 97, 255, 1);
  2096. }
  2097. :deep(.btn-prev) {
  2098. margin-right: 5px;
  2099. border: 1px solid rgba(0, 0, 0, 1);
  2100. border-radius: 5px;
  2101. background-color: transparent;
  2102. }
  2103. :deep(.btn-next) {
  2104. margin-left: 5px;
  2105. border: 1px solid rgba(0, 0, 0, 1);
  2106. border-radius: 5px;
  2107. background-color: transparent;
  2108. }
  2109. }
  2110. }
  2111. }
  2112. }
  2113. // 整个滚动条
  2114. .form::-webkit-scrollbar-track {
  2115. background-color: #daeeff;
  2116. }
  2117. // 滚动条的滚动区域(轨道)
  2118. .form::-webkit-scrollbar {
  2119. background-color: #0888f8;
  2120. height: 3px;
  2121. width: 4px;
  2122. }
  2123. // 滚动条的可拖拽部分(滑块)
  2124. // .form::-webkit-scrollbar-thumb {
  2125. // background: #57b2ff;
  2126. // border-radius: 4px;
  2127. // height: 3px;
  2128. // width: 4px;
  2129. // }
  2130. }
  2131. }
  2132. .bgImg {
  2133. position: absolute;
  2134. left: 0;
  2135. top: 0;
  2136. z-index: 99999999;
  2137. width: 100%;
  2138. height: 100%;
  2139. background-color: rgba(255, 255, 255, 0.8);
  2140. // border-radius: 50px;
  2141. :deep(.el-carousel__container) {
  2142. width: 100%;
  2143. height: calc(100vh);
  2144. .el-carousel__item {
  2145. display: flex;
  2146. justify-content: center;
  2147. img {
  2148. height: 100%;
  2149. }
  2150. }
  2151. }
  2152. }
  2153. // 修改部门
  2154. :deep(.amendBMDialog) {
  2155. // height: 600px;
  2156. overflow: hidden;
  2157. border-radius: 11px;
  2158. .el-dialog__header {
  2159. border-radius: 11px 11px 0 0;
  2160. background: rgba(245, 249, 255, 1);
  2161. font-weight: 600;
  2162. height: 60px;
  2163. padding: 0 20px;
  2164. line-height: 60px;
  2165. margin: 0;
  2166. border-bottom: 1px solid rgba(230, 230, 230, 1);
  2167. .el-dialog__headerbtn {
  2168. outline: none;
  2169. }
  2170. }
  2171. .el-dialog__body {
  2172. padding: 0px 20px 20px 20px;
  2173. // height: 200px;
  2174. // display: flex;
  2175. // flex-direction: column-reverse;
  2176. .el-form-item {
  2177. margin: 40px 0;
  2178. }
  2179. .option {
  2180. display: flex;
  2181. flex-direction: row-reverse;
  2182. align-items: center;
  2183. margin: 10px 0;
  2184. .queding {
  2185. margin-left: 20px;
  2186. }
  2187. }
  2188. }
  2189. }
  2190. // 移动成员
  2191. :deep(.moveMemberDialog) {
  2192. // height: 600px;
  2193. overflow: hidden;
  2194. border-radius: 11px;
  2195. .el-dialog__header {
  2196. border-radius: 11px 11px 0 0;
  2197. background: rgba(245, 249, 255, 1);
  2198. font-weight: 600;
  2199. height: 60px;
  2200. padding: 0 20px;
  2201. line-height: 60px;
  2202. margin: 0;
  2203. border-bottom: 1px solid rgba(230, 230, 230, 1);
  2204. .el-dialog__headerbtn {
  2205. outline: none;
  2206. }
  2207. }
  2208. .el-dialog__body {
  2209. padding: 0px 20px 20px 20px;
  2210. height: 550px;
  2211. // display: flex;
  2212. // flex-direction: column-reverse;
  2213. .move {
  2214. display: flex;
  2215. .moveLeft {
  2216. width: 280px;
  2217. height: 96%;
  2218. margin-right: 20px;
  2219. border-radius: 8px;
  2220. // box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  2221. .el-tree {
  2222. height: 430px;
  2223. // border: 1px solid red;
  2224. overflow: auto;
  2225. }
  2226. .el-tree-node__content {
  2227. .custom-tree-node {
  2228. flex: 1;
  2229. display: flex;
  2230. align-items: center;
  2231. justify-content: space-between;
  2232. font-size: 14px;
  2233. padding-right: 8px;
  2234. .title {
  2235. display: flex;
  2236. align-items: center;
  2237. }
  2238. img {
  2239. width: 1.2em;
  2240. height: 1.2em;
  2241. margin: 0 5px 0 0;
  2242. }
  2243. }
  2244. }
  2245. }
  2246. .moveRight {
  2247. margin: 20px 0 0 0;
  2248. flex: 1;
  2249. .sel {
  2250. margin-bottom: 10px;
  2251. }
  2252. ul {
  2253. // width: 316px;
  2254. height: 95%;
  2255. list-style: none;
  2256. padding: 0;
  2257. margin: 0;
  2258. border-left: 1px solid rgba(230, 230, 230, 1);
  2259. box-sizing: border-box;
  2260. overflow: auto;
  2261. li {
  2262. display: flex;
  2263. justify-content: space-between;
  2264. padding-right: 17px;
  2265. align-items: center;
  2266. margin-top: 5px;
  2267. .el-icon-close {
  2268. cursor: pointer;
  2269. width: 10px;
  2270. height: 10px;
  2271. }
  2272. }
  2273. }
  2274. }
  2275. }
  2276. .options {
  2277. margin: 15px 0;
  2278. display: flex;
  2279. flex-direction: row-reverse;
  2280. .queding {
  2281. margin-left: 20px;
  2282. }
  2283. }
  2284. .option {
  2285. display: flex;
  2286. flex-direction: row-reverse;
  2287. align-items: center;
  2288. margin: 10px 0;
  2289. .queding {
  2290. margin-left: 20px;
  2291. }
  2292. }
  2293. }
  2294. }
  2295. // 注销账号
  2296. :deep(.closeAccount) {
  2297. // height: 600px;
  2298. overflow: hidden;
  2299. border-radius: 11px;
  2300. .el-dialog__header {
  2301. border-radius: 11px 11px 0 0;
  2302. background: rgba(245, 249, 255, 1);
  2303. font-weight: 600;
  2304. height: 60px;
  2305. padding: 0 20px;
  2306. line-height: 60px;
  2307. margin: 0;
  2308. border-bottom: 1px solid rgba(230, 230, 230, 1);
  2309. .el-dialog__headerbtn {
  2310. outline: none;
  2311. }
  2312. }
  2313. .el-dialog__body {
  2314. padding: 0px 20px 20px 20px;
  2315. // height: 200px;
  2316. // display: flex;
  2317. // flex-direction: column-reverse;
  2318. .content {
  2319. height: 80px;
  2320. font-size: 16px;
  2321. padding: 20px 30px;
  2322. display: flex;
  2323. img {
  2324. width: 25px;
  2325. height: 25px;
  2326. margin: 0 8px 0 0;
  2327. }
  2328. }
  2329. .option {
  2330. display: flex;
  2331. flex-direction: row-reverse;
  2332. align-items: center;
  2333. margin: 10px 0;
  2334. .queding {
  2335. margin-left: 20px;
  2336. }
  2337. }
  2338. }
  2339. }
  2340. .pageSize {
  2341. display: flex;
  2342. align-items: center;
  2343. justify-content: space-between;
  2344. margin: 0 30px;
  2345. span {
  2346. color: #000;
  2347. }
  2348. .el-pagination {
  2349. // width: 1600px;
  2350. :deep(.el-pagination__total) {
  2351. color: #000;
  2352. }
  2353. :deep(.el-pagination__goto) {
  2354. color: #000;
  2355. }
  2356. :deep(.el-pagination__classifier) {
  2357. color: #000;
  2358. }
  2359. :deep(.el-input__wrapper) {
  2360. border: 1px solid rgba(0, 0, 0, 1);
  2361. border-radius: 5px;
  2362. box-shadow: none;
  2363. }
  2364. :deep(.el-pager li) {
  2365. margin: 0 5px;
  2366. border: 1px solid rgba(0, 0, 0, 1);
  2367. border-radius: 5px;
  2368. background-color: transparent;
  2369. }
  2370. :deep(.el-pager li.is-active) {
  2371. // background-color: rgba(0, 97, 255, 0.8);
  2372. border: 1px solid rgba(0, 97, 255, 1);
  2373. color: rgba(0, 97, 255, 1);
  2374. }
  2375. :deep(.btn-prev) {
  2376. margin-right: 5px;
  2377. border: 1px solid rgba(0, 0, 0, 1);
  2378. border-radius: 5px;
  2379. background-color: transparent;
  2380. }
  2381. :deep(.btn-next) {
  2382. margin-left: 5px;
  2383. border: 1px solid rgba(0, 0, 0, 1);
  2384. border-radius: 5px;
  2385. background-color: transparent;
  2386. }
  2387. }
  2388. }
  2389. }
  2390. .el-input {
  2391. width: 192px;
  2392. }
  2393. </style>