index.vue 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634
  1. <template>
  2. <div id="examArrangement">
  3. <table-list
  4. :tableSets="tableSet"
  5. :tableData="tableData"
  6. :navText="navText"
  7. @addClick="addClick"
  8. :loading="loading"
  9. @editInfo="editInfo"
  10. >
  11. <template slot="btn" slot-scope="props">
  12. <el-button
  13. type="text"
  14. @click="addClick(props.scope.row, 0)"
  15. :disabled="props.scope.row.status === 1"
  16. >修改计划</el-button
  17. >
  18. <el-button
  19. type="text"
  20. @click="setExams(props.scope.row, 1)"
  21. :disabled="props.scope.row.status === 1"
  22. >考点设置</el-button
  23. >
  24. <el-button
  25. type="text"
  26. @click="setExams(props.scope.row, 2)"
  27. :disabled="props.scope.row.status === 1"
  28. >考培设置</el-button
  29. >
  30. <el-button
  31. type="text"
  32. @click="editGoods(props.scope.row)"
  33. :disabled="props.scope.row.status === 1"
  34. >适用商品</el-button
  35. >
  36. <el-button type="text" @click="watchs(props.scope.row)">预览</el-button>
  37. <el-button
  38. type="text"
  39. @click="del(props.scope.row, 1)"
  40. v-if="props.scope.row.status === 0"
  41. >启用</el-button
  42. >
  43. <el-button
  44. type="text"
  45. @click="del(props.scope.row, 2)"
  46. v-if="props.scope.row.status === 1"
  47. >关闭</el-button
  48. >
  49. <el-button type="text" @click="del(props.scope.row, 3)">删除</el-button>
  50. </template>
  51. </table-list>
  52. <pagination
  53. :total="total"
  54. :pageSize="pageSize"
  55. :currentPage="currentPage"
  56. @handleSizeChange="handleSizeChange"
  57. @handleCurrentChange="handleCurrentChange"
  58. />
  59. <el-dialog
  60. @closed="loadingClose"
  61. :visible.sync="dialogVisible"
  62. width="610px"
  63. :show-close="false"
  64. :close-on-click-modal="false"
  65. >
  66. <div slot="title" class="hearders">
  67. <div class="leftTitle">
  68. {{ statusPop === 1 ? "添加" : statusPop === 0 ? "修改" : "详情" }}
  69. </div>
  70. <div class="rightBoxs">
  71. <img src="@/assets/images/Close@2x.png" alt="" @click="close" />
  72. </div>
  73. </div>
  74. <div>
  75. <el-form
  76. label-position="right"
  77. label-width="150px"
  78. :model="listData"
  79. :rules="rules"
  80. ref="listData"
  81. >
  82. <el-form-item label="考试封面" prop="applyUrl">
  83. <div class="dis_fs">
  84. <img
  85. class="imgBoxs"
  86. :src="$methodsTools.splitImgHost(listData.applyUrl)"
  87. alt="加载失败"
  88. />
  89. <label class="btns"
  90. >修改封面
  91. <input
  92. ref="file"
  93. type="file"
  94. style="display: none"
  95. @change="editImg"
  96. />
  97. </label>
  98. </div>
  99. <div
  100. style="
  101. font-size: 12px;
  102. color: #999;
  103. line-height: 20px;
  104. margin-top: 10px;
  105. "
  106. >
  107. 注:请上传小于300kb,尺寸为1920*930的像素图片,支持gif、jpg、jpeg、png等类型
  108. </div>
  109. </el-form-item>
  110. <el-form-item label="考试标题" prop="applyName">
  111. <el-input
  112. :disabled="statusPop === 2"
  113. v-model="listData.applyName"
  114. ></el-input>
  115. </el-form-item>
  116. <el-form-item label="考试简介" prop="applyIntroduce">
  117. <el-input
  118. type="textarea"
  119. :rows="4"
  120. :disabled="statusPop === 2"
  121. v-model="listData.applyIntroduce"
  122. ></el-input>
  123. </el-form-item>
  124. <el-form-item label="可报学员" prop="applyStatus">
  125. <el-checkbox-group
  126. v-model="listData.applyStatus"
  127. style="width: 60%; display: inline-block"
  128. >
  129. <el-checkbox :label="1">非补考学员</el-checkbox>
  130. <el-checkbox :label="2">补考学员</el-checkbox>
  131. </el-checkbox-group>
  132. <span style="font-size: 12px; color: #999">注:可多选</span>
  133. </el-form-item>
  134. <el-form-item label="报名开放时间" required>
  135. <el-col :span="11">
  136. <el-form-item prop="applyStartTime">
  137. <el-date-picker
  138. type="datetime"
  139. placeholder="开始日期"
  140. @change="changeEndTime(1)"
  141. v-model="listData.applyStartTime"
  142. style="width: 100%"
  143. value-format="timestamp"
  144. ></el-date-picker>
  145. </el-form-item>
  146. </el-col>
  147. <el-col class="line" style="text-align: center" :span="2">-</el-col>
  148. <el-col :span="11">
  149. <el-form-item prop="applyEndTime">
  150. <el-date-picker
  151. type="datetime"
  152. placeholder="结束日期"
  153. @change="changeEndTime(2)"
  154. v-model="listData.applyEndTime"
  155. style="width: 100%"
  156. value-format="timestamp"
  157. ></el-date-picker>
  158. </el-form-item>
  159. </el-col>
  160. </el-form-item>
  161. </el-form>
  162. </div>
  163. <span slot="footer" class="dialog-footer">
  164. <el-button @click="close">取 消</el-button>
  165. <el-button
  166. type="primary"
  167. :loading="disabledBtn"
  168. v-if="statusPop !== 2"
  169. @click="submit('listData')"
  170. >确 定</el-button
  171. >
  172. </span>
  173. </el-dialog>
  174. <el-dialog
  175. @closed="loadingClose"
  176. :visible.sync="dialogExamBoxs"
  177. width="620px"
  178. :show-close="false"
  179. :close-on-click-modal="false"
  180. >
  181. <div slot="title" class="hearders">
  182. <div class="leftTitle">
  183. {{
  184. intStatus === 1
  185. ? "设置考试地点"
  186. : intStatus === 2
  187. ? "设置考培地点"
  188. : "未知"
  189. }}
  190. </div>
  191. <div class="rightBoxs">
  192. <img
  193. src="@/assets/images/Close@2x.png"
  194. alt=""
  195. @click="dialogExamBoxs = false"
  196. />
  197. </div>
  198. </div>
  199. <div>
  200. <el-button type="text" @click="openExamPlace">{{
  201. intStatus === 1
  202. ? "添加考试地点"
  203. : intStatus === 2
  204. ? "添加考前培训地点"
  205. : "未知"
  206. }}</el-button>
  207. <div
  208. v-for="(item, index) in examPlaces"
  209. :key="index"
  210. style="margin-bottom: 10px"
  211. >
  212. <div class="dis_fs">
  213. <div class="bors">
  214. {{ item.siteAddress }}
  215. <i
  216. class="el-icon-error"
  217. style="
  218. color: #f56c6c;
  219. font-size: 14px;
  220. margin: 0px 6px;
  221. cursor: pointer;
  222. "
  223. @click="examPlaces.splice(index, 1)"
  224. ></i>
  225. </div>
  226. <el-button
  227. style="margin-left: 10px"
  228. type="text"
  229. size="mini"
  230. @click="
  231. item.examApplySiteTime.push({
  232. examTime: '',
  233. examApplySiteTimeTwo: [{}],
  234. })
  235. "
  236. >{{
  237. intStatus === 1
  238. ? "添加考试时间"
  239. : intStatus === 2
  240. ? "添加考培时间"
  241. : "未知"
  242. }}</el-button
  243. >
  244. </div>
  245. <div
  246. v-for="(items, indexs) in item.examApplySiteTime"
  247. :key="indexs"
  248. class="dis_fs"
  249. >
  250. <div class="mar_bgc">
  251. <div class="dis_fs jbtw">
  252. <el-date-picker
  253. size="mini"
  254. v-model="items.examTime"
  255. type="date"
  256. placeholder="选择日期"
  257. format="yyyy 年 MM 月 dd 日"
  258. value-format="timestamp"
  259. >
  260. </el-date-picker>
  261. <el-button
  262. size="mini"
  263. type="text"
  264. @click="items.examApplySiteTimeTwo.push({})"
  265. >添加时间点</el-button
  266. >
  267. </div>
  268. <ul>
  269. <li
  270. class="dis_fs"
  271. style="margin-bottom: 6px"
  272. v-for="(its, ids) in items.examApplySiteTimeTwo"
  273. :key="ids"
  274. >
  275. <div class="dis_fs">
  276. <el-time-picker
  277. style="width: 130px"
  278. size="mini"
  279. v-model="its.startTime"
  280. format="HH:mm"
  281. value-format="HH:mm"
  282. placeholder="开始时间"
  283. @change="
  284. its.endTime && its.startTime > its.endTime
  285. ? (its.startTime = '')
  286. : ''
  287. "
  288. >
  289. </el-time-picker
  290. ><span style="margin: 0px 10px">至</span>
  291. <el-time-picker
  292. style="width: 130px"
  293. size="mini"
  294. v-model="its.endTime"
  295. format="HH:mm"
  296. value-format="HH:mm"
  297. placeholder="结束时间"
  298. @change="
  299. its.startTime && its.endTime < its.startTime
  300. ? (its.endTime = '')
  301. : ''
  302. "
  303. >
  304. </el-time-picker>
  305. </div>
  306. <div style="margin-left: 14px">
  307. 人数上限:<el-input-number
  308. style="width: 60px"
  309. :precision="0"
  310. size="mini"
  311. :min="1"
  312. :max="item.people"
  313. v-model="its.num"
  314. :controls="false"
  315. ></el-input-number
  316. ><el-button
  317. style="margin-left: 6px"
  318. type="text"
  319. size="mini"
  320. @click="items.examApplySiteTimeTwo.splice(ids, 1)"
  321. >删除</el-button
  322. >
  323. </div>
  324. </li>
  325. </ul>
  326. </div>
  327. <div style="width: 10%; text-align: center; align-self: start">
  328. <el-button
  329. type="text"
  330. @click="item.examApplySiteTime.splice(indexs, 1)"
  331. >删除</el-button
  332. >
  333. </div>
  334. </div>
  335. </div>
  336. </div>
  337. <span slot="footer" class="dialog-footer">
  338. <el-button @click="dialogExamBoxs = false">取 消</el-button>
  339. <el-button
  340. type="primary"
  341. v-if="statusPop !== 2"
  342. :loading="disabledBtn"
  343. @click="submitPla('listData')"
  344. >确 定</el-button
  345. >
  346. </span>
  347. </el-dialog>
  348. <el-dialog
  349. @closed="loadingClose"
  350. :visible.sync="dialogExamPlace"
  351. width="860px"
  352. :show-close="false"
  353. :close-on-click-modal="false"
  354. >
  355. <div slot="title" class="hearders">
  356. <div class="leftTitle">考试地点列表</div>
  357. <div class="rightBoxs">
  358. <img
  359. src="@/assets/images/Close@2x.png"
  360. alt=""
  361. @click="dialogExamPlace = false"
  362. />
  363. </div>
  364. </div>
  365. <div>
  366. <el-table
  367. ref="multipleTable2"
  368. :data="boxtableData2"
  369. border
  370. @select-all="selectAll2"
  371. @select="select2"
  372. :row-key="getRowKeys2"
  373. :header-cell-style="{
  374. 'background-color': '#eee',
  375. padding: '8px',
  376. color: '#333',
  377. }"
  378. >
  379. <el-table-column
  380. align="center"
  381. type="selection"
  382. width="55"
  383. header-align="center"
  384. :selectable="checkboxT2"
  385. :reserve-selection="true"
  386. >
  387. </el-table-column>
  388. <template v-for="(item, index) in tableSetTSBBOX2">
  389. <el-table-column
  390. v-if="item.scope !== 'inputs'"
  391. :width="item.width"
  392. :key="index"
  393. :label="item.label"
  394. align="center"
  395. :show-overflow-tooltip="true"
  396. header-align="center"
  397. >
  398. <template slot-scope="scope">
  399. <span v-if="item.scope === 'status'">
  400. {{ scope.row[item.prop] === 1 ? "启用" : "关闭" }}
  401. </span>
  402. <span v-else>{{ scope.row[item.prop] }}</span></template
  403. >
  404. </el-table-column></template
  405. >
  406. </el-table>
  407. <pagination
  408. :total="total2"
  409. :pageSize="pageSize2"
  410. :currentPage="currentPage2"
  411. @handleSizeChange="handleSizeChange2"
  412. @handleCurrentChange="handleCurrentChange2"
  413. />
  414. </div>
  415. <span slot="footer" class="dialog-footer">
  416. <el-button @click="dialogExamPlace = false">取 消</el-button>
  417. <el-button
  418. type="primary"
  419. v-if="statusPop !== 2"
  420. @click="submitPlaces"
  421. :loading="disabledBtn"
  422. :disabled="!activeLists.length"
  423. >确 定</el-button
  424. >
  425. </span>
  426. </el-dialog>
  427. <el-dialog
  428. :visible.sync="dialogVisiblenew"
  429. width="560px"
  430. :show-close="false"
  431. :close-on-click-modal="false"
  432. >
  433. <div slot="title" class="hearders">
  434. <div class="leftTitle">适用商品</div>
  435. <div class="rightBoxs">
  436. <img
  437. src="@/assets/images/Close@2x.png"
  438. alt=""
  439. @click="dialogVisiblenew = false"
  440. />
  441. </div>
  442. </div>
  443. <div>
  444. <el-form
  445. label-position="right"
  446. label-width="150px"
  447. :model="listDataGoods"
  448. :rules="rulesnew"
  449. ref="listDataGoods"
  450. >
  451. <el-form-item label="商品类型" prop="goodsType">
  452. <el-select
  453. v-model="listDataGoods.goodsType"
  454. placeholder="请选择"
  455. disabled
  456. >
  457. <el-option
  458. v-for="item in options"
  459. :key="item.value"
  460. :label="item.label"
  461. :value="item.value"
  462. >
  463. </el-option>
  464. </el-select>
  465. </el-form-item>
  466. <el-form-item label="业务层级" prop="educationTypeId">
  467. <el-select
  468. v-model="listDataGoods.educationTypeId"
  469. placeholder="选择教育类型"
  470. @change="listDataGoods.businessId = ''"
  471. :disabled="statusPop === 0"
  472. >
  473. <el-option
  474. v-for="item in educationType"
  475. :key="item.id"
  476. :label="item.educationName"
  477. :value="item.id"
  478. >
  479. </el-option>
  480. </el-select>
  481. </el-form-item>
  482. <el-form-item
  483. label=""
  484. prop="businessId"
  485. v-if="listDataGoods.educationTypeId"
  486. >
  487. <el-select
  488. v-model="listDataGoods.businessId"
  489. :disabled="statusPop === 0"
  490. placeholder="选择业务层次"
  491. >
  492. <el-option
  493. v-for="item in businessList"
  494. :key="item.id"
  495. :label="item.projectName + '-' + item.businessName"
  496. :value="item.id"
  497. >
  498. </el-option>
  499. </el-select>
  500. </el-form-item>
  501. <el-form-item label="适用商品" prop="goodsId">
  502. <span v-if="!listDataGoods.businessId" style="color: #f56c6c"
  503. >请先选择业务层级</span
  504. >
  505. <el-checkbox-group
  506. style="overflow: auto; max-height: 500px"
  507. v-model="listDataGoods.goodsId"
  508. v-else-if="listDataGoods.businessId && goodsList.length"
  509. >
  510. <el-checkbox
  511. v-for="(item, index) in goodsList"
  512. :key="index"
  513. :label="item.goodsId"
  514. :disabled="
  515. item.goodsStatus === 0 &&
  516. bfListData.goodsId.indexOf(item.goodsId) === -1
  517. "
  518. >{{ item.code + "-" + item.goodsName + "-" }}
  519. <span
  520. :style="
  521. item.goodsStatus === 0 &&
  522. bfListData.goodsId.indexOf(item.goodsId) === -1
  523. ? ''
  524. : 'color:#F56C6C'
  525. "
  526. >¥{{ item.standPrice }}</span
  527. ></el-checkbox
  528. >
  529. </el-checkbox-group>
  530. <span style="color: #f56c6c" v-else>该业务层级下,无适用商品</span>
  531. </el-form-item>
  532. </el-form>
  533. </div>
  534. <span slot="footer" class="dialog-footer">
  535. <el-button @click="dialogVisiblenew = false">取 消</el-button>
  536. <el-button
  537. type="primary"
  538. v-if="statusPop !== 2"
  539. @click="submitnew('listDataGoods')"
  540. >确 定</el-button
  541. >
  542. </span>
  543. </el-dialog>
  544. <el-dialog
  545. :visible.sync="dialoginfoWatch"
  546. width="900px"
  547. :show-close="false"
  548. :close-on-click-modal="false"
  549. >
  550. <div slot="title" class="hearders">
  551. <div class="leftTitle">【{{ infoData.applyName }}】预览</div>
  552. <div class="rightBoxs">
  553. <img
  554. src="@/assets/images/Close@2x.png"
  555. alt=""
  556. @click="dialoginfoWatch = false"
  557. />
  558. </div>
  559. </div>
  560. <div>
  561. <el-form :model="infoData" class="demo-form-inline" label-width="130px">
  562. <el-row :gutter="20">
  563. <el-col :span="12" style="border-right: 1px solid #999">
  564. <el-button type="info" style="margin-bottom: 20px" size="mini"
  565. >考试计划信息</el-button
  566. >
  567. <el-form-item label="考试封面:">
  568. <div class="imgBoxWatch">
  569. <img
  570. :src="$methodsTools.splitImgHost(infoData.applyUrl)"
  571. alt="加载失败"
  572. />
  573. </div>
  574. </el-form-item>
  575. <el-form-item label="考试标题:">
  576. <span>{{ infoData.applyName }}</span>
  577. </el-form-item>
  578. <el-form-item label="考试简介:">
  579. <span>{{ infoData.applyIntroduce }}</span>
  580. </el-form-item>
  581. <el-form-item label="报考学员:">
  582. <span v-for="(item, index) in infoData.applyStatus" :key="index"
  583. >{{ item === 1 ? "非补考学员" : item === 2 ? "补考学员" : ""
  584. }}{{
  585. index === infoData.applyStatus.length - 1 ? "" : "、"
  586. }}</span
  587. >
  588. </el-form-item>
  589. <el-form-item label="报名开放时间:">
  590. <span>{{
  591. $methodsTools.onlyForma(infoData.applyStartTime)
  592. }}</span>
  593. <span>{{
  594. $methodsTools.onlyForma(infoData.applyEndTime)
  595. }}</span>
  596. </el-form-item>
  597. <el-form-item label="考试地点和时间:">
  598. <div
  599. v-for="(item, index) in infoData.examApplySite"
  600. :key="index"
  601. >
  602. <span>{{ item.siteAddress }}({{ item.people }})</span>
  603. <div
  604. v-for="(items, indexs) in item.examApplySiteTime"
  605. :key="indexs"
  606. style="
  607. margin-bottom: 10px;
  608. background-color: #eee;
  609. padding: 0px 10px;
  610. "
  611. >
  612. <div
  613. v-for="(itemsxs, indexsx) in items.siteTime"
  614. :key="indexsx"
  615. >
  616. {{ $methodsTools.onlyForma(items.examTime, false) }}
  617. {{ itemsxs.startTime }}-{{
  618. itemsxs.endTime
  619. }}
  620. (人数上限:{{ itemsxs.num }})
  621. </div>
  622. </div>
  623. </div>
  624. </el-form-item>
  625. <el-form-item label="考培地点和时间:">
  626. <div
  627. v-for="(item, index) in infoData.examApplySiteTrain"
  628. :key="index"
  629. >
  630. <span>{{ item.siteAddress }}({{ item.people }})</span>
  631. <div
  632. v-for="(items, indexs) in item.examApplySiteTime"
  633. :key="indexs"
  634. style="
  635. margin-bottom: 10px;
  636. background-color: #eee;
  637. padding: 0px 10px;
  638. "
  639. >
  640. <div
  641. v-for="(itemsxs, indexsx) in items.siteTime"
  642. :key="indexsx"
  643. >
  644. {{ $methodsTools.onlyForma(items.examTime, false) }}
  645. {{ itemsxs.startTime }}-{{
  646. itemsxs.endTime
  647. }}
  648. (人数上限:{{ itemsxs.num }})
  649. </div>
  650. </div>
  651. </div>
  652. </el-form-item>
  653. </el-col>
  654. <el-col :span="12">
  655. <el-button type="info" style="margin-bottom: 20px" size="mini"
  656. >适用商品</el-button
  657. >
  658. <el-form-item label="商品类型:">
  659. <span v-for="(item, index) in options" :key="index">{{
  660. item.value === infoData.goodsType ? item.label : ""
  661. }}</span>
  662. </el-form-item>
  663. <el-form-item label="业务层级:">
  664. <span
  665. >{{ infoData.educationName }}-{{ infoData.projectName }}-{{
  666. infoData.businessName
  667. }}</span
  668. >
  669. </el-form-item>
  670. <el-form-item label="适用商品:">
  671. <div
  672. v-for="(item, index) in infoData.examNumberGoods"
  673. :key="index"
  674. >
  675. {{ index + 1 }}.{{ item.code }}-{{ item.goodsName }}-<span
  676. style="color: #f56c6c"
  677. >¥{{ item.standPrice }}</span
  678. >
  679. </div>
  680. </el-form-item>
  681. </el-col>
  682. </el-row>
  683. </el-form>
  684. </div>
  685. <span slot="footer" class="dialog-footer">
  686. <el-button @click="dialoginfoWatch = false">取 消</el-button>
  687. </span>
  688. </el-dialog>
  689. </div>
  690. </template>
  691. <script>
  692. import { mapGetters } from "vuex";
  693. import searchBox from "@/components/searchBox";
  694. import tableList from "@/components/tableList";
  695. import pagination from "@/components/pagination";
  696. export default {
  697. name: "ExamArrangement",
  698. components: { searchBox, tableList, pagination },
  699. data() {
  700. return {
  701. disabledBtn: false,
  702. total2: 0,
  703. pageSize2: 10,
  704. currentPage2: 1,
  705. loading: false, //当前表单加载是否加载动画
  706. navText: {
  707. title: "考试安排",
  708. index: 0,
  709. ch: "条",
  710. num: true,
  711. changeWidth: "300px",
  712. choice: true,
  713. border: true,
  714. addHide: false,
  715. backFatherBtn: {
  716. status: false,
  717. title: "未定义",
  718. },
  719. },
  720. // 表单
  721. tableSet: [
  722. {
  723. label: "考试编码",
  724. prop: "code",
  725. hidden: true,
  726. },
  727. {
  728. label: "考试标题",
  729. prop: "applyName",
  730. hidden: true,
  731. },
  732. {
  733. label: "可报学员",
  734. prop: "applyStatus",
  735. hidden: true,
  736. scope: "morePeople",
  737. },
  738. {
  739. label: "报名开放时间",
  740. prop1: "applyStartTime",
  741. prop2: "applyEndTime",
  742. hidden: true,
  743. scope: "TimeLists",
  744. Diszing: false,
  745. },
  746. {
  747. label: "使用状态",
  748. prop: "status",
  749. hidden: true,
  750. width: "120px",
  751. scope: "isOptions",
  752. options: [
  753. {
  754. label: "进行中",
  755. value: 1,
  756. },
  757. {
  758. label: "未启用",
  759. value: 0,
  760. },
  761. {
  762. label: "删除",
  763. value: -1,
  764. },
  765. {
  766. label: "已过期",
  767. value: 2,
  768. },
  769. ],
  770. },
  771. {
  772. label: "预约/取消(人次)",
  773. prop: "people",
  774. prop1: "cancelPeople",
  775. hidden: true,
  776. scope: "jumpPeolpe",
  777. type: 1,
  778. width: "140px",
  779. },
  780. ],
  781. tableData: [], //表单数据
  782. total: 0, //一共多少条
  783. pageSize: 10, //每页多少条数据
  784. currentPage: 1, //当前页码
  785. // 弹窗数据
  786. listData: {
  787. applyStatus: [],
  788. },
  789. statusPop: -1,
  790. dialogVisible: false,
  791. //表单验证
  792. rules: {
  793. applyUrl: [
  794. {
  795. required: true,
  796. message: "请上传考试封面",
  797. trigger: "change",
  798. },
  799. ],
  800. applyName: [
  801. { required: true, message: "请输入考试安排", trigger: "blur" },
  802. ],
  803. applyStatus: [
  804. {
  805. type: "array",
  806. required: true,
  807. message: "请至少选择一个可报学员",
  808. trigger: "change",
  809. },
  810. ],
  811. applyStartTime: [
  812. {
  813. type: "date",
  814. required: true,
  815. message: "请选择报名开始时间",
  816. trigger: "change",
  817. },
  818. ],
  819. applyEndTime: [
  820. {
  821. type: "date",
  822. required: true,
  823. message: "请选择报名结束时间",
  824. trigger: "change",
  825. },
  826. ],
  827. },
  828. dialogExamBoxs: false, //考点
  829. dialogExamPlace: false, //考试地点列表
  830. dialogVisiblenew: false,
  831. examPlaces: [],
  832. activeLists: [], //当前选中地点
  833. boxtableData2: [],
  834. newOpenId: "",
  835. intStatus: 0, //1考试地点2考培地点
  836. tableSetTSBBOX2: [
  837. {
  838. label: "考试地点编码",
  839. prop: "code",
  840. hidden: true,
  841. },
  842. {
  843. label: "考试地点",
  844. prop: "siteAddress",
  845. hidden: true,
  846. },
  847. {
  848. label: "同时间可容纳人数",
  849. prop: "people",
  850. hidden: true,
  851. },
  852. {
  853. label: "状态",
  854. prop: "status",
  855. hidden: true,
  856. scope: "status",
  857. },
  858. ],
  859. options: [
  860. {
  861. label: "视频",
  862. value: 1,
  863. },
  864. {
  865. label: "题库",
  866. value: 2,
  867. },
  868. {
  869. label: "补考",
  870. value: 3,
  871. },
  872. {
  873. label: "前培",
  874. value: 4,
  875. },
  876. ],
  877. //表单验证
  878. rulesnew: {
  879. goodsType: [
  880. { required: true, message: "请选择商品类型", trigger: "change" },
  881. ],
  882. educationTypeId: [
  883. { required: true, message: "请选择教育类型", trigger: "change" },
  884. ],
  885. businessId: [
  886. { required: true, message: "请选择业务层次", trigger: "change" },
  887. ],
  888. goodsId: [
  889. {
  890. type: "array",
  891. required: true,
  892. message: "请至少选择一个商品",
  893. trigger: "change",
  894. },
  895. ],
  896. },
  897. busList: [],
  898. businessList: [],
  899. goodsList: [],
  900. bfListData: {},
  901. listDataGoods: {},
  902. dialoginfoWatch: false,
  903. infoData: {
  904. applyStatus: [],
  905. },
  906. };
  907. },
  908. mounted() {
  909. this.getDict();
  910. this.search();
  911. this.getExamPlace();
  912. },
  913. activated() {
  914. this.getDict();
  915. this.search();
  916. this.getExamPlace();
  917. },
  918. watch: {
  919. "listDataGoods.educationTypeId"(value) {
  920. this.businessList = this.busList.filter((item) => {
  921. return item.educationId == value;
  922. });
  923. },
  924. "listDataGoods.businessId"(value) {
  925. if (value) {
  926. if (this.statusPop === 1) {
  927. this.listDataGoods.goodsId = [];
  928. }
  929. this.$api
  930. .inquirepayservelistGoods({ businessId: value, goodsType: 1 })
  931. .then((res) => {
  932. this.goodsList = res.rows;
  933. });
  934. }
  935. },
  936. },
  937. computed: { ...mapGetters(["educationType"]) },
  938. methods: {
  939. loadingClose() {
  940. this.disabledBtn = false;
  941. },
  942. //修改适用商品
  943. editGoods(row) {
  944. this.$api
  945. .inquirepayservegoodsInfo({ applyId: row.applyId })
  946. .then((res) => {
  947. this.$api
  948. .inquirepayservelistGoods({
  949. businessId: res.data.businessId,
  950. goodsType: 1,
  951. })
  952. .then((result) => {
  953. this.goodsList = result.rows;
  954. });
  955. if (res.data.goodsType && res.data.goodsId.length) {
  956. this.statusPop = 0;
  957. this.bfListData = JSON.parse(JSON.stringify(res.data));
  958. this.listDataGoods = JSON.parse(JSON.stringify(res.data));
  959. } else {
  960. this.statusPop = 1;
  961. this.bfListData = {
  962. goodsId: [],
  963. };
  964. this.listDataGoods = {
  965. applyId: row.applyId,
  966. goodsType: 1,
  967. businessId: "",
  968. goodsId: [],
  969. };
  970. }
  971. this.$nextTick(() => {
  972. this.$refs.listDataGoods.clearValidate();
  973. });
  974. this.dialogVisiblenew = true;
  975. });
  976. },
  977. //提交验证适用商品表单
  978. submitnew(formName) {
  979. this.$refs[formName].validate((valid) => {
  980. if (valid) {
  981. this.rulesTableSumbitnew();
  982. } else {
  983. return false;
  984. }
  985. });
  986. },
  987. //验证通过
  988. rulesTableSumbitnew() {
  989. var data = JSON.parse(JSON.stringify(this.listDataGoods));
  990. this.busList.map((item) => {
  991. if (item.id === data.businessId) {
  992. data.projectId = item.projectId;
  993. }
  994. });
  995. this.$api.systemapplyaddGoods(data).then((res) => {
  996. this.$message.success("适用商品设置成功");
  997. this.dialogVisiblenew = false;
  998. this.search();
  999. });
  1000. },
  1001. //获取初始基础参数
  1002. getDict() {
  1003. this.$api.inquirebusinessList({ status: 1 }).then((res) => {
  1004. this.busList = res.rows;
  1005. });
  1006. },
  1007. submitPla() {
  1008. var data = JSON.parse(JSON.stringify(this.examPlaces));
  1009. if (!data.length) {
  1010. if (this.intStatus === 1) {
  1011. this.$message.warning("请添加考试地点");
  1012. return;
  1013. }
  1014. if (this.intStatus === 2) {
  1015. this.$message.warning("请添加考培地点");
  1016. return;
  1017. }
  1018. }
  1019. for (let i = 0; i < data.length; i++) {
  1020. if (this.intStatus === 1) {
  1021. data[i].status = 1;
  1022. }
  1023. if (this.intStatus === 2) {
  1024. data[i].status = 2;
  1025. }
  1026. if (!data[i].examApplySiteTime.length) {
  1027. if (this.intStatus === 1) {
  1028. this.$message.warning("您还有考试日期没有设置考试时间点,请先设置");
  1029. return;
  1030. }
  1031. if (this.intStatus === 2) {
  1032. this.$message.warning("您还有考培日期没有设置考培时间点,请先设置");
  1033. return;
  1034. }
  1035. } else {
  1036. for (let j = 0; j < data[i].examApplySiteTime.length; j++) {
  1037. if (!data[i].examApplySiteTime[j].examTime) {
  1038. if (this.intStatus === 1) {
  1039. this.$message.warning("您还有考试日期没有设置,请先设置");
  1040. }
  1041. if (this.intStatus === 2) {
  1042. this.$message.warning("您还有考培日期没有设置,请先设置");
  1043. }
  1044. return;
  1045. } else {
  1046. data[i].examApplySiteTime[j].examTime =
  1047. this.$methodsTools.time10to13(
  1048. data[i].examApplySiteTime[j].examTime,
  1049. 1
  1050. );
  1051. }
  1052. if (!data[i].examApplySiteTime[j].examApplySiteTimeTwo.length) {
  1053. if (this.intStatus === 1) {
  1054. this.$message.warning("您还有考试时间点没有设置,请先设置");
  1055. }
  1056. if (this.intStatus === 2) {
  1057. this.$message.warning("您还有考培时间点没有设置,请先设置");
  1058. }
  1059. return;
  1060. } else {
  1061. for (
  1062. let k = 0;
  1063. k < data[i].examApplySiteTime[j].examApplySiteTimeTwo.length;
  1064. k++
  1065. ) {
  1066. if (
  1067. !data[i].examApplySiteTime[j].examApplySiteTimeTwo[k]
  1068. .startTime
  1069. ) {
  1070. this.$message.warning("您还有开始时间没有设置,请先设置");
  1071. return;
  1072. }
  1073. if (
  1074. !data[i].examApplySiteTime[j].examApplySiteTimeTwo[k].endTime
  1075. ) {
  1076. this.$message.warning("您还有结束时间没有设置,请先设置");
  1077. return;
  1078. }
  1079. if (!data[i].examApplySiteTime[j].examApplySiteTimeTwo[k].num) {
  1080. this.$message.warning("您还有人数上限没有设置,请先设置");
  1081. return;
  1082. }
  1083. }
  1084. const stsTime1 = data[i].examApplySiteTime[
  1085. j
  1086. ].examApplySiteTimeTwo.map(
  1087. (val) => val.startTime + "-" + val.endTime
  1088. );
  1089. const idsSet1 = new Set(stsTime1);
  1090. if (idsSet1.size == stsTime1.length) {
  1091. } else {
  1092. if (this.intStatus === 1) {
  1093. this.$message.warning(
  1094. "同一考试日期下的时间点,出现重复,请修改"
  1095. );
  1096. }
  1097. if (this.intStatus === 2) {
  1098. this.$message.warning(
  1099. "同一考培日期下的时间点,出现重复,请修改"
  1100. );
  1101. }
  1102. return;
  1103. }
  1104. }
  1105. }
  1106. const stsTime = data[i].examApplySiteTime.map((val) => val.examTime);
  1107. const idsSet = new Set(stsTime);
  1108. if (idsSet.size == stsTime.length) {
  1109. } else {
  1110. if (this.intStatus === 1) {
  1111. this.$message.warning(
  1112. "同一考试地点下的考试日期,出现重复,请修改"
  1113. );
  1114. }
  1115. if (this.intStatus === 2) {
  1116. this.$message.warning(
  1117. "同一考培地点下的考培日期,出现重复,请修改"
  1118. );
  1119. }
  1120. return;
  1121. }
  1122. }
  1123. }
  1124. this.disabledBtn = true;
  1125. this.$api
  1126. .systemapplyaddSite(data)
  1127. .then((res) => {
  1128. if (this.intStatus === 1) {
  1129. this.$message.success("设置考试地点时间成功");
  1130. }
  1131. if (this.intStatus === 2) {
  1132. this.$message.success("设置考培地点时间成功");
  1133. }
  1134. this.dialogExamBoxs = false;
  1135. this.search();
  1136. })
  1137. .catch(() => {
  1138. this.disabledBtn = false;
  1139. });
  1140. },
  1141. //添加考点地点
  1142. submitPlaces() {
  1143. this.disabledBtn = true;
  1144. let array = [];
  1145. this.activeLists.forEach((item) => {
  1146. array.push({
  1147. applyId: this.newOpenId,
  1148. siteId: item.siteId,
  1149. siteAddress: item.siteAddress,
  1150. people: item.people,
  1151. examApplySiteTime: [{ examTime: "", examApplySiteTimeTwo: [{}] }],
  1152. });
  1153. });
  1154. this.examPlaces = this.examPlaces.concat(array);
  1155. this.dialogExamPlace = false;
  1156. },
  1157. getExamPlace() {
  1158. var data = {
  1159. status: 1,
  1160. pageSize: this.pageSize2,
  1161. pageNum: this.currentPage2,
  1162. };
  1163. this.$api.inquiresystemsite(data).then((res) => {
  1164. this.boxtableData2 = res.rows;
  1165. this.total2 = res.total;
  1166. });
  1167. },
  1168. openExamPlace() {
  1169. this.activeListExamPlace = [];
  1170. this.examPlaces.forEach((item) => {
  1171. this.activeListExamPlace.push(item.siteId);
  1172. });
  1173. this.dialogExamPlace = true;
  1174. this.$nextTick(function () {
  1175. this.activeLists = [];
  1176. this.$refs.multipleTable2.clearSelection();
  1177. });
  1178. },
  1179. //设置考点
  1180. setExams(row, int) {
  1181. this.intStatus = int;
  1182. this.newOpenId = row.applyId;
  1183. this.$api
  1184. .inquirepayservesiteInfo({ addressStatus: int, applyId: row.applyId })
  1185. .then((res) => {
  1186. res.rows.forEach((item) => {
  1187. item.examApplySiteTime.forEach((items) => {
  1188. items.examTime = this.$methodsTools.time10to13(items.examTime, 2);
  1189. items.examApplySiteTimeTwo = JSON.parse(items.siteTime);
  1190. });
  1191. });
  1192. this.examPlaces = res.rows;
  1193. this.dialogExamBoxs = true;
  1194. });
  1195. },
  1196. // 判断选择时间逻辑
  1197. changeEndTime(int) {
  1198. if (this.listData.applyStartTime === this.listData.applyEndTime) {
  1199. this.$message.warning("开始时间与结束时间不允许相同");
  1200. if (int === 1) {
  1201. this.listData.applyStartTime = "";
  1202. }
  1203. if (int === 2) {
  1204. this.listData.applyEndTime = "";
  1205. }
  1206. return;
  1207. }
  1208. if (
  1209. int === 1 &&
  1210. this.listData.applyEndTime &&
  1211. this.listData.applyStartTime > this.listData.applyEndTime
  1212. ) {
  1213. this.$message.warning(
  1214. "当前选择的开始时间大于结束时间,请重新选择开始时间!"
  1215. );
  1216. this.listData.applyStartTime = "";
  1217. return;
  1218. }
  1219. if (
  1220. int === 2 &&
  1221. this.listData.applyStartTime &&
  1222. this.listData.applyEndTime < this.listData.applyStartTime
  1223. ) {
  1224. this.$message.warning(
  1225. "当前选择的结束时间小于开始时间,请重新选择结束时间!"
  1226. );
  1227. this.listData.applyEndTime = "";
  1228. return;
  1229. }
  1230. },
  1231. editInfo(v) {
  1232. this.addClick(v, 0);
  1233. },
  1234. editImg(e) {
  1235. var file = e.target.files[0];
  1236. if (file === undefined) {
  1237. return;
  1238. }
  1239. if (file.size > 0.3 * 1024 * 1024) {
  1240. this.$message.warning("图片不得大于300kb");
  1241. return;
  1242. }
  1243. var type = this.$refs.file.value.toLowerCase().split(".").splice(-1);
  1244. if (
  1245. type[0] != "jpg" &&
  1246. type[0] != "png" &&
  1247. type[0] != "jpeg" &&
  1248. type[0] != "gif"
  1249. ) {
  1250. this.$message.warning("上传格式需为:.jpg/.png/.jpeg/gif");
  1251. this.$refs.file.value = "";
  1252. return;
  1253. }
  1254. this.$upload.upload(file, 0).then((res) => {
  1255. this.listData.applyUrl = res;
  1256. });
  1257. },
  1258. search(v) {
  1259. this.loading = true;
  1260. var data = {
  1261. status: "0,1,2",
  1262. pageSize: this.pageSize,
  1263. pageNum: this.currentPage,
  1264. };
  1265. this.$api
  1266. .inquiresystemapplyList(data)
  1267. .then((res) => {
  1268. this.tableData = res.rows;
  1269. this.total = res.total;
  1270. this.navText.index = res.total;
  1271. })
  1272. .finally(() => {
  1273. this.loading = false;
  1274. });
  1275. },
  1276. init() {
  1277. this.search();
  1278. },
  1279. watchs(v) {
  1280. this.$api.obtainsystemapply(v.applyId).then((res) => {
  1281. if (res.data.applyStatus) {
  1282. res.data.applyStatus = res.data.applyStatus.split(",").map(Number);
  1283. }
  1284. if (res.data.examApplySite.length) {
  1285. for (let i = 0; i < res.data.examApplySite.length; i++) {
  1286. for (
  1287. let j = 0;
  1288. j < res.data.examApplySite[i].examApplySiteTime.length;
  1289. j++
  1290. ) {
  1291. res.data.examApplySite[i].examApplySiteTime[j].siteTime =
  1292. JSON.parse(
  1293. res.data.examApplySite[i].examApplySiteTime[j].siteTime
  1294. );
  1295. }
  1296. }
  1297. }
  1298. if (res.data.examApplySiteTrain.length) {
  1299. for (let i = 0; i < res.data.examApplySiteTrain.length; i++) {
  1300. for (
  1301. let j = 0;
  1302. j < res.data.examApplySiteTrain[i].examApplySiteTime.length;
  1303. j++
  1304. ) {
  1305. res.data.examApplySiteTrain[i].examApplySiteTime[j].siteTime =
  1306. JSON.parse(
  1307. res.data.examApplySiteTrain[i].examApplySiteTime[j].siteTime
  1308. );
  1309. }
  1310. }
  1311. }
  1312. this.infoData = res.data;
  1313. this.dialoginfoWatch = true;
  1314. });
  1315. },
  1316. del(v, int) {
  1317. this.$alert(
  1318. `确定${
  1319. int === 1 ? "启用" : int === 2 ? "关闭" : int === 3 ? "删除" : "xxx"
  1320. }考试计划【${v.applyName}】?<br />${
  1321. int === 1
  1322. ? "启用后,学员端预约考试的入口同步开通,请慎重考虑!"
  1323. : int === 2
  1324. ? "关闭后,学员端预约考试的入口同步关闭,请慎重考虑!"
  1325. : int === 3
  1326. ? "内容删除后将无法恢复,请慎重考虑"
  1327. : "xxx"
  1328. }`,
  1329. "操作提示",
  1330. {
  1331. dangerouslyUseHTMLString: true,
  1332. }
  1333. )
  1334. .then(() => {
  1335. var data = {
  1336. applyId: v.applyId,
  1337. };
  1338. if (int === 1) {
  1339. data.status = 1;
  1340. }
  1341. if (int === 2) {
  1342. data.status = 0;
  1343. }
  1344. if (int === 3) {
  1345. data.status = -1;
  1346. }
  1347. this.$api.editsystemapply(data).then((res) => {
  1348. this.$message.success(
  1349. `${
  1350. int === 1
  1351. ? "启用"
  1352. : int === 2
  1353. ? "关闭"
  1354. : int === 3
  1355. ? "删除"
  1356. : "xxx"
  1357. }成功`
  1358. );
  1359. this.search();
  1360. this.listDataGoods.businessId = "";
  1361. this.$store.commit("EXAMLIST");
  1362. });
  1363. })
  1364. .catch(() => {
  1365. // this.$message({
  1366. // type: "info",
  1367. // message: "已取消删除",
  1368. // });
  1369. });
  1370. },
  1371. addClick(v, int) {
  1372. if (v === undefined) {
  1373. this.statusPop = 1;
  1374. this.listData = {
  1375. applyStatus: [],
  1376. applyUrl: "oss/images/avatar/20211013/1634097664410_1397766697",
  1377. };
  1378. this.$nextTick(() => {
  1379. this.$refs.listData.clearValidate();
  1380. });
  1381. this.dialogVisible = true;
  1382. } else {
  1383. this.statusPop = int;
  1384. this.$api.obtainsystemapply(v.applyId).then((res) => {
  1385. if (res.data.applyStatus) {
  1386. res.data.applyStatus = res.data.applyStatus.split(",").map(Number);
  1387. }
  1388. if (res.data.applyStartTime) {
  1389. res.data.applyStartTime = this.$methodsTools.time10to13(
  1390. res.data.applyStartTime,
  1391. 2
  1392. );
  1393. }
  1394. if (res.data.applyEndTime) {
  1395. res.data.applyEndTime = this.$methodsTools.time10to13(
  1396. res.data.applyEndTime,
  1397. 2
  1398. );
  1399. }
  1400. this.listData = res.data;
  1401. this.$nextTick(() => {
  1402. this.$refs.listData.clearValidate();
  1403. });
  1404. this.dialogVisible = true;
  1405. });
  1406. }
  1407. },
  1408. submit(formName) {
  1409. this.$refs[formName].validate((valid) => {
  1410. if (valid) {
  1411. this.rulesTableSumbit();
  1412. } else {
  1413. return false;
  1414. }
  1415. });
  1416. },
  1417. rulesTableSumbit() {
  1418. this.disabledBtn = true;
  1419. var data = JSON.parse(JSON.stringify(this.listData));
  1420. data.applyStatus = data.applyStatus.toString();
  1421. data.applyStartTime = this.$methodsTools.time10to13(
  1422. data.applyStartTime,
  1423. 1
  1424. );
  1425. data.applyEndTime = this.$methodsTools.time10to13(data.applyEndTime, 1);
  1426. if (this.statusPop === 1) {
  1427. data.status = 0;
  1428. this.$api
  1429. .appsystemapply(data)
  1430. .then((res) => {
  1431. this.$message.success("新增成功");
  1432. this.dialogVisible = false;
  1433. this.search();
  1434. this.$store.commit("EXAMLIST");
  1435. })
  1436. .catch(() => {
  1437. this.disabledBtn = false;
  1438. });
  1439. }
  1440. if (this.statusPop === 0) {
  1441. this.$api
  1442. .editsystemapply(data)
  1443. .then((res) => {
  1444. this.$message.success("修改成功");
  1445. this.dialogVisible = false;
  1446. this.search();
  1447. this.$store.commit("EXAMLIST");
  1448. })
  1449. .catch(() => {
  1450. this.disabledBtn = false;
  1451. });
  1452. }
  1453. },
  1454. close() {
  1455. this.dialogVisible = false;
  1456. },
  1457. handleSizeChange(v) {
  1458. this.pageSize = v;
  1459. this.currentPage = 1;
  1460. this.search();
  1461. },
  1462. handleCurrentChange(v) {
  1463. this.currentPage = v;
  1464. this.search();
  1465. },
  1466. handleSizeChange2(v) {
  1467. this.pageSize2 = v;
  1468. this.currentPage2 = 1;
  1469. this.getExamPlace();
  1470. },
  1471. handleCurrentChange2(v) {
  1472. this.currentPage2 = v;
  1473. this.getExamPlace();
  1474. },
  1475. selectAll2(value) {
  1476. this.activeLists = value;
  1477. },
  1478. select2(value) {
  1479. this.activeLists = value;
  1480. },
  1481. checkboxT2(row, index) {
  1482. if (this.activeListExamPlace.indexOf(row.siteId) !== -1) {
  1483. return false;
  1484. } else {
  1485. return true;
  1486. }
  1487. },
  1488. getRowKeys2(row) {
  1489. return row.siteId;
  1490. },
  1491. },
  1492. };
  1493. </script>
  1494. <style lang="less" scoped>
  1495. .imgBoxWatch {
  1496. width: 200px;
  1497. height: 110px;
  1498. border: 1px solid #eee;
  1499. img {
  1500. width: 100%;
  1501. height: 100%;
  1502. }
  1503. }
  1504. /deep/.el-button {
  1505. border-radius: 8px;
  1506. }
  1507. /deep/.el-dialog {
  1508. border-radius: 8px;
  1509. .el-dialog__header {
  1510. padding: 0;
  1511. .hearders {
  1512. height: 40px;
  1513. display: flex;
  1514. align-items: center;
  1515. justify-content: space-between;
  1516. padding: 0px 18px 0px 20px;
  1517. border-bottom: 1px solid #e2e2e2;
  1518. .leftTitle {
  1519. font-size: 14px;
  1520. font-weight: bold;
  1521. color: #2f4378;
  1522. }
  1523. .rightBoxs {
  1524. display: flex;
  1525. align-items: center;
  1526. img {
  1527. width: 14px;
  1528. height: 14px;
  1529. margin-left: 13px;
  1530. cursor: pointer;
  1531. }
  1532. }
  1533. }
  1534. }
  1535. .el-dialog__footer {
  1536. padding: 0;
  1537. .dialog-footer {
  1538. padding: 0px 40px;
  1539. height: 70px;
  1540. border-top: 1px solid #e2e2e2;
  1541. display: flex;
  1542. align-items: center;
  1543. justify-content: flex-end;
  1544. }
  1545. }
  1546. }
  1547. .imgBox {
  1548. width: 100%;
  1549. // height: 210px;
  1550. border: 1px solid #e2e2e2;
  1551. border-radius: 8px;
  1552. padding: 8px 8px 3px;
  1553. display: flex;
  1554. flex-direction: column;
  1555. align-items: center;
  1556. .imgLabel {
  1557. flex: 1;
  1558. width: 100%;
  1559. border: 1px dotted #e2e2e2;
  1560. color: #999;
  1561. font-size: 14px;
  1562. cursor: pointer;
  1563. border-radius: 8px;
  1564. .msPhoto {
  1565. display: flex;
  1566. justify-content: center;
  1567. align-items: center;
  1568. max-width: 100%;
  1569. max-height: 270px;
  1570. img {
  1571. max-width: 100%;
  1572. max-height: 270px;
  1573. }
  1574. }
  1575. .imgbbx {
  1576. display: flex;
  1577. flex-direction: column;
  1578. align-items: center;
  1579. justify-content: center;
  1580. width: 100%;
  1581. height: 100%;
  1582. i {
  1583. font-weight: bold;
  1584. margin: 14px 0;
  1585. font-size: 24px;
  1586. }
  1587. }
  1588. }
  1589. p {
  1590. margin: 5px 0px;
  1591. }
  1592. }
  1593. .dis_fs {
  1594. display: flex;
  1595. align-items: center;
  1596. .imgBoxs {
  1597. width: 200px;
  1598. height: 130px;
  1599. border: 1px solid #999;
  1600. margin-right: 6px;
  1601. }
  1602. .btns {
  1603. align-self: end;
  1604. border: 1px solid #999;
  1605. font-size: 12px;
  1606. height: 28px;
  1607. line-height: 28px;
  1608. padding: 0px 10px;
  1609. border-radius: 4px;
  1610. cursor: pointer;
  1611. }
  1612. }
  1613. .jbtw {
  1614. justify-content: space-between;
  1615. }
  1616. .bors {
  1617. border: 1px solid #999;
  1618. padding: 0px 8px;
  1619. height: 30px;
  1620. line-height: 30px;
  1621. border-radius: 4px;
  1622. }
  1623. .mar_bgc {
  1624. width: 90%;
  1625. padding: 12px;
  1626. margin-top: 12px;
  1627. background-color: #eee;
  1628. }
  1629. </style>