tableList.vue 81 KB

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