tableList.vue 91 KB

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