tableList.vue 95 KB

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