1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992 |
- <template>
- <div id="tableList">
- <div class="headerNavTool">
- <div class="leftIndexText">
- {{ navText.title }} <strong>{{ navText.index }}</strong>
- {{ navText.ch }}
- </div>
- <div class="rightBtnBox">
- <slot name="customize"></slot>
- <el-button
- size="medium"
- type="primary"
- @click="addClick"
- v-if="!navText.addHide"
- >添加</el-button
- >
- <el-button
- v-if="navText.backFatherBtn.status"
- size="medium"
- type="warning"
- @click="backFather"
- >{{ navText.backFatherBtn.title }}</el-button
- >
- <el-popover
- popper-class="slotPopper"
- placement="bottom-end"
- trigger="click"
- >
- <div class="popoverDis">
- <div class="checkboxHeader">
- <el-checkbox
- :indeterminate="isIndeterminate"
- v-model="checkAll"
- @change="handleCheckAllChange"
- >列展示</el-checkbox
- >
- <div class="initbtns" @click="initVue">重置</div>
- </div>
- <div
- style="height: 1px; width: 100%; background-color: #eaeefb"
- ></div>
- <el-checkbox-group
- class="checkboxGroup"
- v-model="checkedCities"
- @change="handleCheckedCitiesChange"
- >
- <div
- class="checkboxchild"
- v-for="(item, index) in cities"
- :key="index"
- >
- <el-checkbox
- :label="item"
- @change="checkboxChange(item, $event)"
- >{{ item }}</el-checkbox
- >
- <div class="icon-right">
- <i class="el-icon-upload2" @click="upMove(item, index)"></i>
- <i
- class="el-icon-download"
- @click="downMove(item, index)"
- ></i>
- </div>
- </div>
- </el-checkbox-group>
- </div>
- <el-button style="margin-left: 10px" size="medium" slot="reference"
- >自定义列</el-button
- >
- </el-popover>
- </div>
- </div>
- <el-table
- :data="tableData"
- stripe
- style="width: 100%"
- @select-all="selectAll"
- @select="select"
- :row-key="rowKey"
- :load="load"
- :cell-style="timeStyle"
- lazy
- :border="true"
- ref="pagerset"
- v-loading="loading"
- :header-cell-style="{
- 'background-color': '#eee',
- color: '#333',
- fontSize: '14px',
- }"
- :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
- >
- <el-table-column
- v-if="navText.choice"
- :reserve-selection="navText.openCheckMore"
- align="center"
- type="selection"
- width="55"
- header-align="center"
- fixed="left"
- >
- </el-table-column>
- <!-- v-if="navText.num" ↓ -->
- <el-table-column
- v-if="navText.dontNum ? false : true"
- type="index"
- label="序号"
- width="70"
- align="center"
- header-align="center"
- >
- </el-table-column>
- <af-table-column
- v-for="(item, index) in compTableSet(tableSet)"
- :width="item.width"
- :label="item.label"
- :align="item.dontCenter ? 'left' : 'center'"
- :sortable="item.prop === 'sort' || item.sort"
- :sort-method="sortMethods"
- :show-overflow-tooltip="item.showTooltip ? false : true"
- header-align="center"
- :prop="item.prop"
- sort-by="sort"
- :key="index"
- >
- <template slot-scope="scope">
- <div class="imgboxsq" v-if="item.scope === 'img'">
- <img
- style="height: 60px; width: 60px"
- v-if="!scope.row[item.prop]"
- src="@/assets/404_images/wuyuxaog.png"
- alt=""
- />
- <el-image
- v-else
- class="el_images"
- lazy
- :src="$methodsTools.splitImgHost(scope.row[item.prop])"
- style="height: 100%; width: 100%"
- :preview-src-list="[
- $methodsTools.splitImgHost(scope.row[item.prop]),
- ]"
- alt="加载失败"
- >
- </el-image>
- </div>
- <div v-else-if="item.scope === 'sortType'">
- <el-input-number
- v-model="scope.row[item.prop]"
- :min="0"
- style="width: 80px"
- :controls="false"
- @change="blurBackData(scope.row)"
- ></el-input-number>
- </div>
- <span v-else-if="item.scope === 'status'">{{
- Number(scope.row[item.prop]) === 1
- ? "启用"
- : Number(scope.row[item.prop]) === 0
- ? "关闭"
- : Number(scope.row[item.prop]) === -1
- ? "已删除"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'hasTime'">{{
- Number(scope.row[item.prop]) === 1
- ? "有效"
- : Number(scope.row[item.prop]) === 0
- ? "无效"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'statusZpFB'">{{
- Number(scope.row[item.prop]) === 1
- ? "未发布"
- : Number(scope.row[item.prop]) === 2
- ? "已发布"
- : Number(scope.row[item.prop]) === 0
- ? "停用"
- : Number(scope.row[item.prop]) === -1
- ? "已删除"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'reStatus'">{{
- Number(scope.row[item.prop]) === 1
- ? "定时发布"
- : Number(scope.row[item.prop]) === 0
- ? "手动发布"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'fabStatus'">{{
- Number(scope.row[item.prop]) === 1
- ? "发布"
- : Number(scope.row[item.prop]) === 0
- ? "未发布"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'sectionTypes'">{{
- Number(scope.row[item.prop]) === 2
- ? "录播"
- : Number(scope.row[item.prop]) === 1
- ? "直播"
- : Number(scope.row[item.prop]) === 3
- ? "回放"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'getShops'">
- {{
- scope.row["goodsCode"] +
- "-" +
- scope.row["goodsName"] +
- " (" +
- scope.row["educationName"] +
- "-" +
- scope.row["projectName"] +
- "-" +
- scope.row["businessName"] +
- ")"
- }}
- </span>
- <div v-else-if="item.scope === 'configSetClass'">
- <el-button
- type="text"
- v-if="scope.row[item.prop]"
- @click="backClassView(scope.row, item.type)"
- >{{ scope.row[item.prop] }}</el-button
- >
- <span v-else>{{ scope.row[item.prop] }}</span>
- </div>
- <span
- v-else-if="
- item.scope === 'treeWatch' &&
- (scope.row['goodsType'] === 1 ||
- scope.row['goodsType'] === 2 ||
- scope.row['goodsType'] === 6)
- "
- style="color: blue"
- @click="
- scope.row['goodsType'] === 1 || scope.row['goodsType'] === 6
- ? diavios(scope.row['goodsId'])
- : diaviosTK(scope.row['goodsId'])
- "
- >结构树视图</span
- >
- <span v-else-if="item.scope === 'leftCh'">
- {{ item.ch }}{{ scope.row[item.prop] }}
- </span>
- <span
- v-else-if="item.scope === 'goodsIds'"
- class="editInfoSty"
- @click="editInfo(scope.row, 3)"
- >
- {{
- !scope.row[item.prop]
- ? 0
- : scope.row[item.prop].split(",").map(Number).length
- }}
- </span>
- <span
- v-else-if="item.scope === 'aboutClassNum'"
- style="color: blue; cursor: pointer"
- @click="openClassNumDio(scope.row['goodsId'], scope.row[item.prop])"
- >
- {{ scope.row[item.prop] }}
- </span>
- <span
- v-else-if="item.scope === 'AjumpPeolpe'"
- class="editInfoSty"
- @click="jumpPeolpe(scope.row, item.type)"
- >
- {{ `${scope.row[item.prop]}` }}
- </span>
- <span
- v-else-if="item.scope === 'jumpPeolpe'"
- class="editInfoSty"
- @click="jumpPeolpe(scope.row, item.type)"
- >
- {{ `${scope.row[item.prop]} / ${scope.row[item.prop1]}` }}
- </span>
- <span v-else-if="item.scope === 'sectionTypesTTT'">{{
- Number(scope.row[item.prop]) === 1
- ? "录播"
- : Number(scope.row[item.prop]) === 2
- ? "直播"
- : Number(scope.row[item.prop]) === 3
- ? "回放"
- : ""
- }}</span>
- <span v-else-if="item.scope === 'liveAndUrl'">{{
- scope.row[item.prop] == 2
- ? scope.row[item.prop2]
- : scope.row[item.prop1]
- }}</span>
- <span v-else-if="item.scope === 'ggType'">{{
- Number(scope.row[item.prop]) === 1
- ? "学习中心"
- : Number(scope.row[item.prop]) === 2
- ? "求职中心"
- : "未知"
- }}</span>
- <ul v-else-if="item.scope === 'mapTypesTeacher'" class="ulAuto">
- <template v-for="(itm, inds) in scope.row[item.prop]">
- <li :key="inds" v-if="inds < 2">
- {{ `${itm.educationName}-${itm.projectName}`
- }}{{ inds === 0 ? ", " : "" }}
- </li>
- </template>
- <el-popover :key="Math.random()" placement="right" trigger="click">
- <ul>
- <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
- {{ inds + 1 }}、
- {{ itm.educationName + "-" + itm.projectName }}
- </li>
- </ul>
- <el-button
- slot="reference"
- style="margin-left: 6px"
- type="text"
- v-if="scope.row[item.prop].length > 2"
- size="mini"
- >更多</el-button
- >
- </el-popover>
- </ul>
- <span v-else-if="item.scope === 'goodsInfos'">
- {{ scope.row[item.prop1] + "-" + scope.row[item.prop2] + "-"
- }}<span style="color: red">¥{{ scope.row[item.prop3] }}</span>
- </span>
- <div v-else-if="item.scope === 'applyInfos'">
- <div v-for="(items, indexs) in scope.row[item.prop]" :key="indexs">
- <div>{{ items.siteAddress }}</div>
- <div
- v-for="(itemsxs, indexsxs) in items.examApplySiteTime"
- :key="indexsxs"
- >
- <div v-for="(ks, ds) in itemsxs.siteTime" :key="ds">
- {{ $methodsTools.onlyForma(itemsxs.examTime, false) }}
- {{ ks.startTime.replace("-", ":") }}-{{
- ks.endTime.replace("-", ":")
- }}
- </div>
- </div>
- </div>
- </div>
- <ul v-else-if="item.scope === 'moreGoodsList'" class="ulAuto">
- <template v-for="(itm, inds) in scope.row[item.prop]">
- <li :key="inds" v-if="inds < 1">
- {{ itm[item.prop1] + "-" + itm[item.prop2] + "-" }}
- <span style="color: red">¥{{ itm[item.prop3] }}</span>
- </li>
- </template>
- <el-popover :key="Math.random()" placement="right" trigger="click">
- <ul>
- <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
- {{ inds + 1 }}、
- {{ itm[item.prop1] + "-" + itm[item.prop2] + "-" }}
- <span style="color: red">¥{{ itm[item.prop3] }}</span>
- </li>
- </ul>
- <el-button
- slot="reference"
- style="margin-left: 6px"
- type="text"
- v-if="scope.row[item.prop].length >= 2"
- size="mini"
- >更多</el-button
- >
- </el-popover>
- </ul>
- <ul v-else-if="item.scope === 'mapTypes'" class="ulAuto">
- <template v-for="(itm, inds) in scope.row[item.prop]">
- <li :key="inds" v-if="inds === 0">
- {{ itm.educationName + "-" + itm.projectName }}
- </li>
- </template>
- <el-popover :key="Math.random()" placement="right" trigger="click">
- <ul>
- <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
- {{ inds + 1 }}、
- {{ itm.educationName + "-" + itm.projectName }}
- </li>
- </ul>
- <el-button
- slot="reference"
- style="margin-left: 6px"
- type="text"
- v-if="scope.row[item.prop].length > 1"
- size="mini"
- >更多</el-button
- >
- </el-popover>
- </ul>
- <ul v-else-if="item.scope === 'mapTypesBUS'" class="ulAuto">
- <template v-for="(itm, inds) in scope.row[item.prop]">
- <li :key="inds" v-if="inds === 0">
- {{
- itm.educationName +
- "-" +
- itm.projectName +
- "-" +
- itm.businessName
- }}
- </li>
- </template>
- <el-popover :key="Math.random()" placement="right" trigger="click">
- <ul>
- <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
- {{ inds + 1 }}、
- {{
- itm.educationName +
- "-" +
- itm.projectName +
- "-" +
- itm.businessName
- }}
- </li>
- </ul>
- <el-button
- slot="reference"
- style="margin-left: 6px"
- type="text"
- v-if="scope.row[item.prop].length > 1"
- size="mini"
- >更多</el-button
- >
- </el-popover>
- </ul>
- <div v-else-if="item.scope === 'splits'" class="dis_sdt">
- <ul>
- <template v-for="(itm, inds) in scope.row[item.prop]">
- <li :key="inds" v-if="inds < 2">
- {{ itm }}
- </li>
- </template>
- </ul>
- <el-popover :key="Math.random()" placement="right" trigger="click">
- <ul>
- <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
- {{ inds + 1 }}、
- {{ itm }}
- </li>
- </ul>
- <el-button
- slot="reference"
- style="margin-left: 6px"
- type="text"
- v-if="scope.row[item.prop].length > 2"
- size="mini"
- >更多</el-button
- >
- </el-popover>
- </div>
- <ul v-else-if="item.scope === 'classNums'" class="ulAutos">
- <li
- style="font-size: 12px; cursor: pointer; color: #1890ff"
- v-if="!scope.row[item.prop].length"
- >
- 班级({{ scope.row[item.prop].length }})
- </li>
- <el-popover :key="Math.random()" placement="right" trigger="click">
- <ul class="max-heightStyles">
- <li
- v-for="(itm, inds) in scope.row[item.prop]"
- :key="inds"
- class="jumpClass"
- @click="jumpClass(itm)"
- >
- {{ inds + 1 }}、
- {{ itm.gradeName }}
- </li>
- </ul>
- <el-button
- v-if="scope.row[item.prop].length"
- slot="reference"
- type="text"
- size="mini"
- >班级({{ scope.row[item.prop].length }})</el-button
- >
- </el-popover>
- </ul>
- <div v-else-if="item.scope === 'goodsList'" class="ulAuto">
- <ul>
- <template v-for="(itm, inds) in scope.row[item.prop]">
- <li :key="inds" v-if="inds === 0">
- {{ itm.goodsName }}
- </li>
- </template>
- </ul>
- <el-popover :key="Math.random()" placement="right" trigger="click">
- <ul>
- <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
- {{ inds + 1 }}、
- {{ itm.goodsName }}
- </li>
- </ul>
- <el-button
- slot="reference"
- style="margin-left: 6px"
- type="text"
- v-if="scope.row[item.prop].length > 1"
- size="mini"
- >更多</el-button
- >
- </el-popover>
- </div>
- <div v-else-if="item.scope === 'aboutChapter'" class="ulAuto">
- <ul>
- <template v-for="(itm, inds) in scope.row[item.prop]">
- <li
- class="jumpStys"
- :key="inds"
- v-if="inds === 0"
- @click="jumpPages(itm, item.int)"
- >
- {{ itm[item.prop1] }}
- </li>
- </template>
- </ul>
- <el-popover :key="Math.random()" placement="right" trigger="click">
- <ul>
- <li
- v-for="(itm, inds) in scope.row[item.prop]"
- :key="inds"
- class="jumpStys"
- @click="jumpPages(itm, item.int)"
- >
- {{ inds + 1 }}、
- {{ itm[item.prop1] }}
- </li>
- </ul>
- <el-button
- slot="reference"
- style="margin-left: 6px"
- type="text"
- v-if="scope.row[item.prop].length > 1"
- size="mini"
- >更多</el-button
- >
- </el-popover>
- </div>
- <ul v-else-if="item.scope === 'mapTypesMores'" class="ulAuto">
- <template v-for="(itm, inds) in scope.row[item.prop]">
- <li :key="inds" v-if="inds === 0">
- {{
- itm.educationName +
- "-" +
- itm.projectName +
- "-" +
- itm.businessName +
- "-" +
- itm.subjectName
- }}
- </li>
- </template>
- <el-popover :key="Math.random()" placement="right" trigger="click">
- <ul style="overflow: auto; max-height: 500px">
- <li v-for="(itm, inds) in scope.row[item.prop]" :key="inds">
- {{ inds + 1 }}、
- {{
- itm.educationName +
- "-" +
- itm.projectName +
- "-" +
- itm.businessName +
- "-" +
- itm.subjectName
- }}
- </li>
- </ul>
- <el-button
- slot="reference"
- style="margin-left: 6px"
- type="text"
- v-if="scope.row[item.prop].length > 1"
- size="mini"
- >更多</el-button
- >
- </el-popover>
- </ul>
- <span v-else-if="item.scope === 'statusRe'">{{
- Number(scope.row[item.prop]) === 0
- ? "已删除"
- : Number(scope.row[item.prop]) === 1 &&
- Number(scope.row["reStatus"]) === 1
- ? "待发布"
- : Number(scope.row[item.prop]) === 1 &&
- Number(scope.row["reStatus"]) === 0
- ? "未发布"
- : Number(scope.row[item.prop]) === 2
- ? "已撤回"
- : Number(scope.row[item.prop]) === 3
- ? "已发布"
- : Number(scope.row[item.prop]) === 4
- ? "已到期"
- : "未知"
- }}</span>
- <div v-else-if="item.scope === 'htmlInfo'">
- <bankMsg ref="bankMsg" :bankMsg="scope.row" />
- </div>
- <span v-else-if="item.scope === 'TimeVoBtn'">
- <el-popover :key="Math.random()" placement="left" trigger="click">
- <div
- v-for="(items, indexs) in scope.row[item.prop]"
- :key="indexs"
- style="margin-bottom: 6px"
- >
- {{ $methodsTools.onlyForma(items.startTime) }} ~
- {{ $methodsTools.onlyForma(items.endTime) }}
- </div>
- <el-button slot="reference" size="mini">查看</el-button>
- </el-popover>
- </span>
- <div v-else-if="item.scope === 'subTime'">
- <span style="margin-right: 6px">{{
- $methodsTools.onlyForma(scope.row[item.prop1], false)
- }}</span>
- <span>{{ scope.row[item.prop2] }}</span>
- <span> - </span>
- <span>{{ scope.row[item.prop3] }}</span>
- </div>
- <div v-else-if="item.scope === 'video'">
- <i
- v-if="scope.row[item.prop][item.prop1] !== null"
- class="el-icon-video-play cvideo"
- @click="
- openVideo(
- $methodsTools.splitImgHost(scope.row[item.prop][item.prop1])
- )
- "
- ></i>
- </div>
- <div v-else-if="item.scope === 'modifyContent'">
- <span v-if="scope.row[item.prop1]"
- >手机号码{{
- scope.row[item.prop2] || scope.row[item.prop3] ? "、" : ""
- }}</span
- ><span v-if="scope.row[item.prop2]"
- >姓名{{ scope.row[item.prop3] ? "、" : "" }}</span
- ><span v-if="scope.row[item.prop3]">身份证号码</span>
- </div>
- <div
- v-else-if="item.scope === 'PDF'"
- style="display: flex; align-items: center"
- >
- <a
- v-if="scope.row[item.prop][item.prop1] !== null"
- :href="
- $methodsTools.splitImgHost(scope.row[item.prop][item.prop1])
- "
- target="_blank"
- style="
- display: block;
- width: 35px;
- height: 45px;
- margin-right: 10px;
- "
- >
- <img class="imgHover" src="@/assets/images/pdf@3x.png" alt="" />
- </a>
- <div>{{ scope.row[item.prop][item.prop2] }}</div>
- </div>
- <span v-else-if="item.scope === 'Salary'">
- {{ scope.row[item.prop1] === 1 ? "月薪" : "年薪" }}
- {{
- scope.row[item.prop2] === scope.row[item.prop3]
- ? scope.row[item.prop2]
- : scope.row[item.prop2] + "~" + scope.row[item.prop3]
- }}
- </span>
- <template v-else-if="item.scope === 'courseAbout'">
- <div v-for="(item, index) in scope.row[item.prop]" :key="index">
- {{ item.courseName }} ({{ item.aliasName }})
- </div>
- </template>
- <div v-else-if="item.scope === 'changAdress'">
- <div>地点:{{ scope.row[item.prop1] }}</div>
- <div>
- 时间:{{ $methodsTools.onlyForma(scope.row[item.prop2], false) }}
- <span
- >{{ scope.row[item.prop3] }}-{{ scope.row[item.prop4] }}</span
- >
- </div>
- <div v-if="scope.row['fromPlat'] === 2">准考证号:{{ scope.row[item.prop5] }}</div>
- <div v-if="scope.row['fromPlat'] === 2">座位号:{{ scope.row[item.prop6] }}</div>
- <div v-if="scope.row['fromPlat'] === 2">
- 同步到考场状态:{{
- scope.row[item.prop7] === 0
- ? "未同步"
- : scope.row[item.prop7] === 1
- ? "成功"
- : scope.row[item.prop7] === 2
- ? "失败"
- : ""
- }}
- <!-- <el-button v-if="scope.row[item.prop7] === 2" type="text">原因</el-button> -->
- </div>
- </div>
- <div v-else-if="item.scope === 'changAdressKP'">
- <div>地点:{{ scope.row[item.prop1] }}</div>
- <div>
- 时间:{{ $methodsTools.onlyForma(scope.row[item.prop2], false) }}
- <span
- >{{ scope.row[item.prop3] }}-{{ scope.row[item.prop4] }}</span
- >
- </div>
- </div>
- <span v-else-if="item.scope === 'activityType'">{{
- Number(scope.row[item.prop]) === 0
- ? "优惠券"
- : Number(scope.row[item.prop]) === 1
- ? "折扣券"
- : Number(scope.row[item.prop]) === 2
- ? "线上直播"
- : Number(scope.row[item.prop]) === 3
- ? "定价"
- : Number(scope.row[item.prop]) === 4
- ? "优惠"
- : Number(scope.row[item.prop]) === 5
- ? "折扣"
- : Number(scope.row[item.prop]) === 6
- ? "线下活动"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'activityRemarks'">{{
- Number(scope.row[item.prop]) === 0
- ? "金额:¥" + scope.row["price"]
- : Number(scope.row[item.prop]) === 1
- ? "折扣:" + scope.row["price"] + "折"
- : Number(scope.row[item.prop]) === 2
- ? "直播内容:" + scope.row["liveContent"]
- : Number(scope.row[item.prop]) === 3
- ? "商品金额:¥" + scope.row["price"]
- : Number(scope.row[item.prop]) === 4
- ? "优惠金额:¥" + scope.row["price"]
- : Number(scope.row[item.prop]) === 5
- ? "商品折扣:" + scope.row["price"] + "折"
- : Number(scope.row[item.prop]) === 6
- ? "活动地点:" + scope.row["liveAdress"]
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'isUrgent'">{{
- scope.row[item.prop] === 0
- ? "不是"
- : scope.row[item.prop] === 1
- ? "是"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'convert'">{{
- $methodsTools.secondToDate(scope.row[item.prop], false)
- }}</span>
- <div v-else-if="item.scope === 'studentServicePeriod'">
- <span v-if="scope.row[item.prop1] === 1"
- >{{ scope.row[item.prop2] }}年</span
- >
- <span v-if="scope.row[item.prop1] === 2"
- >{{ scope.row[item.prop2] }}月</span
- >
- <span v-if="scope.row[item.prop1] === 3"
- >{{ scope.row[item.prop2] }}日</span
- >
- <span v-if="scope.row[item.prop1] === 4">
- {{ $methodsTools.onlyForma(scope.row[item.prop3]) }}
- {{ scope.row[item.prop3] && scope.row[item.prop4] ? "至" : "" }}
- {{ $methodsTools.onlyForma(scope.row[item.prop4]) }}
- </span>
- </div>
- <span v-else-if="item.scope === 'gfStatus'">{{
- scope.row[item.prop] === 0
- ? "否"
- : scope.row[item.prop] === 1
- ? "是"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'refundPrice'">
- {{
- scope.row["goodsRealPrice"] >= 0 &&
- scope.row["goodsReceived"] >= 0
- ? Number(scope.row["goodsRealPrice"]) -
- Number(scope.row["goodsReceived"]) +
- "元"
- : ""
- }}
- </span>
- <div v-else-if="item.scope === 'periodStatusShow'">
- {{
- scope.row[item.prop] === 2
- ? "同意,待退款"
- : scope.row[item.prop] === 3
- ? "同意,已退款"
- : "待审核"
- }}
- </div>
- <span v-else-if="item.scope === 'peopleNum'">{{
- scope.row[item.prop] === 0 ? "不限制" : scope.row[item.prop]
- }}</span>
- <span v-else-if="item.scope === 'address'"
- >{{
- scope.row[item.prop1] +
- scope.row[item.prop2] +
- scope.row[item.prop3]
- }}{{ scope.row[item.prop4] ? scope.row[item.prop4] : "" }}</span
- >
- <span v-else-if="item.scope === 'statusActivity'">{{
- Number(scope.row[item.prop]) === 0
- ? "已删除"
- : Number(scope.row[item.prop]) === 1
- ? "已结束"
- : Number(scope.row[item.prop]) === 2
- ? "已撤回"
- : Number(scope.row[item.prop]) === 3
- ? "已开始"
- : Number(scope.row[item.prop]) === 4
- ? "未开始"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'sex'">
- {{
- scope.row[item.prop] == 1
- ? "男"
- : scope.row[item.prop] == 2
- ? "女"
- : "未知"
- }}
- </span>
- <span v-else-if="item.scope === 'statusFB'">{{
- scope.row[item.prop] === 0
- ? "删除"
- : scope.row[item.prop] === 1
- ? "发布"
- : scope.row[item.prop] === 2
- ? "撤回"
- : scope.row[item.prop] === 3
- ? "未发布"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'typeStatus'">{{
- scope.row[item.prop] === 0
- ? "报名指引"
- : scope.row[item.prop] === 1
- ? "打印准考证"
- : scope.row[item.prop] === 2
- ? "成绩查询指引"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'typeId'">{{
- scope.row[item.prop] === 1
- ? "普通练习"
- : scope.row[item.prop] === 2
- ? "押题试卷"
- : scope.row[item.prop] === 3
- ? "真题试卷"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'taskType'">{{
- scope.row[item.prop] === 0
- ? "每日签到"
- : scope.row[item.prop] === 1
- ? "完善信息"
- : scope.row[item.prop] === 2
- ? "邀请好友"
- : scope.row[item.prop] === 3
- ? "每日分享"
- : scope.row[item.prop] === 4
- ? "视频学习"
- : scope.row[item.prop] === 5
- ? "模拟考试"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'releaseType'">{{
- scope.row[item.prop] === 0
- ? "手动发布"
- : scope.row[item.prop] === 1
- ? "定时发布"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'releaseStatus'">{{
- scope.row[item.prop] === 0
- ? "删除"
- : scope.row[item.prop] === 1
- ? "待发布"
- : scope.row[item.prop] === 2
- ? "撤回"
- : scope.row[item.prop] === 3
- ? "发布成功"
- : scope.row[item.prop] === 4
- ? "未发布"
- : scope.row[item.prop] === 5
- ? "已结束"
- : "未知"
- }}</span>
- <div v-else-if="item.scope === 'knowledge'" class="overSty">
- <el-button
- type="success"
- size="small"
- v-for="(items, ks) in scope.row[item.prop]"
- :key="ks"
- >
- {{ items.knowledgeName }}
- </el-button>
- </div>
- <span v-else-if="item.scope === 'numberAll'">{{
- scope.row[item.prop1] + scope.row[item.prop2]
- }}</span>
- <span v-else-if="item.scope === 'moreLists'">{{
- scope.row[item.prop1] + " ~ " + scope.row[item.prop2]
- }}</span>
- <span v-else-if="item.scope === 'resultType'">
- {{ scope.row[item.prop1] }}
- <span
- :style="
- scope.row[item.prop2] === 1
- ? 'color:purple'
- : scope.row[item.prop2] === 0
- ? 'color:red;'
- : ''
- "
- >
- {{
- scope.row[item.prop2] === 1
- ? "通过"
- : scope.row[item.prop2] === 0
- ? "不通过"
- : ""
- }}
- </span>
- </span>
- <span v-else-if="item.scope === 'TimeLists'"
- >{{ $methodsTools.onlyForma(scope.row[item.prop1], item.Diszing) }}
- 至
- {{
- $methodsTools.onlyForma(scope.row[item.prop2], item.Diszing)
- }}</span
- >
- <span v-else-if="item.scope === 'aTimeList'">{{
- scope.row[item.prop] === null
- ? "--"
- : $methodsTools.onlyForma(scope.row[item.prop], !item.isDiszing)
- }}</span>
- <div v-else-if="item.scope === 'inputs'">
- <el-input-number
- style="width: 50px"
- size="small"
- :controls="false"
- v-model="scope.row[item.prop]"
- controls-position="right"
- :min="0"
- ></el-input-number>
- </div>
- <span v-else-if="item.scope === 'topic'">{{
- scope.row[item.prop] === 1
- ? "单选题"
- : scope.row[item.prop] === 2
- ? "多选题"
- : scope.row[item.prop] === 3
- ? "判断题"
- : scope.row[item.prop] === 4
- ? "案例题"
- : scope.row[item.prop] === 5
- ? "简答题"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'typeStatusName'">{{
- scope.row[item.prop] === 1
- ? "扫码支付"
- : scope.row[item.prop] === 2
- ? "刷卡支付"
- : scope.row[item.prop] === 3
- ? "现金支付"
- : scope.row[item.prop] === 4
- ? "转账"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'teachers'">
- <span v-for="(itm, indm) in scope.row[item.prop]" :key="indm"
- >{{ itm.nickName
- }}{{ indm !== scope.row[item.prop].length - 1 ? "," : "" }}</span
- >
- </span>
- <span v-else-if="item.scope === 'streamType'">{{
- scope.row[item.prop] === 1
- ? "正式"
- : scope.row[item.prop] === 2
- ? "测试"
- : "未知"
- }}</span>
- <span
- v-else-if="item.scope === 'statusPeriods'"
- :style="scope.row[item.prop] === 1 ? 'color:red' : ''"
- >
- {{
- scope.row[item.prop] === -1
- ? "不可审核"
- : scope.row[item.prop] === 2
- ? "待审核"
- : scope.row[item.prop] === 0
- ? "未通过"
- : scope.row[item.prop] === 1
- ? "已通过"
- : scope.row[item.prop] === 3
- ? "审核中"
- : ""
- }}
- </span>
- <div
- v-else-if="item.scope === 'RealPrice'"
- :style="
- scope.row[item.prop2] != null ? 'color:rgb(132, 0, 255);' : ''
- "
- >
- ¥{{ scope.row[item.prop1] }}
- <span v-if="scope.row[item.prop2] != null">
- (实收¥{{ scope.row[item.prop2] }})</span
- >
- </div>
- <ul style="margin: 0" v-else-if="item.scope === 'chance'">
- <li>总共:{{ scope.row[item.prop1] }}</li>
- <li>消耗:{{ scope.row[item.prop2] }}</li>
- <li>剩余:{{ scope.row[item.prop1] - scope.row[item.prop2] }}</li>
- </ul>
- <ul style="margin: 0" v-else-if="item.scope === 'studyCount'">
- <li>总共:{{ scope.row[item.prop1] + scope.row[item.prop2] }}</li>
- <li>消耗:{{ scope.row[item.prop1] }}</li>
- <li>剩余:{{ scope.row[item.prop2] }}</li>
- </ul>
- <span
- v-else-if="item.scope === 'statusPeriod'"
- :style="scope.row[item.prop] === 2 ? 'color:red' : ''"
- >
- {{
- scope.row[item.prop] === -1
- ? "不可审核"
- : scope.row[item.prop] === 2
- ? "待审核"
- : scope.row[item.prop] === 0
- ? "未通过"
- : scope.row[item.prop] === 1
- ? "已通过"
- : scope.row[item.prop] === 3
- ? "审核中"
- : ""
- }}
- </span>
- <div
- v-else-if="item.scope === 'openBox'"
- class="open_style"
- @click="openBoxData(scope.row)"
- >
- {{ scope.row[item.prop] }}
- </div>
- <div v-else-if="item.scope === 'changeCLS'">
- <div
- v-if="!scope.row['interfacePushId'] && !scope.row['periodPlush']"
- >
- <div v-if="scope.row[item.prop] === 1" style="color: red">
- 有变更<span
- style="margin-left: 6px; color: blue; cursor: pointer"
- @click="isShowBoxsFun(scope.row)"
- >查看</span
- >
- </div>
- <span v-else> 正常 </span>
- </div>
- <template v-else>
- <div
- v-if="
- scope.row['interfacePushId'] === 1 &&
- !scope.row['periodPlush']
- "
- >
- <div v-if="scope.row[item.prop] === 1">
- <div
- v-if="
- scope.row['officialStatusTime'] &&
- scope.row['userUpdates'][0].createTime <
- scope.row['officialStatusTime']
- "
- >
- 正常
- </div>
- <div v-else style="color: red">
- 有变更<span
- style="margin-left: 6px; color: blue; cursor: pointer"
- @click="isShowBoxsFun(scope.row)"
- >查看</span
- >
- </div>
- </div>
- <span v-else> 正常 </span>
- </div>
- <div
- v-if="
- scope.row['interfacePushId'] === 1 &&
- scope.row['periodPlush'] === 1
- "
- >
- <div v-if="scope.row[item.prop] === 1">
- <div
- v-if="
- scope.row['officialStatusTime'] &&
- scope.row['userUpdates'][0].createTime <
- scope.row['officialStatusTime']
- "
- >
- 正常
- </div>
- <div v-else style="color: purple">
- 有变更<span
- style="margin-left: 6px; color: blue; cursor: pointer"
- @click="isShowBoxsFun(scope.row)"
- >查看</span
- >
- </div>
- </div>
- <span v-else> 正常 </span>
- </div>
- </template>
- </div>
- <div v-else-if="item.scope === 'rebuy'">
- <span>{{ scope.row[item.prop] === 1 ? "是" : "" }}</span>
- <span
- v-if="scope.row[item.prop] === 1"
- style="margin-left: 6px; color: blue; cursor: pointer"
- @click="isShowRebuy(scope.row)"
- >查看</span
- >
- </div>
- <span
- v-else-if="item.scope === 'finishStatus'"
- :style="scope.row[item.prop] === 0 ? 'color:red' : ''"
- >
- {{
- scope.row[item.prop] === 0
- ? "未学完"
- : scope.row[item.prop] === 1
- ? "已学完"
- : ""
- }}
- </span>
- <span v-else-if="item.scope === 'computer'">
- {{ scope.row[item.prop1] + "/" + scope.row[item.prop2] }}
- {{
- scope.row[item.prop1] == 0 && scope.row[item.prop2] == 0
- ? "0%"
- : (
- (scope.row[item.prop1] / scope.row[item.prop2]) *
- 100
- ).toFixed(2) + "%"
- }}
- </span>
- <div v-else-if="item.scope === 'computerDoNum'">
- {{
- scope.row[item.prop1] == 0 && scope.row[item.prop2] == 0
- ? "0%"
- : (
- (scope.row[item.prop1] / scope.row[item.prop2]) *
- 100
- ).toFixed(2) + "%"
- }}
- </div>
- <div v-else-if="item.scope === 'payGoodsList'">
- <span
- style="margin-right: 6px"
- class="goodsListStyle"
- @click="openGoodsListBoxs(scope.row, 1)"
- >视频({{
- scope.row[item.prop1] ? scope.row[item.prop1] : 0
- }})</span
- >
- <span
- style="margin-right: 6px"
- class="goodsListStyle"
- @click="openGoodsListBoxs(scope.row, 2)"
- >题库({{
- scope.row[item.prop2] ? scope.row[item.prop2] : 0
- }})</span
- >
- <span
- class="goodsListStyle"
- @click="openGoodsListBoxs(scope.row, 6)"
- >直播({{
- scope.row[item.prop3] ? scope.row[item.prop3] : 0
- }})</span
- >
- </div>
- <div v-else-if="item.scope === 'analysiss'">
- {{ scope.row[item.prop].toString() }}
- </div>
- <div
- v-else-if="item.scope === 'reserveFunc'"
- class="editInfoSty"
- @click="openBoxData(scope.row)"
- >
- {{ scope.row[item.prop1] }} / {{ scope.row[item.prop2] }}
- </div>
- <span v-else-if="item.scope === 'statusOrder'">{{
- scope.row[item.prop] === -2
- ? "超时关闭"
- : scope.row[item.prop] === -1
- ? "手动关闭"
- : scope.row[item.prop] === 0
- ? "待付款"
- : scope.row[item.prop] === 1
- ? "已付款"
- : scope.row[item.prop] === 3
- ? "成功"
- : "未知"
- }}</span>
- <span v-else-if="item.scope === 'cType'">
- <el-tag
- type="success"
- v-if="
- compType(scope.row[item.prop], scope.row['requestMethod']) ===
- '新增'
- "
- >
- {{
- compType(scope.row[item.prop], scope.row["requestMethod"])
- }}</el-tag
- >
- <el-tag
- v-if="
- compType(scope.row[item.prop], scope.row['requestMethod']) ===
- '修改'
- "
- >
- {{
- compType(scope.row[item.prop], scope.row["requestMethod"])
- }}</el-tag
- >
- <el-tag
- type="warning"
- v-if="
- compType(scope.row[item.prop], scope.row['requestMethod']) ===
- '查询'
- "
- >
- {{
- compType(scope.row[item.prop], scope.row["requestMethod"])
- }}</el-tag
- >
- </span>
- <span v-else-if="item.scope === 'time'">{{
- numTime(scope.row[item.prop])
- }}</span>
- <span v-else-if="item.scope === 'timeBtn'"
- >{{ numTime(scope.row[item.prop]) }}
- <el-button type="text" @click="getxq(scope.row)">详情</el-button>
- </span>
- <span
- class="editInfoSty"
- v-else-if="item.scope === 'editInfo'"
- @click="editInfo(scope.row)"
- >{{ scope.row[item.prop] }}
- </span>
- <div v-else-if="item.scope === 'editName'">
- <span>{{ scope.row[item.prop] }}</span>
- <el-button
- style="margin-left: 6px"
- type="text"
- @click="editInfo(scope.row, 2)"
- >修改</el-button
- >
- </div>
- <span
- class="editInfoSty"
- v-else-if="item.scope === 'editInfoMore'"
- @click="editInfo(scope.row)"
- >{{ scope.row[item.prop1] }} - {{ scope.row[item.prop2] }}
- </span>
- <span v-else-if="item.scope === 'InfoMore'"
- >{{ scope.row[item.prop1] }} - {{ scope.row[item.prop2] }}
- </span>
- <div v-else-if="item.scope === 'realAndIdcard'">
- {{ scope.row[item.prop1] }}<br />{{ scope.row[item.prop2] }}
- </div>
- <el-button
- v-else-if="item.scope === 'aboutTrees'"
- slot="reference"
- @click="activesBoxszing(scope.row[item.prop])"
- >查看</el-button
- >
- <div
- class="editInfoSty"
- v-else-if="item.scope === 'editInfoHTML'"
- @click="editInfo(scope.row)"
- >
- {{ getSimpleText(scope.row[item.prop]) }}
- </div>
- <div v-else-if="item.scope === 'editInfoHTMLs'">
- {{ getSimpleText(scope.row[item.prop]) }}
- </div>
- <span v-else-if="item.scope === 'minute'">{{
- numTimeminute(scope.row[item.prop])
- }}</span>
- <span
- v-else-if="item.scope === 'jumpPage'"
- @click="jumpPage(scope.row)"
- style="color: #409eff; cursor: pointer"
- >{{ scope.row[item.prop] }}</span
- >
- <span v-else-if="item.scope === 'objType'">
- {{
- scope.row[item.objProp].length
- ? scope.row[item.objProp][0][item.prop]
- : ""
- }}
- </span>
- <span v-else-if="item.scope === 'isOKs'" style="color: red"
- >审核通过</span
- >
- <span v-else-if="item.scope === 'classTypes'">
- {{
- scope.row[item.prop] === 1
- ? `已开班:${scope.row[item.prop1]}`
- : scope.row[item.prop] === 0
- ? "预报名(未开班)"
- : ""
- }}
- </span>
- <span v-else-if="item.scope === 'classTimeTypes'">
- {{
- scope.row[item.prop] === 1
- ? "即刻"
- : scope.row[item.prop] === 2
- ? "待定"
- : scope.row[item.prop] === 3
- ? $methodsTools.onlyForma(scope.row[item.prop1])
- : "未知"
- }}
- </span>
- <div v-else-if="item.scope === 'objTypeYW'">
- <span v-if="scope.row[item.objProp].length">
- {{ scope.row[item.objProp][0][item.prop1] }}-{{
- scope.row[item.objProp][0][item.prop2]
- }}-{{ scope.row[item.objProp][0][item.prop3] }}
- </span>
- </div>
- <div v-else-if="item.scope === 'againStudent'">
- <span :style="scope.row[item.prop] ? 'color:blue' : ''">{{
- scope.row[item.prop]
- }}</span>
- <span
- style="color: red; margin-left: 10px"
- v-if="scope.row[item.prop]"
- >已重修{{ scope.row[item.prop1] }}节</span
- >
- </div>
- <span v-else-if="item.scope === 'eduTypes'">
- {{
- scope.row[item.prop1] +
- "-" +
- scope.row[item.prop2] +
- "-" +
- scope.row[item.prop3]
- }}{{ scope.row[item.prop4] ? "-" + scope.row[item.prop4] : "" }}
- </span>
- <span v-else-if="item.scope === 'outStandingAmount'">
- ¥{{ (scope.row[item.prop1] - scope.row[item.prop2]).toFixed(2) }}
- </span>
- <span
- v-else-if="item.scope === 'sendStatus'"
- :style="scope.row[item.prop] === 0 ? 'color:red;' : ''"
- >
- {{
- scope.row[item.prop] === 1
- ? "发送成功"
- : scope.row[item.prop] === 0
- ? "发送失败"
- : "--"
- }}
- </span>
- <span v-else-if="item.scope === 'peopleNums'">
- {{ scope.row[item.prop1] }} / {{ scope.row[item.prop2] }}
- </span>
- <span
- v-else-if="item.scope === 'jumpPageLabel'"
- @click="jumpPageLabel(scope.row)"
- style="color: #409eff; cursor: pointer"
- >{{ scope.row[item.prop] }}</span
- >
- <span v-else-if="item.scope === 'urlStatus'">
- {{
- scope.row[item.prop] === 1
- ? scope.row[item.prop1]
- : scope.row[item.prop] === 2
- ? scope.row[item.prop2]
- : scope.row[item.prop] === 3
- ? scope.row[item.prop3]
- : ""
- }}
- </span>
- <div v-else-if="item.scope === 'morePeople'">
- <template v-if="scope.row[item.prop]">
- <span
- v-for="(itm, idm) in scope.row[item.prop]
- .split(',')
- .map(Number)"
- :key="idm"
- >
- {{ itm === 1 ? "非补考学员" : itm === 2 ? "补考学员" : "" }}
- </span>
- </template>
- </div>
- <span
- v-else-if="item.scope === 'jumpPageLabelProfess'"
- @click="jumpPageLabelProfess(scope.row)"
- style="color: #409eff; cursor: pointer"
- >{{ scope.row[item.prop] }}</span
- >
- <span
- v-else-if="item.scope === 'infoJump'"
- @click="jumpinfoJump(scope.row)"
- style="color: #409eff; cursor: pointer"
- >详情</span
- >
- <div v-else-if="item.scope === 'learnStatus'">
- <div v-if="scope.row.learnStatus === 0" style="color: red">
- 未开通
- </div>
- <div v-if="scope.row.learnStatus === 1">已开通</div>
- <div v-if="scope.row.learnStatus === 2">
- 标记失败
- <el-popover placement="right" trigger="click" width="360">
- <div>
- <p>账号开通状态为:标记失败</p>
- <p>失败原因:<br />{{ scope.row.reason }}</p>
- </div>
- <el-button type="text" slot="reference">原因</el-button>
- </el-popover>
- </div>
- </div>
- <span v-else-if="item.scope === 'ptai'">{{
- scope.row[item.prop] == 1 ? "微信小程序" : "未知"
- }}</span>
- <span v-else-if="item.scope === 'diffTime'"
- >{{
- scope.row["sectionType"] === 2
- ? scope.row[item.prop1]
- : scope.row[item.prop2]
- }}分钟</span
- >
- <div v-else-if="item.scope === 'isOptions'">
- <template v-for="(itemt, indext) in item.options">
- <span
- :key="indext"
- v-if="itemt.value === scope.row[item.prop]"
- :style="itemt.style ? itemt.style : ''"
- >{{ itemt.label }}
- <el-button
- type="text"
- v-if="itemt.click"
- @click="backFunc(scope.row)"
- >查看</el-button
- ></span
- >
- </template>
- </div>
- <div v-else-if="item.scope === 'isOptionsDY'">
- <template v-for="(itemt, indext) in item.options">
- <div
- :key="indext"
- v-if="itemt.value === scope.row[item.prop]"
- :style="
- scope.row[item.prop] == 5 ? 'color:rgb(132, 0, 255);' : ''
- "
- >
- <el-popover
- :key="indext"
- trigger="hover"
- v-if="itemt.popover === true"
- >
- <span
- >订单编号(业务系统):{{ scope.row[item.oldOrder] }}</span
- >
- <el-button type="text" slot="reference">{{
- itemt.label
- }}</el-button>
- </el-popover>
- <span v-else
- >{{ itemt.label }}
- <el-button
- type="text"
- v-if="itemt.click"
- @click="backFunc(scope.row)"
- >查看</el-button
- ></span
- >
- </div>
- </template>
- </div>
- <div v-else-if="item.scope === 'orderGoodsStatus'">
- {{
- scope.row[item.prop] === -1
- ? "关闭"
- : scope.row[item.prop] === 0
- ? "待支付"
- : scope.row[item.prop] === 1
- ? `已支付(¥${scope.row["goodsReceived"]})`
- : scope.row[item.prop] === 2
- ? `已退款(¥${scope.row["goodsReceived"]})`
- : ""
- }}
- </div>
- <div v-else-if="item.scope === 'isOptionsDZYQ'">
- <template v-for="(itemt, indext) in item.options">
- <span
- :key="indext"
- v-if="itemt.value === scope.row[item.prop]"
- :style="itemt.style ? itemt.style : ''"
- >{{
- scope.row["subscribeStatus"] === 1 ? itemt.label : ""
- }}</span
- >
- </template>
- </div>
- <ul v-else-if="item.scope === 'orderSnList'">
- <li v-for="(ty, index) in scope.row[item.prop]" :key="index">
- <span v-if="ty">
- {{ ty.goodsName + " - " + ty.orderSn }}
- </span>
- </li>
- </ul>
- <div v-else-if="item.scope === 'priceRed'" style="color: red">
- ¥{{ scope.row[item.prop] ? scope.row[item.prop] : 0 }}
- </div>
- <div v-else>
- {{ scope.row[item.prop] }}
- {{
- (scope.row[item.prop] || scope.row[item.prop] === 0) && item.ch
- ? item.ch
- : ""
- }}
- </div>
- </template>
- </af-table-column>
- <el-table-column
- label="官方信息推送状态"
- align="center"
- width="180px"
- v-if="navText.gftsStatus"
- >
- <template slot-scope="scope">
- {{
- scope.row.officialStatus === 1
- ? `是(${scope.row.officialStatusNum})`
- : "否"
- }}
- </template>
- </el-table-column>
- <el-table-column
- label="官方学时推送状态"
- align="center"
- width="180px"
- v-if="navText.gfxsStatus"
- >
- <template slot-scope="scope">
- {{
- scope.row.periodPlush === 1
- ? `是(${scope.row.periodStatusNum})`
- : "否"
- }}
- </template>
- </el-table-column>
- <el-table-column
- label="官方账号开通状态"
- align="center"
- width="180px"
- v-if="navText.gfUserStatus"
- >
- <template slot-scope="scope">
- <div v-if="scope.row.learnStatus === 0" style="color: red">
- 未开通
- </div>
- <div v-if="scope.row.learnStatus === 1">已开通</div>
- <div v-if="scope.row.learnStatus === 2">
- 标记失败
- <el-popover placement="right" trigger="click" width="360">
- <div>
- <p>账号开通状态为:标记失败</p>
- <p>失败原因:<br />{{ scope.row.reason }}</p>
- </div>
- <el-button type="text" slot="reference">原因</el-button>
- </el-popover>
- </div>
- </template>
- </el-table-column>
- <el-table-column
- label="操作"
- align="center"
- fixed="right"
- :width="navText.changeWidth ? navText.changeWidth : '180px'"
- v-if="!navText.tableHide"
- >
- <template slot-scope="scope">
- <slot name="btn" :scope="scope"></slot>
- </template>
- </el-table-column>
- </el-table>
- <el-dialog
- :visible.sync="diaBox"
- width="500px"
- :show-close="false"
- :destroy-on-close="true"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">详情</div>
- <div class="rightBoxs">
- <img
- src="@/assets/images/Close@2x.png"
- alt=""
- @click="closeBeforefs"
- />
- </div>
- </div>
- <el-row class="contentBox" :gutter="30">
- <div style="width: 100%; height: 100%">
- <video
- controls
- preload
- style="width: 100%; height: 100%"
- :src="$methodsTools.splitImgHost(videoUrls)"
- ></video>
- </div>
- </el-row>
- <div slot="footer" class="dialog-footer">
- <el-button @click="closeBeforefs">关闭</el-button>
- </div>
- </el-dialog>
- <el-dialog
- :visible.sync="dialogVisible"
- width="560px"
- :show-close="false"
- :close-on-click-modal="false"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">课程树形图</div>
- <div class="rightBoxs">
- <img src="@/assets/images/Close@2x.png" alt="" @click="closes" />
- </div>
- </div>
- <div>
- <el-tree
- :key="Math.random()"
- :props="props"
- :load="loadNode"
- lazy
- ></el-tree>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="closes">取 消</el-button>
- </span>
- </el-dialog>
- <el-dialog
- :visible.sync="diaviosOpen"
- width="560px"
- :show-close="false"
- :close-on-click-modal="false"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">商品树形图</div>
- <div class="rightBoxs">
- <img
- src="@/assets/images/Close@2x.png"
- alt=""
- @click="diaviosOpen = false"
- />
- </div>
- </div>
- <div style="max-height: 600px; overflow: auto">
- <el-tree
- default-expand-all
- :key="Math.random()"
- :props="props1"
- :load="loadNode1"
- lazy
- ></el-tree>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="diaviosOpen = false">取 消</el-button>
- </span>
- </el-dialog>
- <el-dialog
- :visible.sync="isShowBoxs"
- width="400px"
- :show-close="false"
- :close-on-click-modal="false"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">资料变更详情</div>
- <div class="rightBoxs">
- <img
- src="@/assets/images/Close@2x.png"
- alt=""
- @click="isShowBoxs = false"
- />
- </div>
- </div>
- <div style="max-height: 400px; overflow: auto">
- <ul>
- <li
- v-for="(items, indexs) in listBoxsGET"
- :key="indexs"
- style="margin-bottom: 30px"
- >
- <p>{{ $methodsTools.onlyForma(items.createTime) }}</p>
- <p style="padding-left: 14px; color: #999">
- 姓名:{{ items.realname }}
- </p>
- <p style="padding-left: 14px; color: #999">
- 身份证号码:{{ items.idCard }}
- </p>
- <p style="padding-left: 14px; color: #999">
- 绑定手机号码:{{ items.telphone }}
- </p>
- </li>
- </ul>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="isShowBoxs = false">取 消</el-button>
- </span>
- </el-dialog>
- <el-dialog
- :visible.sync="isShowBoxRebuy"
- width="600px"
- :show-close="false"
- :close-on-click-modal="false"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">复购-学时冲突提示</div>
- <div class="rightBoxs">
- <img
- src="@/assets/images/Close@2x.png"
- alt=""
- @click="isShowBoxRebuy = false"
- />
- </div>
- </div>
- <div style="max-height: 400px; overflow: auto">
- <ul>
- <li
- v-for="(item, index) in rebuyInfos"
- :key="index"
- style="margin-bottom: 10px"
- >
- 学员曾购买过此商品【<span style="color: red"
- >{{ item.orderSn }} - {{ item.goodsName }}</span
- >】,所在班级【{{
- item.gradeName
- }}】的【官方学时推送状态为:是】,如为重复申报学时请及时联系学员并关闭订单。
- </li>
- </ul>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="isShowBoxRebuy = false">取 消</el-button>
- </span>
- </el-dialog>
- <el-dialog
- :visible.sync="diaviosTKOpen"
- width="560px"
- :show-close="false"
- :close-on-click-modal="false"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">商品树形图</div>
- <div class="rightBoxs">
- <img
- src="@/assets/images/Close@2x.png"
- alt=""
- @click="diaviosTKOpen = false"
- />
- </div>
- </div>
- <div style="max-height: 600px; overflow: auto">
- <el-tree
- default-expand-all
- :key="Math.random()"
- :props="props2"
- :load="loadNode2"
- lazy
- ></el-tree>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="diaviosTKOpen = false">取 消</el-button>
- </span>
- </el-dialog>
- <el-dialog
- :visible.sync="goosListBoxs"
- width="560px"
- :show-close="false"
- :close-on-click-modal="false"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">所购商品</div>
- <div class="rightBoxs">
- <img
- src="@/assets/images/Close@2x.png"
- alt=""
- @click="goosListBoxs = false"
- />
- </div>
- </div>
- <div>
- <div class="zdyBoxStyle">
- <div
- class="zdyBtnstyle"
- style="margin-right: 20px"
- :class="goodsActiveIndex === 1 ? 'goodsActiveStyle' : ''"
- @click="getGoodsAboutList(1)"
- >
- 视频商品
- </div>
- <div
- class="zdyBtnstyle"
- style="margin-right: 20px"
- :class="goodsActiveIndex === 2 ? 'goodsActiveStyle' : ''"
- @click="getGoodsAboutList(2)"
- >
- 题库商品
- </div>
- <div
- class="zdyBtnstyle"
- :class="goodsActiveIndex === 6 ? 'goodsActiveStyle' : ''"
- @click="getGoodsAboutList(6)"
- >
- 直播商品
- </div>
- </div>
- <ul class="overBoxs" v-if="goodsList.length">
- <li v-for="(item, index) in goodsList" :key="index" class="liSYTS">
- <div style="margin-bottom: 10px">
- 支付时间:{{ $methodsTools.onlyForma(item.createTime) }}
- </div>
- <div style="margin-bottom: 10px">商品编码:{{ item.code }}</div>
- <div>商品名称:{{ item.goodsName }}</div>
- </li>
- </ul>
- <div v-else style="text-align: center; margin-top: 20px">
- 暂无相关商品
- </div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="goosListBoxs = false">取 消</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import bankMsg from "./bankMsg";
- export default {
- components: { bankMsg },
- props: [
- "tableSets",
- "tableData",
- "navText",
- "rowKey",
- "loading",
- "studentTable",
- ],
- data: function () {
- return {
- diaviosOpen: false,
- diaviosTKOpen: false,
- dialogVisible: false,
- goosListBoxs: false,
- goodsActiveIndex: 1,
- goodsList: [],
- rebuyInfos: [],
- tableSet: this.tableSets,
- allCheckData: [], //表格多选
- checkAll: true,
- checkedCities: [], //自定义列 选中数组
- cities: [], //自定义列 总数组
- isIndeterminate: false,
- videoUrls: "",
- diaBox: false,
- isShowBoxs: false,
- isShowBoxRebuy: false,
- listBoxsGET: [],
- props: {
- label(data, node) {
- return data.menuName || data.name;
- },
- isLeaf(data, node) {
- return data.hasChildren ? false : true;
- },
- },
- props1: {
- label(data, node) {
- return data.courseName || data.menuName || data.name;
- },
- isLeaf(data, node) {
- return data.hasChildren ? false : true;
- },
- },
- props2: {
- label(data, node) {
- return data.examName || data.menuName || data.name;
- },
- isLeaf(data, node) {
- return data.hasChildren ? false : true;
- },
- },
- treeDatas: [],
- treeDatas1: [],
- treeDatas2: [],
- };
- },
- computed: {
- compTableSet: function () {
- return function (options) {
- var arrays = options.filter((item) => {
- return item.hidden;
- });
- return arrays;
- };
- },
- numTime: function () {
- return function (res) {
- return Number(res / 3600).toFixed(2);
- };
- },
- numTimeminute: function () {
- return function (res) {
- return Number(res / 60).toFixed(2);
- };
- },
- compType: function () {
- return function (res, data) {
- if (data === "POST") {
- if (res.indexOf("edit") !== -1 || res.indexOf("update") !== -1) {
- return "修改";
- } else {
- return "新增";
- }
- } else if (data === "GET") {
- return "查询";
- }
- };
- },
- },
- created() {
- if (this.studentTable) {
- let data = sessionStorage.getItem("studentTableList");
- if (data && data !== "") {
- this.tableSet = JSON.parse(data);
- }
- }
- this.inittableSet = JSON.stringify(this.tableSet);
- this.initTR();
- },
- methods: {
- /**
- * 学习账号标记跳转班级
- */
- backClassView(row, type) {
- this.$emit("classView", row, type);
- },
- blurBackData(row) {
- this.$emit("sortFunc", row);
- },
- backFunc(row) {
- this.$emit("backFunc", row);
- },
- /**
- * 清除多选框
- */
- clearMoreActive() {
- this.allCheckData = [];
- this.$refs.pagerset.clearSelection();
- },
- /**
- * @param {Array} 学员数据— 学员管理-所购商品
- */
- openGoodsListBoxs(option, int) {
- this.goosListBoxs = true;
- this.copyUserInfo = option;
- this.$api
- .inquireOrderList({ goodsType: int, userId: option.userId })
- .then((res) => {
- this.goodsActiveIndex = int;
- this.goodsList = res.rows;
- });
- },
- /**
- * 点击商品类型切换请求新数据
- */
- getGoodsAboutList(int) {
- this.$api
- .inquireOrderList({ goodsType: int, userId: this.copyUserInfo.userId })
- .then((res) => {
- this.goodsActiveIndex = int;
- this.goodsList = res.rows;
- });
- },
- isShowBoxsFun(item) {
- this.$api.inquireuserUpdateListsy({ userId: item.userId }).then((res) => {
- this.listBoxsGET = res.rows;
- this.isShowBoxs = true;
- // this.$api
- // .editgradestudentuserUpdate({ userId: item.userId, status: 1 })
- // .then((result) => {});
- });
- },
- /**
- * 查看复购信息
- */
- isShowRebuy(item) {
- this.$api
- .inquireOrderRebuyInfo({
- orderGoodsId: item.orderGoodsId,
- userId: item.userId,
- goodsId: item.goodsId,
- })
- .then((res) => {
- this.rebuyInfos = res.rows;
- this.isShowBoxRebuy = true;
- });
- },
- sortMethods(a, b) {
- if (a.classGradeUserGoodsVoList && b.classGradeUserGoodsVoList) {
- return a.classGradeUserGoodsVoList.length >
- b.classGradeUserGoodsVoList.length
- ? -1
- : 1;
- } else {
- return a.sort > b.sort ? -1 : 1;
- }
- },
- /**
- *
- * @param {Number} id 商品ID
- * @remards 关联班级数量触发事件
- */
- openClassNumDio(id, num) {
- if (!num) {
- this.$message.warning("暂无关联班级");
- return;
- }
- this.$emit("openClassNum", id);
- },
- /**
- * int: 1 节列表-关联章 2 章列表-关联模块 3 模块列表-关联课程 4 课程列表-关联商品 5 题目列表-关联试卷 6 试卷列表-关联商品 7 章卷列表-关联商品 8 模块列表-关联商品
- */
- jumpPages(v, int) {
- if (int === 1) {
- const jump = () => {
- this.$router.push({
- path: "/resource/videoManagement/chapterEdit",
- query: {
- id: v.chapterId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "ChapterEdit";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "ChapterEdit",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- if (int === 2) {
- const jump = () => {
- this.$router.push({
- path: "/resource/videoManagement/moduleManagementEdit",
- query: {
- id: v.moduleId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "ModuleManagementEdit";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "ModuleManagementEdit",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- if (int === 3) {
- const jump = () => {
- this.$router.push({
- path: "/resource/videoManagement/editCourse",
- query: {
- id: v.courseId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "EditCourse";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "EditCourse",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- if (int === 4) {
- const jump = () => {
- this.$router.push({
- name: "CommodityManageMentEdit",
- query: {
- id: v.goodsId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "CommodityManageMentEdit";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "CommodityManageMentEdit",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- if (int === 5) {
- const jump = () => {
- this.$router.push({
- path: "/resource/bankManagement/editPaper",
- query: {
- id: v.examId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "EditPaper";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "EditPaper",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- if (int === 6) {
- const jump = () => {
- this.$router.push({
- path: "/Marketing/goods/commodityManageMentEdit",
- query: {
- id: v.goodsId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "CommodityManageMentEdit";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "CommodityManageMentEdit",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- if (int === 7) {
- const jump = () => {
- this.$router.push({
- path: "/Marketing/goods/commodityManageMentEdit",
- query: {
- id: v.goodsId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "CommodityManageMentEdit";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "CommodityManageMentEdit",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- if (int === 8) {
- const jump = () => {
- this.$router.push({
- path: "/Marketing/goods/commodityManageMentEdit",
- query: {
- id: v.goodsId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "CommodityManageMentEdit";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "CommodityManageMentEdit",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- },
- jumpClass(v) {
- const jump = () => {
- this.$router.push({
- path: "/education/classManageMent/studentMenu",
- query: {
- id: v.gradeId,
- goodsId: v.id,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "StudentMenu";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "StudentMenu",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- },
- getSimpleText(html) {
- var re1 = new RegExp("<.+?>", "g"); //匹配html标签的正则表达式,"g"是搜索匹配多个符合的内容
- var msg = html.replace(re1, ""); //执行替换成空字符
- return msg;
- },
- //树形图关闭
- closes() {
- this.dialogVisible = false;
- },
- activesBoxszing(ids) {
- this.$api.inquireCoursemenuListS({ courseId: ids }).then((res) => {
- res.rows.forEach((item) => {
- item.TypeId = item.type + "-" + item.menuId;
- });
- this.treeDatas = res.rows;
- this.dialogVisible = true;
- });
- },
- loadNode(node, resolve) {
- if (node.level === 0) {
- this.treeDatas.forEach((item) => {
- if (item.type === 1) {
- item.hasChildren = true;
- }
- if (item.type === 2) {
- item.hasChildren = true;
- }
- if (item.type === 3) {
- item.hasChildren = false;
- }
- });
- return resolve(this.treeDatas);
- } else {
- if (node.data.type === 1) {
- this.$api
- .inquireCourseListmodulechapter(node.data.menuId)
- .then((res) => {
- res.data.forEach((item) => {
- item.TypeId = 2 + "-" + item.chapterId;
- item.hasChildren = true;
- item.menuId = item.chapterId;
- item.type = 2;
- });
- return resolve(res.data);
- });
- }
- if (node.data.type === 2) {
- this.$api
- .inquireCoursechaptersectionlist(node.data.menuId)
- .then((res) => {
- res.data.forEach((item) => {
- item.TypeId = 3 + "-" + item.sectionId;
- item.type = 3;
- });
- return resolve(res.data);
- });
- }
- if (node.data.type === 3) {
- return resolve([]);
- }
- }
- },
- diavios(ids) {
- this.$api.obtainCourseSgoodsId(ids).then((res) => {
- res.rows.forEach((item) => {
- item.TypeId = "0-" + item.courseId;
- item.type = 0;
- item.hasChildren = true;
- });
- this.treeDatas1 = res.rows;
- this.diaviosOpen = true;
- });
- },
- loadNode1(node, resolve) {
- if (node.level === 0) {
- return resolve(this.treeDatas1);
- } else {
- if (node.data.type === 0) {
- this.$api
- .inquireCoursemenuListS({ courseId: node.data.courseId })
- .then((res) => {
- res.rows.forEach((item) => {
- item.TypeId = 1 + "-" + item.menuId;
- item.hasChildren = item.type === 3 ? false : true;
- item.menuId = item.menuId;
- });
- return resolve(res.rows);
- });
- }
- if (node.data.type === 1) {
- this.$api
- .inquireCourseListmodulechapter(node.data.menuId)
- .then((res) => {
- res.data.forEach((item) => {
- item.TypeId = 2 + "-" + item.chapterId;
- item.hasChildren = true;
- item.menuId = item.chapterId;
- item.type = 2;
- });
- return resolve(res.data);
- });
- }
- if (node.data.type === 2) {
- this.$api
- .inquireCoursechaptersectionlist(node.data.menuId)
- .then((res) => {
- res.data.forEach((item) => {
- item.TypeId = 3 + "-" + item.sectionId;
- item.type = 3;
- });
- return resolve(res.data);
- });
- }
- if (node.data.type === 3) {
- return resolve([]);
- }
- }
- },
- openBoxData(row) {
- this.$emit("openBoxFun", row);
- },
- diaviosTK(ids) {
- this.$api.inquireGoodsbanklist({ goodsId: ids }).then((res) => {
- res.data.forEach((item) => {
- item.TypeId = item.type + "-" + item.majorId;
- item.hasChildren = item.type === 3 ? false : true;
- });
- this.treeDatas2 = res.data;
- this.diaviosTKOpen = true;
- });
- },
- loadNode2(node, resolve) {
- if (node.level === 0) {
- return resolve(this.treeDatas2);
- } else {
- if (node.data.type === 1) {
- this.$api
- .inquireBankchapterModule({ moduleExamId: node.data.majorId })
- .then((res) => {
- res.data.forEach((item) => {
- item.TypeId = 2 + "-" + item.chapterExamId;
- item.menuId = item.chapterExamId;
- item.type = 2;
- });
- return resolve(res.data);
- });
- }
- if (node.data.type === 2) {
- this.$api
- .inquirebankchapterexamList({
- chapterExamId: node.data.majorId,
- })
- .then((res) => {
- res.data.forEach((item) => {
- item.TypeId = 3 + "-" + item.examId;
- item.type = 3;
- });
- return resolve(res.data);
- });
- }
- if (node.data.type === 3) {
- return resolve([]);
- }
- }
- },
- timeStyle(column) {
- if (column.columnIndex === 0 && this.navText.firstColLeft) {
- return "text-align:left!important; padding-left: 40px;";
- }
- },
- //初始化
- initTR() {
- this.cities = [];
- this.checkedCities = [];
- this.checkAll = true;
- this.isIndeterminate = false;
- this.tableSet.forEach((item, index) => {
- this.cities.push(item.label);
- if (item.hidden) {
- this.checkedCities.push(item.label);
- }
- });
- this.tableSet = [];
- this.$nextTick(() => {
- this.tableSet = JSON.parse(this.inittableSet);
- });
- if (this.checkedCities.length === 0) {
- this.isIndeterminate = false;
- } else if (this.checkedCities.length === this.cities.length) {
- this.isIndeterminate = false;
- this.checkAll = true;
- } else {
- this.isIndeterminate = true;
- this.checkAll = false;
- }
- },
- //自定义列全选按钮触发
- handleCheckAllChange(val) {
- console.log(val, "val");
- this.checkedCities = val ? this.cities : [];
- this.isIndeterminate = false;
- if (val) {
- this.tableSet = [];
- this.$nextTick(() => {
- this.tableSet = JSON.parse(this.inittableSet);
- });
- } else {
- this.tableSet.forEach((item, index) => {
- item.hidden = false;
- });
- }
- },
- // 勾选自定义列子选项
- handleCheckedCitiesChange(value) {
- var copyTable = JSON.parse(JSON.stringify(this.tableSet));
- let checkedCount = value.length;
- this.checkAll = checkedCount === this.cities.length;
- this.isIndeterminate =
- checkedCount > 0 && checkedCount < this.cities.length;
- this.tableSet = [];
- this.$nextTick(() => {
- this.tableSet = copyTable;
- });
- },
- checkboxChange(v, e) {
- var copyTable = JSON.parse(JSON.stringify(this.tableSet));
- copyTable.forEach((item) => {
- if (item.label === v) {
- item.hidden = e;
- }
- });
- this.tableSet = [];
- this.$nextTick(() => {
- this.tableSet = copyTable;
- if (this.studentTable) {
- sessionStorage.setItem("studentTableList", JSON.stringify(copyTable));
- }
- });
- },
- //自定义列重置
- initVue() {
- // this.$emit("initTableset");
- this.tableSet = JSON.parse(this.inittableSet);
- this.initTR();
- },
- // 下移
- downMove(option, index) {
- if (index !== this.tableSet.length - 1) {
- this.tableSet[index] = this.tableSet.splice(
- index + 1,
- 1,
- this.tableSet[index]
- )[0];
- this.cities[index] = this.cities.splice(
- index + 1,
- 1,
- this.cities[index]
- )[0];
- } else {
- this.tableSet.unshift(this.tableSet.splice(index, 1)[0]);
- this.cities.unshift(this.cities.splice(index, 1)[0]);
- }
- var copyTable = JSON.parse(JSON.stringify(this.tableSet));
- this.tableSet = [];
- this.$nextTick(() => {
- this.tableSet = copyTable;
- });
- },
- // 上移
- upMove(option, index) {
- if (index != 0) {
- this.tableSet[index] = this.tableSet.splice(
- index - 1,
- 1,
- this.tableSet[index]
- )[0];
- this.cities[index] = this.cities.splice(
- index - 1,
- 1,
- this.cities[index]
- )[0];
- } else {
- this.tableSet.push(this.tableSet.shift());
- this.cities.push(this.cities.shift());
- }
- var copyTable = JSON.parse(JSON.stringify(this.tableSet));
- this.tableSet = [];
- this.$nextTick(() => {
- this.tableSet = copyTable;
- });
- },
- //跳转页面
- jumpPage(options) {
- const jump = () => {
- this.$router.push({
- path: "dictData",
- query: {
- dictId: options.dictId,
- dictType: options.dictType,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "DictData";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "DictData",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- },
- //跳转页面
- jumpPageLabel(options) {
- const jump = () => {
- this.$router.push({
- path: "labelInfos",
- query: {
- id: options.id,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "LabelInfos";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "LabelInfos",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }, //跳转页面
- jumpPageLabelProfess(options) {
- const jump = () => {
- this.$router.push({
- path: "labelInfos",
- query: {
- id: options.labelId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "LabelInfos";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "LabelInfos",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- },
- jumpinfoJump(options) {
- const jump = () => {
- this.$router.push({
- path: "beneficiaryInfos",
- query: {
- id: options.payeeId,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "BeneficiaryInfos";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "BeneficiaryInfos",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- },
- //新增按钮
- addClick() {
- this.$emit("addClick");
- },
- //将选中值传回调用组件
- backFather() {
- this.$emit("emitData", this.allCheckData);
- },
- edit() {},
- selectAll(value) {
- this.allCheckData = value;
- },
- select(value) {
- this.allCheckData = value;
- },
- load(tree, treeNode, resolve) {
- this.$emit("load", tree, treeNode, resolve);
- },
- editInfo(option, int) {
- if (int === 2) {
- this.$emit("editName", option);
- } else if (int === 3) {
- this.$emit("aboutGoods", option);
- } else {
- this.$emit("editInfo", option);
- }
- },
- jumpPeolpe(item, type) {
- if (type === 1) {
- const jump = () => {
- this.$router.push({
- path: "applicationData",
- query: {
- id: item.applyId,
- type: type,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "ApplicationData";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "ApplicationData",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- if (type === 2) {
- const jump = () => {
- this.$router.push({
- path: "applicationData",
- query: {
- id: item.beforeId,
- type: type,
- },
- });
- };
- const statusPage = this.$store.state.tagsView.visitedViews.some(
- (item) => {
- return item.name == "ApplicationData";
- }
- );
- if (statusPage) {
- this.$store
- .dispatch("tagsView/delCachedView", {
- name: "ApplicationData",
- })
- .then((res) => {
- jump();
- });
- } else {
- jump();
- }
- }
- },
- getxq(option) {
- this.$emit("getxq", option.userId);
- },
- openVideo(url) {
- this.videoUrls = url;
- this.diaBox = true;
- },
- closeBeforefs() {
- this.diaBox = false;
- },
- },
- };
- </script>
- <style lang="less">
- .open_style {
- cursor: pointer;
- color: blue;
- }
- .el-table .cell.el-tooltip {
- transition: all 0.3s;
- }
- .max-heightStyles {
- max-height: 500px;
- overflow-y: auto;
- }
- .overSty {
- white-space: nowrap;
- overflow-x: auto;
- &::-webkit-scrollbar {
- width: 14px;
- height: 14px;
- }
- &::-webkit-scrollbar-track,
- &::-webkit-scrollbar-thumb {
- border-radius: 999px;
- border: 5px solid transparent;
- }
- &::-webkit-scrollbar-track {
- box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) inset;
- }
- &::-webkit-scrollbar-thumb {
- min-height: 20px;
- background-clip: content-box;
- box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.2) inset;
- }
- &::-webkit-scrollbar-corner {
- background: transparent;
- }
- }
- .slotPopper {
- padding: 0px !important;
- }
- </style>
- <style lang="less" scoped>
- #tableList {
- padding: 0px 16px 16px;
- border-radius: 8px;
- box-shadow: 0px 0px 9px 1px rgba(28, 41, 90, 0.1);
- background: #ffffff;
- .headerNavTool {
- height: 72px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .rightBtnBox {
- display: flex;
- align-items: center;
- }
- }
- }
- .goodsListStyle {
- cursor: pointer;
- color: blue;
- }
- .popoverDis {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- font-size: 14px;
- .checkboxHeader {
- height: 40px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-left: 13px;
- padding-right: 15px;
- width: 100%;
- .initbtns {
- color: #47a6ff;
- cursor: pointer;
- }
- }
- .checkboxGroup {
- display: flex;
- flex-direction: column;
- width: 100%;
- .checkboxchild {
- width: 100%;
- justify-content: space-between;
- height: 40px;
- display: flex;
- align-items: center;
- padding: 0px 15px 0px 13px;
- transition: all 0.4s;
- &:hover {
- background-color: #ecf5ff;
- }
- &:hover .icon-right {
- display: flex;
- }
- .icon-right {
- display: flex;
- align-items: center;
- width: 30px;
- height: 30px;
- color: #666;
- font-size: 14px;
- display: none;
- i {
- cursor: pointer;
- margin: 0px 3px;
- &:hover {
- color: #47a6ff;
- }
- }
- }
- }
- }
- }
- /deep/.el-checkbox__input.is-checked + .el-checkbox__label {
- color: #666;
- }
- .imgboxsq {
- margin: 0 auto;
- height: 60px;
- max-height: 60px;
- .el_images {
- /deep/.el-image__inner {
- width: auto;
- }
- }
- }
- .imgHover {
- width: 100%;
- height: 100%;
- cursor: pointer;
- }
- .cvideo {
- transition: all 0.2s;
- color: #333;
- cursor: pointer;
- font-size: 30px;
- }
- .cvideo:hover {
- color: #47a6ff;
- }
- .editInfoSty {
- cursor: pointer;
- color: blue;
- }
- .ulAuto {
- display: flex;
- justify-content: center;
- align-items: center;
- & > ul {
- margin: 0px;
- }
- }
- .ulAutos {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .el-popover > ul {
- margin: 0px;
- }
- .dis_sdt {
- display: flex;
- align-items: flex-end;
- ul {
- margin: 0px;
- li {
- text-align: left;
- }
- }
- }
- .jumpClass {
- color: #333;
- cursor: pointer;
- }
- .jumpStys {
- color: blue;
- cursor: pointer;
- }
- .zdyBoxStyle {
- display: flex;
- align-items: center;
- justify-content: center;
- .zdyBtnstyle {
- padding: 4px 16px;
- border-radius: 4px;
- border: 1px solid #666;
- color: #666;
- cursor: pointer;
- }
- .goodsActiveStyle {
- color: #fff;
- background-color: #409eff;
- border-color: #409eff;
- }
- }
- .liSYTS {
- padding: 10px;
- margin-bottom: 16px;
- background: #eee;
- width: 96%;
- }
- .overBoxs {
- max-height: 500px;
- overflow-y: auto;
- }
- </style>
|