tableList.vue 80 KB

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