tableList.vue 88 KB

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