tableList.vue 64 KB

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