tableList.vue 94 KB

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