tableList.vue 78 KB

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