tableList.vue 90 KB

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