tableList.vue 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208
  1. <template>
  2. <div id="tableList">
  3. <div class="headerNavTool" v-if="navText.headShow !== false">
  4. <div class="leftIndexText">
  5. {{ navText.title }} <strong>{{ navText.index }}</strong> {{ navText.ch
  6. }}<span
  7. style="
  8. color: red;
  9. font-weight: bold;
  10. font-size: 16px;
  11. margin-left: 10px;
  12. "
  13. ><i class="el-icon-warning-outline" style="font-weight: bold"></i>
  14. 鼠标点击数据表数据,再按键盘左右键可以左右滑动数据表数据。</span
  15. >
  16. </div>
  17. <div class="rightBtnBox">
  18. <slot name="customize"></slot>
  19. <el-button
  20. size="medium"
  21. type="primary"
  22. @click="addClick"
  23. v-if="!navText.addHide"
  24. >添加</el-button
  25. >
  26. <el-button
  27. v-if="navText.backFatherBtn && navText.backFatherBtn.status"
  28. size="medium"
  29. type="warning"
  30. @click="backFather"
  31. >{{ navText.backFatherBtn.title }}</el-button
  32. >
  33. <el-popover
  34. popper-class="slotPopper"
  35. placement="bottom-end"
  36. trigger="click"
  37. >
  38. <div class="popoverDis">
  39. <div class="checkboxHeader">
  40. <el-checkbox
  41. :indeterminate="isIndeterminate"
  42. v-model="checkAll"
  43. @change="handleCheckAllChange"
  44. >列展示</el-checkbox
  45. >
  46. <div class="initbtns" @click="initVue">重置</div>
  47. </div>
  48. <div
  49. style="height: 1px; width: 100%; background-color: #eaeefb"
  50. ></div>
  51. <el-checkbox-group
  52. class="checkboxGroup"
  53. v-model="checkedCities"
  54. @change="handleCheckedCitiesChange"
  55. >
  56. <div
  57. class="checkboxchild"
  58. v-for="(item, index) in cities"
  59. :key="index"
  60. >
  61. <el-checkbox
  62. :label="item"
  63. @change="checkboxChange(item, $event)"
  64. >{{ item }}</el-checkbox
  65. >
  66. <div class="icon-right">
  67. <i class="el-icon-upload2" @click="upMove(item, index)"></i>
  68. <i
  69. class="el-icon-download"
  70. @click="downMove(item, index)"
  71. ></i>
  72. </div>
  73. </div>
  74. </el-checkbox-group>
  75. </div>
  76. <el-button
  77. v-if="navText.custom !== false"
  78. style="margin-left: 10px"
  79. size="medium"
  80. slot="reference"
  81. >自定义列</el-button
  82. >
  83. </el-popover>
  84. </div>
  85. </div>
  86. <el-table
  87. :max-height="tableHeight(clientHeight)"
  88. id="allTableList"
  89. :data="tableData"
  90. :span-method="objectSpanMethod"
  91. stripe
  92. style="width: 100%"
  93. @select-all="selectAll"
  94. @select="select"
  95. @sort-change="sortChange"
  96. :row-key="rowKey"
  97. :load="load"
  98. :cell-style="timeStyle"
  99. lazy
  100. :border="true"
  101. ref="pagerset"
  102. v-loading="loading"
  103. :row-class-name="navText.tableColor ? navText.tableColorFunc : ''"
  104. :header-cell-style="{
  105. 'background-color': '#eee',
  106. color: '#333',
  107. fontSize: '14px',
  108. }"
  109. :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
  110. >
  111. <el-table-column
  112. v-if="navText.choiceRadio"
  113. align="center"
  114. type="selection"
  115. :fixed="navText.radioFixed"
  116. width="55"
  117. >
  118. <template slot-scope="scope">
  119. <el-radio
  120. style="margin-left: 10px"
  121. v-model="tableRadio"
  122. :label="scope.row[navText.radioKey]"
  123. @change="radioChange"
  124. >{{ "" }}</el-radio
  125. >
  126. </template>
  127. </el-table-column>
  128. <el-table-column
  129. v-if="navText.choice"
  130. :reserve-selection="navText.openCheckMore"
  131. align="center"
  132. type="selection"
  133. width="55"
  134. header-align="center"
  135. fixed="left"
  136. :selectable="
  137. navText.selectableStatus ? navText.selectableFunc : selectFuncTrue
  138. "
  139. >
  140. </el-table-column>
  141. <el-table-column
  142. v-if="navText.dontNum ? false : true"
  143. type="index"
  144. :index="setIndex"
  145. label="序号"
  146. width="70"
  147. align="center"
  148. header-align="center"
  149. >
  150. </el-table-column>
  151. <af-table-column
  152. v-for="(item, index) in compTableSet(tableSet)"
  153. :width="item.width"
  154. :label="item.label"
  155. :align="item.dontCenter ? 'left' : 'center'"
  156. :sortable="item.prop === 'sort' || item.sort"
  157. :sort-method="sortMethods"
  158. :show-overflow-tooltip="item.showTooltip ? false : true"
  159. header-align="center"
  160. :prop="item.prop"
  161. sort-by="sort"
  162. :key="index"
  163. >
  164. <template slot-scope="scope">
  165. <div class="imgboxsq" v-if="item.scope === 'img'">
  166. <img
  167. style="height: 60px; width: 60px"
  168. v-if="!scope.row[item.prop]"
  169. src="@/assets/404_images/wuyuxaog.png"
  170. alt=""
  171. />
  172. <el-image
  173. v-else
  174. class="el_images"
  175. lazy
  176. :src="$methodsTools.splitImgHost(scope.row[item.prop])"
  177. style="height: 100%; width: 100%"
  178. :preview-src-list="[
  179. $methodsTools.splitImgHost(scope.row[item.prop]),
  180. ]"
  181. alt="加载失败"
  182. >
  183. </el-image>
  184. </div>
  185. <div v-else-if="item.scope === 'sortType'">
  186. <el-input-number
  187. v-model="scope.row[item.prop]"
  188. :min="0"
  189. style="width: 80px"
  190. :controls="false"
  191. @change="blurBackData(scope.row)"
  192. ></el-input-number>
  193. </div>
  194. <template
  195. v-else-if="
  196. item.scope === 'copyTime' && scope.row[item.prop] != null
  197. "
  198. >
  199. <div v-for="(item, index) in scope.row['copyTime']" :key="index">
  200. <span>{{ item }}</span>
  201. </div>
  202. </template>
  203. <span
  204. v-else-if="item.scope === 'status' && scope.row[item.prop] != null"
  205. >{{
  206. Number(scope.row[item.prop]) === 1
  207. ? "启用"
  208. : Number(scope.row[item.prop]) === 0
  209. ? "关闭"
  210. : Number(scope.row[item.prop]) === -1
  211. ? "已删除"
  212. : "未知"
  213. }}</span
  214. >
  215. <span v-else-if="item.scope === 'hasTime'">{{
  216. Number(scope.row[item.prop]) === 1
  217. ? "有效"
  218. : Number(scope.row[item.prop]) === 0
  219. ? "无效"
  220. : "未知"
  221. }}</span>
  222. <span v-else-if="item.scope === 'reStatus'">{{
  223. Number(scope.row[item.prop]) === 1
  224. ? "定时发布"
  225. : Number(scope.row[item.prop]) === 0
  226. ? "手动发布"
  227. : "未知"
  228. }}</span>
  229. <span v-else-if="item.scope === 'fabStatus'">{{
  230. Number(scope.row[item.prop]) === 1
  231. ? "发布"
  232. : Number(scope.row[item.prop]) === 0
  233. ? "未发布"
  234. : "未知"
  235. }}</span>
  236. <span v-else-if="item.scope === 'sectionTypes'">{{
  237. Number(scope.row[item.prop]) === 2
  238. ? "录播"
  239. : Number(scope.row[item.prop]) === 1
  240. ? "直播"
  241. : Number(scope.row[item.prop]) === 3
  242. ? "回放"
  243. : "未知"
  244. }}</span>
  245. <span
  246. v-else-if="
  247. item.scope === 'treeWatch' &&
  248. (scope.row['goodsType'] === 1 ||
  249. scope.row['goodsType'] === 2 ||
  250. scope.row['goodsType'] === 6)
  251. "
  252. style="color: blue"
  253. @click="
  254. scope.row['goodsType'] === 1 || scope.row['goodsType'] === 6
  255. ? diavios(scope.row['goodsId'])
  256. : diaviosTK(scope.row['goodsId'])
  257. "
  258. >结构树视图</span
  259. >
  260. <span v-else-if="item.scope === 'leftCh'">
  261. {{ item.ch }}{{ scope.row[item.prop] }}
  262. </span>
  263. <span
  264. v-else-if="item.scope === 'goodsIds'"
  265. class="editInfoSty"
  266. @click="editInfo(scope.row, 3)"
  267. >
  268. {{
  269. !scope.row[item.prop]
  270. ? 0
  271. : scope.row[item.prop].split(",").map(Number).length
  272. }}
  273. </span>
  274. <span
  275. v-else-if="item.scope === 'aboutSpec'"
  276. style="color: blue; cursor: pointer"
  277. @click="openSpec(scope.row['goodsId'])"
  278. >
  279. {{ scope.row[item.prop] ? "已关联" : "未关联" }}
  280. </span>
  281. <span v-else-if="item.scope === 'liveAndUrl'">{{
  282. scope.row[item.prop] == 2
  283. ? scope.row[item.prop2]
  284. : scope.row[item.prop1]
  285. }}</span>
  286. <ul v-else-if="item.scope === 'mapTypes'" class="ulAuto">
  287. <template v-for="(itm, inds) in scope.row[item.prop]">
  288. <li :key="inds" v-if="inds === 0">
  289. {{ itm.educationName + "-" + itm.projectName }}
  290. </li>
  291. </template>
  292. <el-popover :key="Math.random()" placement="right" trigger="click">
  293. <ul>
  294. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  295. {{ inds + 1 }}、
  296. {{ itm.educationName + "-" + itm.projectName }}
  297. </li>
  298. </ul>
  299. <el-button
  300. slot="reference"
  301. style="margin-left: 6px"
  302. type="text"
  303. v-if="scope.row[item.prop].length > 1"
  304. size="mini"
  305. >更多</el-button
  306. >
  307. </el-popover>
  308. </ul>
  309. <ul v-else-if="item.scope === 'mapTypesBUS'" class="ulAuto">
  310. <template v-for="(itm, inds) in scope.row[item.prop]">
  311. <li :key="inds" v-if="inds === 0">
  312. {{
  313. itm.educationName +
  314. "-" +
  315. itm.projectName +
  316. "-" +
  317. itm.businessName
  318. }}
  319. </li>
  320. </template>
  321. <el-popover :key="Math.random()" placement="right" trigger="click">
  322. <ul>
  323. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  324. {{ inds + 1 }}、
  325. {{
  326. itm.educationName +
  327. "-" +
  328. itm.projectName +
  329. "-" +
  330. itm.businessName
  331. }}
  332. </li>
  333. </ul>
  334. <el-button
  335. slot="reference"
  336. style="margin-left: 6px"
  337. type="text"
  338. v-if="scope.row[item.prop].length > 1"
  339. size="mini"
  340. >更多</el-button
  341. >
  342. </el-popover>
  343. </ul>
  344. <div v-else-if="item.scope === 'splits'" class="dis_sdt">
  345. <ul>
  346. <template v-for="(itm, inds) in scope.row[item.prop]">
  347. <li :key="inds" v-if="inds < 2">
  348. {{ itm }}
  349. </li>
  350. </template>
  351. </ul>
  352. <el-popover :key="Math.random()" placement="right" trigger="click">
  353. <ul>
  354. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  355. {{ inds + 1 }}、
  356. {{ itm }}
  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. </div>
  369. <div v-else-if="item.scope === 'goodsList'" class="ulAuto">
  370. <ul>
  371. <template v-for="(itm, inds) in scope.row[item.prop]">
  372. <li :key="inds" v-if="inds === 0">
  373. {{ itm.goodsName }}
  374. </li>
  375. </template>
  376. </ul>
  377. <el-popover :key="Math.random()" placement="right" trigger="click">
  378. <ul>
  379. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  380. {{ inds + 1 }}、
  381. {{ itm.goodsName }}
  382. </li>
  383. </ul>
  384. <el-button
  385. slot="reference"
  386. style="margin-left: 6px"
  387. type="text"
  388. v-if="scope.row[item.prop].length > 1"
  389. size="mini"
  390. >更多</el-button
  391. >
  392. </el-popover>
  393. </div>
  394. <div v-else-if="item.scope === 'aboutChapter'" class="ulAuto">
  395. <ul>
  396. <template v-for="(itm, inds) in scope.row[item.prop]">
  397. <li
  398. class="jumpStys"
  399. :key="inds"
  400. v-if="inds === 0"
  401. @click="jumpPages(itm, item.int)"
  402. >
  403. {{ itm[item.prop1] }}
  404. </li>
  405. </template>
  406. </ul>
  407. <el-popover :key="Math.random()" placement="right" trigger="click">
  408. <ul>
  409. <li
  410. v-for="(itm, inds) in scope.row[item.prop]"
  411. :key="inds"
  412. class="jumpStys"
  413. @click="jumpPages(itm, item.int)"
  414. >
  415. {{ inds + 1 }}、
  416. {{ itm[item.prop1] }}
  417. </li>
  418. </ul>
  419. <el-button
  420. slot="reference"
  421. style="margin-left: 6px"
  422. type="text"
  423. v-if="scope.row[item.prop].length > 1"
  424. size="mini"
  425. >更多</el-button
  426. >
  427. </el-popover>
  428. </div>
  429. <ul v-else-if="item.scope === 'mapTypesMores'" class="ulAuto">
  430. <template v-for="(itm, inds) in scope.row[item.prop]">
  431. <li :key="inds" v-if="inds === 0">
  432. {{
  433. itm.educationName +
  434. "-" +
  435. itm.projectName +
  436. "-" +
  437. itm.businessName +
  438. "-" +
  439. itm.subjectName
  440. }}
  441. </li>
  442. </template>
  443. <el-popover :key="Math.random()" placement="right" trigger="click">
  444. <ul style="overflow: auto; max-height: 500px">
  445. <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
  446. {{ inds + 1 }}、
  447. {{
  448. itm.educationName +
  449. "-" +
  450. itm.projectName +
  451. "-" +
  452. itm.businessName +
  453. "-" +
  454. itm.subjectName
  455. }}
  456. </li>
  457. </ul>
  458. <el-button
  459. slot="reference"
  460. style="margin-left: 6px"
  461. type="text"
  462. v-if="scope.row[item.prop].length > 1"
  463. size="mini"
  464. >更多</el-button
  465. >
  466. </el-popover>
  467. </ul>
  468. <div v-else-if="item.scope === 'htmlInfo'">
  469. <bankMsg ref="bankMsg" :bankMsg="scope.row" />
  470. </div>
  471. <div v-else-if="item.scope === 'video'">
  472. <i
  473. v-if="scope.row[item.prop][item.prop1] !== null"
  474. class="el-icon-video-play cvideo"
  475. @click="
  476. openVideo(
  477. $methodsTools.splitImgHost(scope.row[item.prop][item.prop1])
  478. )
  479. "
  480. ></i>
  481. </div>
  482. <div
  483. v-else-if="item.scope === 'PDF'"
  484. style="display: flex; align-items: center"
  485. >
  486. <a
  487. v-if="scope.row[item.prop][item.prop1] !== null"
  488. :href="
  489. $methodsTools.splitImgHost(scope.row[item.prop][item.prop1])
  490. "
  491. target="_blank"
  492. style="
  493. display: block;
  494. width: 35px;
  495. height: 45px;
  496. margin-right: 10px;
  497. "
  498. >
  499. <img class="imgHover" src="@/assets/images/pdf@3x.png" alt="" />
  500. </a>
  501. <div>{{ scope.row[item.prop][item.prop2] }}</div>
  502. </div>
  503. <div
  504. v-else-if="item.scope === 'openDialog'"
  505. class="open_style"
  506. @click="openDialog(scope.row)"
  507. >
  508. {{ item.name ? item.name : scope.row[item.prop] }}
  509. </div>
  510. <span v-else-if="item.scope === 'Salary'">
  511. {{ scope.row[item.prop1] === 1 ? "月薪" : "年薪" }}
  512. {{
  513. scope.row[item.prop2] === scope.row[item.prop3]
  514. ? scope.row[item.prop2]
  515. : scope.row[item.prop2] + "~" + scope.row[item.prop3]
  516. }}
  517. </span>
  518. <template v-else-if="item.scope === 'courseAbout'">
  519. <div v-for="(item, index) in scope.row[item.prop]" :key="index">
  520. {{ item.courseName }} ({{ item.aliasName }})
  521. </div>
  522. </template>
  523. <span v-else-if="item.scope === 'cashRatio'">
  524. {{ scope.row[item.prop]
  525. }}{{ scope.row["cashType"] === 1 ? "%" : "" }}
  526. </span>
  527. <span v-else-if="item.scope === 'convert'">{{
  528. $methodsTools.secondToDate(scope.row[item.prop], false)
  529. }}</span>
  530. <div v-else-if="item.scope === 'studentServicePeriod'">
  531. <span v-if="scope.row[item.prop1] === 1"
  532. >{{ scope.row[item.prop2] }}年</span
  533. >
  534. <span v-if="scope.row[item.prop1] === 2"
  535. >{{ scope.row[item.prop2] }}月</span
  536. >
  537. <span v-if="scope.row[item.prop1] === 3"
  538. >{{ scope.row[item.prop2] }}日</span
  539. >
  540. <span v-if="scope.row[item.prop1] === 4">
  541. {{ $methodsTools.onlyForma(scope.row[item.prop3]) }}
  542. {{ scope.row[item.prop3] && scope.row[item.prop4] ? "至" : "" }}
  543. {{ $methodsTools.onlyForma(scope.row[item.prop4]) }}
  544. </span>
  545. </div>
  546. <span v-else-if="item.scope === 'address'"
  547. >{{
  548. scope.row[item.prop1] +
  549. scope.row[item.prop2] +
  550. scope.row[item.prop3]
  551. }}{{ scope.row[item.prop4] ? scope.row[item.prop4] : "" }}</span
  552. >
  553. <span v-else-if="item.scope === 'sex'">
  554. {{
  555. scope.row[item.prop] == 1
  556. ? "男"
  557. : scope.row[item.prop] == 2
  558. ? "女"
  559. : "未知"
  560. }}
  561. </span>
  562. <span v-else-if="item.scope === 'type'">
  563. {{ item.values[scope.row[item.prop]] }}
  564. </span>
  565. <span v-else-if="item.scope === 'typeStatus'">{{
  566. scope.row[item.prop] === 0
  567. ? "报名指引"
  568. : scope.row[item.prop] === 1
  569. ? "打印准考证"
  570. : scope.row[item.prop] === 2
  571. ? "成绩查询指引"
  572. : "未知"
  573. }}</span>
  574. <span v-else-if="item.scope === 'typeId'">{{
  575. scope.row[item.prop] === 1
  576. ? "普通练习"
  577. : scope.row[item.prop] === 2
  578. ? "押题试卷"
  579. : scope.row[item.prop] === 3
  580. ? "真题试卷"
  581. : "未知"
  582. }}</span>
  583. <div v-else-if="item.scope === 'knowledge'" class="overSty">
  584. <el-button
  585. type="success"
  586. size="small"
  587. v-for="(items, ks) in scope.row[item.prop]"
  588. :key="ks"
  589. >
  590. {{ items.knowledgeName }}
  591. </el-button>
  592. </div>
  593. <span v-else-if="item.scope === 'numberAll'">{{
  594. scope.row[item.prop1] + scope.row[item.prop2]
  595. }}</span>
  596. <span v-else-if="item.scope === 'moreLists'">{{
  597. scope.row[item.prop1] + " ~ " + scope.row[item.prop2]
  598. }}</span>
  599. <span v-else-if="item.scope === 'TimeLists'"
  600. >{{ $methodsTools.onlyForma(scope.row[item.prop1], item.Diszing) }}
  601. {{ scope.row[item.prop1] ? "至" : "" }}
  602. {{
  603. $methodsTools.onlyForma(scope.row[item.prop2], item.Diszing)
  604. }}</span
  605. >
  606. <span v-else-if="item.scope === 'aTimeList'">{{
  607. scope.row[item.prop] === null || scope.row[item.prop] === 0
  608. ? "--"
  609. : $methodsTools.onlyForma(scope.row[item.prop], !item.isDiszing)
  610. }}</span>
  611. <div v-else-if="item.scope === 'inputs'">
  612. <el-input-number
  613. style="width: 50px"
  614. size="small"
  615. :controls="false"
  616. v-model="scope.row[item.prop]"
  617. controls-position="right"
  618. :min="0"
  619. ></el-input-number>
  620. </div>
  621. <span v-else-if="item.scope === 'topic'">{{
  622. scope.row[item.prop] === 1
  623. ? "单选题"
  624. : scope.row[item.prop] === 2
  625. ? "多选题"
  626. : scope.row[item.prop] === 3
  627. ? "判断题"
  628. : scope.row[item.prop] === 4
  629. ? "案例题"
  630. : scope.row[item.prop] === 5
  631. ? "简答题"
  632. : "未知"
  633. }}</span>
  634. <span v-else-if="item.scope === 'typeStatusName'">{{
  635. scope.row[item.prop] === 1
  636. ? "扫码支付"
  637. : scope.row[item.prop] === 2
  638. ? "刷卡支付"
  639. : scope.row[item.prop] === 3
  640. ? "现金支付"
  641. : scope.row[item.prop] === 4
  642. ? "转账"
  643. : "未知"
  644. }}</span>
  645. <ul style="margin: 0" v-else-if="item.scope === 'studyCount'">
  646. <li>总共:{{ scope.row[item.prop1] + scope.row[item.prop2] }}</li>
  647. <li>消耗:{{ scope.row[item.prop1] }}</li>
  648. <li>剩余:{{ scope.row[item.prop2] }}</li>
  649. </ul>
  650. <span
  651. v-else-if="item.scope === 'statusPeriod'"
  652. :style="scope.row[item.prop] === 2 ? 'color:red' : ''"
  653. >
  654. {{
  655. scope.row[item.prop] === -1
  656. ? "不可审核"
  657. : scope.row[item.prop] === 2
  658. ? "待审核"
  659. : scope.row[item.prop] === 0
  660. ? "未通过"
  661. : scope.row[item.prop] === 1
  662. ? "已通过"
  663. : scope.row[item.prop] === 3
  664. ? "审核中"
  665. : ""
  666. }}
  667. </span>
  668. <div
  669. v-else-if="item.scope === 'openBox'"
  670. class="open_style"
  671. @click="openBoxData(scope.row)"
  672. >
  673. {{ scope.row[item.prop] }}
  674. </div>
  675. <div v-else-if="item.scope === 'changeCLS'">
  676. <div
  677. v-if="!scope.row['interfacePushId'] && !scope.row['periodPlush']"
  678. >
  679. <div v-if="scope.row[item.prop] === 1" style="color: red">
  680. 有变更<span
  681. style="margin-left: 6px; color: blue; cursor: pointer"
  682. @click="isShowBoxsFun(scope.row)"
  683. >查看</span
  684. >
  685. </div>
  686. <span v-else> 正常 </span>
  687. </div>
  688. <template v-else>
  689. <div
  690. v-if="
  691. scope.row['interfacePushId'] === 1 &&
  692. !scope.row['periodPlush']
  693. "
  694. >
  695. <div v-if="scope.row[item.prop] === 1">
  696. <div
  697. v-if="
  698. scope.row['officialStatusTime'] &&
  699. scope.row['userUpdates'][0].createTime <
  700. scope.row['officialStatusTime']
  701. "
  702. >
  703. 正常
  704. </div>
  705. <div v-else style="color: red">
  706. 有变更<span
  707. style="margin-left: 6px; color: blue; cursor: pointer"
  708. @click="isShowBoxsFun(scope.row)"
  709. >查看</span
  710. >
  711. </div>
  712. </div>
  713. <span v-else> 正常 </span>
  714. </div>
  715. <div
  716. v-if="
  717. scope.row['interfacePushId'] === 1 &&
  718. scope.row['periodPlush'] === 1
  719. "
  720. >
  721. <div v-if="scope.row[item.prop] === 1">
  722. <div
  723. v-if="
  724. scope.row['officialStatusTime'] &&
  725. scope.row['userUpdates'][0].createTime <
  726. scope.row['officialStatusTime']
  727. "
  728. >
  729. 正常
  730. </div>
  731. <div v-else style="color: purple">
  732. 有变更<span
  733. style="margin-left: 6px; color: blue; cursor: pointer"
  734. @click="isShowBoxsFun(scope.row)"
  735. >查看</span
  736. >
  737. </div>
  738. </div>
  739. <span v-else> 正常 </span>
  740. </div>
  741. </template>
  742. </div>
  743. <span
  744. v-else-if="item.scope === 'finishStatus'"
  745. :style="scope.row[item.prop] === 0 ? 'color:red' : ''"
  746. >
  747. {{
  748. scope.row[item.prop] === 0
  749. ? "未学完"
  750. : scope.row[item.prop] === 1
  751. ? "已学完"
  752. : ""
  753. }}
  754. </span>
  755. <span v-else-if="item.scope === 'computer'">
  756. {{ scope.row[item.prop1] + "/" + scope.row[item.prop2] }}
  757. {{
  758. scope.row[item.prop1] == 0 && scope.row[item.prop2] == 0
  759. ? "0%"
  760. : (
  761. (scope.row[item.prop1] / scope.row[item.prop2]) *
  762. 100
  763. ).toFixed(2) + "%"
  764. }}
  765. </span>
  766. <span v-else-if="item.scope === 'toFixedYuan'">
  767. {{ $methodsTools.decimalPoint(scope.row[item.prop]) }}
  768. </span>
  769. <span v-else-if="item.scope === 'cType'">
  770. <el-tag
  771. type="success"
  772. v-if="
  773. compType(scope.row[item.prop], scope.row['requestMethod']) ===
  774. '新增'
  775. "
  776. >
  777. {{
  778. compType(scope.row[item.prop], scope.row["requestMethod"])
  779. }}</el-tag
  780. >
  781. <el-tag
  782. v-if="
  783. compType(scope.row[item.prop], scope.row['requestMethod']) ===
  784. '修改'
  785. "
  786. >
  787. {{
  788. compType(scope.row[item.prop], scope.row["requestMethod"])
  789. }}</el-tag
  790. >
  791. <el-tag
  792. type="warning"
  793. v-if="
  794. compType(scope.row[item.prop], scope.row['requestMethod']) ===
  795. '查询'
  796. "
  797. >
  798. {{
  799. compType(scope.row[item.prop], scope.row["requestMethod"])
  800. }}</el-tag
  801. >
  802. </span>
  803. <span v-else-if="item.scope === 'time'">{{
  804. numTime(scope.row[item.prop])
  805. }}</span>
  806. <span v-else-if="item.scope === 'isgzhOpenId'">{{
  807. scope.row[item.prop] ? "是" : "否"
  808. }}</span>
  809. <span v-else-if="item.scope === 'timeBtn'"
  810. >{{ numTime(scope.row[item.prop]) }}
  811. <el-button type="text" @click="getxq(scope.row)">详情</el-button>
  812. </span>
  813. <span
  814. class="editInfoSty"
  815. v-else-if="item.scope === 'editInfo'"
  816. @click="editInfo(scope.row)"
  817. >{{ scope.row[item.prop] }}
  818. </span>
  819. <div v-else-if="item.scope === 'editName'">
  820. <span>{{ scope.row[item.prop] }}</span>
  821. <el-button
  822. style="margin-left: 6px"
  823. type="text"
  824. @click="editInfo(scope.row, 2)"
  825. >修改</el-button
  826. >
  827. </div>
  828. <span v-else-if="item.scope === 'InfoMore'"
  829. >{{ scope.row[item.prop1] }} - {{ scope.row[item.prop2] }}
  830. </span>
  831. <div
  832. class="editInfoSty"
  833. v-else-if="item.scope === 'editInfoHTML'"
  834. @click="editInfo(scope.row)"
  835. >
  836. {{ getSimpleText(scope.row[item.prop]) }}
  837. </div>
  838. <div v-else-if="item.scope === 'editInfoHTMLs'">
  839. {{ getSimpleText(scope.row[item.prop]) }}
  840. </div>
  841. <span v-else-if="item.scope === 'minute'">{{
  842. numTimeminute(scope.row[item.prop])
  843. }}</span>
  844. <span
  845. v-else-if="item.scope === 'jumpPage'"
  846. @click="jumpPage(scope.row)"
  847. style="color: #409eff; cursor: pointer"
  848. >{{ scope.row[item.prop] }}</span
  849. >
  850. <span v-else-if="item.scope === 'objType'">
  851. {{
  852. scope.row[item.objProp].length
  853. ? scope.row[item.objProp][0][item.prop]
  854. : ""
  855. }}
  856. </span>
  857. <span v-else-if="item.scope === 'isOKs'" style="color: red"
  858. >审核通过</span
  859. >
  860. <span v-else-if="item.scope === 'eduTypes'">
  861. {{
  862. scope.row[item.prop1] +
  863. "-" +
  864. scope.row[item.prop2] +
  865. "-" +
  866. scope.row[item.prop3]
  867. }}{{ scope.row[item.prop4] ? "-" + scope.row[item.prop4] : "" }}
  868. </span>
  869. <span v-else-if="item.scope === 'peopleNums'">
  870. {{ scope.row[item.prop1] }} / {{ scope.row[item.prop2] }}
  871. </span>
  872. <span
  873. v-else-if="item.scope === 'jumpPageLabel'"
  874. @click="jumpPageLabel(scope.row)"
  875. style="color: #409eff; cursor: pointer"
  876. >{{ scope.row[item.prop] }}</span
  877. >
  878. <span v-else-if="item.scope === 'urlStatus'">
  879. {{
  880. scope.row[item.prop] === 1
  881. ? scope.row[item.prop1]
  882. : scope.row[item.prop] === 2
  883. ? scope.row[item.prop2]
  884. : scope.row[item.prop] === 3
  885. ? scope.row[item.prop3]
  886. : ""
  887. }}
  888. </span>
  889. <span
  890. v-else-if="item.scope === 'jumpPageLabelProfess'"
  891. @click="jumpPageLabelProfess(scope.row)"
  892. style="color: #409eff; cursor: pointer"
  893. >{{ scope.row[item.prop] }}</span
  894. >
  895. <span
  896. v-else-if="item.scope === 'infoJump'"
  897. @click="jumpinfoJump(scope.row)"
  898. style="color: #409eff; cursor: pointer"
  899. >详情</span
  900. >
  901. <div v-else-if="item.scope === 'learnStatus'">
  902. <div v-if="scope.row.learnStatus === 0" style="color: red">
  903. 未开通
  904. </div>
  905. <div v-if="scope.row.learnStatus === 1">已开通</div>
  906. <div v-if="scope.row.learnStatus === 2">
  907. 标记失败
  908. <el-popover placement="right" trigger="click" width="360">
  909. <div>
  910. <p>账号开通状态为:标记失败</p>
  911. <p>失败原因:<br />{{ scope.row.reason }}</p>
  912. </div>
  913. <el-button type="text" slot="reference">原因</el-button>
  914. </el-popover>
  915. </div>
  916. </div>
  917. <span v-else-if="item.scope === 'ptai'">{{
  918. scope.row[item.prop] == 1 ? "微信小程序" : "未知"
  919. }}</span>
  920. <div v-else-if="item.scope === 'isOptions'">
  921. <template v-for="(itemt, indext) in item.options">
  922. <span
  923. :key="indext"
  924. v-if="itemt.value === scope.row[item.prop]"
  925. :style="itemt.style ? itemt.style : ''"
  926. >{{ itemt.label }}
  927. <el-button
  928. type="text"
  929. v-if="itemt.click"
  930. @click="backFunc(scope.row)"
  931. >查看</el-button
  932. ></span
  933. >
  934. </template>
  935. </div>
  936. <div v-else-if="item.scope === 'isOptionsDY'">
  937. <template v-for="(itemt, indext) in item.options">
  938. <div
  939. :key="indext"
  940. v-if="itemt.value === scope.row[item.prop]"
  941. :style="
  942. scope.row[item.prop] == 5 ? 'color:rgb(132, 0, 255);' : ''
  943. "
  944. >
  945. <el-popover
  946. :key="indext"
  947. trigger="hover"
  948. v-if="itemt.popover === true"
  949. >
  950. <span
  951. >订单编号(业务系统):{{ scope.row[item.oldOrder] }}</span
  952. >
  953. <el-button type="text" slot="reference">{{
  954. itemt.label
  955. }}</el-button>
  956. </el-popover>
  957. <span v-else
  958. >{{ itemt.label }}
  959. <el-button
  960. type="text"
  961. v-if="itemt.click"
  962. @click="backFunc(scope.row)"
  963. >查看</el-button
  964. ></span
  965. >
  966. </div>
  967. </template>
  968. </div>
  969. <div v-else-if="item.scope === 'orderGoodsStatus'">
  970. {{
  971. scope.row[item.prop] === -1
  972. ? "关闭"
  973. : scope.row[item.prop] === 0
  974. ? "待支付"
  975. : scope.row[item.prop] === 1
  976. ? `已支付(¥${scope.row["goodsReceived"]})`
  977. : scope.row[item.prop] === 2
  978. ? `已退款(¥${scope.row["goodsReceived"]})`
  979. : ""
  980. }}
  981. </div>
  982. <div v-else-if="item.scope === 'solt'">
  983. <slot :name="item.soltName" :scope="scope"></slot>
  984. </div>
  985. <div v-else-if="item.scope === 'fill'">
  986. {{ scope.row[item.prop] || "--" }}
  987. </div>
  988. <div v-else-if="item.scope === 'formatPrice'">
  989. {{ scope.row[item.prop] || 0 | formatPrice }}
  990. </div>
  991. <span v-else :style="item.style">
  992. {{ scope.row[item.prop] }}
  993. {{
  994. (scope.row[item.prop] || scope.row[item.prop] === 0) && item.ch
  995. ? item.ch
  996. : ""
  997. }}
  998. </span>
  999. </template>
  1000. </af-table-column>
  1001. <el-table-column
  1002. label="操作"
  1003. align="center"
  1004. fixed="right"
  1005. :width="navText.changeWidth ? navText.changeWidth : '180px'"
  1006. v-if="!navText.tableHide"
  1007. >
  1008. <template slot-scope="scope">
  1009. <slot name="btn" :scope="scope"></slot>
  1010. </template>
  1011. </el-table-column>
  1012. </el-table>
  1013. <el-dialog
  1014. :visible.sync="diaBox"
  1015. width="500px"
  1016. :show-close="false"
  1017. :destroy-on-close="true"
  1018. >
  1019. <div slot="title" class="hearders">
  1020. <div class="leftTitle">详情</div>
  1021. <div class="rightBoxs">
  1022. <img
  1023. src="@/assets/images/Close@2x.png"
  1024. alt=""
  1025. @click="closeBeforefs"
  1026. />
  1027. </div>
  1028. </div>
  1029. <el-row class="contentBox" :gutter="30">
  1030. <div style="width: 100%; height: 100%">
  1031. <video
  1032. controls
  1033. preload
  1034. style="width: 100%; height: 100%"
  1035. :src="$methodsTools.splitImgHost(videoUrls)"
  1036. ></video>
  1037. </div>
  1038. </el-row>
  1039. <div slot="footer" class="dialog-footer">
  1040. <el-button @click="closeBeforefs">关闭</el-button>
  1041. </div>
  1042. </el-dialog>
  1043. <el-dialog
  1044. :visible.sync="dialogVisible"
  1045. width="560px"
  1046. :show-close="false"
  1047. :close-on-click-modal="false"
  1048. >
  1049. <div slot="title" class="hearders">
  1050. <div class="leftTitle">课程树形图</div>
  1051. <div class="rightBoxs">
  1052. <img src="@/assets/images/Close@2x.png" alt="" @click="closes" />
  1053. </div>
  1054. </div>
  1055. <div>
  1056. <el-tree
  1057. :key="Math.random()"
  1058. :props="props"
  1059. :load="loadNode"
  1060. lazy
  1061. ></el-tree>
  1062. </div>
  1063. <span slot="footer" class="dialog-footer">
  1064. <el-button @click="closes">取 消</el-button>
  1065. </span>
  1066. </el-dialog>
  1067. <el-dialog
  1068. :visible.sync="diaviosOpen"
  1069. width="560px"
  1070. :show-close="false"
  1071. :close-on-click-modal="false"
  1072. >
  1073. <div slot="title" class="hearders">
  1074. <div class="leftTitle">商品树形图</div>
  1075. <div class="rightBoxs">
  1076. <img
  1077. src="@/assets/images/Close@2x.png"
  1078. alt=""
  1079. @click="diaviosOpen = false"
  1080. />
  1081. </div>
  1082. </div>
  1083. <div style="max-height: 600px; overflow: auto">
  1084. <el-tree
  1085. v-if="diaviosOpen"
  1086. default-expand-all
  1087. :key="Math.random()"
  1088. :props="props1"
  1089. :load="loadNode1"
  1090. lazy
  1091. ></el-tree>
  1092. </div>
  1093. <span slot="footer" class="dialog-footer">
  1094. <el-button @click="diaviosOpen = false">取 消</el-button>
  1095. </span>
  1096. </el-dialog>
  1097. <el-dialog
  1098. :visible.sync="isShowBoxs"
  1099. width="400px"
  1100. :show-close="false"
  1101. :close-on-click-modal="false"
  1102. >
  1103. <div slot="title" class="hearders">
  1104. <div class="leftTitle">资料变更详情</div>
  1105. <div class="rightBoxs">
  1106. <img
  1107. src="@/assets/images/Close@2x.png"
  1108. alt=""
  1109. @click="isShowBoxs = false"
  1110. />
  1111. </div>
  1112. </div>
  1113. <div style="max-height: 400px; overflow: auto">
  1114. <ul>
  1115. <li
  1116. v-for="(items, indexs) in listBoxsGET"
  1117. :key="indexs"
  1118. style="margin-bottom: 30px"
  1119. >
  1120. <p>{{ $methodsTools.onlyForma(items.createTime) }}</p>
  1121. <p style="padding-left: 14px; color: #999">
  1122. 姓名:{{ items.realname }}
  1123. </p>
  1124. <p style="padding-left: 14px; color: #999">
  1125. 身份证号码:{{ items.idCard }}
  1126. </p>
  1127. <p style="padding-left: 14px; color: #999">
  1128. 绑定手机号码:{{ items.telphone }}
  1129. </p>
  1130. </li>
  1131. </ul>
  1132. </div>
  1133. <span slot="footer" class="dialog-footer">
  1134. <el-button @click="isShowBoxs = false">取 消</el-button>
  1135. </span>
  1136. </el-dialog>
  1137. <el-dialog
  1138. :visible.sync="diaviosTKOpen"
  1139. width="560px"
  1140. :show-close="false"
  1141. :close-on-click-modal="false"
  1142. >
  1143. <div slot="title" class="hearders">
  1144. <div class="leftTitle">商品树形图</div>
  1145. <div class="rightBoxs">
  1146. <img
  1147. src="@/assets/images/Close@2x.png"
  1148. alt=""
  1149. @click="diaviosTKOpen = false"
  1150. />
  1151. </div>
  1152. </div>
  1153. <div style="max-height: 600px; overflow: auto">
  1154. <el-tree
  1155. v-if="diaviosTKOpen"
  1156. default-expand-all
  1157. :key="Math.random()"
  1158. :props="props2"
  1159. :load="loadNode2"
  1160. lazy
  1161. ></el-tree>
  1162. </div>
  1163. <span slot="footer" class="dialog-footer">
  1164. <el-button @click="diaviosTKOpen = false">取 消</el-button>
  1165. </span>
  1166. </el-dialog>
  1167. </div>
  1168. </template>
  1169. <script>
  1170. import bankMsg from "./bankMsg";
  1171. export default {
  1172. components: { bankMsg },
  1173. props: [
  1174. "tableSets",
  1175. "tableData",
  1176. "navText",
  1177. "rowKey",
  1178. "loading",
  1179. "studentTable",
  1180. "objectSpanMethod",
  1181. "setIndex",
  1182. "radio",
  1183. ],
  1184. data: function () {
  1185. return {
  1186. diaviosOpen: false,
  1187. diaviosTKOpen: false,
  1188. dialogVisible: false,
  1189. tableSet: this.tableSets,
  1190. allCheckData: [], //表格多选
  1191. checkAll: true,
  1192. checkedCities: [], //自定义列 选中数组
  1193. cities: [], //自定义列 总数组
  1194. isIndeterminate: false,
  1195. videoUrls: "",
  1196. diaBox: false,
  1197. isShowBoxs: false,
  1198. listBoxsGET: [],
  1199. props: {
  1200. label(data, node) {
  1201. return data.menuName || data.name;
  1202. },
  1203. isLeaf(data, node) {
  1204. return data.hasChildren ? false : true;
  1205. },
  1206. },
  1207. props1: {
  1208. label(data, node) {
  1209. return data.courseName || data.menuName || data.name;
  1210. },
  1211. isLeaf(data, node) {
  1212. return data.hasChildren ? false : true;
  1213. },
  1214. },
  1215. props2: {
  1216. label(data, node) {
  1217. return data.examName || data.menuName || data.name;
  1218. },
  1219. isLeaf(data, node) {
  1220. return data.hasChildren ? false : true;
  1221. },
  1222. },
  1223. treeDatas: [],
  1224. treeDatas1: [],
  1225. treeDatas2: [],
  1226. clientHeight: 0,
  1227. };
  1228. },
  1229. computed: {
  1230. tableRadio: {
  1231. get() {
  1232. return this.radio;
  1233. },
  1234. set(val) {
  1235. this.$emit("update:radio", val);
  1236. },
  1237. },
  1238. compTableSet: function () {
  1239. return function (options) {
  1240. var arrays = options.filter((item) => {
  1241. return item.hidden;
  1242. });
  1243. return arrays;
  1244. };
  1245. },
  1246. numTime: function () {
  1247. return function (res) {
  1248. return Number(res / 3600).toFixed(2);
  1249. };
  1250. },
  1251. numTimeminute: function () {
  1252. return function (res) {
  1253. return Number(res / 60).toFixed(2);
  1254. };
  1255. },
  1256. compType: function () {
  1257. return function (res, data) {
  1258. if (data === "POST") {
  1259. if (res.indexOf("edit") !== -1 || res.indexOf("update") !== -1) {
  1260. return "修改";
  1261. } else {
  1262. return "新增";
  1263. }
  1264. } else if (data === "GET") {
  1265. return "查询";
  1266. }
  1267. };
  1268. },
  1269. tableHeight: function () {
  1270. return function (h) {
  1271. var b = document.getElementById("allTableList")?.offsetTop || 0;
  1272. return h - b - 85;
  1273. };
  1274. },
  1275. },
  1276. created() {
  1277. if (this.studentTable) {
  1278. let data = sessionStorage.getItem("studentTableList");
  1279. if (data && data !== "") {
  1280. this.tableSet = JSON.parse(data);
  1281. }
  1282. }
  1283. this.inittableSet = JSON.stringify(this.tableSet);
  1284. this.initTR();
  1285. },
  1286. mounted() {
  1287. this.clientHeight = document.documentElement.clientHeight;
  1288. window.addEventListener(
  1289. "resize",
  1290. () => {
  1291. this.clientHeight = document.documentElement.clientHeight;
  1292. },
  1293. true
  1294. );
  1295. },
  1296. methods: {
  1297. selectFuncTrue() {
  1298. return true;
  1299. },
  1300. radioChange(val) {},
  1301. /**
  1302. * 学习账号标记跳转班级
  1303. */
  1304. backClassView(row, type) {
  1305. this.$emit("classView", row, type);
  1306. },
  1307. blurBackData(row) {
  1308. this.$emit("sortFunc", row);
  1309. },
  1310. backFunc(row) {
  1311. this.$emit("backFunc", row);
  1312. },
  1313. /**
  1314. * 清除多选框
  1315. */
  1316. clearMoreActive() {
  1317. this.allCheckData = [];
  1318. this.$refs.pagerset.clearSelection();
  1319. },
  1320. isShowBoxsFun(item) {
  1321. this.$api.inquireuserUpdateListsy({ userId: item.userId }).then((res) => {
  1322. this.listBoxsGET = res.rows;
  1323. this.isShowBoxs = true;
  1324. // this.$api
  1325. // .editgradestudentuserUpdate({ userId: item.userId, status: 1 })
  1326. // .then((result) => {});
  1327. });
  1328. },
  1329. openDialog(row) {
  1330. this.$emit("openDialog", row);
  1331. },
  1332. sortMethods(a, b) {
  1333. if (a.classGradeUserGoodsVoList && b.classGradeUserGoodsVoList) {
  1334. return a.classGradeUserGoodsVoList.length >
  1335. b.classGradeUserGoodsVoList.length
  1336. ? -1
  1337. : 1;
  1338. } else {
  1339. return a.sort > b.sort ? -1 : 1;
  1340. }
  1341. },
  1342. sortChange(column) {
  1343. this.$emit("sortChange", column);
  1344. },
  1345. openSpec(id) {
  1346. this.$emit("openClassNum", id);
  1347. },
  1348. /**
  1349. * int: 1 节列表-关联章 2 章列表-关联模块 3 模块列表-关联课程 4 课程列表-关联商品 5 题目列表-关联试卷 6 试卷列表-关联商品 7 章卷列表-关联商品 8 模块列表-关联商品
  1350. */
  1351. jumpPages(v, int) {
  1352. if (int === 1) {
  1353. const jump = () => {
  1354. this.$router.push({
  1355. path: "/resource/videoManagement/chapterEdit",
  1356. query: {
  1357. id: v.chapterId,
  1358. },
  1359. });
  1360. };
  1361. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1362. (item) => {
  1363. return item.name == "ChapterEdit";
  1364. }
  1365. );
  1366. if (statusPage) {
  1367. this.$store
  1368. .dispatch("tagsView/delCachedView", {
  1369. name: "ChapterEdit",
  1370. })
  1371. .then((res) => {
  1372. jump();
  1373. });
  1374. } else {
  1375. jump();
  1376. }
  1377. }
  1378. if (int === 2) {
  1379. const jump = () => {
  1380. this.$router.push({
  1381. path: "/resource/videoManagement/moduleManagementEdit",
  1382. query: {
  1383. id: v.moduleId,
  1384. },
  1385. });
  1386. };
  1387. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1388. (item) => {
  1389. return item.name == "ModuleManagementEdit";
  1390. }
  1391. );
  1392. if (statusPage) {
  1393. this.$store
  1394. .dispatch("tagsView/delCachedView", {
  1395. name: "ModuleManagementEdit",
  1396. })
  1397. .then((res) => {
  1398. jump();
  1399. });
  1400. } else {
  1401. jump();
  1402. }
  1403. }
  1404. if (int === 3) {
  1405. const jump = () => {
  1406. this.$router.push({
  1407. path: "/resource/videoManagement/editCourse",
  1408. query: {
  1409. id: v.courseId,
  1410. },
  1411. });
  1412. };
  1413. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1414. (item) => {
  1415. return item.name == "EditCourse";
  1416. }
  1417. );
  1418. if (statusPage) {
  1419. this.$store
  1420. .dispatch("tagsView/delCachedView", {
  1421. name: "EditCourse",
  1422. })
  1423. .then((res) => {
  1424. jump();
  1425. });
  1426. } else {
  1427. jump();
  1428. }
  1429. }
  1430. if (int === 4) {
  1431. const jump = () => {
  1432. this.$router.push({
  1433. name: "CommodityManageMentEdit",
  1434. query: {
  1435. id: v.goodsId,
  1436. },
  1437. });
  1438. };
  1439. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1440. (item) => {
  1441. return item.name == "CommodityManageMentEdit";
  1442. }
  1443. );
  1444. if (statusPage) {
  1445. this.$store
  1446. .dispatch("tagsView/delCachedView", {
  1447. name: "CommodityManageMentEdit",
  1448. })
  1449. .then((res) => {
  1450. jump();
  1451. });
  1452. } else {
  1453. jump();
  1454. }
  1455. }
  1456. if (int === 5) {
  1457. const jump = () => {
  1458. this.$router.push({
  1459. path: "/resource/bankManagement/editPaper",
  1460. query: {
  1461. id: v.examId,
  1462. },
  1463. });
  1464. };
  1465. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1466. (item) => {
  1467. return item.name == "EditPaper";
  1468. }
  1469. );
  1470. if (statusPage) {
  1471. this.$store
  1472. .dispatch("tagsView/delCachedView", {
  1473. name: "EditPaper",
  1474. })
  1475. .then((res) => {
  1476. jump();
  1477. });
  1478. } else {
  1479. jump();
  1480. }
  1481. }
  1482. if (int === 6) {
  1483. const jump = () => {
  1484. this.$router.push({
  1485. path: "/Marketing/goods/commodityManageMentEdit",
  1486. query: {
  1487. id: v.goodsId,
  1488. },
  1489. });
  1490. };
  1491. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1492. (item) => {
  1493. return item.name == "CommodityManageMentEdit";
  1494. }
  1495. );
  1496. if (statusPage) {
  1497. this.$store
  1498. .dispatch("tagsView/delCachedView", {
  1499. name: "CommodityManageMentEdit",
  1500. })
  1501. .then((res) => {
  1502. jump();
  1503. });
  1504. } else {
  1505. jump();
  1506. }
  1507. }
  1508. if (int === 7) {
  1509. const jump = () => {
  1510. this.$router.push({
  1511. path: "/Marketing/goods/commodityManageMentEdit",
  1512. query: {
  1513. id: v.goodsId,
  1514. },
  1515. });
  1516. };
  1517. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1518. (item) => {
  1519. return item.name == "CommodityManageMentEdit";
  1520. }
  1521. );
  1522. if (statusPage) {
  1523. this.$store
  1524. .dispatch("tagsView/delCachedView", {
  1525. name: "CommodityManageMentEdit",
  1526. })
  1527. .then((res) => {
  1528. jump();
  1529. });
  1530. } else {
  1531. jump();
  1532. }
  1533. }
  1534. if (int === 8) {
  1535. const jump = () => {
  1536. this.$router.push({
  1537. path: "/Marketing/goods/commodityManageMentEdit",
  1538. query: {
  1539. id: v.goodsId,
  1540. },
  1541. });
  1542. };
  1543. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1544. (item) => {
  1545. return item.name == "CommodityManageMentEdit";
  1546. }
  1547. );
  1548. if (statusPage) {
  1549. this.$store
  1550. .dispatch("tagsView/delCachedView", {
  1551. name: "CommodityManageMentEdit",
  1552. })
  1553. .then((res) => {
  1554. jump();
  1555. });
  1556. } else {
  1557. jump();
  1558. }
  1559. }
  1560. },
  1561. getSimpleText(html) {
  1562. var re1 = new RegExp("<.+?>", "g"); //匹配html标签的正则表达式,"g"是搜索匹配多个符合的内容
  1563. var msg = html.replace(re1, ""); //执行替换成空字符
  1564. return msg;
  1565. },
  1566. //树形图关闭
  1567. closes() {
  1568. this.dialogVisible = false;
  1569. },
  1570. loadNode(node, resolve) {
  1571. if (node.level === 0) {
  1572. this.treeDatas.forEach((item) => {
  1573. if (item.type === 1) {
  1574. item.hasChildren = true;
  1575. }
  1576. if (item.type === 2) {
  1577. item.hasChildren = true;
  1578. }
  1579. if (item.type === 3) {
  1580. item.hasChildren = false;
  1581. }
  1582. });
  1583. return resolve(this.treeDatas);
  1584. } else {
  1585. if (node.data.type === 1) {
  1586. this.$api
  1587. .inquireCourseListmodulechapter(node.data.menuId)
  1588. .then((res) => {
  1589. res.data.forEach((item) => {
  1590. item.TypeId = 2 + "-" + item.chapterId;
  1591. item.hasChildren = true;
  1592. item.menuId = item.chapterId;
  1593. item.type = 2;
  1594. });
  1595. return resolve(res.data);
  1596. });
  1597. }
  1598. if (node.data.type === 2) {
  1599. this.$api
  1600. .inquireCoursechaptersectionlist(node.data.menuId)
  1601. .then((res) => {
  1602. res.data.forEach((item) => {
  1603. item.TypeId = 3 + "-" + item.sectionId;
  1604. item.type = 3;
  1605. });
  1606. return resolve(res.data);
  1607. });
  1608. }
  1609. if (node.data.type === 3) {
  1610. return resolve([]);
  1611. }
  1612. }
  1613. },
  1614. diavios(ids) {
  1615. console.log(ids, "触发");
  1616. this.$api.obtainCourseSgoodsId(ids).then((res) => {
  1617. res.rows.forEach((item) => {
  1618. item.TypeId = "0-" + item.courseId;
  1619. item.type = 0;
  1620. item.hasChildren = true;
  1621. });
  1622. this.treeDatas1 = res.rows;
  1623. this.diaviosOpen = true;
  1624. });
  1625. },
  1626. loadNode1(node, resolve) {
  1627. if (node.level === 0) {
  1628. return resolve(this.treeDatas1);
  1629. } else {
  1630. if (node.data.type === 0) {
  1631. this.$api
  1632. .inquireCoursemenuListS({ courseId: node.data.courseId })
  1633. .then((res) => {
  1634. res.rows.forEach((item) => {
  1635. item.TypeId = 1 + "-" + item.menuId;
  1636. item.hasChildren = item.type === 3 ? false : true;
  1637. item.menuId = item.menuId;
  1638. });
  1639. return resolve(res.rows);
  1640. });
  1641. }
  1642. if (node.data.type === 1) {
  1643. this.$api
  1644. .inquireCourseListmodulechapter(node.data.menuId)
  1645. .then((res) => {
  1646. res.data.forEach((item) => {
  1647. item.TypeId = 2 + "-" + item.chapterId;
  1648. item.hasChildren = true;
  1649. item.menuId = item.chapterId;
  1650. item.type = 2;
  1651. });
  1652. return resolve(res.data);
  1653. });
  1654. }
  1655. if (node.data.type === 2) {
  1656. this.$api
  1657. .inquireCoursechaptersectionlist(node.data.menuId)
  1658. .then((res) => {
  1659. res.data.forEach((item) => {
  1660. item.TypeId = 3 + "-" + item.sectionId;
  1661. item.type = 3;
  1662. });
  1663. return resolve(res.data);
  1664. });
  1665. }
  1666. if (node.data.type === 3) {
  1667. return resolve([]);
  1668. }
  1669. }
  1670. },
  1671. openBoxData(row) {
  1672. this.$emit("openBoxFun", row);
  1673. },
  1674. diaviosTK(ids) {
  1675. this.$api.inquireGoodsbanklist({ goodsId: ids }).then((res) => {
  1676. res.data.forEach((item) => {
  1677. item.TypeId = item.type + "-" + item.majorId;
  1678. item.hasChildren = item.type === 3 ? false : true;
  1679. });
  1680. this.treeDatas2 = res.data;
  1681. this.diaviosTKOpen = true;
  1682. });
  1683. },
  1684. loadNode2(node, resolve) {
  1685. if (node.level === 0) {
  1686. return resolve(this.treeDatas2);
  1687. } else {
  1688. if (node.data.type === 1) {
  1689. this.$api
  1690. .inquireBankchapterModule({ moduleExamId: node.data.majorId })
  1691. .then((res) => {
  1692. res.data.forEach((item) => {
  1693. item.TypeId = 2 + "-" + item.chapterExamId;
  1694. item.menuId = item.chapterExamId;
  1695. item.type = 2;
  1696. });
  1697. return resolve(res.data);
  1698. });
  1699. }
  1700. if (node.data.type === 2) {
  1701. this.$api
  1702. .inquirebankchapterexamList({
  1703. chapterExamId: node.data.majorId,
  1704. })
  1705. .then((res) => {
  1706. res.data.forEach((item) => {
  1707. item.TypeId = 3 + "-" + item.examId;
  1708. item.type = 3;
  1709. });
  1710. return resolve(res.data);
  1711. });
  1712. }
  1713. if (node.data.type === 3) {
  1714. return resolve([]);
  1715. }
  1716. }
  1717. },
  1718. timeStyle(column) {
  1719. if (column.columnIndex === 0 && this.navText.firstColLeft) {
  1720. return "text-align:left!important; padding-left: 40px;";
  1721. }
  1722. },
  1723. //初始化
  1724. initTR() {
  1725. this.cities = [];
  1726. this.checkedCities = [];
  1727. this.checkAll = true;
  1728. this.isIndeterminate = false;
  1729. this.tableSet.forEach((item, index) => {
  1730. this.cities.push(item.label);
  1731. if (item.hidden) {
  1732. this.checkedCities.push(item.label);
  1733. }
  1734. });
  1735. this.tableSet = [];
  1736. this.$nextTick(() => {
  1737. this.tableSet = JSON.parse(this.inittableSet);
  1738. });
  1739. if (this.checkedCities.length === 0) {
  1740. this.isIndeterminate = false;
  1741. } else if (this.checkedCities.length === this.cities.length) {
  1742. this.isIndeterminate = false;
  1743. this.checkAll = true;
  1744. } else {
  1745. this.isIndeterminate = true;
  1746. this.checkAll = false;
  1747. }
  1748. },
  1749. //自定义列全选按钮触发
  1750. handleCheckAllChange(val) {
  1751. this.checkedCities = val ? this.cities : [];
  1752. this.isIndeterminate = false;
  1753. if (val) {
  1754. this.tableSet = [];
  1755. this.$nextTick(() => {
  1756. this.tableSet = JSON.parse(this.inittableSet);
  1757. });
  1758. } else {
  1759. this.tableSet.forEach((item, index) => {
  1760. item.hidden = false;
  1761. });
  1762. }
  1763. },
  1764. // 勾选自定义列子选项
  1765. handleCheckedCitiesChange(value) {
  1766. var copyTable = JSON.parse(JSON.stringify(this.tableSet));
  1767. let checkedCount = value.length;
  1768. this.checkAll = checkedCount === this.cities.length;
  1769. this.isIndeterminate =
  1770. checkedCount > 0 && checkedCount < this.cities.length;
  1771. this.tableSet = [];
  1772. this.$nextTick(() => {
  1773. this.tableSet = copyTable;
  1774. });
  1775. },
  1776. checkboxChange(v, e) {
  1777. var copyTable = JSON.parse(JSON.stringify(this.tableSet));
  1778. copyTable.forEach((item) => {
  1779. if (item.label === v) {
  1780. item.hidden = e;
  1781. }
  1782. });
  1783. this.tableSet = [];
  1784. this.$nextTick(() => {
  1785. this.tableSet = copyTable;
  1786. if (this.studentTable) {
  1787. sessionStorage.setItem("studentTableList", JSON.stringify(copyTable));
  1788. }
  1789. });
  1790. },
  1791. //自定义列重置
  1792. initVue() {
  1793. // this.$emit("initTableset");
  1794. this.tableSet = JSON.parse(this.inittableSet);
  1795. this.initTR();
  1796. },
  1797. // 下移
  1798. downMove(option, index) {
  1799. if (index !== this.tableSet.length - 1) {
  1800. this.tableSet[index] = this.tableSet.splice(
  1801. index + 1,
  1802. 1,
  1803. this.tableSet[index]
  1804. )[0];
  1805. this.cities[index] = this.cities.splice(
  1806. index + 1,
  1807. 1,
  1808. this.cities[index]
  1809. )[0];
  1810. } else {
  1811. this.tableSet.unshift(this.tableSet.splice(index, 1)[0]);
  1812. this.cities.unshift(this.cities.splice(index, 1)[0]);
  1813. }
  1814. var copyTable = JSON.parse(JSON.stringify(this.tableSet));
  1815. this.tableSet = [];
  1816. this.$nextTick(() => {
  1817. this.tableSet = copyTable;
  1818. });
  1819. },
  1820. // 上移
  1821. upMove(option, index) {
  1822. if (index != 0) {
  1823. this.tableSet[index] = this.tableSet.splice(
  1824. index - 1,
  1825. 1,
  1826. this.tableSet[index]
  1827. )[0];
  1828. this.cities[index] = this.cities.splice(
  1829. index - 1,
  1830. 1,
  1831. this.cities[index]
  1832. )[0];
  1833. } else {
  1834. this.tableSet.push(this.tableSet.shift());
  1835. this.cities.push(this.cities.shift());
  1836. }
  1837. var copyTable = JSON.parse(JSON.stringify(this.tableSet));
  1838. this.tableSet = [];
  1839. this.$nextTick(() => {
  1840. this.tableSet = copyTable;
  1841. });
  1842. },
  1843. //跳转页面
  1844. jumpPage(options) {
  1845. const jump = () => {
  1846. this.$router.push({
  1847. path: "dictData",
  1848. query: {
  1849. dictId: options.dictId,
  1850. dictType: options.dictType,
  1851. },
  1852. });
  1853. };
  1854. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1855. (item) => {
  1856. return item.name == "DictData";
  1857. }
  1858. );
  1859. if (statusPage) {
  1860. this.$store
  1861. .dispatch("tagsView/delCachedView", {
  1862. name: "DictData",
  1863. })
  1864. .then((res) => {
  1865. jump();
  1866. });
  1867. } else {
  1868. jump();
  1869. }
  1870. },
  1871. //跳转页面
  1872. jumpPageLabel(options) {
  1873. const jump = () => {
  1874. this.$router.push({
  1875. path: "labelInfos",
  1876. query: {
  1877. id: options.id,
  1878. },
  1879. });
  1880. };
  1881. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1882. (item) => {
  1883. return item.name == "LabelInfos";
  1884. }
  1885. );
  1886. if (statusPage) {
  1887. this.$store
  1888. .dispatch("tagsView/delCachedView", {
  1889. name: "LabelInfos",
  1890. })
  1891. .then((res) => {
  1892. jump();
  1893. });
  1894. } else {
  1895. jump();
  1896. }
  1897. }, //跳转页面
  1898. jumpPageLabelProfess(options) {
  1899. const jump = () => {
  1900. this.$router.push({
  1901. path: "labelInfos",
  1902. query: {
  1903. id: options.labelId,
  1904. },
  1905. });
  1906. };
  1907. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1908. (item) => {
  1909. return item.name == "LabelInfos";
  1910. }
  1911. );
  1912. if (statusPage) {
  1913. this.$store
  1914. .dispatch("tagsView/delCachedView", {
  1915. name: "LabelInfos",
  1916. })
  1917. .then((res) => {
  1918. jump();
  1919. });
  1920. } else {
  1921. jump();
  1922. }
  1923. },
  1924. jumpinfoJump(options) {
  1925. const jump = () => {
  1926. this.$router.push({
  1927. path: "beneficiaryInfos",
  1928. query: {
  1929. id: options.payeeId,
  1930. },
  1931. });
  1932. };
  1933. const statusPage = this.$store.state.tagsView.visitedViews.some(
  1934. (item) => {
  1935. return item.name == "BeneficiaryInfos";
  1936. }
  1937. );
  1938. if (statusPage) {
  1939. this.$store
  1940. .dispatch("tagsView/delCachedView", {
  1941. name: "BeneficiaryInfos",
  1942. })
  1943. .then((res) => {
  1944. jump();
  1945. });
  1946. } else {
  1947. jump();
  1948. }
  1949. },
  1950. //新增按钮
  1951. addClick() {
  1952. this.$emit("addClick");
  1953. },
  1954. //将选中值传回调用组件
  1955. backFather() {
  1956. this.$emit("emitData", this.allCheckData);
  1957. },
  1958. edit() {},
  1959. selectAll(value) {
  1960. this.allCheckData = value;
  1961. this.$emit("selectAll", value);
  1962. },
  1963. select(selection, row) {
  1964. this.allCheckData = selection;
  1965. this.$emit("select", selection, row);
  1966. },
  1967. load(tree, treeNode, resolve) {
  1968. this.$emit("load", tree, treeNode, resolve);
  1969. },
  1970. editInfo(option, int) {
  1971. if (int === 2) {
  1972. this.$emit("editName", option);
  1973. } else if (int === 3) {
  1974. this.$emit("aboutGoods", option);
  1975. } else {
  1976. this.$emit("editInfo", option);
  1977. }
  1978. },
  1979. getxq(option) {
  1980. this.$emit("getxq", option.userId);
  1981. },
  1982. openVideo(url) {
  1983. this.videoUrls = url;
  1984. this.diaBox = true;
  1985. },
  1986. closeBeforefs() {
  1987. this.diaBox = false;
  1988. },
  1989. },
  1990. };
  1991. </script>
  1992. <style lang="less">
  1993. .el-table .info-row {
  1994. background: #c9c9c9;
  1995. }
  1996. .open_style {
  1997. cursor: pointer;
  1998. color: blue;
  1999. }
  2000. .el-table .cell.el-tooltip {
  2001. transition: all 0.3s;
  2002. }
  2003. .max-heightStyles {
  2004. max-height: 500px;
  2005. overflow-y: auto;
  2006. }
  2007. .overSty {
  2008. white-space: nowrap;
  2009. overflow-x: auto;
  2010. &::-webkit-scrollbar {
  2011. width: 14px;
  2012. height: 14px;
  2013. }
  2014. &::-webkit-scrollbar-track,
  2015. &::-webkit-scrollbar-thumb {
  2016. border-radius: 999px;
  2017. border: 5px solid transparent;
  2018. }
  2019. &::-webkit-scrollbar-track {
  2020. box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) inset;
  2021. }
  2022. &::-webkit-scrollbar-thumb {
  2023. min-height: 20px;
  2024. background-clip: content-box;
  2025. box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.2) inset;
  2026. }
  2027. &::-webkit-scrollbar-corner {
  2028. background: transparent;
  2029. }
  2030. }
  2031. .slotPopper {
  2032. padding: 0px !important;
  2033. }
  2034. </style>
  2035. <style lang="less" scoped>
  2036. #tableList {
  2037. padding: 16px 16px 16px;
  2038. border-radius: 8px;
  2039. box-shadow: 0px 0px 9px 1px rgba(28, 41, 90, 0.1);
  2040. background: #ffffff;
  2041. .headerNavTool {
  2042. height: 72px;
  2043. display: flex;
  2044. justify-content: space-between;
  2045. align-items: center;
  2046. margin-top: -16px;
  2047. .rightBtnBox {
  2048. display: flex;
  2049. align-items: center;
  2050. }
  2051. }
  2052. }
  2053. .goodsListStyle {
  2054. cursor: pointer;
  2055. color: blue;
  2056. }
  2057. .popoverDis {
  2058. display: flex;
  2059. flex-direction: column;
  2060. align-items: flex-start;
  2061. font-size: 14px;
  2062. .checkboxHeader {
  2063. height: 40px;
  2064. display: flex;
  2065. align-items: center;
  2066. justify-content: space-between;
  2067. padding-left: 13px;
  2068. padding-right: 15px;
  2069. width: 100%;
  2070. .initbtns {
  2071. color: #47a6ff;
  2072. cursor: pointer;
  2073. }
  2074. }
  2075. .checkboxGroup {
  2076. display: flex;
  2077. flex-direction: column;
  2078. width: 100%;
  2079. .checkboxchild {
  2080. width: 100%;
  2081. justify-content: space-between;
  2082. height: 40px;
  2083. display: flex;
  2084. align-items: center;
  2085. padding: 0px 15px 0px 13px;
  2086. transition: all 0.4s;
  2087. &:hover {
  2088. background-color: #ecf5ff;
  2089. }
  2090. &:hover .icon-right {
  2091. display: flex;
  2092. }
  2093. .icon-right {
  2094. display: flex;
  2095. align-items: center;
  2096. width: 30px;
  2097. height: 30px;
  2098. color: #666;
  2099. font-size: 14px;
  2100. display: none;
  2101. i {
  2102. cursor: pointer;
  2103. margin: 0px 3px;
  2104. &:hover {
  2105. color: #47a6ff;
  2106. }
  2107. }
  2108. }
  2109. }
  2110. }
  2111. }
  2112. /deep/.el-checkbox__input.is-checked + .el-checkbox__label {
  2113. color: #666;
  2114. }
  2115. .imgboxsq {
  2116. margin: 0 auto;
  2117. height: 60px;
  2118. max-height: 60px;
  2119. .el_images {
  2120. /deep/.el-image__inner {
  2121. width: auto;
  2122. }
  2123. }
  2124. }
  2125. .imgHover {
  2126. width: 100%;
  2127. height: 100%;
  2128. cursor: pointer;
  2129. }
  2130. .cvideo {
  2131. transition: all 0.2s;
  2132. color: #333;
  2133. cursor: pointer;
  2134. font-size: 30px;
  2135. }
  2136. .cvideo:hover {
  2137. color: #47a6ff;
  2138. }
  2139. .editInfoSty {
  2140. cursor: pointer;
  2141. color: blue;
  2142. }
  2143. .ulAuto {
  2144. display: flex;
  2145. justify-content: center;
  2146. align-items: center;
  2147. & > ul {
  2148. margin: 0px;
  2149. }
  2150. }
  2151. .ulAutos {
  2152. display: flex;
  2153. align-items: center;
  2154. justify-content: center;
  2155. }
  2156. .el-popover > ul {
  2157. margin: 0px;
  2158. }
  2159. .dis_sdt {
  2160. display: flex;
  2161. align-items: flex-end;
  2162. ul {
  2163. margin: 0px;
  2164. li {
  2165. text-align: left;
  2166. }
  2167. }
  2168. }
  2169. .jumpStys {
  2170. color: blue;
  2171. cursor: pointer;
  2172. }
  2173. .zdyBoxStyle {
  2174. display: flex;
  2175. align-items: center;
  2176. justify-content: center;
  2177. .zdyBtnstyle {
  2178. padding: 4px 16px;
  2179. border-radius: 4px;
  2180. border: 1px solid #666;
  2181. color: #666;
  2182. cursor: pointer;
  2183. }
  2184. .goodsActiveStyle {
  2185. color: #fff;
  2186. background-color: #409eff;
  2187. border-color: #409eff;
  2188. }
  2189. }
  2190. .liSYTS {
  2191. padding: 10px;
  2192. margin-bottom: 16px;
  2193. background: #eee;
  2194. width: 96%;
  2195. }
  2196. .overBoxs {
  2197. max-height: 500px;
  2198. overflow-y: auto;
  2199. }
  2200. </style>