tableList.vue 92 KB

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