tableList.vue 72 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318
  1. <template>
  2. <div id="tableList">
  3. <div class="headerNavTool">
  4. <div class="leftIndexText">
  5. {{ navText.title }} <strong>{{ navText.index }}</strong>
  6. {{ navText.ch }}
  7. </div>
  8. <div class="rightBtnBox">
  9. <slot name="customize"></slot>
  10. <el-button
  11. size="medium"
  12. type="primary"
  13. @click="addClick"
  14. v-if="!navText.addHide"
  15. >添加</el-button
  16. >
  17. <el-button
  18. v-if="navText.backFatherBtn.status"
  19. size="medium"
  20. type="warning"
  21. @click="backFather"
  22. >{{ navText.backFatherBtn.title }}</el-button
  23. >
  24. <el-popover
  25. popper-class="slotPopper"
  26. placement="bottom-end"
  27. trigger="click"
  28. >
  29. <div class="popoverDis">
  30. <div class="checkboxHeader">
  31. <el-checkbox
  32. :indeterminate="isIndeterminate"
  33. v-model="checkAll"
  34. @change="handleCheckAllChange"
  35. >列展示</el-checkbox
  36. >
  37. <div class="initbtns" @click="initVue">重置</div>
  38. </div>
  39. <div
  40. style="height: 1px; width: 100%; background-color: #eaeefb"
  41. ></div>
  42. <el-checkbox-group
  43. class="checkboxGroup"
  44. v-model="checkedCities"
  45. @change="handleCheckedCitiesChange"
  46. >
  47. <div
  48. class="checkboxchild"
  49. v-for="(item, index) in cities"
  50. :key="index"
  51. >
  52. <el-checkbox
  53. :label="item"
  54. @change="checkboxChange(item, $event)"
  55. >{{ item }}</el-checkbox
  56. >
  57. <div class="icon-right">
  58. <i class="el-icon-upload2" @click="upMove(item, index)"></i>
  59. <i
  60. class="el-icon-download"
  61. @click="downMove(item, index)"
  62. ></i>
  63. </div>
  64. </div>
  65. </el-checkbox-group>
  66. </div>
  67. <el-button style="margin-left: 10px" size="medium" slot="reference"
  68. >自定义列</el-button
  69. >
  70. </el-popover>
  71. </div>
  72. </div>
  73. <el-table
  74. :data="tableData"
  75. stripe
  76. style="width: 100%"
  77. @select-all="selectAll"
  78. @select="select"
  79. :row-key="rowKey"
  80. :load="load"
  81. :cell-style="timeStyle"
  82. lazy
  83. :border="true"
  84. ref="pagerset"
  85. v-loading="loading"
  86. :header-cell-style="{
  87. 'background-color': '#eee',
  88. color: '#333',
  89. fontSize: '14px',
  90. }"
  91. :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
  92. >
  93. <el-table-column
  94. v-if="navText.choice"
  95. align="center"
  96. type="selection"
  97. width="55"
  98. header-align="center"
  99. fixed="left"
  100. >
  101. </el-table-column>
  102. <!-- v-if="navText.num" ↓ -->
  103. <el-table-column
  104. type="index"
  105. label="序号"
  106. width="70"
  107. align="center"
  108. header-align="center"
  109. >
  110. </el-table-column>
  111. <template v-for="(item, index) in tableSet">
  112. <el-table-column
  113. v-if="item.hidden"
  114. :width="item.width"
  115. :key="index"
  116. :label="item.label"
  117. align="center"
  118. :sortable="item.prop === 'sort' || item.sort"
  119. :sort-method="sortMethods"
  120. :show-overflow-tooltip="item.showTooltip ? false : true"
  121. header-align="center"
  122. :prop="item.prop"
  123. sort-by="sort"
  124. >
  125. <template slot-scope="scope">
  126. <div class="imgboxsq" v-if="item.scope === 'img'">
  127. <el-image
  128. class="el_images"
  129. lazy
  130. :src="$methodsTools.splitImgHost(scope.row[item.prop])"
  131. style="height: 100%"
  132. :preview-src-list="[
  133. $methodsTools.splitImgHost(scope.row[item.prop]),
  134. ]"
  135. alt="加载失败..."
  136. >
  137. </el-image>
  138. </div>
  139. <span v-else-if="item.scope === 'status'">{{
  140. Number(scope.row[item.prop]) === 1
  141. ? "启用"
  142. : Number(scope.row[item.prop]) === 0
  143. ? "关闭"
  144. : Number(scope.row[item.prop]) === -1
  145. ? "已删除"
  146. : "未知"
  147. }}</span>
  148. <span v-else-if="item.scope === 'hasTime'">{{
  149. Number(scope.row[item.prop]) === 1
  150. ? "有效"
  151. : Number(scope.row[item.prop]) === 0
  152. ? "无效"
  153. : "未知"
  154. }}</span>
  155. <span v-else-if="item.scope === 'statusZpFB'">{{
  156. Number(scope.row[item.prop]) === 1
  157. ? "未发布"
  158. : Number(scope.row[item.prop]) === 2
  159. ? "已发布"
  160. : Number(scope.row[item.prop]) === 0
  161. ? "停用"
  162. : Number(scope.row[item.prop]) === -1
  163. ? "已删除"
  164. : "未知"
  165. }}</span>
  166. <span v-else-if="item.scope === 'reStatus'">{{
  167. Number(scope.row[item.prop]) === 1
  168. ? "定时发布"
  169. : Number(scope.row[item.prop]) === 0
  170. ? "手动发布"
  171. : "未知"
  172. }}</span>
  173. <span v-else-if="item.scope === 'fabStatus'">{{
  174. Number(scope.row[item.prop]) === 1
  175. ? "发布"
  176. : Number(scope.row[item.prop]) === 0
  177. ? "未发布"
  178. : "未知"
  179. }}</span>
  180. <span v-else-if="item.scope === 'sectionTypes'">{{
  181. Number(scope.row[item.prop]) === 2
  182. ? "录播"
  183. : Number(scope.row[item.prop]) === 1
  184. ? "直播"
  185. : Number(scope.row[item.prop]) === 3
  186. ? "回放"
  187. : "未知"
  188. }}</span>
  189. <span v-else-if="item.scope === 'getShops'">
  190. {{
  191. scope.row["goodsCode"] +
  192. "-" +
  193. scope.row["goodsName"] +
  194. " (" +
  195. scope.row["educationName"] +
  196. "-" +
  197. scope.row["projectName"] +
  198. "-" +
  199. scope.row["businessName"] +
  200. ")"
  201. }}
  202. </span>
  203. <span
  204. v-else-if="
  205. item.scope === 'treeWatch' &&
  206. (scope.row['goodsType'] === 1 || scope.row['goodsType'] === 2)
  207. "
  208. style="color: blue"
  209. @click="
  210. scope.row['goodsType'] === 1
  211. ? diavios(scope.row['goodsId'])
  212. : diaviosTK(scope.row['goodsId'])
  213. "
  214. >结构树视图</span
  215. >
  216. <span v-else-if="item.scope === 'leftCh'">
  217. {{ item.ch }}{{ scope.row[item.prop] }}
  218. </span>
  219. <span
  220. v-else-if="item.scope === 'goodsIds'"
  221. class="editInfoSty"
  222. @click="editInfo(scope.row, 3)"
  223. >
  224. {{
  225. !scope.row[item.prop]
  226. ? 0
  227. : scope.row[item.prop].split(",").map(Number).length
  228. }}
  229. </span>
  230. <span
  231. v-else-if="item.scope === 'jumpPeolpe'"
  232. class="editInfoSty"
  233. @click="jumpPeolpe(scope.row, item.type)"
  234. >
  235. {{ scope.row[item.prop] }}
  236. </span>
  237. <span v-else-if="item.scope === 'sectionTypesTTT'">{{
  238. Number(scope.row[item.prop]) === 1
  239. ? "录播"
  240. : Number(scope.row[item.prop]) === 2
  241. ? "直播"
  242. : Number(scope.row[item.prop]) === 3
  243. ? "回放"
  244. : ""
  245. }}</span>
  246. <span v-else-if="item.scope === 'ggType'">{{
  247. Number(scope.row[item.prop]) === 1
  248. ? "学习中心"
  249. : Number(scope.row[item.prop]) === 2
  250. ? "求职中心"
  251. : "未知"
  252. }}</span>
  253. <ul v-else-if="item.scope === 'mapTypesTeacher'" class="ulAuto">
  254. <template v-for="(itm, inds) in scope.row[item.prop]">
  255. <li :key="inds" v-if="inds < 2">
  256. {{ itm.educationName + "-" + itm.projectName
  257. }}{{ inds === 0 ? ", " : "" }}
  258. </li>
  259. </template>
  260. <el-popover
  261. :key="Math.random()"
  262. placement="right"
  263. trigger="click"
  264. >
  265. <ul>
  266. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  267. {{ inds + 1 }}、
  268. {{ itm.educationName + "-" + itm.projectName }}
  269. </li>
  270. </ul>
  271. <el-button
  272. slot="reference"
  273. style="margin-left: 6px"
  274. type="text"
  275. v-if="scope.row[item.prop].length > 2"
  276. size="mini"
  277. >更多</el-button
  278. >
  279. </el-popover>
  280. </ul>
  281. <span v-else-if="item.scope === 'goodsInfos'">
  282. {{ scope.row[item.prop1] + "-" + scope.row[item.prop2] + "-"
  283. }}<span style="color: red">¥{{ scope.row[item.prop3] }}</span>
  284. </span>
  285. <div v-else-if="item.scope === 'applyInfos'">
  286. <div
  287. v-for="(items, indexs) in scope.row[item.prop]"
  288. :key="indexs"
  289. >
  290. <div>{{ items.siteAddress }}</div>
  291. <div
  292. v-for="(itemsxs, indexsxs) in items.examApplySiteTime"
  293. :key="indexsxs"
  294. >
  295. <div v-for="(ks, ds) in itemsxs.siteTime" :key="ds">
  296. {{ $methodsTools.onlyForma(itemsxs.examTime, false) }}
  297. {{ ks.startTime.replace("-", ":") }}-{{
  298. ks.endTime.replace("-", ":")
  299. }}
  300. </div>
  301. </div>
  302. </div>
  303. </div>
  304. <ul v-else-if="item.scope === 'moreGoodsList'" class="ulAuto">
  305. <template v-for="(itm, inds) in scope.row[item.prop]">
  306. <li :key="inds" v-if="inds < 1">
  307. {{ itm[item.prop1] + "-" + itm[item.prop2] + "-" }}
  308. <span style="color: red">¥{{ itm[item.prop3] }}</span>
  309. </li>
  310. </template>
  311. <el-popover
  312. :key="Math.random()"
  313. placement="right"
  314. trigger="click"
  315. >
  316. <ul>
  317. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  318. {{ inds + 1 }}、
  319. {{ itm[item.prop1] + "-" + itm[item.prop2] + "-" }}
  320. <span style="color: red">¥{{ itm[item.prop3] }}</span>
  321. </li>
  322. </ul>
  323. <el-button
  324. slot="reference"
  325. style="margin-left: 6px"
  326. type="text"
  327. v-if="scope.row[item.prop].length >= 2"
  328. size="mini"
  329. >更多</el-button
  330. >
  331. </el-popover>
  332. </ul>
  333. <ul v-else-if="item.scope === 'mapTypes'" class="ulAuto">
  334. <template v-for="(itm, inds) in scope.row[item.prop]">
  335. <li :key="inds" v-if="inds === 0">
  336. {{ itm.educationName + "-" + itm.projectName }}
  337. </li>
  338. </template>
  339. <el-popover
  340. :key="Math.random()"
  341. placement="right"
  342. trigger="click"
  343. >
  344. <ul>
  345. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  346. {{ inds + 1 }}、
  347. {{ itm.educationName + "-" + itm.projectName }}
  348. </li>
  349. </ul>
  350. <el-button
  351. slot="reference"
  352. style="margin-left: 6px"
  353. type="text"
  354. v-if="scope.row[item.prop].length > 1"
  355. size="mini"
  356. >更多</el-button
  357. >
  358. </el-popover>
  359. </ul>
  360. <ul v-else-if="item.scope === 'mapTypesBUS'" class="ulAuto">
  361. <template v-for="(itm, inds) in scope.row[item.prop]">
  362. <li :key="inds" v-if="inds === 0">
  363. {{
  364. itm.educationName +
  365. "-" +
  366. itm.projectName +
  367. "-" +
  368. itm.businessName
  369. }}
  370. </li>
  371. </template>
  372. <el-popover
  373. :key="Math.random()"
  374. placement="right"
  375. trigger="click"
  376. >
  377. <ul>
  378. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  379. {{ inds + 1 }}、
  380. {{
  381. itm.educationName +
  382. "-" +
  383. itm.projectName +
  384. "-" +
  385. itm.businessName
  386. }}
  387. </li>
  388. </ul>
  389. <el-button
  390. slot="reference"
  391. style="margin-left: 6px"
  392. type="text"
  393. v-if="scope.row[item.prop].length > 1"
  394. size="mini"
  395. >更多</el-button
  396. >
  397. </el-popover>
  398. </ul>
  399. <div v-else-if="item.scope === 'splits'" class="dis_sdt">
  400. <ul>
  401. <template v-for="(itm, inds) in scope.row[item.prop]">
  402. <li :key="inds" v-if="inds < 2">
  403. {{ itm }}
  404. </li>
  405. </template>
  406. </ul>
  407. <el-popover
  408. :key="Math.random()"
  409. placement="right"
  410. trigger="click"
  411. >
  412. <ul>
  413. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  414. {{ inds + 1 }}、
  415. {{ itm }}
  416. </li>
  417. </ul>
  418. <el-button
  419. slot="reference"
  420. style="margin-left: 6px"
  421. type="text"
  422. v-if="scope.row[item.prop].length > 2"
  423. size="mini"
  424. >更多</el-button
  425. >
  426. </el-popover>
  427. </div>
  428. <ul v-else-if="item.scope === 'classNums'" class="ulAutos">
  429. <li
  430. style="font-size: 12px; cursor: pointer; color: #1890ff"
  431. v-if="!scope.row[item.prop].length"
  432. >
  433. 班级({{ scope.row[item.prop].length }})
  434. </li>
  435. <el-popover
  436. :key="Math.random()"
  437. placement="right"
  438. trigger="click"
  439. >
  440. <ul class="max-heightStyles">
  441. <li
  442. v-for="(itm, inds) in scope.row[item.prop]"
  443. :key="inds"
  444. class="jumpClass"
  445. @click="jumpClass(itm)"
  446. >
  447. {{ inds + 1 }}、
  448. {{ itm.gradeName }}
  449. </li>
  450. </ul>
  451. <el-button
  452. v-if="scope.row[item.prop].length"
  453. slot="reference"
  454. type="text"
  455. size="mini"
  456. >班级({{ scope.row[item.prop].length }})</el-button
  457. >
  458. </el-popover>
  459. </ul>
  460. <div v-else-if="item.scope === 'goodsList'" class="ulAuto">
  461. <ul>
  462. <template v-for="(itm, inds) in scope.row[item.prop]">
  463. <li :key="inds" v-if="inds === 0">
  464. {{ itm.goodsName }}
  465. </li>
  466. </template>
  467. </ul>
  468. <el-popover
  469. :key="Math.random()"
  470. placement="right"
  471. trigger="click"
  472. >
  473. <ul>
  474. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  475. {{ inds + 1 }}、
  476. {{ itm.goodsName }}
  477. </li>
  478. </ul>
  479. <el-button
  480. slot="reference"
  481. style="margin-left: 6px"
  482. type="text"
  483. v-if="scope.row[item.prop].length > 1"
  484. size="mini"
  485. >更多</el-button
  486. >
  487. </el-popover>
  488. </div>
  489. <div v-else-if="item.scope === 'aboutChapter'" class="ulAuto">
  490. <ul>
  491. <template v-for="(itm, inds) in scope.row[item.prop]">
  492. <li
  493. class="jumpStys"
  494. :key="inds"
  495. v-if="inds === 0"
  496. @click="jumpPages(itm, item.int)"
  497. >
  498. {{ itm[item.prop1] }}
  499. </li>
  500. </template>
  501. </ul>
  502. <el-popover
  503. :key="Math.random()"
  504. placement="right"
  505. trigger="click"
  506. >
  507. <ul>
  508. <li
  509. v-for="(itm, inds) in scope.row[item.prop]"
  510. :key="inds"
  511. class="jumpStys"
  512. @click="jumpPages(itm, item.int)"
  513. >
  514. {{ inds + 1 }}、
  515. {{ itm[item.prop1] }}
  516. </li>
  517. </ul>
  518. <el-button
  519. slot="reference"
  520. style="margin-left: 6px"
  521. type="text"
  522. v-if="scope.row[item.prop].length > 1"
  523. size="mini"
  524. >更多</el-button
  525. >
  526. </el-popover>
  527. </div>
  528. <ul v-else-if="item.scope === 'mapTypesMores'" class="ulAuto">
  529. <template v-for="(itm, inds) in scope.row[item.prop]">
  530. <li :key="inds" v-if="inds === 0">
  531. {{
  532. itm.educationName +
  533. "-" +
  534. itm.projectName +
  535. "-" +
  536. itm.businessName +
  537. "-" +
  538. itm.subjectName
  539. }}
  540. </li>
  541. </template>
  542. <el-popover
  543. :key="Math.random()"
  544. placement="right"
  545. trigger="click"
  546. >
  547. <ul>
  548. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  549. {{ inds + 1 }}、
  550. {{
  551. itm.educationName +
  552. "-" +
  553. itm.projectName +
  554. "-" +
  555. itm.businessName +
  556. "-" +
  557. itm.subjectName
  558. }}
  559. </li>
  560. </ul>
  561. <el-button
  562. slot="reference"
  563. style="margin-left: 6px"
  564. type="text"
  565. v-if="scope.row[item.prop].length > 1"
  566. size="mini"
  567. >更多</el-button
  568. >
  569. </el-popover>
  570. </ul>
  571. <span v-else-if="item.scope === 'statusRe'">{{
  572. Number(scope.row[item.prop]) === 0
  573. ? "已删除"
  574. : Number(scope.row[item.prop]) === 1 &&
  575. Number(scope.row["reStatus"]) === 1
  576. ? "待发布"
  577. : Number(scope.row[item.prop]) === 1 &&
  578. Number(scope.row["reStatus"]) === 0
  579. ? "未发布"
  580. : Number(scope.row[item.prop]) === 2
  581. ? "已撤回"
  582. : Number(scope.row[item.prop]) === 3
  583. ? "已发布"
  584. : Number(scope.row[item.prop]) === 4
  585. ? "已到期"
  586. : "未知"
  587. }}</span>
  588. <span v-else-if="item.scope === 'TimeVoBtn'">
  589. <el-popover :key="Math.random()" placement="left" trigger="click">
  590. <div
  591. v-for="(items, indexs) in scope.row[item.prop]"
  592. :key="indexs"
  593. style="margin-bottom: 6px"
  594. >
  595. {{ $methodsTools.onlyForma(items.startTime) }} ~
  596. {{ $methodsTools.onlyForma(items.endTime) }}
  597. </div>
  598. <el-button slot="reference" size="mini">查看</el-button>
  599. </el-popover>
  600. </span>
  601. <div v-else-if="item.scope === 'video'">
  602. <i
  603. v-if="scope.row[item.prop][item.prop1] !== null"
  604. class="el-icon-video-play cvideo"
  605. @click="
  606. openVideo(
  607. $methodsTools.splitImgHost(scope.row[item.prop][item.prop1])
  608. )
  609. "
  610. ></i>
  611. </div>
  612. <div
  613. v-else-if="item.scope === 'PDF'"
  614. style="display: flex; align-items: center"
  615. >
  616. <a
  617. v-if="scope.row[item.prop][item.prop1] !== null"
  618. :href="
  619. $methodsTools.splitImgHost(scope.row[item.prop][item.prop1])
  620. "
  621. target="_blank"
  622. style="
  623. display: block;
  624. width: 35px;
  625. height: 45px;
  626. margin-right: 10px;
  627. "
  628. >
  629. <img class="imgHover" src="@/assets/images/pdf@3x.png" alt="" />
  630. </a>
  631. <div>{{ scope.row[item.prop][item.prop2] }}</div>
  632. </div>
  633. <span v-else-if="item.scope === 'Salary'">
  634. {{ scope.row[item.prop1] === 1 ? "月薪" : "年薪" }}
  635. {{
  636. scope.row[item.prop2] === scope.row[item.prop3]
  637. ? scope.row[item.prop2]
  638. : scope.row[item.prop2] + "~" + scope.row[item.prop3]
  639. }}
  640. </span>
  641. <div v-else-if="item.scope === 'changAdress'">
  642. <div>{{ scope.row[item.prop1] }}</div>
  643. <div>
  644. {{ $methodsTools.onlyForma(scope.row[item.prop2], false) }}
  645. <span
  646. >{{
  647. scope.row[item.prop3]
  648. ? scope.row[item.prop3].replace("-", ":")
  649. : scope.row[item.prop3]
  650. }}-{{
  651. scope.row[item.prop4]
  652. ? scope.row[item.prop4].replace("-", ":")
  653. : scope.row[item.prop4]
  654. }}</span
  655. >
  656. </div>
  657. </div>
  658. <span v-else-if="item.scope === 'activityType'">{{
  659. Number(scope.row[item.prop]) === 0
  660. ? "优惠券"
  661. : Number(scope.row[item.prop]) === 1
  662. ? "折扣券"
  663. : Number(scope.row[item.prop]) === 2
  664. ? "线上直播"
  665. : Number(scope.row[item.prop]) === 3
  666. ? "定价"
  667. : Number(scope.row[item.prop]) === 4
  668. ? "优惠"
  669. : Number(scope.row[item.prop]) === 5
  670. ? "折扣"
  671. : Number(scope.row[item.prop]) === 6
  672. ? "线下活动"
  673. : "未知"
  674. }}</span>
  675. <span v-else-if="item.scope === 'activityRemarks'">{{
  676. Number(scope.row[item.prop]) === 0
  677. ? "金额:¥" + scope.row["price"]
  678. : Number(scope.row[item.prop]) === 1
  679. ? "折扣:" + scope.row["price"] + "折"
  680. : Number(scope.row[item.prop]) === 2
  681. ? "直播内容:" + scope.row["liveContent"]
  682. : Number(scope.row[item.prop]) === 3
  683. ? "商品金额:¥" + scope.row["price"]
  684. : Number(scope.row[item.prop]) === 4
  685. ? "优惠金额:¥" + scope.row["price"]
  686. : Number(scope.row[item.prop]) === 5
  687. ? "商品折扣:" + scope.row["price"] + "折"
  688. : Number(scope.row[item.prop]) === 6
  689. ? "活动地点:" + scope.row["liveAdress"]
  690. : "未知"
  691. }}</span>
  692. <span v-else-if="item.scope === 'isUrgent'">{{
  693. scope.row[item.prop] === 0
  694. ? "不是"
  695. : scope.row[item.prop] === 1
  696. ? "是"
  697. : "未知"
  698. }}</span>
  699. <span v-else-if="item.scope === 'gfStatus'">{{
  700. scope.row[item.prop] === 0
  701. ? "否"
  702. : scope.row[item.prop] === 1
  703. ? "是"
  704. : "未知"
  705. }}</span>
  706. <span v-else-if="item.scope === 'refundPrice'">
  707. {{
  708. scope.row["goodsRealPrice"] && scope.row["goodsReceived"]
  709. ? Number(scope.row["goodsRealPrice"]) -
  710. Number(scope.row["goodsReceived"]) +
  711. "元"
  712. : ""
  713. }}
  714. </span>
  715. <span v-else-if="item.scope === 'peopleNum'">{{
  716. scope.row[item.prop] === 0 ? "不限制" : scope.row[item.prop]
  717. }}</span>
  718. <span v-else-if="item.scope === 'address'"
  719. >{{
  720. scope.row[item.prop1] +
  721. scope.row[item.prop2] +
  722. scope.row[item.prop3]
  723. }}{{ scope.row[item.prop4] ? scope.row[item.prop4] : "" }}</span
  724. >
  725. <span v-else-if="item.scope === 'statusActivity'">{{
  726. Number(scope.row[item.prop]) === 0
  727. ? "已删除"
  728. : Number(scope.row[item.prop]) === 1
  729. ? "已结束"
  730. : Number(scope.row[item.prop]) === 2
  731. ? "已撤回"
  732. : Number(scope.row[item.prop]) === 3
  733. ? "已开始"
  734. : Number(scope.row[item.prop]) === 4
  735. ? "未开始"
  736. : "未知"
  737. }}</span>
  738. <span v-else-if="item.scope === 'sex'">
  739. {{
  740. scope.row[item.prop] == 1
  741. ? "男"
  742. : scope.row[item.prop] == 2
  743. ? "女"
  744. : "未知"
  745. }}
  746. </span>
  747. <span v-else-if="item.scope === 'statusFB'">{{
  748. scope.row[item.prop] === 0
  749. ? "删除"
  750. : scope.row[item.prop] === 1
  751. ? "发布"
  752. : scope.row[item.prop] === 2
  753. ? "撤回"
  754. : scope.row[item.prop] === 3
  755. ? "未发布"
  756. : "未知"
  757. }}</span>
  758. <span v-else-if="item.scope === 'typeStatus'">{{
  759. scope.row[item.prop] === 0
  760. ? "报名指引"
  761. : scope.row[item.prop] === 1
  762. ? "打印准考证"
  763. : scope.row[item.prop] === 2
  764. ? "成绩查询指引"
  765. : "未知"
  766. }}</span>
  767. <span v-else-if="item.scope === 'typeId'">{{
  768. scope.row[item.prop] === 1
  769. ? "普通练习"
  770. : scope.row[item.prop] === 2
  771. ? "押题试卷"
  772. : scope.row[item.prop] === 3
  773. ? "真题试卷"
  774. : "未知"
  775. }}</span>
  776. <span v-else-if="item.scope === 'taskType'">{{
  777. scope.row[item.prop] === 0
  778. ? "每日签到"
  779. : scope.row[item.prop] === 1
  780. ? "完善信息"
  781. : scope.row[item.prop] === 2
  782. ? "邀请好友"
  783. : scope.row[item.prop] === 3
  784. ? "每日分享"
  785. : scope.row[item.prop] === 4
  786. ? "视频学习"
  787. : scope.row[item.prop] === 5
  788. ? "模拟考试"
  789. : "未知"
  790. }}</span>
  791. <span v-else-if="item.scope === 'releaseType'">{{
  792. scope.row[item.prop] === 0
  793. ? "手动发布"
  794. : scope.row[item.prop] === 1
  795. ? "定时发布"
  796. : "未知"
  797. }}</span>
  798. <span v-else-if="item.scope === 'releaseStatus'">{{
  799. scope.row[item.prop] === 0
  800. ? "删除"
  801. : scope.row[item.prop] === 1
  802. ? "待发布"
  803. : scope.row[item.prop] === 2
  804. ? "撤回"
  805. : scope.row[item.prop] === 3
  806. ? "发布成功"
  807. : scope.row[item.prop] === 4
  808. ? "未发布"
  809. : scope.row[item.prop] === 5
  810. ? "已结束"
  811. : "未知"
  812. }}</span>
  813. <div v-else-if="item.scope === 'knowledge'" class="overSty">
  814. <el-button
  815. type="success"
  816. size="small"
  817. v-for="(items, ks) in scope.row[item.prop]"
  818. :key="ks"
  819. >
  820. {{ items.knowledgeName }}
  821. </el-button>
  822. </div>
  823. <span v-else-if="item.scope === 'numberAll'">{{
  824. scope.row[item.prop1] + scope.row[item.prop2]
  825. }}</span>
  826. <span v-else-if="item.scope === 'moreLists'">{{
  827. scope.row[item.prop1] + " ~ " + scope.row[item.prop2]
  828. }}</span>
  829. <span v-else-if="item.scope === 'resultType'">
  830. {{ scope.row[item.prop1] }}
  831. <span
  832. :style="
  833. scope.row[item.prop2] === 1
  834. ? 'color:purple'
  835. : scope.row[item.prop2] === 0
  836. ? 'color:red;'
  837. : ''
  838. "
  839. >
  840. {{
  841. scope.row[item.prop2] === 1
  842. ? "通过"
  843. : scope.row[item.prop2] === 0
  844. ? "不通过"
  845. : ""
  846. }}
  847. </span>
  848. </span>
  849. <span v-else-if="item.scope === 'TimeLists'"
  850. >{{
  851. $methodsTools.onlyForma(scope.row[item.prop1], item.Diszing)
  852. }}
  853. {{
  854. $methodsTools.onlyForma(scope.row[item.prop2], item.Diszing)
  855. }}</span
  856. >
  857. <span v-else-if="item.scope === 'aTimeList'">{{
  858. scope.row[item.prop] === null
  859. ? "--"
  860. : $methodsTools.onlyForma(scope.row[item.prop])
  861. }}</span>
  862. <div v-else-if="item.scope === 'inputs'">
  863. <el-input-number
  864. style="width: 50px"
  865. size="small"
  866. :controls="false"
  867. v-model="scope.row[item.prop]"
  868. controls-position="right"
  869. :min="0"
  870. ></el-input-number>
  871. </div>
  872. <span v-else-if="item.scope === 'topic'">{{
  873. scope.row[item.prop] === 1
  874. ? "单选题"
  875. : scope.row[item.prop] === 2
  876. ? "多选题"
  877. : scope.row[item.prop] === 3
  878. ? "判断题"
  879. : scope.row[item.prop] === 4
  880. ? "案例题"
  881. : scope.row[item.prop] === 5
  882. ? "简答题"
  883. : "未知"
  884. }}</span>
  885. <span v-else-if="item.scope === 'typeStatusName'">{{
  886. scope.row[item.prop] === 1
  887. ? "扫码支付"
  888. : scope.row[item.prop] === 2
  889. ? "刷卡支付"
  890. : scope.row[item.prop] === 3
  891. ? "现金支付"
  892. : scope.row[item.prop] === 4
  893. ? "转账"
  894. : "未知"
  895. }}</span>
  896. <span v-else-if="item.scope === 'teachers'">
  897. <span v-for="(itm, indm) in scope.row[item.prop]" :key="indm"
  898. >{{ itm.nickName
  899. }}{{
  900. indm !== scope.row[item.prop].length - 1 ? "," : ""
  901. }}</span
  902. >
  903. </span>
  904. <span v-else-if="item.scope === 'streamType'">{{
  905. scope.row[item.prop] === 1
  906. ? "正式"
  907. : scope.row[item.prop] === 2
  908. ? "测试"
  909. : "未知"
  910. }}</span>
  911. <span
  912. v-else-if="item.scope === 'statusPeriods'"
  913. :style="scope.row[item.prop] === 1 ? 'color:red' : ''"
  914. >
  915. {{
  916. scope.row[item.prop] === -1
  917. ? "不可审核"
  918. : scope.row[item.prop] === 2
  919. ? "待审核"
  920. : scope.row[item.prop] === 0
  921. ? "未通过"
  922. : scope.row[item.prop] === 1
  923. ? "通过"
  924. : ""
  925. }}
  926. </span>
  927. <span
  928. v-else-if="item.scope === 'statusPeriod'"
  929. :style="scope.row[item.prop] === 2 ? 'color:red' : ''"
  930. >
  931. {{
  932. scope.row[item.prop] === -1
  933. ? "不可审核"
  934. : scope.row[item.prop] === 0
  935. ? "待审核"
  936. : scope.row[item.prop] === 1
  937. ? "未通过"
  938. : scope.row[item.prop] === 2
  939. ? "通过"
  940. : ""
  941. }}
  942. </span>
  943. <div v-else-if="item.scope === 'changeCLS'">
  944. <div v-if="scope.row[item.prop] === 1" style="color: red">
  945. 有变更
  946. <span
  947. style="marign-left: 6px; color: blue; cursor: pointer"
  948. @click="isShowBoxsFun(scope.row)"
  949. >查看</span
  950. >
  951. </div>
  952. <span v-else> 正常 </span>
  953. </div>
  954. <div v-else-if="item.scope === 'rebuy'">
  955. <span>{{ scope.row[item.prop] === 1 ? "是" : "" }}</span>
  956. <span
  957. v-if="scope.row[item.prop] === 1"
  958. style="margin-left: 6px; color: blue; cursor: pointer"
  959. @click="isShowRebuy(scope.row)"
  960. >查看</span
  961. >
  962. </div>
  963. <span
  964. v-else-if="item.scope === 'finishStatus'"
  965. :style="scope.row[item.prop] === 0 ? 'color:red' : ''"
  966. >
  967. {{
  968. scope.row[item.prop] === 0
  969. ? "未结业"
  970. : scope.row[item.prop] === 1
  971. ? "结业"
  972. : ""
  973. }}
  974. </span>
  975. <span v-else-if="item.scope === 'computer'">
  976. {{ scope.row[item.prop1] + "/" + scope.row[item.prop2] }}
  977. {{
  978. scope.row[item.prop1] == 0 && scope.row[item.prop2] == 0
  979. ? "0%"
  980. : (
  981. (scope.row[item.prop1] / scope.row[item.prop2]) *
  982. 100
  983. ).toFixed(2) + "%"
  984. }}
  985. </span>
  986. <div v-else-if="item.scope === 'payGoodsList'">
  987. <span
  988. style="margin-right: 6px"
  989. class="goodsListStyle"
  990. @click="openGoodsListBoxs(scope.row, 1)"
  991. >视频({{
  992. scope.row[item.prop1] ? scope.row[item.prop1] : 0
  993. }})</span
  994. >
  995. <span
  996. class="goodsListStyle"
  997. @click="openGoodsListBoxs(scope.row, 2)"
  998. >题库({{
  999. scope.row[item.prop2] ? scope.row[item.prop2] : 0
  1000. }})</span
  1001. >
  1002. </div>
  1003. <span v-else-if="item.scope === 'statusOrder'">{{
  1004. scope.row[item.prop] === -2
  1005. ? "超时关闭"
  1006. : scope.row[item.prop] === -1
  1007. ? "手动关闭"
  1008. : scope.row[item.prop] === 0
  1009. ? "待付款"
  1010. : scope.row[item.prop] === 1
  1011. ? "已付款"
  1012. : scope.row[item.prop] === 3
  1013. ? "成功"
  1014. : "未知"
  1015. }}</span>
  1016. <span v-else-if="item.scope === 'cType'">
  1017. <el-tag
  1018. type="success"
  1019. v-if="
  1020. compType(scope.row[item.prop], scope.row['requestMethod']) ===
  1021. '新增'
  1022. "
  1023. >
  1024. {{
  1025. compType(scope.row[item.prop], scope.row["requestMethod"])
  1026. }}</el-tag
  1027. >
  1028. <el-tag
  1029. v-if="
  1030. compType(scope.row[item.prop], scope.row['requestMethod']) ===
  1031. '修改'
  1032. "
  1033. >
  1034. {{
  1035. compType(scope.row[item.prop], scope.row["requestMethod"])
  1036. }}</el-tag
  1037. >
  1038. <el-tag
  1039. type="warning"
  1040. v-if="
  1041. compType(scope.row[item.prop], scope.row['requestMethod']) ===
  1042. '查询'
  1043. "
  1044. >
  1045. {{
  1046. compType(scope.row[item.prop], scope.row["requestMethod"])
  1047. }}</el-tag
  1048. >
  1049. </span>
  1050. <span v-else-if="item.scope === 'time'">{{
  1051. numTime(scope.row[item.prop])
  1052. }}</span>
  1053. <span v-else-if="item.scope === 'timeBtn'"
  1054. >{{ numTime(scope.row[item.prop]) }}
  1055. <el-button type="text" @click="getxq(scope.row)">详情</el-button>
  1056. </span>
  1057. <span
  1058. class="editInfoSty"
  1059. v-else-if="item.scope === 'editInfo'"
  1060. @click="editInfo(scope.row)"
  1061. >{{ scope.row[item.prop] }}
  1062. </span>
  1063. <span
  1064. class="editInfoSty"
  1065. v-else-if="item.scope === 'editInfoMore'"
  1066. @click="editInfo(scope.row)"
  1067. >{{ scope.row[item.prop1] }} - {{ scope.row[item.prop2] }}
  1068. </span>
  1069. <span v-else-if="item.scope === 'InfoMore'"
  1070. >{{ scope.row[item.prop1] }} - {{ scope.row[item.prop2] }}
  1071. </span>
  1072. <el-button
  1073. v-else-if="item.scope === 'aboutTrees'"
  1074. slot="reference"
  1075. @click="activesBoxszing(scope.row[item.prop])"
  1076. >查看</el-button
  1077. >
  1078. <div
  1079. class="editInfoSty"
  1080. v-else-if="item.scope === 'editInfoHTML'"
  1081. @click="editInfo(scope.row)"
  1082. >
  1083. {{ getSimpleText(scope.row[item.prop]) }}
  1084. </div>
  1085. <span v-else-if="item.scope === 'minute'">{{
  1086. numTimeminute(scope.row[item.prop])
  1087. }}</span>
  1088. <span
  1089. v-else-if="item.scope === 'jumpPage'"
  1090. @click="jumpPage(scope.row)"
  1091. style="color: #409eff; cursor: pointer"
  1092. >{{ scope.row[item.prop] }}</span
  1093. >
  1094. <span v-else-if="item.scope === 'objType'">
  1095. {{
  1096. scope.row[item.objProp].length
  1097. ? scope.row[item.objProp][0][item.prop]
  1098. : ""
  1099. }}
  1100. </span>
  1101. <span v-else-if="item.scope === 'isOKs'" style="color: red"
  1102. >审核通过</span
  1103. >
  1104. <span v-else-if="item.scope === 'classTypes'">
  1105. {{
  1106. scope.row[item.prop] === 1
  1107. ? "已开班:" + scope.row[item.prop1]
  1108. : scope.row[item.prop] === 0
  1109. ? "未开班"
  1110. : ""
  1111. }}
  1112. </span>
  1113. <span v-else-if="item.scope === 'classTimeTypes'">
  1114. {{
  1115. scope.row[item.prop] === 1
  1116. ? "即刻"
  1117. : scope.row[item.prop] === 2
  1118. ? "待定"
  1119. : scope.row[item.prop] === 3
  1120. ? $methodsTools.onlyForma(scope.row[item.prop1])
  1121. : "未知"
  1122. }}
  1123. </span>
  1124. <div v-else-if="item.scope === 'objTypeYW'">
  1125. <span v-if="scope.row[item.objProp].length">
  1126. {{ scope.row[item.objProp][0][item.prop1] }}-{{
  1127. scope.row[item.objProp][0][item.prop2]
  1128. }}-{{ scope.row[item.objProp][0][item.prop3] }}
  1129. </span>
  1130. </div>
  1131. <div v-else-if="item.scope === 'againStudent'">
  1132. <span :style="scope.row[item.prop] ? 'color:blue' : ''">{{
  1133. scope.row[item.prop]
  1134. }}</span>
  1135. <span
  1136. style="color: red; margin-left: 10px"
  1137. v-if="scope.row[item.prop]"
  1138. >已重修{{ scope.row[item.prop1] }}节</span
  1139. >
  1140. </div>
  1141. <span v-else-if="item.scope === 'eduTypes'">
  1142. {{
  1143. scope.row[item.prop1] +
  1144. "-" +
  1145. scope.row[item.prop2] +
  1146. "-" +
  1147. scope.row[item.prop3]
  1148. }}{{ scope.row[item.prop4] ? "-" + scope.row[item.prop4] : "" }}
  1149. </span>
  1150. <span
  1151. v-else-if="item.scope === 'sendStatus'"
  1152. :style="scope.row[item.prop] === 0 ? 'color:red;' : ''"
  1153. >
  1154. {{
  1155. scope.row[item.prop] === 1
  1156. ? "发送成功"
  1157. : scope.row[item.prop] === 0
  1158. ? "发送失败"
  1159. : "--"
  1160. }}
  1161. </span>
  1162. <span v-else-if="item.scope === 'peopleNums'">
  1163. {{ scope.row[item.prop1] }} / {{ scope.row[item.prop2] }}
  1164. </span>
  1165. <span
  1166. v-else-if="item.scope === 'jumpPageLabel'"
  1167. @click="jumpPageLabel(scope.row)"
  1168. style="color: #409eff; cursor: pointer"
  1169. >{{ scope.row[item.prop] }}</span
  1170. >
  1171. <span v-else-if="item.scope === 'urlStatus'">
  1172. {{
  1173. scope.row[item.prop] === 1
  1174. ? scope.row[item.prop1]
  1175. : scope.row[item.prop] === 2
  1176. ? scope.row[item.prop2]
  1177. : scope.row[item.prop] === 3
  1178. ? scope.row[item.prop3]
  1179. : ""
  1180. }}
  1181. </span>
  1182. <div v-else-if="item.scope === 'morePeople'">
  1183. <span
  1184. v-for="(itm, idm) in scope.row[item.prop]
  1185. .split(',')
  1186. .map(Number)"
  1187. :key="idm"
  1188. >
  1189. {{ itm === 1 ? "非补考学员" : itm === 2 ? "补考学员" : "" }}
  1190. </span>
  1191. </div>
  1192. <span
  1193. v-else-if="item.scope === 'jumpPageLabelProfess'"
  1194. @click="jumpPageLabelProfess(scope.row)"
  1195. style="color: #409eff; cursor: pointer"
  1196. >{{ scope.row[item.prop] }}</span
  1197. >
  1198. <span
  1199. v-else-if="item.scope === 'infoJump'"
  1200. @click="jumpinfoJump(scope.row)"
  1201. style="color: #409eff; cursor: pointer"
  1202. >详情</span
  1203. >
  1204. <span v-else-if="item.scope === 'ptai'">{{
  1205. scope.row[item.prop] == 1 ? "微信小程序" : "未知"
  1206. }}</span>
  1207. <span v-else-if="item.scope === 'diffTime'"
  1208. >{{
  1209. scope.row["sectionType"] === 2
  1210. ? scope.row[item.prop1]
  1211. : scope.row[item.prop2]
  1212. }}分钟</span
  1213. >
  1214. <div v-else-if="item.scope === 'isOptions'">
  1215. <template v-for="(itemt, indext) in item.options">
  1216. <span
  1217. :key="indext"
  1218. v-if="itemt.value === scope.row[item.prop]"
  1219. :style="itemt.style ? itemt.style : ''"
  1220. >{{ itemt.label }}</span
  1221. >
  1222. </template>
  1223. </div>
  1224. <div v-else-if="item.scope === 'isOptionsDZYQ'">
  1225. <template v-for="(itemt, indext) in item.options">
  1226. <span
  1227. :key="indext"
  1228. v-if="itemt.value === scope.row[item.prop]"
  1229. :style="itemt.style ? itemt.style : ''"
  1230. >{{
  1231. scope.row["subscribeStatus"] === 1 ? itemt.label : ""
  1232. }}</span
  1233. >
  1234. </template>
  1235. </div>
  1236. <span v-else
  1237. >{{ scope.row[item.prop] }}
  1238. {{
  1239. (scope.row[item.prop] || scope.row[item.prop] === 0) && item.ch
  1240. ? item.ch
  1241. : ""
  1242. }}</span
  1243. >
  1244. </template>
  1245. </el-table-column>
  1246. </template>
  1247. <el-table-column
  1248. label="官方信息推送状态"
  1249. align="center"
  1250. width="180px"
  1251. v-if="navText.gftsStatus"
  1252. >
  1253. <template slot-scope="scope">
  1254. {{
  1255. scope.row.officialStatus === 1
  1256. ? `是(${scope.row.officialNum})`
  1257. : scope.row.officialStatus === 0
  1258. ? "否"
  1259. : ""
  1260. }}
  1261. </template>
  1262. </el-table-column>
  1263. <el-table-column
  1264. label="官方学时推送状态"
  1265. align="center"
  1266. width="180px"
  1267. v-if="navText.gfxsStatus"
  1268. >
  1269. <template slot-scope="scope">
  1270. {{
  1271. scope.row.periodPlush === 1
  1272. ? `是(${scope.row.plushNum})`
  1273. : scope.row.periodPlush === 0
  1274. ? "否"
  1275. : ""
  1276. }}
  1277. </template>
  1278. </el-table-column>
  1279. <el-table-column
  1280. label="官方学习账号开通状态"
  1281. align="center"
  1282. width="180px"
  1283. v-if="navText.gfUserStatus"
  1284. >
  1285. <template slot-scope="scope">
  1286. {{
  1287. scope.row.learnStatus === 1
  1288. ? "是"
  1289. : scope.row.learnStatus === 0
  1290. ? "否"
  1291. : ""
  1292. }}
  1293. </template>
  1294. </el-table-column>
  1295. <el-table-column
  1296. label="操作"
  1297. align="center"
  1298. fixed="right"
  1299. :width="navText.changeWidth ? navText.changeWidth : '180px'"
  1300. v-if="!navText.tableHide"
  1301. >
  1302. <template slot-scope="scope">
  1303. <slot name="btn" :scope="scope"></slot>
  1304. </template>
  1305. </el-table-column>
  1306. </el-table>
  1307. <el-dialog
  1308. :visible.sync="diaBox"
  1309. width="500px"
  1310. :show-close="false"
  1311. :destroy-on-close="true"
  1312. >
  1313. <div slot="title" class="hearders">
  1314. <div class="leftTitle">详情</div>
  1315. <div class="rightBoxs">
  1316. <img
  1317. src="@/assets/images/Close@2x.png"
  1318. alt=""
  1319. @click="closeBeforefs"
  1320. />
  1321. </div>
  1322. </div>
  1323. <el-row class="contentBox" :gutter="30">
  1324. <div style="width: 100%; height: 100%">
  1325. <video
  1326. controls
  1327. preload
  1328. style="width: 100%; height: 100%"
  1329. :src="$methodsTools.splitImgHost(videoUrls)"
  1330. ></video>
  1331. </div>
  1332. </el-row>
  1333. <div slot="footer" class="dialog-footer">
  1334. <el-button @click="closeBeforefs">关闭</el-button>
  1335. </div>
  1336. </el-dialog>
  1337. <el-dialog
  1338. :visible.sync="dialogVisible"
  1339. width="560px"
  1340. :show-close="false"
  1341. :close-on-click-modal="false"
  1342. >
  1343. <div slot="title" class="hearders">
  1344. <div class="leftTitle">课程树形图</div>
  1345. <div class="rightBoxs">
  1346. <img src="@/assets/images/Close@2x.png" alt="" @click="closes" />
  1347. </div>
  1348. </div>
  1349. <div>
  1350. <el-tree
  1351. :key="Math.random()"
  1352. :props="props"
  1353. :load="loadNode"
  1354. lazy
  1355. ></el-tree>
  1356. </div>
  1357. <span slot="footer" class="dialog-footer">
  1358. <el-button @click="closes">取 消</el-button>
  1359. </span>
  1360. </el-dialog>
  1361. <el-dialog
  1362. :visible.sync="diaviosOpen"
  1363. width="560px"
  1364. :show-close="false"
  1365. :close-on-click-modal="false"
  1366. >
  1367. <div slot="title" class="hearders">
  1368. <div class="leftTitle">商品树形图</div>
  1369. <div class="rightBoxs">
  1370. <img
  1371. src="@/assets/images/Close@2x.png"
  1372. alt=""
  1373. @click="diaviosOpen = false"
  1374. />
  1375. </div>
  1376. </div>
  1377. <div>
  1378. <el-tree
  1379. :key="Math.random()"
  1380. :props="props1"
  1381. :load="loadNode1"
  1382. lazy
  1383. ></el-tree>
  1384. </div>
  1385. <span slot="footer" class="dialog-footer">
  1386. <el-button @click="diaviosOpen = false">取 消</el-button>
  1387. </span>
  1388. </el-dialog>
  1389. <el-dialog
  1390. :visible.sync="isShowBoxs"
  1391. width="400px"
  1392. :show-close="false"
  1393. :close-on-click-modal="false"
  1394. >
  1395. <div slot="title" class="hearders">
  1396. <div class="leftTitle">资料变更详情</div>
  1397. <div class="rightBoxs">
  1398. <img
  1399. src="@/assets/images/Close@2x.png"
  1400. alt=""
  1401. @click="isShowBoxs = false"
  1402. />
  1403. </div>
  1404. </div>
  1405. <div style="max-height: 400px; overflow: auto">
  1406. <ul>
  1407. <li
  1408. v-for="(items, indexs) in listBoxsGET"
  1409. :key="indexs"
  1410. style="margin-bottom: 30px"
  1411. >
  1412. <p>{{ $methodsTools.onlyForma(items.createTime) }}</p>
  1413. <p style="padding-left: 14px; color: #999">
  1414. 姓名:{{ items.realname }}
  1415. </p>
  1416. <p style="padding-left: 14px; color: #999">
  1417. 身份证号码:{{ items.idCard }}
  1418. </p>
  1419. <p style="padding-left: 14px; color: #999">
  1420. 绑定手机号码:{{ items.telphone }}
  1421. </p>
  1422. </li>
  1423. </ul>
  1424. </div>
  1425. <span slot="footer" class="dialog-footer">
  1426. <el-button @click="isShowBoxs = false">取 消</el-button>
  1427. </span>
  1428. </el-dialog>
  1429. <el-dialog
  1430. :visible.sync="isShowBoxRebuy"
  1431. width="600px"
  1432. :show-close="false"
  1433. :close-on-click-modal="false"
  1434. >
  1435. <div slot="title" class="hearders">
  1436. <div class="leftTitle">复购-学时冲突提示</div>
  1437. <div class="rightBoxs">
  1438. <img
  1439. src="@/assets/images/Close@2x.png"
  1440. alt=""
  1441. @click="isShowBoxRebuy = false"
  1442. />
  1443. </div>
  1444. </div>
  1445. <div style="max-height: 400px; overflow: auto">
  1446. <ul>
  1447. <li
  1448. v-for="(item, index) in rebuyInfos"
  1449. :key="index"
  1450. style="margin-bottom: 10px"
  1451. >
  1452. 学员曾购买过此商品【<span style="color: red"
  1453. >{{ item.orderSn }} - {{ item.goodsName }}</span
  1454. >】,所在班级【{{
  1455. item.gradeName
  1456. }}】的【官方学时推送状态为:是】,如为重复申报学时请及时联系学员并关闭订单。
  1457. </li>
  1458. </ul>
  1459. </div>
  1460. <span slot="footer" class="dialog-footer">
  1461. <el-button @click="isShowBoxRebuy = false">取 消</el-button>
  1462. </span>
  1463. </el-dialog>
  1464. <el-dialog
  1465. :visible.sync="diaviosTKOpen"
  1466. width="560px"
  1467. :show-close="false"
  1468. :close-on-click-modal="false"
  1469. >
  1470. <div slot="title" class="hearders">
  1471. <div class="leftTitle">商品树形图</div>
  1472. <div class="rightBoxs">
  1473. <img
  1474. src="@/assets/images/Close@2x.png"
  1475. alt=""
  1476. @click="diaviosTKOpen = false"
  1477. />
  1478. </div>
  1479. </div>
  1480. <div>
  1481. <el-tree
  1482. :key="Math.random()"
  1483. :props="props2"
  1484. :load="loadNode2"
  1485. lazy
  1486. ></el-tree>
  1487. </div>
  1488. <span slot="footer" class="dialog-footer">
  1489. <el-button @click="diaviosTKOpen = false">取 消</el-button>
  1490. </span>
  1491. </el-dialog>
  1492. <el-dialog
  1493. :visible.sync="goosListBoxs"
  1494. width="560px"
  1495. :show-close="false"
  1496. :close-on-click-modal="false"
  1497. >
  1498. <div slot="title" class="hearders">
  1499. <div class="leftTitle">所购商品</div>
  1500. <div class="rightBoxs">
  1501. <img
  1502. src="@/assets/images/Close@2x.png"
  1503. alt=""
  1504. @click="goosListBoxs = false"
  1505. />
  1506. </div>
  1507. </div>
  1508. <div>
  1509. <div class="zdyBoxStyle">
  1510. <div
  1511. class="zdyBtnstyle"
  1512. style="margin-right: 20px"
  1513. :class="goodsActiveIndex === 1 ? 'goodsActiveStyle' : ''"
  1514. @click="getGoodsAboutList(1)"
  1515. >
  1516. 视频商品
  1517. </div>
  1518. <div
  1519. class="zdyBtnstyle"
  1520. :class="goodsActiveIndex === 2 ? 'goodsActiveStyle' : ''"
  1521. @click="getGoodsAboutList(2)"
  1522. >
  1523. 题库商品
  1524. </div>
  1525. </div>
  1526. <ul class="overBoxs" v-if="goodsList.length">
  1527. <li v-for="(item, index) in goodsList" :key="index" class="liSYTS">
  1528. <div style="margin-bottom: 10px">
  1529. 支付时间:{{ $methodsTools.onlyForma(item.createTime) }}
  1530. </div>
  1531. <div style="margin-bottom: 10px">商品编码:{{ item.code }}</div>
  1532. <div>商品名称:{{ item.goodsName }}</div>
  1533. </li>
  1534. </ul>
  1535. <div v-else style="text-align: center; margin-top: 20px">
  1536. 暂无相关商品
  1537. </div>
  1538. </div>
  1539. <span slot="footer" class="dialog-footer">
  1540. <el-button @click="goosListBoxs = false">取 消</el-button>
  1541. </span>
  1542. </el-dialog>
  1543. </div>
  1544. </template>
  1545. <script>
  1546. export default {
  1547. props: ["tableSets", "tableData", "navText", "rowKey", "loading"],
  1548. data: function () {
  1549. return {
  1550. diaviosOpen: false,
  1551. diaviosTKOpen: false,
  1552. dialogVisible: false,
  1553. goosListBoxs: false,
  1554. goodsActiveIndex: 1,
  1555. goodsList: [],
  1556. rebuyInfos: [],
  1557. tableSet: this.tableSets,
  1558. allCheckData: [], //表格多选
  1559. checkAll: true,
  1560. checkedCities: [], //自定义列 选中数组
  1561. cities: [], //自定义列 总数组
  1562. isIndeterminate: false,
  1563. videoUrls: "",
  1564. diaBox: false,
  1565. isShowBoxs: false,
  1566. isShowBoxRebuy: false,
  1567. listBoxsGET: [],
  1568. props: {
  1569. label(data, node) {
  1570. return data.menuName || data.name;
  1571. },
  1572. isLeaf(data, node) {
  1573. return data.hasChildren ? false : true;
  1574. },
  1575. },
  1576. props1: {
  1577. label(data, node) {
  1578. return data.courseName || data.menuName || data.name;
  1579. },
  1580. isLeaf(data, node) {
  1581. return data.hasChildren ? false : true;
  1582. },
  1583. },
  1584. props2: {
  1585. label(data, node) {
  1586. return data.examName || data.menuName || data.name;
  1587. },
  1588. isLeaf(data, node) {
  1589. return data.hasChildren ? false : true;
  1590. },
  1591. },
  1592. treeDatas: [],
  1593. treeDatas1: [],
  1594. treeDatas2: [],
  1595. };
  1596. },
  1597. computed: {
  1598. numTime: function () {
  1599. return function (res) {
  1600. return Number(res / 3600).toFixed(2);
  1601. };
  1602. },
  1603. numTimeminute: function () {
  1604. return function (res) {
  1605. return Number(res / 60).toFixed(2);
  1606. };
  1607. },
  1608. compType: function () {
  1609. return function (res, data) {
  1610. if (data === "POST") {
  1611. if (res.indexOf("edit") !== -1 || res.indexOf("update") !== -1) {
  1612. return "修改";
  1613. } else {
  1614. return "新增";
  1615. }
  1616. } else if (data === "GET") {
  1617. return "查询";
  1618. }
  1619. };
  1620. },
  1621. },
  1622. created() {
  1623. this.inittableSet = JSON.stringify(this.tableSet);
  1624. this.initTR();
  1625. },
  1626. mounted() {},
  1627. methods: {
  1628. /**
  1629. * @param {Array} 学员数据— 学员管理-所购商品
  1630. */
  1631. openGoodsListBoxs(option, int) {
  1632. this.goosListBoxs = true;
  1633. this.copyUserInfo = option;
  1634. this.$api
  1635. .inquireOrderList({ goodsType: int, userId: option.userId })
  1636. .then((res) => {
  1637. this.goodsActiveIndex = int;
  1638. this.goodsList = res.rows;
  1639. });
  1640. },
  1641. /**
  1642. * 点击商品类型切换请求新数据
  1643. */
  1644. getGoodsAboutList(int) {
  1645. this.$api
  1646. .inquireOrderList({ goodsType: int, userId: this.copyUserInfo.userId })
  1647. .then((res) => {
  1648. this.goodsActiveIndex = int;
  1649. this.goodsList = res.rows;
  1650. });
  1651. },
  1652. isShowBoxsFun(item) {
  1653. this.$api.inquireuserUpdateListsy({ userId: item.userId }).then((res) => {
  1654. this.listBoxsGET = res.rows;
  1655. this.isShowBoxs = true;
  1656. // this.$api
  1657. // .editgradestudentuserUpdate({ userId: item.userId, status: 1 })
  1658. // .then((result) => {});
  1659. });
  1660. },
  1661. /**
  1662. * 查看复购信息
  1663. */
  1664. isShowRebuy(item) {
  1665. this.$api
  1666. .inquireOrderRebuyInfo({
  1667. orderGoodsId: item.orderGoodsId,
  1668. userId: item.userId,
  1669. goodsId: item.goodsId,
  1670. })
  1671. .then((res) => {
  1672. this.rebuyInfos = res.rows;
  1673. this.isShowBoxRebuy = true;
  1674. });
  1675. },
  1676. sortMethods(a, b) {
  1677. return a.classGradeUserGoodsVoList.length >
  1678. b.classGradeUserGoodsVoList.length
  1679. ? -1
  1680. : 1;
  1681. },
  1682. /**
  1683. * int: 1 节列表-关联章 2 章列表-关联模块 3 模块列表-关联课程 4 课程列表-关联商品 5 题目列表-关联试卷 6 试卷列表-关联商品 7 章卷列表-关联商品 8 模块列表-关联商品
  1684. */
  1685. jumpPages(v, int) {
  1686. if (int === 1) {
  1687. this.$router.push({
  1688. path: "/resource/videoManagement/chapterEdit",
  1689. query: {
  1690. id: v.chapterId,
  1691. },
  1692. });
  1693. }
  1694. if (int === 2) {
  1695. this.$router.push({
  1696. path: "/resource/videoManagement/moduleManagementEdit",
  1697. query: {
  1698. id: v.moduleId,
  1699. },
  1700. });
  1701. }
  1702. if (int === 3) {
  1703. this.$router.push({
  1704. path: "/resource/videoManagement/editCourse",
  1705. query: {
  1706. id: v.courseId,
  1707. },
  1708. });
  1709. }
  1710. if (int === 4) {
  1711. this.$router.push({
  1712. path: "/Marketing/commodityManageMentEdit",
  1713. query: {
  1714. id: v.goodsId,
  1715. },
  1716. });
  1717. }
  1718. if (int === 5) {
  1719. this.$router.push({
  1720. path: "/resource/bankManagement/editPaper",
  1721. query: {
  1722. id: v.examId,
  1723. },
  1724. });
  1725. }
  1726. if (int === 6) {
  1727. this.$router.push({
  1728. path: "/Marketing/commodityManageMentEdit",
  1729. query: {
  1730. id: v.goodsId,
  1731. },
  1732. });
  1733. }
  1734. if (int === 7) {
  1735. this.$router.push({
  1736. path: "/Marketing/commodityManageMentEdit",
  1737. query: {
  1738. id: v.goodsId,
  1739. },
  1740. });
  1741. }
  1742. if (int === 8) {
  1743. this.$router.push({
  1744. path: "/Marketing/commodityManageMentEdit",
  1745. query: {
  1746. id: v.goodsId,
  1747. },
  1748. });
  1749. }
  1750. },
  1751. jumpClass(v) {
  1752. this.$router.push({
  1753. path: "/education/classManageMent/studentMenu",
  1754. query: {
  1755. id: v.gradeId,
  1756. goodsId: v.id,
  1757. },
  1758. });
  1759. },
  1760. getSimpleText(html) {
  1761. var re1 = new RegExp("<.+?>", "g"); //匹配html标签的正则表达式,"g"是搜索匹配多个符合的内容
  1762. var msg = html.replace(re1, ""); //执行替换成空字符
  1763. return msg;
  1764. },
  1765. //树形图关闭
  1766. closes() {
  1767. this.dialogVisible = false;
  1768. },
  1769. activesBoxszing(ids) {
  1770. this.$api.inquireCoursemenuListS({ courseId: ids }).then((res) => {
  1771. res.rows.forEach((item) => {
  1772. item.TypeId = item.type + "-" + item.menuId;
  1773. });
  1774. this.treeDatas = res.rows;
  1775. this.dialogVisible = true;
  1776. });
  1777. },
  1778. loadNode(node, resolve) {
  1779. if (node.level === 0) {
  1780. this.treeDatas.forEach((item) => {
  1781. if (item.type === 1) {
  1782. item.hasChildren = true;
  1783. }
  1784. if (item.type === 2) {
  1785. item.hasChildren = true;
  1786. }
  1787. if (item.type === 3) {
  1788. item.hasChildren = false;
  1789. }
  1790. });
  1791. return resolve(this.treeDatas);
  1792. } else {
  1793. if (node.data.type === 1) {
  1794. this.$api
  1795. .inquireCourseListmodulechapter(node.data.menuId)
  1796. .then((res) => {
  1797. res.data.forEach((item) => {
  1798. item.TypeId = 2 + "-" + item.chapterId;
  1799. item.hasChildren = true;
  1800. item.menuId = item.chapterId;
  1801. item.type = 2;
  1802. });
  1803. return resolve(res.data);
  1804. });
  1805. }
  1806. if (node.data.type === 2) {
  1807. this.$api
  1808. .inquireCoursechaptersectionlist(node.data.menuId)
  1809. .then((res) => {
  1810. res.data.forEach((item) => {
  1811. item.TypeId = 3 + "-" + item.sectionId;
  1812. item.type = 3;
  1813. });
  1814. return resolve(res.data);
  1815. });
  1816. }
  1817. if (node.data.type === 3) {
  1818. return resolve([]);
  1819. }
  1820. }
  1821. },
  1822. diavios(ids) {
  1823. this.$api.obtainCourseSgoodsId(ids).then((res) => {
  1824. res.rows.forEach((item) => {
  1825. item.TypeId = "0-" + item.courseId;
  1826. item.type = 0;
  1827. item.hasChildren = true;
  1828. });
  1829. this.treeDatas1 = res.rows;
  1830. this.diaviosOpen = true;
  1831. });
  1832. },
  1833. loadNode1(node, resolve) {
  1834. if (node.level === 0) {
  1835. return resolve(this.treeDatas1);
  1836. } else {
  1837. if (node.data.type === 0) {
  1838. this.$api
  1839. .inquireCoursemenuListS({ courseId: node.data.courseId })
  1840. .then((res) => {
  1841. res.rows.forEach((item) => {
  1842. item.TypeId = 1 + "-" + item.menuId;
  1843. item.hasChildren = item.type === 3 ? false : true;
  1844. item.menuId = item.menuId;
  1845. });
  1846. return resolve(res.rows);
  1847. });
  1848. }
  1849. if (node.data.type === 1) {
  1850. this.$api
  1851. .inquireCourseListmodulechapter(node.data.menuId)
  1852. .then((res) => {
  1853. res.data.forEach((item) => {
  1854. item.TypeId = 2 + "-" + item.chapterId;
  1855. item.hasChildren = true;
  1856. item.menuId = item.chapterId;
  1857. item.type = 2;
  1858. });
  1859. return resolve(res.data);
  1860. });
  1861. }
  1862. if (node.data.type === 2) {
  1863. this.$api
  1864. .inquireCoursechaptersectionlist(node.data.menuId)
  1865. .then((res) => {
  1866. res.data.forEach((item) => {
  1867. item.TypeId = 3 + "-" + item.sectionId;
  1868. item.type = 3;
  1869. });
  1870. return resolve(res.data);
  1871. });
  1872. }
  1873. if (node.data.type === 3) {
  1874. return resolve([]);
  1875. }
  1876. }
  1877. },
  1878. diaviosTK(ids) {
  1879. this.$api.inquireGoodsbanklist({ goodsId: ids }).then((res) => {
  1880. res.data.forEach((item) => {
  1881. item.TypeId = item.type + "-" + item.majorId;
  1882. item.hasChildren = item.type === 3 ? false : true;
  1883. });
  1884. this.treeDatas2 = res.data;
  1885. this.diaviosTKOpen = true;
  1886. });
  1887. },
  1888. loadNode2(node, resolve) {
  1889. if (node.level === 0) {
  1890. return resolve(this.treeDatas2);
  1891. } else {
  1892. if (node.data.type === 1) {
  1893. this.$api
  1894. .inquireBankchapterModule({ moduleExamId: node.data.majorId })
  1895. .then((res) => {
  1896. res.data.forEach((item) => {
  1897. item.TypeId = 2 + "-" + item.chapterExamId;
  1898. item.menuId = item.chapterExamId;
  1899. item.type = 2;
  1900. });
  1901. return resolve(res.data);
  1902. });
  1903. }
  1904. if (node.data.type === 2) {
  1905. this.$api
  1906. .inquirebankchapterexamList({
  1907. chapterExamId: node.data.majorId,
  1908. })
  1909. .then((res) => {
  1910. res.data.forEach((item) => {
  1911. item.TypeId = 3 + "-" + item.examId;
  1912. item.type = 3;
  1913. });
  1914. return resolve(res.data);
  1915. });
  1916. }
  1917. if (node.data.type === 3) {
  1918. return resolve([]);
  1919. }
  1920. }
  1921. },
  1922. timeStyle(column) {
  1923. if (column.columnIndex === 0 && this.navText.firstColLeft) {
  1924. return "text-align:left!important; padding-left: 40px;";
  1925. }
  1926. },
  1927. //初始化
  1928. initTR() {
  1929. this.cities = [];
  1930. this.checkedCities = [];
  1931. this.checkAll = true;
  1932. this.isIndeterminate = false;
  1933. this.tableSet.forEach((item, index) => {
  1934. this.cities.push(item.label);
  1935. if (item.hidden) {
  1936. this.checkedCities.push(item.label);
  1937. }
  1938. });
  1939. if (this.checkedCities.length === 0) {
  1940. this.isIndeterminate = false;
  1941. } else if (this.checkedCities.length === this.cities.length) {
  1942. this.isIndeterminate = false;
  1943. this.checkAll = true;
  1944. } else {
  1945. this.isIndeterminate = true;
  1946. this.checkAll = false;
  1947. }
  1948. },
  1949. //自定义列全选按钮触发
  1950. handleCheckAllChange(val) {
  1951. console.log(val, 123);
  1952. this.checkedCities = val ? this.cities : [];
  1953. this.isIndeterminate = false;
  1954. if (val) {
  1955. this.tableSet.forEach((item, index) => {
  1956. item.hidden = true;
  1957. });
  1958. } else {
  1959. this.tableSet.forEach((item, index) => {
  1960. item.hidden = false;
  1961. });
  1962. }
  1963. },
  1964. // 勾选自定义列子选项
  1965. handleCheckedCitiesChange(value) {
  1966. let checkedCount = value.length;
  1967. this.checkAll = checkedCount === this.cities.length;
  1968. this.isIndeterminate =
  1969. checkedCount > 0 && checkedCount < this.cities.length;
  1970. },
  1971. checkboxChange(v, e) {
  1972. this.tableSet.forEach((item) => {
  1973. if (item.label === v) {
  1974. item.hidden = e;
  1975. }
  1976. });
  1977. },
  1978. //自定义列重置
  1979. initVue() {
  1980. // this.$emit("initTableset");
  1981. this.tableSet = JSON.parse(this.inittableSet);
  1982. this.initTR();
  1983. },
  1984. // 下移
  1985. downMove(option, index) {
  1986. if (index !== this.tableSet.length - 1) {
  1987. this.tableSet[index] = this.tableSet.splice(
  1988. index + 1,
  1989. 1,
  1990. this.tableSet[index]
  1991. )[0];
  1992. this.cities[index] = this.cities.splice(
  1993. index + 1,
  1994. 1,
  1995. this.cities[index]
  1996. )[0];
  1997. } else {
  1998. this.tableSet.unshift(this.tableSet.splice(index, 1)[0]);
  1999. this.cities.unshift(this.cities.splice(index, 1)[0]);
  2000. }
  2001. },
  2002. // 上移
  2003. upMove(option, index) {
  2004. if (index != 0) {
  2005. this.tableSet[index] = this.tableSet.splice(
  2006. index - 1,
  2007. 1,
  2008. this.tableSet[index]
  2009. )[0];
  2010. this.cities[index] = this.cities.splice(
  2011. index - 1,
  2012. 1,
  2013. this.cities[index]
  2014. )[0];
  2015. } else {
  2016. this.tableSet.push(this.tableSet.shift());
  2017. this.cities.push(this.cities.shift());
  2018. }
  2019. },
  2020. //跳转页面
  2021. jumpPage(options) {
  2022. this.$router.push({
  2023. path: "dictData",
  2024. query: {
  2025. dictId: options.dictId,
  2026. dictType: options.dictType,
  2027. },
  2028. });
  2029. },
  2030. //跳转页面
  2031. jumpPageLabel(options) {
  2032. this.$router.push({
  2033. path: "labelInfos",
  2034. query: {
  2035. id: options.id,
  2036. },
  2037. });
  2038. }, //跳转页面
  2039. jumpPageLabelProfess(options) {
  2040. this.$router.push({
  2041. path: "labelInfos",
  2042. query: {
  2043. id: options.labelId,
  2044. },
  2045. });
  2046. },
  2047. jumpinfoJump(options) {
  2048. this.$router.push({
  2049. path: "beneficiaryInfos",
  2050. query: {
  2051. id: options.payeeId,
  2052. },
  2053. });
  2054. },
  2055. //新增按钮
  2056. addClick() {
  2057. this.$emit("addClick");
  2058. },
  2059. //将选中值传回调用组件
  2060. backFather() {
  2061. this.$emit("emitData", this.allCheckData);
  2062. },
  2063. edit() {},
  2064. selectAll(value) {
  2065. this.allCheckData = value;
  2066. },
  2067. select(value) {
  2068. this.allCheckData = value;
  2069. },
  2070. load(tree, treeNode, resolve) {
  2071. this.$emit("load", tree, treeNode, resolve);
  2072. },
  2073. editInfo(option, int) {
  2074. if (int === 3) {
  2075. this.$emit("aboutGoods", option);
  2076. } else {
  2077. this.$emit("editInfo", option);
  2078. }
  2079. },
  2080. jumpPeolpe(item, type) {
  2081. if (type === 1) {
  2082. this.$router.push({
  2083. path: "applicationData",
  2084. query: {
  2085. id: item.applyId,
  2086. type: type,
  2087. },
  2088. });
  2089. }
  2090. if (type === 2) {
  2091. this.$router.push({
  2092. path: "applicationData",
  2093. query: {
  2094. id: item.beforeId,
  2095. type: type,
  2096. },
  2097. });
  2098. }
  2099. },
  2100. getxq(option) {
  2101. this.$emit("getxq", option.userId);
  2102. },
  2103. openVideo(url) {
  2104. this.videoUrls = url;
  2105. this.diaBox = true;
  2106. },
  2107. closeBeforefs() {
  2108. this.diaBox = false;
  2109. },
  2110. },
  2111. };
  2112. </script>
  2113. <style lang="less">
  2114. .max-heightStyles {
  2115. max-height: 500px;
  2116. overflow-y: auto;
  2117. }
  2118. .overSty {
  2119. white-space: nowrap;
  2120. overflow-x: auto;
  2121. &::-webkit-scrollbar {
  2122. width: 14px;
  2123. height: 14px;
  2124. }
  2125. &::-webkit-scrollbar-track,
  2126. &::-webkit-scrollbar-thumb {
  2127. border-radius: 999px;
  2128. border: 5px solid transparent;
  2129. }
  2130. &::-webkit-scrollbar-track {
  2131. box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) inset;
  2132. }
  2133. &::-webkit-scrollbar-thumb {
  2134. min-height: 20px;
  2135. background-clip: content-box;
  2136. box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.2) inset;
  2137. }
  2138. &::-webkit-scrollbar-corner {
  2139. background: transparent;
  2140. }
  2141. }
  2142. .slotPopper {
  2143. padding: 0px !important;
  2144. }
  2145. </style>
  2146. <style lang="less" scoped>
  2147. #tableList {
  2148. padding: 0px 16px 16px;
  2149. border-radius: 8px;
  2150. box-shadow: 0px 0px 9px 1px rgba(28, 41, 90, 0.1);
  2151. background: #ffffff;
  2152. .headerNavTool {
  2153. height: 72px;
  2154. display: flex;
  2155. justify-content: space-between;
  2156. align-items: center;
  2157. .rightBtnBox {
  2158. display: flex;
  2159. align-items: center;
  2160. }
  2161. }
  2162. }
  2163. .goodsListStyle {
  2164. cursor: pointer;
  2165. color: blue;
  2166. }
  2167. .popoverDis {
  2168. display: flex;
  2169. flex-direction: column;
  2170. align-items: flex-start;
  2171. font-size: 14px;
  2172. .checkboxHeader {
  2173. height: 40px;
  2174. display: flex;
  2175. align-items: center;
  2176. justify-content: space-between;
  2177. padding-left: 13px;
  2178. padding-right: 15px;
  2179. width: 100%;
  2180. .initbtns {
  2181. color: #47a6ff;
  2182. cursor: pointer;
  2183. }
  2184. }
  2185. .checkboxGroup {
  2186. display: flex;
  2187. flex-direction: column;
  2188. width: 100%;
  2189. .checkboxchild {
  2190. width: 100%;
  2191. justify-content: space-between;
  2192. height: 40px;
  2193. display: flex;
  2194. align-items: center;
  2195. padding: 0px 15px 0px 13px;
  2196. transition: all 0.4s;
  2197. &:hover {
  2198. background-color: #ecf5ff;
  2199. }
  2200. &:hover .icon-right {
  2201. display: flex;
  2202. }
  2203. .icon-right {
  2204. display: flex;
  2205. align-items: center;
  2206. width: 30px;
  2207. height: 30px;
  2208. color: #666;
  2209. font-size: 14px;
  2210. display: none;
  2211. i {
  2212. cursor: pointer;
  2213. margin: 0px 3px;
  2214. &:hover {
  2215. color: #47a6ff;
  2216. }
  2217. }
  2218. }
  2219. }
  2220. }
  2221. }
  2222. /deep/.el-checkbox__input.is-checked + .el-checkbox__label {
  2223. color: #666;
  2224. }
  2225. .imgboxsq {
  2226. margin: 0 auto;
  2227. height: 60px;
  2228. max-height: 60px;
  2229. .el_images {
  2230. /deep/.el-image__inner {
  2231. width: auto;
  2232. }
  2233. }
  2234. }
  2235. .imgHover {
  2236. width: 100%;
  2237. height: 100%;
  2238. cursor: pointer;
  2239. }
  2240. .cvideo {
  2241. transition: all 0.2s;
  2242. color: #333;
  2243. cursor: pointer;
  2244. font-size: 30px;
  2245. }
  2246. .cvideo:hover {
  2247. color: #47a6ff;
  2248. }
  2249. .editInfoSty {
  2250. cursor: pointer;
  2251. color: blue;
  2252. }
  2253. .ulAuto {
  2254. display: flex;
  2255. justify-content: center;
  2256. align-items: center;
  2257. }
  2258. .ulAutos {
  2259. display: flex;
  2260. align-items: center;
  2261. justify-content: center;
  2262. }
  2263. .dis_sdt {
  2264. display: flex;
  2265. align-items: flex-end;
  2266. ul {
  2267. margin: 0px;
  2268. li {
  2269. text-align: left;
  2270. }
  2271. }
  2272. }
  2273. .jumpClass {
  2274. color: #333;
  2275. cursor: pointer;
  2276. }
  2277. .jumpStys {
  2278. color: blue;
  2279. cursor: pointer;
  2280. }
  2281. .zdyBoxStyle {
  2282. display: flex;
  2283. align-items: center;
  2284. justify-content: center;
  2285. .zdyBtnstyle {
  2286. padding: 4px 16px;
  2287. border-radius: 4px;
  2288. border: 1px solid #666;
  2289. color: #666;
  2290. cursor: pointer;
  2291. }
  2292. .goodsActiveStyle {
  2293. color: #fff;
  2294. background-color: #409eff;
  2295. border-color: #409eff;
  2296. }
  2297. }
  2298. .liSYTS {
  2299. padding: 10px;
  2300. margin-bottom: 16px;
  2301. background: #eee;
  2302. width: 96%;
  2303. }
  2304. .overBoxs {
  2305. max-height: 500px;
  2306. overflow-y: auto;
  2307. }
  2308. </style>