12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893 |
- <style lang="scss">
- .is-disabled .el-checkbox__inner {
- display: none !important;
- }
- .downLoad .ant-form-item-control-wrapper {
- width: 70%;
- }
- #material-card .ant-tabs-tab {
- border: 1px solid gainsboro !important;
- }
- #material-card .ant-tabs-top-bar {
- position: relative;
- z-index: 100;
- }
- #material-card .ant-badge-count {
- top: 0px;
- }
- .detail .ant-form-item {
- margin-bottom: 10px !important;
- }
- .ant-carousel .slick-slide {
- text-align: center;
- // height: 160px;
- // line-height: 160px;
- background: #364d79;
- overflow: hidden;
- }
- .ad_cover_container .ant-card-body {
- padding: 0;
- }
- .ant-carousel .slick-slide h3 {
- color: #fff;
- }
- .ant-carousel .custom-slick-arrow {
- width: 25px;
- height: 25px;
- font-size: 25px;
- color: #fff;
- background-color: rgba(31, 45, 61, 0.11);
- opacity: 0.3;
- }
- .ant-carousel .custom-slick-arrow:before {
- display: none;
- }
- .ant-carousel .custom-slick-arrow:hover {
- opacity: 0.5;
- }
- .cover_carousel_con .slick-dots {
- bottom: 55px;
- }
- .add-image-material .draggable-list {
- display: block !important;
- }
- li.chouzhen.first:before {
- font-size: 12px;
- content: '首帧';
- position: absolute;
- top: 7px;
- left: 5px;
- width: 36px;
- height: 20px;
- color: rgb(255, 255, 255);
- line-height: 20px;
- text-align: center;
- background: rgba(0, 0, 0, 0.5);
- border-radius: 2px;
- }
- .table-page-search-wrapper {
- .el-cascader .el-input {
- cursor: pointer;
- height: 100%;
- }
- .el-cascader .el-input .el-input__inner {
- text-overflow: ellipsis;
- height: 100%;
- position: relative;
- top: -4px;
- }
- .el-cascader .el-input .el-icon-arrow-down {
- -webkit-transition: -webkit-transform 0.3s;
- transition: -webkit-transform 0.3s;
- transition: transform 0.3s;
- transition: transform 0.3s, -webkit-transform 0.3s;
- transition: transform 0.3s, -webkit-transform 0.3s;
- font-size: 14px;
- position: relative;
- top: -4px;
- }
- .el-cascader .el-input .el-icon-arrow-down.is-reverse {
- -webkit-transform: rotateZ(180deg);
- transform: rotateZ(180deg);
- position: relative;
- top: 2px;
- }
- .el-cascader .el-input .el-input__inner .el-input__icon.el-icon-arrow-down {
- text-overflow: ellipsis;
- height: 100%;
- position: relative;
- top: -4px;
- }
- .el-cascader .el-input .el-input__suffix .el-input__icon.el-icon-circle-close {
- text-overflow: ellipsis;
- height: 100%;
- position: relative;
- top: -4px;
- }
- }
- </style>
- <style lang="scss" scoped>
- .chouzhen {
- border-style: solid;
- border-width: 1px;
- border-color: #e4e4e4;
- width: calc(20% - 10px);
- padding: 10px;
- margin-right: 10px;
- margin-bottom: 10px;
- display: flex;
- align-items: center;
- background: #fff;
- position: relative;
- z-index: 99;
- float: left;
- }
- .content {
- display: flex !important;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- .slick-dots {
- bottom: 55px;
- }
- }
- .video-content {
- width: 50%;
- padding: 10px;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- justify-content: center;
- border-right: 1px solid #f2f2f2;
- }
- .tag-video {
- position: absolute;
- right: 0px;
- top: 8px;
- padding: 4px;
- border-radius: 2px;
- line-height: 16px;
- font-size: 12px;
- color: #fff;
- background-color: rgba(0, 0, 0, 0.3);
- }
- .home-item {
- overflow: hidden;
- }
- @media only screen and (min-width: 1200px) {
- .home-item {
- border-style: solid;
- border-width: 1px;
- border-color: #e4e4e4;
- width: calc(50% - 10px);
- padding: 10px;
- margin-right: 10px;
- margin-bottom: 10px;
- display: flex;
- align-items: center;
- background: #fff;
- position: relative;
- z-index: 99;
- }
- }
- /*>=1024的设备*/
- // @media (min-width: 1100px) {
- // .checkbox_item_container {
- // width:70%
- // }
- // } /*>=1100的设备*/
- @media only screen and (min-width: 1250px) {
- .home-item {
- border-style: solid;
- border-width: 1px;
- border-color: #e4e4e4;
- width: calc(25% - 10px);
- padding: 10px;
- margin-right: 10px;
- margin-bottom: 10px;
- display: flex;
- align-items: center;
- background: #fff;
- position: relative;
- z-index: 99;
- }
- }
- /*>=1280的设备*/
- // @media (min-width: 1366px) {
- // }
- // @media (min-width: 1440px) {
- // }
- // @media (min-width: 1680px) {
- // }
- // @media (min-width: 1920px) {
- // .home-item {
- // border-style: solid;
- // border-width: 1px;
- // border-color: #e4e4e4;
- // width: calc(25% - 10px);
- // padding: 10px;
- // margin-right: 10px;
- // margin-bottom: 10px;
- // display: flex;
- // align-items: center;
- // background: #fff;
- // position: relative;
- // z-index: 99;
- // cursor: pointer;
- // }
- // }
- .actor-photo-list {
- display: flex;
- padding-left: 0;
- li {
- width: 25%;
- margin: 10px;
- position: relative;
- height: 250px;
- border: 1px solid #f2f2f2;
- img,
- video {
- width: 100%;
- margin-top: auto;
- margin-bottom: auto;
- top: 0;
- bottom: 0;
- position: absolute;
- max-height: 250px;
- }
- }
- }
- .home-card {
- width: 100%;
- overflow: hidden;
- padding: 10px 0px;
- display: flex;
- flex-wrap: wrap;
- margin-right: -10px;
- .home-right {
- width: 100%;
- }
- .bg:after {
- content: '';
- width: 110%;
- height: 110%;
- position: absolute;
- left: -5%;
- top: -5%;
- background: inherit;
- filter: blur(10px);
- z-index: 2;
- }
- }
- .bh {
- height: 60px;
- line-height: 30px;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 2;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- }
- .bhShow {
- height: 100px;
- line-height: 25px;
- text-align: center;
- }
- .bhShow span {
- font-size: 14px;
- }
- .show-data {
- width: 50%;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- }
- a {
- font-size: 14px;
- }
- .actor-photo-list {
- display: flex;
- padding-left: 0;
- li {
- width: 25%;
- margin: 10px;
- position: relative;
- height: 250px;
- border: 1px solid #f2f2f2;
- list-style: none;
- img,
- video {
- width: 100%;
- margin-top: auto;
- margin-bottom: auto;
- top: 0;
- bottom: 0;
- position: absolute;
- max-height: 250px;
- }
- }
- }
- </style>
- <template>
- <a-card :bordered="false" class="only-video-material-disable">
- <!-- 查询区域 -->
- <div class="table-page-search-wrapper">
- <a-form layout="inline" :selfUpdate="true">
- <a-row :gutter="24">
- <a-col :md="8" :sm="8">
- <!-- <a-form-item label="项目名称"> -->
- <selectTable :projectId.sync="queryParam.productId" ref="selectTable"></selectTable>
- </a-col>
- <a-col :md="8" :sm="8">
- <selectTableProject :projectId.sync="queryParam.projectId" :productId="queryParam.productId" ref="selectTableProject"></selectTableProject>
- </a-col>
- <a-col :md="8" :sm="8">
- <a-form-item label="素材名称">
- <a-input placeholder="请输入素材名称" v-model="queryParam.materialName"></a-input>
- </a-form-item>
- </a-col>
- <!-- -->
- <a-col :md="8" :sm="8">
- <a-form-item label="搜索时间">
- <a-range-picker v-model="queryParam.createTime" format="YYYY-MM-DD" style="width: 100%" />
- </a-form-item>
- </a-col>
- <!-- -->
- <a-col :md="8" :sm="8">
- <a-form-item label="唯一标识">
- <a-input placeholder="请输入素材唯一标识" v-model="queryParam.code"></a-input>
- </a-form-item>
- </a-col>
- <a-col :md="8" :sm="8">
- <a-form-item label="视频标签">
- <el-cascader
- placeholder="请选择视频的标签"
- v-model="labelValue"
- :options="options"
- :props="{ checkStrictly: true, value: 'tagCode', label: 'tagName', expandTrigger: 'hover' }"
- clearable
- style="width: 100%; height: 32px"
- filterable
- ></el-cascader>
- </a-form-item>
- </a-col>
- <a-col :md="8" :sm="8">
- <a-form-item label="剪辑">
- <a-select v-model="queryParam.clipId" allowClear show-search :filter-option="filterOption">
- <a-select-option v-for="item in designList" :key="item.userId" :value="item.userId">
- {{ item.companyName + '_' + item.userName }}
- </a-select-option>
- </a-select>
- </a-form-item>
- </a-col>
- <a-col :md="8" :sm="8">
- <a-form-item label="拍摄">
- <a-select v-model="queryParam.shotId" allowClear show-search :filter-option="filterOption">
- <a-select-option v-for="item in designList" :key="item.userId" :value="item.userId">
- {{ item.companyName + '_' + item.userName }}
- </a-select-option>
- </a-select>
- </a-form-item>
- </a-col>
- <a-col :md="8" :sm="8">
- <a-form-item label="编导">
- <a-select v-model="queryParam.planId" allowClear show-search :filter-option="filterOption">
- <a-select-option v-for="item in designList" :key="item.userId" :value="item.userId">
- {{ item.companyName + '_' + item.userName }}
- </a-select-option>
- </a-select>
- </a-form-item>
- </a-col>
- <a-col :md="8" :sm="8">
- <a-form-item label="设计负责人">
- <a-input placeholder="请输入设计负责人" v-model="queryParam.leaderName"></a-input>
- </a-form-item>
- </a-col>
- <a-col :md="8" :sm="8">
- <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
- <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
- <a-button type="primary" @click="searchRe" icon="reload" style="margin-left: 8px">重置</a-button>
- </span>
- </a-col>
- </a-row>
- </a-form>
- </div>
- <!-- table区域-begin -->
- <!-- <div> -->
- <!-- 操作按钮区域 -->
- <div class="table-operator" style="position: relative; z-index: 100">
- <a-button
- @click="
- visible = true
- confirmLoading = false
- add = true
- "
- type="primary"
- icon="plus"
- >新增</a-button
- >
- <a-button
- @click="batchUploadVisible=true"
- type="primary"
- icon="plus"
- >批量新增</a-button
- >
- <a-button
- @click="onCheckAllChange"
- v-if="
- queryParam.productId &&
- active == '1' &&
- (role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager')
- "
- >{{ checkAll ? '取消 ( ' + checkArr.length + ' )' : '全选' }}</a-button
- >
- <a-button
- v-if="
- queryParam.productId &&
- active == '1' &&
- (role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager')
- "
- :disabled="checkArr.length == 0"
- @click="tongbu('1')"
- >一键同步头条</a-button
- >
- <a-button
- v-if="
- queryParam.productId &&
- active == '1' &&
- (role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager')
- "
- :disabled="checkArr.length == 0"
- @click="tongbu('3')"
- >一键同步头条内广</a-button
- >
- <a-button
- v-if="
- queryParam.productId &&
- active == '1' &&
- (role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager')
- "
- :disabled="checkArr.length == 0"
- @click="tongbu('2')"
- >一键同步快手</a-button
- >
- <a-button
- v-if="
- queryParam.productId &&
- active == '1' &&
- (role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager')
- "
- :disabled="checkArr.length == 0"
- @click="tongbu('4')"
- >一键同步快手内广</a-button
- >
- <a-button
- v-if="active === '1'"
- type="primary"
- @click="handleAllChangeFace"
- >
- 换脸列表
- </a-button
- >
- </div>
- <a-tabs @change="callbackTwo" v-model="active" type="card" id="material-card">
- <a-tab-pane :tab="item.tab" v-for="item of examinelList" :key="item.value">
- <a-spin :spinning="spinning">
- <div v-if="dataSource.length > 0">
- <a-checkbox-group @change="onChangeCheck" v-model="checkArr" class="home-card">
- <div class="home-item" v-for="(items, index) in dataSource" :key="index" @click="showDetail(items)">
- <span v-if="items.excellent == 0"></span>
- <span
- v-else
- style="position:absolute;top:30px;right:-105px;display:block;width:300px;height:30px;text-align:center;line-height;30px;background:red;transform:rotate(45deg);z-index:1000"
- >优秀素材</span
- >
- <div class="home-right">
- <a-badge
- :count="checkArr.indexOf(items.id) > -1 ? checkArr.indexOf(items.id) + 1 : 0"
- :numberStyle="{ backgroundColor: '#52c41a' }"
- style="width: 100%; display: flex"
- @click.stop
- >
- <span
- style="
- color: #999;
- fontsize: 14px;
- padding-bottom: 10px;
- display: inline-block;
- width: 100%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- "
- :title="items.projectName"
- >{{ (items.mediaId == "1" ? '头条' :items.mediaId == "2"? '快手':items.mediaId == "3"?'内广':'内广') +(items.projectName?'_'+items.projectName:'') }}</span
- >
- <span
- style="
- color: #999;
- fontsize: 14px;
- padding-bottom: 10px;
- display: inline-block;
- width: 100%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- "
- :title="items.materialName"
- >{{ items.materialName }}</span
- >
- <a-icon
- type="close-circle"
- @click="deleteData(items.id)"
- v-show="active == '0'"
- v-if="items.userId == userInfo().id"
- />
- </a-badge>
- <div style="display: flex; justify-content: center; width: 100%; height: 200px; position: relative">
- <!-- <video
- :src="items.url"
- @canplay="a(items)"
- style="height:200px;max-width:100%;position:absolute;z-index:10;"
- />-->
- <div style="width: 100px; position: absolute; left: 0; z-index: 1000">
- <a-tooltip placement="top">
- <template slot="title">
- <span>{{ items.kuaishouEffiType == 1 ? '快手有效视频' : '已经同步到快手平台' }}</span>
- </template>
- <img
- style="width: 30px; height: 30px"
- v-if="items.kuaishouVideoIsUp == 1"
- :style="{ filter: items.kuaishouEffiType == 1 ? 'grayscale(0%)' : 'grayscale(100%)' }"
- src="./kuaishou.jpg"
- />
- </a-tooltip>
- <a-tooltip placement="top">
- <template slot="title">
- <span>{{ items.toutiaoEffiType == 1 ? '抖音有效视频' : '已经同步到抖音平台' }}</span>
- </template>
- <img
- v-if="items.toutiaoVideoIsUp == 1 && items.toutiaoEffiType == 1"
- style="width: 30px; height: 30px; margin-left: 5px"
- src="./douyin.jpg"
- alt
- />
- <img
- v-else-if="items.toutiaoVideoIsUp == 1 && items.toutiaoEffiType == 0"
- style="width: 30px; height: 30px; margin-left: 5px"
- src="./douyinhui.jpg"
- alt
- />
- </a-tooltip>
- </div>
- <a-icon
- type="fire"
- style="font-size: 20px; position: absolute; right: 0; bottom: 10px; z-index: 1000; color: red"
- v-if="items.whetherUnaudited"
- />
- <a-popover
- title="视频标签"
- @visibleChange="changeTag(items.code)"
- :overlayStyle="{ width: '400px' }"
- >
- <template slot="content" v-if="videoTag.length > 0">
- <!-- {{ videoTag.join(',') }} -->
- <!-- <br v-if="index%3"/> -->
- <a-tag v-for="(item, index) of videoTag" :key="index" style="margin: 5px">{{ item }}</a-tag>
- </template>
- <template slot="content" v-else>
- <div style="width: 100%; text-align: center">加载中。。。</div>
- </template>
- <img
- :src="items.coverUrl"
- alt
- style="height: 200px; max-width: 100%; position: absolute; z-index: 10"
- />
- </a-popover>
- <!-- <img
- src="./timg.gif"
- v-if="!items.showVideo"
- alt=""
- style="height:200px;max-width:100%;position:absolute;z-index:11;"
- @click.stop
- />-->
- </div>
- <div style="width: 100%; height: 1px; border-bottom: 1px solid #f2f2f2; margin-top: 5px"></div>
- <div v-if="active == '2'" class="bh">驳回原因:{{ items.refuseReason }}</div>
- <div
- v-if="active == '1'"
- class="bhShow"
- style="display: flex; justify-content: space-between"
- @click.stop="showData(items)"
- >
- <div class="show-data">
- <span>抖音</span>
- <span>消耗:{{ items.bytedanceCost || 0 }}</span>
- <span style="display: inline-block;text-align: left;width: 400px;">审核通过时间:{{ items.confirmTime || '-' }}</span>
- <!-- <span>封面点击:{{ items.byteDance.click }}</span> -->
- <!-- <span>封面展示:{{ items.byteDance.showNum }}</span> -->
- </div>
- <!-- <div v-else style="line-height:100px;" class="show-data">
- <span>抖音:无</span>
- </div> -->
- <div class="show-data">
- <span>快手</span>
- <span>消耗:{{ items.cost || 0 }}</span>
- <!-- <span>封面点击:{{ items.kuaiShou.photoClick }}</span> -->
- <!-- <span>封面展示:{{ items.kuaiShou.photoShow }}</span> -->
- </div>
- <!-- <div v-else style="line-height:100px;" class="show-data">
- <span>快手:无</span>
- </div> -->
- </div>
- <div
- style="width: 100%; height: 1px; border-bottom: 1px solid #f2f2f2; margin-top: 5px"
- v-if="active != '0'"
- ></div>
- <span
- style="color: black; fontsize: 16px; padding-top: 10px; display: block; width: 100%"
- @click.stop
- >
- <!-- <a href="javascript:;" style="margin-right:20px" @click="edit(items, '2')" v-show="active == '2'"
- v-if="items.userId == userInfo().id">
- 修改</a>
- <a href="javascript:;" style="margin-right:20px" v-show="active !='3'" @click="personEdit(items, '2')"
- v-if="items.userId == userInfo().id||role.roleCode =='designTeamLeader'">
- 人员修改</a>-->
- <a-popconfirm
- @confirm="okEditShow(items, '2')"
- v-show="active != '2' && active != '3'"
- v-if="
- role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager'
- "
- >
- <div slot="title">
- <div>
- 驳回原因:
- <a-textarea
- placeholder="请输入原因"
- v-model="refuseReason"
- :autosize="{ minRows: 3, maxRows: 10 }"
- />
- </div>
- <div>
- 截图:
- <uploadFile v-if="refuseFile" :value.sync="refuseFile" :fileCount="15" uploadType="image" />
- <!-- <upload-to-ali
- v-model="refuseFile"
- :customDomain="customDomain"
- multiple
- preview
- :region="region"
- :bucket="bucket"
- :accept="acceptImage"
- :max="10"
- :size="1024000"
- :accessKeyId="accessKeyId"
- :accessKeySecret="accessKeySecret"
- :dir="dirImg"
- ></upload-to-ali>-->
- </div>
- </div>
- <a href="javascript:;" style="margin-right: 20px">驳回</a>
- </a-popconfirm>
- <a v-show="active === '1'" style="margin-right: 20px" @click="handleChangeFace(items)">换脸</a>
- <a-popconfirm
- @confirm="okEditShow(items, '1')"
- v-show="active != '1' && active != '3'"
- v-if="
- role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager'
- "
- >
- <div slot="title">
- <div>
- 广告语:
- <a-textarea
- placeholder="请输入"
- v-model="refuseReason"
- :autosize="{ minRows: 3, maxRows: 10 }"
- />
- </div>
- </div>
- <a
- href="javascript:;"
- style="margin-right: 20px"
- v-show="active != '1'"
- v-if="
- role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager'
- "
- >通过审核</a
- >
- </a-popconfirm>
- <!-- <a v-show="active!='3'" style="margin-right:20px" @click="addImage(items)">添加封面</a>
- <a style="margin-right:20px" @click="showImage(items)">推荐封面</a>-->
- <a-dropdown style="margin-right: 20px">
- <a class="ant-dropdown-link" @click="(e) => e.preventDefault()">
- 更多操作
- <a-icon type="down" />
- </a>
- <a-menu slot="overlay">
- <a-menu-item key="0" v-show="active == '2'" v-if="items.userId == userInfo().id">
- <a href="javascript:;" style="margin-right: 20px" @click="edit(items, '2')">修改</a>
- </a-menu-item>
- <a-menu-item
- key="1"
- v-show="active != '3'"
- v-if="items.userId == userInfo().id || role.roleCode == 'designTeamLeader'"
- >
- <a href="javascript:;" style="margin-right: 20px" @click="personEdit(items, '2')">人员修改</a>
- </a-menu-item>
- <a-menu-item key="3" v-show="active != '3'">
- <a style="margin-right: 20px" @click="addImage(items)">添加封面</a>
- </a-menu-item>
- <a-menu-item key="4">
- <a style="margin-right: 20px" @click="showImage(items)">推荐封面</a>
- </a-menu-item>
- <a-menu-item key="5">
- <a href="javascript:;" style="margin-right: 20px" @click="editTagList(items)">修改标签</a>
- </a-menu-item>
- <a-menu-item key="6" v-show="active !== '1'" v-if="items.userId == userInfo().id">
- <a href="javascript:;" style="margin-right: 20px" @click="editMaterialName(items)">修改素材名称</a>
- </a-menu-item>
- </a-menu>
- </a-dropdown>
- <a-checkbox :value="items.id" style="float: right" v-show="active == '1'"></a-checkbox>
- <br />
- {{ items.createTime }}
- </span>
- </div>
- </div>
- </a-checkbox-group>
- <a-pagination
- size="small"
- :showTotal="ipagination.showTotal"
- style="float: right"
- v-if="dataSource.length > 0"
- showQuickJumper
- showSizeChanger
- :pageSize.sync="ipagination.pageSize"
- :total="ipagination.total"
- v-model="ipagination.current"
- :pageSizeOptions="ipagination.pageSizeOptions"
- @change="getDataSource"
- @showSizeChange="getDataSourceSize"
- />
- </div>
- <div v-else style="width: 100%; height: 400px; display: flex; justify-content: center; align-items: center">
- <img
- src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1575627350102&di=02972956f2243933bffc0d85099adbfe&imgtype=jpg&src=http%3A%2F%2Fimg0.imgtn.bdimg.com%2Fit%2Fu%3D1095310825%2C1528244349%26fm%3D214%26gp%3D0.jpg"
- alt
- v-if="!loading"
- />
- <div v-else></div>
- </div>
- </a-spin>
- </a-tab-pane>
- </a-tabs>
- <a-modal title="修改素材名称" @cancel="editMaterialVisible=false" v-if="editMaterialVisible" v-model="editMaterialVisible">
- <template slot="footer">
- <a-button key="back" @click="editMaterialVisible=false">取消</a-button>
- <a-button type="primary" @click="handleOkEditMaterialName" :loading="loadingEdit">确定</a-button>
- </template>
- <a-form :form="editMaterialform">
- <a-form-model-item
- label="素材名称"
- >
- <a-input placeholder="请填写素材名称"
- v-decorator="[
- 'name',
- {
- rules: [{ required: true, message: '素材名称不能为空' }]
- }
- ]" />
- </a-form-model-item>
- </a-form>
- </a-modal>
- <a-modal title="封面上传" @cancel="closeImage" @afterClose="closeImage" v-model="addImageVisible">
- <template slot="footer">
- <a-button key="back" @click="closeImage">取消</a-button>
- <a-button key="submit" type="primary" @click="handleOkImage" :loading="loadingImage">确定</a-button>
- </template>
- <a-form-item label class="add-image-material">
- <uploadFile
- v-if="addImageVisible"
- :value.sync="urlListImage.url"
- :checkFile="fileWater"
- @overUpload="overUploadImage"
- @removeUpload="deleteImage"
- :fileCount="15"
- uploadType="image"
- />
- <!-- <upload-to-ali
- style="width:100%"
- v-model="urlListImage.url"
- :customDomain="customDomain"
- :multiple="true"
- preview
- :region="region"
- :bucket="bucket"
- :accept="acceptImage"
- :max="10"
- :size="1024000"
- :accessKeyId="accessKeyId"
- :accessKeySecret="accessKeySecret"
- :before-upload="fileWater"
- :dir="dirImg"
- @delete='deleteImage'
- @loaded="overUploadImage"
- ></upload-to-ali>-->
- <span
- v-if="material.filter((item) => item == false).length > 0 && urlListImage.url.length > 0"
- style="color: red"
- >
- 上传素材的尺寸不符,请修改(
- <span v-for="(item, index) of material" :key="index" v-show="!item">第{{ index + 1 }}张</span>出错)
- </span>
- <span
- v-else-if="urlListImage.url.length > 0 && material.filter((item) => item == false).length == 0"
- style="color: green"
- >上传成功</span
- >
- </a-form-item>
- </a-modal>
- <a-modal title="数据详情" v-model="showDataBool" :footer="null">
- <div class="bhShow" style="display: flex; justify-content: space-between; height: 400px">
- <div v-if="douyinData" class="show-data">
- <span style="color: black; font-size: 18px; text-align: center; width: 100%">抖音</span>
- <span>消耗:{{ douyinData.cost }}</span>
- <span>封面点击:{{ douyinData.click }}</span>
- <span>封面展示:{{ douyinData.showNum }}</span>
- <span>激活:{{ douyinData.active }}</span>
- <span>转化量:{{ douyinData.convertNum }}</span>
- <span>表单提交:{{ douyinData.form }}</span>
- <span>下载注册:{{ douyinData.register }}</span>
- <span>视频总播放:{{ douyinData.totalPlay }}</span>
- <span>视频有效播放:{{ douyinData.validPlay }}</span>
- </div>
- <div v-if="kuaishouData" class="show-data">
- <span style="color: black; font-size: 18px; text-align: center; width: 100%">快手</span>
- <span>消耗:{{ kuaishouData.charge }}</span>
- <span>封面点击:{{ kuaishouData.photoClick }}</span>
- <span>封面展示:{{ kuaishouData.photoShow }}</span>
- <span>素材曝光数:{{ kuaishouData.aclick }}</span>
- <span>激活数:{{ kuaishouData.activation }}</span>
- <span>行为数:{{ kuaishouData.bclick }}</span>
- <span>表单提交数:{{ kuaishouData.formCount }}</span>
- </div>
- </div>
- </a-modal>
- <a-modal
- title="批量上传素材"
- v-model="batchUploadVisible"
- v-if="batchUploadVisible"
- :maskClosable="false"
- :width="1200"
- >
- <template slot="footer">
- <a-button type="primary" @click="handleOkBatch" :loading="loadingBatch">确定</a-button>
- </template>
- <a-form-model
- ref="ruleForm"
- :model="ruleForm"
- :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }"
- >
-
- <a-form-model-item ref="name" label="项目选择" prop="projectId" :rules="{
- required: true,
- message: '项目不能为空',
- trigger: 'blur',
- }">
- <a-select
- v-model="ruleForm.projectId"
- @change="getProjectId"
- @focus="getParticipateList"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- @search="getParticipateList"
- :disabled="!add"
- >
- <a-select-option :value="item.projectId" v-for="item of dataElse" :key="item.id">
- {{ item.projectName }} {{
- item.mediaId == '1'
- ? '头条'
- : item.mediaId == '2'
- ? '快手'
- : item.mediaId == '3'
- ? '头条内广'
- : '快手内广'
- }} {{ item.advertiserName }}
- </a-select-option>
- </a-select>
- </a-form-model-item>
- <a-form-model-item label="视频上传" prop="videoList" v-if="ruleForm.projectId!=''">
- <uploadFile
- :checkFile="ruleFormFile"
- :value.sync="ruleForm.urlList"
- @overUpload="ruleFormOverUpload"
- @removeUpload="ruleFormRemoveUpload"
- :fileCount="10"
- :sizeCheck="true"
- uploadType="video"
- :multiple="true"
- v-if="batchUploadVisible"
- />
- <!-- <uploadFile
- :checkFile="file"
- :value.sync="urlList.url"
- @overUpload="overUpload"
- @removeUpload="removeUpload"
- :fileCount="2"
- uploadType="video"
- :multiple="true"
- /> -->
- </a-form-model-item>
- <a-form-model-item :wrapper-col="{ span: 14 , offset:4}">
- <el-collapse v-model="activeCollapse" accordion v-if="ruleForm.urlList.length>0">
- <el-collapse-item :title="'视频'+(index+1)" :name="index" v-for="(items,index) of ruleForm.urlListData" :key="index">
- <a-form-model-item label="视频" :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }">
- <video :src="items.url" style="width:150px"></video>
- </a-form-model-item>
- <a-form-model-item label="素材名称"
- :key="index"
- :prop="'urlListData.'+index+'.materialName'"
- :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }"
- :rules="{
- required: true,
- message: '素材名称必填',
- trigger: 'blur',
- }"
- >
- <a-input placeholder="请输入素材名称" v-model="items.materialName"></a-input>
- </a-form-model-item>
-
- <a-form-model-item label="剪辑"
- :key="index"
- :prop="'urlListData.'+index+'.clipId'"
- :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }"
- :rules="{
- required: true,
- message: '剪辑必选',
- trigger: 'blur',
- }">
- <a-select
- v-model="items.clipId"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription.clipId" :key="item.userId">{{
- item.userName
- }}</a-select-option>
- </a-select>
- </a-form-model-item>
- <a-form-model-item label="策划"
- :prop="'urlListData.' + index + '.planId'"
- :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }"
- :rules="{
- required: true,
- message: '策划必选',
- trigger: 'blur',
- }">
- <a-select
- v-model="items.planId"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription.planId" :key="item.userId">{{
- item.userName
- }}</a-select-option>
- </a-select>
-
- </a-form-model-item>
- <a-form-model-item label="拍摄"
- :prop="'urlListData.'+index+'.shotId'"
- :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }">
- <a-select
- v-model="items.shotId"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription.shotId" :key="item.userId">{{
- item.userName
- }}</a-select-option>
- </a-select>
- </a-form-model-item>
- <a-form-model-item label="形式标签"
- :prop="'urlListData.'+index+'.modalityTagList'"
- :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }"
- :rules="{
- required: true,
- message: '形式标签必选',
- trigger: 'blur',
- }">
- <el-cascader
- placeholder="搜索你想要的形式标签"
- :options="departTreeModality"
- v-model="items.modalityTagList"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-model-item>
- <a-form-model-item label="场景标签"
- :prop="'urlListData.'+index+'.senceTagList'"
- :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }"
- :rules="{
- required: true,
- message: '场景标签必选',
- trigger: 'blur',
- }">
- <el-cascader
- placeholder="搜索你想要的场景标签"
- :options="departTreeSence"
- v-model="items.senceTagList"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-model-item>
- <a-form-model-item label="基调标签"
- :prop="'urlListData.'+index+'.modTagList'"
- :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }"
- :rules="{
- required: true,
- message: '基调标签必选',
- trigger: 'blur',
- }">
- <el-cascader
- placeholder="搜索你想要的基调标签"
- :options="departTreeMod"
- v-model="items.modTagList"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-model-item>
- <a-form-model-item :wrapper-col="{ span: 14,offset:4 }" v-if="index == 0">
- <a-button type="primary" @click="syncDesign">剩余素材同步设计人员</a-button>
- </a-form-model-item>
- </el-collapse-item>
- </el-collapse>
- </a-form-model-item>
- </a-form-model>
- </a-modal>
- <a-modal
- :title="add ? '添加素材' : '修改素材'"
- v-model="visible"
- @cancel="close"
- @afterClose="close"
- :maskClosable="false"
- :width="800"
- >
- <template slot="footer">
- <a-button key="back" @click="close">取消</a-button>
- <a-button type="primary" :disabled="!confirmLoading" @click="handleOk" :loading="loadingElse">确定</a-button>
- </template>
- <a-form :form="form">
- <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="项目选择">
- <!-- <selectTable :projectId.sync="projectId" /> -->
- <!-- <a-select v-decorator="[
- 'projectId', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择项目!' }] }
- ]" @change="getProjectId" showSearch optionFilterProp="children" :filterOption="filterOption"
- :default-active-first-option="false" :show-arrow="false" :not-found-content="null" :disabled="!add"
- @search="getParticipateList">
- <a-select-option :value="item.projectId" v-for="item of dataElse" :key="item.id">
- {{ item.projectName }} {{
- item.mediaId == "1" ? '头条' :item.mediaId == "2"? '快手':item.mediaId == "3"?'头条内广':'快手内广'
- }} {{ item.advertiserName }}
- </a-select-option>
- </a-select>-->
- <!-- <selectTable :projectId.sync="projectId" @change="getProjectId" :disabled="!add"></selectTable> -->
- <a-select
- v-decorator="[
- 'projectId', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择项目!' }] },
- ]"
- @change="getProjectId"
- @focus="getParticipateList"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- @search="getParticipateList"
- :disabled="!add"
- >
- <a-select-option :value="item.projectId" v-for="item of dataElse" :key="item.id">
- {{ item.projectName }} {{
- item.mediaId == '1'
- ? '头条'
- : item.mediaId == '2'
- ? '快手'
- : item.mediaId == '3'
- ? '头条内广'
- : '快手内广'
- }} {{ item.advertiserName }}
- </a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="视频素材上传" v-if="getData('projectId')">
- <uploadFile
- :checkFile="file"
- :value.sync="urlList.url"
- @overUpload="overUpload"
- @removeUpload="removeUpload"
- :fileCount="1"
- uploadType="video"
- :multiple="false"
- />
- <!-- <upload-to-ali
- v-model="urlList.url"
- :customDomain="customDomain"
- preview
- :region="region"
- :bucket="bucket"
- :accept="acceptVideo"
- :max="10"
- :size="1024000"
- :accessKeyId="accessKeyId"
- :accessKeySecret="accessKeySecret"
- :before-upload="file"
- :dir="dirVideo"
- @loaded="overUpload"
- >
- </upload-to-ali>-->
- <span v-if="repeat" style="color: red">此素材重复,请重新选择上传</span>
- <span v-if="confirmLoading && urlList.url != ''" style="color: green">上传成功</span>
- </a-form-item>
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="wrapperCol"
- label="封面上传"
- class="add-image-material"
- v-if="getData('projectId') && add && urlList.url != ''"
- >
- <!-- <upload-to-ali
- style="width:160%"
- v-model="urlListImage.url"
- :customDomain="customDomain"
- :multiple="true"
- preview
- :region="region"
- :bucket="bucket"
- :accept="acceptImage"
- :max="10"
- :size="1024000"
- :accessKeyId="accessKeyId"
- :accessKeySecret="accessKeySecret"
- :before-upload="fileWater"
- :dir="dirImg"
- @delete='deleteImage'
- @loaded="overUploadImage"
- ></upload-to-ali>-->
- <uploadFile
- :value.sync="urlListImage.url"
- :checkFile="fileWater"
- @overUpload="overUploadImage"
- @removeUpload="deleteImage"
- :fileCount="15"
- uploadType="image"
- />
- <span
- v-if="material.filter((item) => item == false).length > 0 && urlListImage.url.length > 0"
- style="color: red"
- >
- 上传素材的尺寸不符,请修改(
- <span v-for="(item, index) of material" :key="index" v-show="!item">第{{ index + 1 }}张</span>出错)
- </span>
- <span
- v-else-if="urlListImage.url.length > 0 && material.filter((item) => item == false).length == 0"
- style="color: green"
- >上传成功</span
- >
- </a-form-item>
- <div v-if="add">
- <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="策划" v-if="activeKey == 'video'">
- <a-select
- v-decorator="[
- 'planId', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择策划!' }] },
- ]"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription.planId" :key="item.userId">{{
- item.userName
- }}</a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="拍摄" v-if="activeKey == 'video'">
- <a-select
- v-decorator="[
- 'shotId', // 给表单赋值或拉取表单时,该input对应的key
- ]"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription.shotId" :key="item.userId">{{
- item.userName
- }}</a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="剪辑">
- <a-select
- v-decorator="[
- 'clipId', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择剪辑!' }] },
- ]"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription.clipId" :key="item.userId">{{
- item.userName
- }}</a-select-option>
- </a-select>
- </a-form-item>
- </div>
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="形式标签"
- v-if="add && visible"
- >
- <el-cascader
- placeholder="搜索你想要的形式标签"
- :options="departTreeModality"
- v-decorator="[
- 'modalityTagList', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择形式标签!' }] },
- ]"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
- <!-- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="内容标签"
- v-if="add && visible"
- >
- <el-cascader
- placeholder="搜索你想要的内容标签"
- :options="departTreeContent"
- class="only-video-material-disable-modal"
- v-decorator="[
- 'contentTagList',
- { rules: [{ required: true, message: '请选择内容标签!' }] },
- ]"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item> -->
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="场景标签"
- v-if="add && visible"
- >
- <el-cascader
- placeholder="搜索你想要的场景标签"
- :options="departTreeSence"
- v-decorator="[
- 'senceTagList', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择场景标签!' }] },
- ]"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="基调标签"
- v-if="add && visible"
- >
- <el-cascader
- placeholder="搜索你想要的基调标签"
- :options="departTreeMod"
- v-decorator="[
- 'modTagList', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择基调标签!' }] },
- ]"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 18 },
- }"
- label="其他"
- v-if="add"
- >
- <template v-for="(tag, index) in tags">
- <a-tooltip v-if="tag.length > 20" :key="tag" :title="tag">
- <a-tag :key="tag" :closable="index !== 0" :afterClose="() => handleClose(tag)">{{
- `${tag.slice(0, 20)}...`
- }}</a-tag>
- </a-tooltip>
- <a-tag v-else :key="tag" :closable="true" :afterClose="() => handleClose(tag)">{{ tag }}</a-tag>
- </template>
- <a-input
- v-if="inputVisible"
- ref="input"
- type="text"
- size="small"
- :style="{ width: '78px' }"
- :value="inputValue"
- @change="handleInputChange"
- @blur="handleInputConfirm"
- @keyup.enter="handleInputConfirm"
- />
- <a-tag v-else @click="showInput" style="background: #fff; borderstyle: dashed">
- <a-icon type="plus" />New Tag
- </a-tag>
- </a-form-item>
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="描述"
- v-if="add"
- >
- <a-textarea
- placeholder="请输入描述"
- v-decorator="[
- 'materialDescribe', // 给表单赋值或拉取表单时,该input对应的key
- ]"
- :auto-size="{ minRows: 3, maxRows: 10 }"
- />
- </a-form-item>
- </a-form>
- </a-modal>
- <a-modal title="素材详情" v-model="visibleDetail" width="70%" :footer="null">
- <div style="width: 100%; height: 35px">
- <a-button type="primary" @click="setSuccess" style="float: right">{{
- excellent == 0 ? '标记为优秀素材' : '取消标记'
- }}</a-button>
- </div>
- <div style="display: flex; height: 700px">
- <div
- class="video-content"
- style="
- width: 50%;
- padding: 10px;
- box-sizing: border-box;
- display: flex;
- justify-content: center;
- border-right: 1px solid #f2f2f2;
- "
- >
- <video class="video" :src="showUrl" controls="controls" style="height: 50%" controlslist="nodownload">
- 您的浏览器不支持 video 标签。
- </video>
- <div class="downLoad" style="height: 50%; overflow: auto">
- <a-button @click="onCheckAllImageChange" v-if="model.length > 0">
- {{ checkAllImage ? '取消 ( ' + checkArrImage.length + ' )' : '全选' }}
- </a-button>
- <ul
- class="actor-photo-list"
- :style="{ width: model.length > 4 ? 25 * model.length + '%' : '100%' }"
- v-if="model.length > 0"
- >
- <a-checkbox-group
- v-model="checkArrImage"
- style="width: 100%; display: flex; padding-left: 0"
- @change="onChangeCheckImage"
- >
- <li v-for="(item, index) of model" :key="index">
- <a-checkbox :value="item.id" style="position: absolute; z-index: 100"></a-checkbox>
- <img class="video" :src="item.url" @click="coverPreviewShowModal(item, index)" />
- <span
- class="tag-video"
- :style="{
- backgroundColor:
- item.status == 0 ? 'rgba(0, 0, 0)' : item.status == 1 ? 'rgba(0, 180, 100)' : 'red',
- }"
- >{{ item.status == 0 ? '未审核' : item.status == 1 ? '已批准' : '已驳回' }}</span
- >
- </li>
- </a-checkbox-group>
- </ul>
- <div v-else style="height: 100%; display: flex; justify-content: center; align-items: center">
- <img
- src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1575627350102&di=02972956f2243933bffc0d85099adbfe&imgtype=jpg&src=http%3A%2F%2Fimg0.imgtn.bdimg.com%2Fit%2Fu%3D1095310825%2C1528244349%26fm%3D214%26gp%3D0.jpg"
- alt
- />
- </div>
- </div>
- </div>
- <a-modal title="图片预览" v-model="coverPreviewVisible" :footer="null">
- <a-carousel arrows class="cover_carousel_con">
- <div v-for="(item, index) in modelNew" :key="index" class="content">
- <img :src="item.url" :width="300" />
- <div style="margin-top: 10px">
- <a-button type="primary" @click="editImage(item, '1')">通过审核</a-button>
- <a-divider type="vertical" />
- <a-popconfirm @confirm="editImage(item, '2')">
- <div slot="title">
- <div>
- 驳回原因:
- <a-textarea
- placeholder="请输入原因"
- v-model="refuseReasonImage"
- :autosize="{ minRows: 3, maxRows: 10 }"
- />
- </div>
- </div>
- <a-button type="primary">驳回</a-button>
- <!-- @click="edit(null, '0', '2')" -->
- </a-popconfirm>
- </div>
- </div>
- <a-icon
- type="left-circle"
- slot="prevArrow"
- slot-scope
- style="left: 10px; zindex: 9; font-size: 30px; color: black"
- />
- <a-icon
- type="right-circle"
- slot="nextArrow"
- slot-scope
- style="right: 10px; zindex: 9; font-size: 30px; color: black"
- />
- </a-carousel>
- </a-modal>
- <div style="flex: 3; padding: 10px; box-sizing: border-box">
- <a-form v-if="detail&&allDetailData" class="detail ant-advanced-search-form" layout="inline">
- <div>
- <a-form-item label="视频名称">{{allDetailData.materialName}}</a-form-item>
- </div>
- <div>
- <a-form-item label="唯一编码">{{allDetailData.code}}</a-form-item>
- </div>
-
- <a-form-item label="视频链接"><a-input v-model="allDetailData.url" type="text" read-only /></a-form-item>
- <div v-if="detail.parameter" style="display: flex">
- <a-form-item label="视频时长" v-if="detail.parameter.second" style="flex: 1"
- >{{ detail.parameter.second }}秒</a-form-item
- >
- <a-form-item label="尺寸" style="flex: 1" v-if="detail.parameter.width"
- >{{ detail.parameter.width }}*{{ detail.parameter.height }}</a-form-item
- >
- <a-form-item label="大小" style="flex: 1" v-if="detail.parameter.size">{{
- detail.parameter.size
- }}</a-form-item>
- </div>
- <div v-if="detail.ascription" style="display: flex">
- <a-form-item label="策划" style="flex: 1">{{ detail.ascription.planName }}</a-form-item>
- <a-form-item label="拍摄" style="flex: 1">{{ detail.ascription.shotName }}</a-form-item>
- <a-form-item label="剪辑" v-if="detail.ascription.clipName" style="flex: 1">{{
- detail.ascription.clipName
- }}</a-form-item>
- </div>
- <div>
- <a-form-item label="标签" v-if="tagInfoList.length > 0">
- <a-tag v-for="(item, index) of tagInfoList" :key="index">{{ item.tagName }}</a-tag>
- </a-form-item>
- </div>
- <div>
- <a-form-item label="其他" v-if="detail.tag">
- <a-tag v-for="(item, index) of detail.tag" :key="index">{{ item }}</a-tag>
- </a-form-item>
- </div>
- <div>
- <a-form-item label="无水印素材下载" v-if="name">
- <a-button type="primary" @click="downloadByBlobShowUrl">下载</a-button>
- </a-form-item>
- </div>
- <div>
- <a-form-item label="水印素材下载" v-if="name">
- <a-button type="primary" @click="downloadByBlob" v-if="showUrlWater">下载</a-button>
- <span v-else>水印素材生成中,请一分钟后刷新</span>
- </a-form-item>
- </div>
- <div>
- <a-form-item label="水印素材链接" v-if="showUrlWater">
- <a-input v-model="showUrlWater" type="text" read-only />
- </a-form-item>
- </div>
- <div style="width: 100%" class="downLoad">
- <a-form-item label="生成水印素材" style="width: 100%">
- <a-select :defaultValue="4" v-model="size" style="width: 80%">
- <a-select-option :value="item.id" :key="item.id" v-for="item of sizeType">
- {{ item.name }}
- </a-select-option>
- </a-select>
- <a-button type="primary" @click="getWater" :loading="waterLoading">生成</a-button>
- </a-form-item>
- </div>
- <div>
- <a-form-item label="审核人" v-if="active == '2' && detail.auditorName">{{
- detail.auditorName
- }}</a-form-item>
- </div>
- <div>
- <a-form-item label="广告语" v-if="active == '1'">{{
- creativeCopywriter ? creativeCopywriter : '无广告语'
- }}</a-form-item>
- </div>
- <div>
- <a-form-item label="驳回原因" v-if="active == '2'">{{
- refuseReason ? refuseReason : '无原因'
- }}</a-form-item>
- </div>
- <div>
- <a-form-item label="截图" v-if="active == '2'">
- <div v-if="refuseFile" style="width: 100%">
- <img
- style="width: 100px; height: auto; margin: 5px"
- @click="showBoHui(item)"
- :src="item"
- v-for="(item, index) in refuseFile"
- :key="index"
- alt
- />
- </div>
- <!-- :checkFile="fileWater"
- @overUpload="overUploadImage"
- @removeUpload="deleteImage"-->
- <!-- <upload-to-ali
- v-if="refuseFile"
- disabled
- v-model="refuseFile"
- :customDomain="customDomain"
- multiple
- preview
- :region="region"
- :bucket="bucket"
- :accept="acceptImage"
- :max="10"
- :size="1024000"
- :accessKeyId="accessKeyId"
- :accessKeySecret="accessKeySecret"
- :dir="dirImg"
- ></upload-to-ali>-->
- <div v-else>无截图</div>
- </a-form-item>
- </div>
- <div>
- <a-form-item
- label="视频审核"
- v-if="
- active != '2' &&
- (role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager')
- "
- >
- <a-popconfirm
- @confirm="edit(null, '0', '1')"
- v-show="active != '1'"
- v-if="
- role.roleCode == 'operator' ||
- role.roleCode == 'kuaishouOperationManager' ||
- role.roleCode == 'admin' ||
- role.roleCode == 'operationAssistant' ||
- role.roleCode == 'touTiaoOperationManager'
- "
- >
- <div slot="title">
- <div>
- 广告语:
- <a-textarea placeholder="请输入" v-model="refuseReason" :autosize="{ minRows: 3, maxRows: 10 }" />
- </div>
- </div>
- <a-button type="primary" v-if="active == '0'" style="margin-right: 10px">通过审核</a-button>
- </a-popconfirm>
- <a-popconfirm @confirm="okEdit" v-show="active != '2'">
- <div slot="title">
- <div>
- 驳回原因:
- <a-textarea
- placeholder="请输入原因"
- v-model="refuseReason"
- :autosize="{ minRows: 3, maxRows: 10 }"
- />
- </div>
- <div>
- 截图:
- <uploadFile v-if="refuseFile" :value.sync="refuseFile" :fileCount="15" uploadType="image" />
- <!-- <upload-to-ali
- v-model="refuseFile"
- :customDomain="customDomain"
- multiple
- preview
- :region="region"
- :bucket="bucket"
- :accept="acceptImage"
- :max="10"
- :size="1024000"
- :accessKeyId="accessKeyId"
- :accessKeySecret="accessKeySecret"
- :dir="dirImg"
- ></upload-to-ali>-->
- </div>
- </div>
- <a-button type="primary" v-show="active != '2'">驳回</a-button>
- <!-- @click="edit(null, '0', '2')" -->
- </a-popconfirm>
- </a-form-item>
- </div>
- <div>
- <a-form-item label="封面审核" style="width: 120%">
- <a-button type="primary" :disabled="checkArrImage.length == 0" @click="editImageAll('1')"
- >通过审核</a-button
- >
- <a-popconfirm @confirm="editImageAll('2')" v-show="active != '2'">
- <div slot="title">
- <div>
- 驳回原因:
- <a-textarea
- placeholder="请输入原因"
- v-model="refuseReasonImage"
- :autosize="{ minRows: 3, maxRows: 10 }"
- />
- </div>
- </div>
- <a-button type="primary" :disabled="checkArrImage.length != 1" style="margin-left: 10px"
- >驳回</a-button
- >
- <!-- @click="edit(null, '0', '2')" -->
- </a-popconfirm>
- </a-form-item>
- </div>
- </a-form>
- </div>
- </div>
- </a-modal>
- <a-modal title="查看截图" v-model="bohuiShow" :width="300" :footer="null">
- <img :src="bohui" alt style="width: 100%" />
- </a-modal>
- <a-modal title="人员修改" v-model="personVisible" @afterClose="closePerson">
- <template slot="footer">
- <a-button key="back" @click="closePerson">取消</a-button>
- <a-button key="submit" type="primary" :loading="loadingPerson" @click="handleOkPerson">确定</a-button>
- </template>
- <a-form :form="formPerson">
- <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="策划" v-if="activeKey == 'video'">
- <a-select
- v-decorator="[
- 'planId', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择策划!' }] },
- ]"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription.planId" :key="item.userId">{{
- item.userName
- }}</a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="拍摄" v-if="activeKey == 'video'">
- <a-select
- v-decorator="[
- 'shotId', // 给表单赋值或拉取表单时,该input对应的key
- ]"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription.shotId" :key="item.userId">{{
- item.userName
- }}</a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="剪辑">
- <a-select
- v-decorator="[
- 'clipId', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '请选择剪辑!' }] },
- ]"
- showSearch
- optionFilterProp="children"
- :filterOption="filterOption"
- >
- <a-select-option :value="item.userId" v-for="item of ascription.clipId" :key="item.userId">{{
- item.userName
- }}</a-select-option>
- </a-select>
- </a-form-item>
- </a-form>
- </a-modal>
- <a-modal title="标签修改" v-model="tagInfoListVisible">
- <template slot="footer">
- <a-button
- key="back"
- @click="
- tagInfoListVisible = false
- departValueInfoModality = []
- departValueInfoMod = []
- departValueInfoContent = []
- departValueInfoSence = []
- tagCode = null
- "
- >取消</a-button
- >
- <a-button key="submit" type="primary" :loading="loadingTag" @click="handleOkTag">确定</a-button>
- </template>
- <!-- <a-form-item :label-col="labelCol" :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 }
- }" label="标签">
- <el-cascader placeholder="搜索你想要的标签" :options="departTree" v-model="departValueInfo"
- :props="{ multiple: true,value:'id',label:'tagName',emitPath:false}" filterable style="width:100%">
- </el-cascader>
- </a-form-item>-->
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="形式"
- >
- <el-cascader
- placeholder="搜索你想要的形式标签"
- :options="departTreeModality"
- v-model="departValueInfoModality"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
- <!-- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="内容"
- >
- <el-cascader
- placeholder="搜索你想要的内容标签"
- :options="departTreeContent"
- v-model="departValueInfoContent"
- :props="{ multiple: true, value: 'id', label: 'tagName', emitPath: false }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item> -->
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="场景"
- >
- <el-cascader
- placeholder="搜索你想要的场景标签"
- :options="departTreeSence"
- v-model="departValueInfoSence"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
- <a-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="基调"
- >
- <el-cascader
- placeholder="搜索你想要的基调标签"
- :options="departTreeMod"
- v-model="departValueInfoMod"
- :props="{
- multiple: true,
- value: 'id',
- label: 'tagName',
- emitPath: false,
- checkStrictly: true,
- expandTrigger: 'hover',
- }"
- filterable
- style="width: 100%"
- ></el-cascader>
- </a-form-item>
- </a-modal>
- <a-modal title="推荐封面" v-model="chouzhen" width="60%">
- <template slot="footer">
- <a-button key="back" @click="chouzhen = false">关闭</a-button>
- </template>
- <ul v-if="chouzhenList.length > 0" style="height: 600px; overflow: auto">
- <li v-for="(item, index) of chouzhenList" :key="index" class="chouzhen" :class="{ first: index == 0 }">
- <img
- :src="item.url"
- alt
- style="width: 100%"
- @click="
- showImageStr = item.url
- showImageChouzhen = true
- "
- />
- </li>
- </ul>
- <div style="clear: both"></div>
- <a-modal title="图片预览" v-model="showImageChouzhen" :footer="null">
- <img :src="showImageStr" style="width: 100%" />
- </a-modal>
- </a-modal>
- <account-check ref="check" @synchro="implement"></account-check>
- <accountCheckBytedance ref="accountCheckBytedance" @synchro="implement" />
- <permission-modal ref="modalForm" @ok="modalFormOkElse"></permission-modal>
- <!-- 换脸模块 -->
- <change-face
- :status="faceTypeStatus"
- :defaultList="faceChangeList"
- @closeface="handleFaceCloseModal"
- @sureface="handleFaceSureModal"
- >
- </change-face>
- <a-modal
- v-if="faceShowStatus"
- title="换脸操作"
- :visible="faceShowStatus"
- dialog-class="change-face-modal change-list-modal-show"
- @ok="handlePolicyOperationSure"
- @cancel="handlePolicyOperationCancel"
- >
- <a-table
- class="face-right-table"
- ref="table"
- size="middle"
- bordered
- :columns="settlementColumns"
- :dataSource="dataSourceFace"
- :pagination="false"
- :loading="controlLoading"
- >
- <span slot="input_video_url" slot-scope="text, record">
- <div style="width:100px;height:177px;margin-left:25px;">
- <video v-if="record.input_video_url" :src="record.input_video_url" style="width:100px" controls></video>
- <img v-else style="width:100px" src="@/assets/noImg.png">
- </div>
- </span>
- <span slot="output_video_url" slot-scope="text, record">
- <div style="width:100px;height:177px;margin-left:25px;">
- <video v-if="record.output_video_url" :src="record.output_video_url" style="width:100px" controls></video>
- <img v-else style="width:100px" src="@/assets/noImg.png">
- </div>
- </span>
- <span slot="input_image_url" slot-scope="text, record">
- <img v-if="text" :src="text" style="width:100px">
- <img v-else src="@/assets/noImg.png" style="width:100px">
- </span>
- <span slot="actions" slot-scope="text, record">
- <!-- <a :disabled="record.status !== 'finished'" @click="handlePushData(record)">推送</a>
- <a-divider type="vertical"/> -->
- <a @click="handleDownLoadData(record)" :disabled="record.status !== 'finished'">下载</a>
- </span>
- </a-table>
- <a-pagination
- class="pagin-table-class"
- :total="totalAll"
- :show-total="total => `共 ${totalAll} 条`"
- size="small"
- :current="defaultCurrent"
- :defaultPageSize="2"
- @change="onShowSizeChange"
- @showSizeChange="onShowSizeChange"
- />
- </a-modal>
- </a-card>
- </template>
- <script>
- import changeFace from '@/views/modules/Statistics/change-face/change-face';
- import PermissionModal from './modules/DepartModal'
- import { JeecgListMixin } from '@/mixins/videoMaterialMixin'
- import JEllipsis from '@/components/jeecg/JEllipsis'
- import UploadToAli from '@femessage/upload-to-ali'
- import { fileCheck, fileCheckImage, fileEdit, fileEditAll, fileInsertV2 } from '@/api/actor'
- import { deleteAction, getAction, postAction, putAction } from '@/api/manage'
- import qs from 'qs'
- import { mapGetters } from 'vuex'
- import moment from 'moment'
- import selectTable from './comment/selectTable.vue'
- import selectTableProject from '@/views/modules/Statistics/components/selectPagination.vue'
- import BMF from 'browser-md5-file'
- import uploadFile from '@/components/uploadFile.vue'
- import { closeAllVideoFun, stopOtherVideo } from '@/utils/videoControl'
- import accountCheck from './accountCheck'
- import accountCheckBytedance from './accountCheckBytedance'
- let md5Arr = []
- export default {
- name: 'video-material',
- mixins: [JeecgListMixin],
- components: {
- JEllipsis,
- UploadToAli,
- accountCheck,
- selectTable,
- uploadFile,
- PermissionModal,
- accountCheckBytedance,
- selectTableProject,
- changeFace
- },
- data() {
- return {
- ruleForm:{
- projectId:'',
- urlList:[],
- urlListData:[]
- },
- loadingBatch:false,
- batchUploadVisible:false,
- controlLoading: false,
- defaultCurrent: 1,
- settlementColumns: [
- {
- title: '原视频',
- dataIndex: 'input_video_url',
- align: 'center',
- width: 150,
- scopedSlots: {customRender: 'input_video_url'}
- },
- {
- title: '人脸',
- dataIndex: 'input_image_url',
- align: 'center',
- width: 150,
- scopedSlots: {customRender: 'input_image_url'}
- },
- {
- title: '更换后视频',
- dataIndex: 'output_video_url',
- align: 'center',
- width: 150,
- scopedSlots: {customRender: 'output_video_url'}
- },
- {
- title: '状态',
- align: 'center',
- dataIndex: 'status',
- width: 100
- },
- {
- title: '创建时间',
- align: 'center',
- dataIndex: 'create_time',
- width: 160
- },
- {
- title: '操作',
- align: 'center',
- dataIndex: 'actions',
- width: 130,
- scopedSlots: {customRender: 'actions'}
- }
- ],
- faceShowStatus: false,
- faceTypeStatus: false,
- faceChangeList: {},
- designList: [],
- // 标签的数据
- labelValue: [],
- options: [],
- departTree: [],
- departTreeModality: [],
- departTreeContent: [],
- departTreeSence: [],
- departTreeMod: [],
- departValue: [],
- departValueInfo: [],
- departValueInfoModality: [],
- departValueInfoContent: [],
- departValueInfoSence: [],
- departValueInfoMod: [],
- tagInfoList: [],
- tagInfoListVisible: false,
- tagCode: null,
- loadingTag: false,
- showImageChouzhen: false,
- showImageStr: null,
- coverPreviewVisible: false,
- chouzhen: false,
- chouzhenList: [],
- model: [],
- modelNew: [],
- goodsColumns: [
- {
- title: '封面预览',
- // dataIndex: 'coverUrl',
- // key: 'coverUrl',
- dataIndex: 'url',
- align: 'center',
- scopedSlots: {
- customRender: 'url',
- },
- },
- {
- title: '审核',
- align: 'center',
- dataIndex: 'action',
- width: 100,
- scopedSlots: {
- customRender: 'action',
- },
- },
- ],
- editMaterialVisible:false,
- editMaterialId:'',
- loadingEdit:false,
- addImageVisible: false,
- addImageData: null,
- projectId: '',
- inputVisible: false,
- inputValue: '',
- labelCol: {
- xs: {
- span: 24,
- },
- sm: {
- span: 5,
- },
- },
- wrapperCol: {
- xs: {
- span: 24,
- },
- sm: {
- span: 12,
- },
- },
- queryParam: {},
- dataElse: [],
- ascription: {
- clipId: [], //剪辑人id
- shotId: [], //拍摄人id
- planId: [], //策划id
- planeId: [], //平面id
- },
- show: true,
- visible: false,
- visibleDetail: false,
- personVisible: false,
- confirmLoading: false,
- loadingElse: false,
- loadingImage: false,
- loadingPerson: false,
- activeKey: 'video',
- active: '0',
- examinelList: [
- {
- value: '0',
- tab: '未审核',
- },
- {
- value: '1',
- tab: '已批准',
- },
- {
- value: '2',
- tab: '已驳回',
- },
- // {
- // value: '3',
- // tab: '有效视频',
- // },
- ],
- // 表头
- columns: [],
- urlList: {
- url: '',
- md5: '',
- name: '',
- },
- urlListImage: {
- url: [],
- md5: [],
- name: [],
- size: [],
- },
- watermarkUrl: {
- url: '',
- md5: '',
- name: '',
- },
- url: {
- list: '/ctop/materialInfo/listV2',
- },
- detail: false,
- form: this.$form.createForm(this),
- formPerson: this.$form.createForm(this),
- editMaterialform: this.$form.createForm(this),
- tags: [],
- refuseFile: [],
- refuseReason: '',
- refuseReasonImage: '',
- creativeCopywriter: '',
- customDomain: '',
- region: 'oss-cn-beijing',
- bucket: 'ctop-media',
- acceptVideo: 'video/mpeg,video/mp4',
- acceptImage: 'image/jpeg,image/jpg,image/png',
- accessKeyId: 'LTAIbNbqWzSOklQV',
- accessKeySecret: '1rkPz7JNoXk8sJevPaeYHWqfkQXBGh',
- checkArr: [],
- checkAll: false,
- checkArrImage: [],
- checkAllImage: false,
- showUrl: '',
- showUrlWater: '',
- materialName: '',
- materialDescribe: '',
- name: '',
- detail: null,
- add: true,
- id: '',
- role: {
- roleCode: '',
- roleName: '',
- },
- key: '0',
- mediaId: null,
- sizeType: [],
- size: null,
- repeat: false,
- excellent: 0,
- code: '',
- material: [],
- imageArrList: [],
- showDataBool: false,
- kuaishouData: null,
- douyinData: null,
- bohui: '',
- bohuiShow: false,
- waterLoading: false,
- videoTag: [],
- videoVisibleChange: '',
- allDetailData: null,
- dataAllList: [],
- dataSourceFace: [],
- totalAll: 0,
- activeCollapse: 0
- }
- },
- filters: {
- getDate(value) {
- let date = new Date(value)
- let y = date.getFullYear()
- let MM = date.getMonth() + 1
- MM = MM < 10 ? '0' + MM : MM
- let d = date.getDate()
- d = d < 10 ? '0' + d : d
- return y + '-' + MM + '-' + d
- },
- },
- computed: {
- dirImg() {
- let date = new Date()
- let y = date.getFullYear()
- let MM = date.getMonth() + 1
- MM = MM < 10 ? '0' + MM : MM
- let d = date.getDate()
- d = d < 10 ? '0' + d : d
- return 'image/' + y + '-' + MM + '-' + d + '/'
- },
- dirVideo() {
- let date = new Date()
- let y = date.getFullYear()
- let MM = date.getMonth() + 1
- MM = MM < 10 ? '0' + MM : MM
- let d = date.getDate()
- d = d < 10 ? '0' + d : d
- return 'video/' + y + '-' + MM + '-' + d + '/'
- },
- },
- created() {
- this.queryParam.type = 'VIDEO'
- this.queryParam.userId = this.userInfo().id
- this.queryParam.status = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
- this.active = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
- // this.queryParam.status = key
- this.ipagination.pageSize = 8
- this.getParticipateList(null)
- // /sys/user/getRoleInfo
- getAction('/sys/user/getRoleInfo', {
- userId: this.userInfo().id,
- }).then((res) => {
- this.role = res
- })
- getAction('/ctop/videoWatermarkTemplate/list').then((res) => {
- if (res.success) {
- this.sizeType = res.result.records
- }
- })
- this.getTagListAll()
- },
- updated() {
- stopOtherVideo()
- },
- mounted() {
- setInterval(function () {
- document.querySelectorAll('.el-cascader-node__label').forEach((el) => {
- el.onclick = function () {
- if (this.previousElementSibling) this.previousElementSibling.click()
- }
- })
- }, 1000)
- this.getDesignList()
- getAction('/ctop/tagInfo/treeList', {
- pageSize: 10000,
- }).then((res) => {
- console.log(res)
- if (res.success) {
- this.options = res.result.records
- } else {
- this.$message.error('数据请求失败!')
- }
- })
- },
- watch: {
- $route: function (n, o) {
- if (n.path == '/modules/material/videoMaterial') {
- this.queryParam.userId = this.userInfo().id
- this.queryParam.status = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
- this.active = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
- this.loadData()
- }
- },
- 'queryParam.productId': function (n, o) {
- if (n != '') {
- this.getList(n)
- this.checkArr = []
- this.$refs.selectTableProject.keyValue = ''
- this.$refs.selectTableProject.getData(n)
- }
- },
- visibleDetail: function (n, o) {
- if (!n) {
- this.refuseFile = []
- this.refuseReason = ''
- closeAllVideoFun()
- }
- },
- labelValue: {
- deep: true,
- handler(n, o) {
- if (n.length >= 1) {
- this.queryParam.tagCode = n[n.length - 1]
- } else {
- this.queryParam.tagCode = ''
- }
- // this.loadData()
- },
- },
- batchUploadVisible:function(n,o){
- if(!n){
- md5Arr = []
- this. ruleForm={
- projectId:'',
- urlList:[],
- urlListData:[]
- }
- }
- }
- },
- methods: {
- // :checkFile="ruleFormFile"
- // :value.sync="ruleForm.urlList"
- // @overUpload="ruleFormOverUpload"
- // @removeUpload="ruleFormRemoveUpload"
- ruleFormFile(file){
- var bmf = new BMF()
- var that = this
- return new Promise(function (resolve, reject) {
- bmf.md5(file, (err, md5) => {
- let videoInfo = {name:file.name,md5:md5}
- if(md5Arr.findIndex(item=>item==md5)>-1){
- reject()
- that.$message.error('素材'+file.name+'已经上传')
- return
- }else{
- md5Arr.push(md5)
- }
-
- // that.ruleForm.urlList = []
- fileCheck({
- code: md5,
- projectId: that.ruleForm.projectId,
- }).then((res) => {
- if (res.code == 0) {
- that.$message.error('素材'+file.name+'已经上传')
- reject()
- } else {
- resolve()
- // reject()
- }
- })
- })
- })
- },
- ruleFormOverUpload(urlAll){
- this.ruleForm.urlListData = urlAll.map(item=>{
- return {
- url:item.url,
- planId:undefined,
- clipId:undefined,
- shotId:undefined,
- modTagList:[],
- modalityTagList:[],
- senceTagList:[],
- materialName:''
- }
- })
- },
- ruleFormRemoveUpload(file){
- //media-1301855440.cos.ap-chongqing.myqcloud.com/video/2021-08-16/03-1629102879421.mp4
- let index = this.ruleForm.urlListData.findIndex(item=>item.url==file.url)
- md5Arr = []
- if(index>-1){
- this.ruleForm.urlListData.splice(index,1)
- }
- },
- handleOkBatch(){
- this.$refs.ruleForm.validate(valid => {
- if(valid){
- if(this.ruleForm.urlListData.length == 0){
- this.$message.error('请上传视频素材')
- return
- }
- this.loadingBatch = true
- let params = {}
- params.projectId = this.ruleForm.projectId
- params.videoArray = this.ruleForm.urlListData.map(item=>{
- return {
- ...item,
- ascription:{
- planId:item.planId,
- clipId:item.clipId,
- shotId:item.shotId,
- }
- }
- })
- postAction('/insertV3',params).then(res=>{
- this.loadingBatch = false
- if(res.success){
- md5Arr = []
- this.$message.success('上传成功')
- this.batchUploadVisible = false
- this.loadData(1)
- }else{
- this.$message.error(res.message)
- }
- })
- }else{
- this.$message.error('有必填项未填')
- }
- })
- },
- syncDesign(){
- let clipId = this.ruleForm.urlListData[0].clipId
- let planId = this.ruleForm.urlListData[0].planId
- let shotId = this.ruleForm.urlListData[0].shotId
- this.ruleForm.urlListData = this.ruleForm.urlListData.map(item=>{
- return {
- ...item,
- clipId,
- planId,
- shotId
- }
- })
- },
- editMaterialName(item) {
- this.editMaterialVisible = true
- this.editMaterialId = item.id
- this.$nextTick(()=>{
- this.editMaterialform.setFieldsValue({name:item.materialName})
- })
- },
- handleOkEditMaterialName(){
- this.editMaterialform.validateFieldsAndScroll((err, values) => {
- if (err) {
- // 这里做逻辑处理
- } else {
- this.loadingEdit = true
- let params={}
- params.id = this.editMaterialId
- params.name = values.name
- postAction('/ctop/materialInfo/editName', params).then(res=>{
- this.loadingEdit = false
- if(res.success){
- this.$message.success('修改成功')
- this.editMaterialVisible = false
- this.editMaterialform.resetFields()
- }else{
- this.$message.error(res.message)
- }
- })
- }
- })
- },
- // TODO 推送操作
- handlePushData(list) {
- const paramsData = {
- projectId: this.faceShowList.projectId, // 项目选择
- ascription: {
- planId: 'e9ca23d68d884d4ebb19d07889727dae',
- shotId: 'e9ca23d68d884d4ebb19d07889727dae',
- clipId: 'e9ca23d68d884d4ebb19d07889727dae'
- },
- status: '1',
- code: list.output_video_md5,
- url: list.output_video_url && list.output_video_url.split(':')[1],
- type: 'VIDEO',
- userId: this.userInfo().id,
- modalityTagList: this.departValueInfoModality, // 形式标签
- senceTagList: this.departValueInfoSence, // 场景标签
- modTagList: this.departValueInfoMod // 基调标签
- };
- const that = this;
- this.$confirm({
- title: '提示',
- content: '是否进行推送操作',
- onOk() {
- fileInsertV2(paramsData).then(res => {
- if (res.code === 0) {
- that.handlePolicyOperationCancel();
- that.$emit('sureface');
- that.$message.success('素材已经同步到未审核列表,请进入查看');
- }
- else {
- that.$message.error(res.message);
- }
- });
- }
- });
- },
- // 下载操作
- handleDownLoadData(list) {
- const randomTime = new Date().getTime() + '_check.mp4';
- fetch(list.output_video_url)
- .then(res => res.blob())
- .then(blob => {
- const a = document.createElement('a');
- document.body.appendChild(a);
- a.style.display = 'none';
- // 使用获取到的blob对象创建的url
- const url = window.URL.createObjectURL(blob);
- a.href = url;
- // 指定下载的文件名
- a.download = randomTime;
- a.click()
- document.body.removeChild(a);
- // 移除blob对象的url
- window.URL.revokeObjectURL(url);
- });
- },
- onShowSizeChange(current, pageSize) {
- this.dataSourceFace = [];
- this.defaultCurrent = current;
- const defaultData = [...this.dataAllList];
- this.dataSourceFace = [...defaultData.slice(2 * current - 2, 2 * current)];
- },
- handlePolicyOperationSure() {
- this.defaultCurrent = 1;
- this.faceShowStatus = false;
- },
- handlePolicyOperationCancel() {
- this.defaultCurrent = 1;
- this.faceShowStatus = false;
- },
- handleAllChangeFace() {
- this.faceShowStatus = true;
- this.controlLoading = true;
- this.dataSourceFace = [];
- postAction('http://faceswap.tjyourong.com.cn/jeecg-boot/task/query', {}).then(result => {
- if (result.code === 0) {
- const defaultData = result.data;
- defaultData.forEach(item => {
- item.create_time = item.create_time ? item.create_time.replace('T', ' ') : '-';
- });
- this.dataAllList = defaultData;
- this.dataSourceFace = defaultData.slice(0, 2);
- this.totalAll = defaultData.length ? defaultData.length : 0;
- }
- else {
- this.dataAllList = [];
- this.dataSourceFace = [];
- this.totalAll = 0;
- this.$message.error(result.message);
- }
- }).catch(error => {
- console.log(error, 'eeee');
- }).finally(() => {
- this.controlLoading = false;
- });
- },
- handleChangeFace(data) {
- this.faceTypeStatus = true;
- this.faceChangeList = data;
- },
- handleFaceCloseModal() {
- this.faceTypeStatus = false;
- },
- handleFaceSureModal() {
- this.searchQuery();
- },
- // 获取设计人员
- getDesignList() {
- postAction('/ctop/kuaishou/videoReport/getDesignList').then((res) => {
- if (res.success) {
- this.designList = res.result
- }
- })
- },
- changeTag(visible) {
- if (this.videoVisibleChange != visible) {
- this.videoVisibleChange = visible
- this.videoTag = []
- getAction('/ctop/materialTagInfo/list', { code: visible }).then((res) => {
- this.videoTag = res.result.records.map((item) => {
- return item.tagName
- })
- })
- } else {
- return
- }
- },
- modalFormOkElse() {
- this.getTagListAll()
- },
- handleOkTag(e) {
- this.loadingTag = true
- var data = [
- ...this.departValueInfoModality,
- ...this.departValueInfoMod,
- ...this.departValueInfoContent,
- ...this.departValueInfoSence,
- ]
- postAction('/ctop/materialTagInfo/mark', {
- code: this.tagCode,
- tagList: data,
- }).then((res) => {
- console.log(res)
- if (res.success) {
- this.departValueInfoModality = []
- this.departValueInfoMod = []
- this.departValueInfoContent = []
- this.departValueInfoSence = []
- this.loadingTag = false
- this.tagInfoListVisible = false
- } else {
- this.loadingTag = false
- this.$message.error(res.message)
- }
- })
- },
- editTagList(item) {
- this.tagInfoListVisible = true
- this.getTagListInfo(item.code)
- this.tagCode = item.code
- },
- getTagListAll() {
- this.departTree = []
- this.departTreeModality = [] //形式
- this.departTreeContent = [] // 内容
- this.departTreeSence = [] // 场景
- this.departTreeMod = [] //基调
- this.getQueryTree(1, 'departTreeModality')
- this.getQueryTree(2, 'departTreeMod')
- this.getQueryTree(3, 'departTreeContent')
- this.getQueryTree(4, 'departTreeSence')
- },
- getQueryTree(type, arr) {
- getAction('/ctop/tagInfo/queryTreeList', {
- categoryId: type,
- }).then((res) => {
- if (res.success) {
- if (res.result) {
- this[arr] = this.getTreeData(res.result)
- }
- }
- })
- },
- getTreeData(data) {
- for (var i = 0; i < data.length; i++) {
- if (data[i].children) {
- if (data[i].children.length < 1) {
- // children若为空数组,则将children设为undefined
- data[i].disabled = false
- } else {
- // // children若不为空数组,则继续 递归调用 本方法
- data[i].disabled = true
- this.getTreeData(data[i].children)
- }
- } else {
- data[i].disabled = false
- }
- }
- return data
- },
- showBoHui(item) {
- this.bohui = item
- this.bohuiShow = true
- },
- editImage(item, status) {
- var params = {}
- params.id = item.id
- params.status = status
- params.auditorId = this.userInfo().id
- if (status == '1') {
- } else {
- params.refuseReason = this.refuseReasonImage
- }
- var updateArr = [params]
- putAction('/ctop/MaterialImageInfo/batchEdit', updateArr).then((res) => {
- console.log(res)
- if (res.success) {
- // this.coverPreviewVisible = false
- getAction('/ctop/MaterialImageInfo/list', {
- videoId: this.code,
- }).then((res) => {
- if (res.success) {
- this.model = res.result.map((item, index) => {
- return {
- ...item,
- key: index,
- }
- })
- this.modelNew = this.model.filter((item, index) => {
- return item.status == '0'
- })
- if (this.modelNew.length == 0) {
- this.coverPreviewVisible = false
- }
- }
- })
- this.loadData()
- } else {
- this.$message.error(res.message)
- }
- })
- },
- editImageAll(status) {
- this.checkArrImage
- // var params = {}
- // params.id = item.id
- // params.status = status
- var updateArr = []
- if (status == '1') {
- updateArr = this.checkArrImage.map((item) => {
- return {
- id: item,
- status: status,
- }
- })
- } else {
- updateArr = this.checkArrImage.map((item) => {
- return {
- id: item,
- status: status,
- refuseReason: this.refuseReasonImage,
- }
- })
- }
- putAction('/ctop/MaterialImageInfo/batchEdit', updateArr).then((res) => {
- if (res.success) {
- // this.coverPreviewVisible = false
- getAction('/ctop/MaterialImageInfo/list', {
- videoId: this.code,
- }).then((res) => {
- if (res.success) {
- this.checkArrImage = []
- this.checkAllImage = false
- this.model = res.result.map((item, index) => {
- return {
- ...item,
- key: index,
- }
- })
- }
- })
- this.loadData()
- } else {
- this.$message.error(res.message)
- }
- })
- },
- showData(item) {
- if (item.byteDance || item.kuaiShou) {
- this.showDataBool = true
- this.kuaishouData = item.kuaiShou
- this.douyinData = item.byteDance
- } else {
- this.$message.error('抖音和快手都无数据')
- return
- }
- },
- setSuccess() {
- var params = {}
- params.id = this.code
- params.excellent = this.excellent == 1 ? 0 : 1
- getAction('/ctop/materialInfo/excellent/set', params).then((res) => {
- if (res.success) {
- this.excellent = this.excellent == 1 ? 0 : 1
- this.loadData(this.ipagination.current)
- }
- })
- },
- getData(className) {
- return this.form.getFieldValue(className)
- },
- deleteData(id) {
- deleteAction('/ctop/materialInfo/delete', {
- id: id,
- }).then((res) => {
- if (res.success) {
- this.$message.success('删除成功')
- this.loadData()
- } else {
- this.$message.error(res.message)
- }
- })
- },
- filterOption(input, option) {
- return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
- },
- moment,
- tongbu(value) {
- this.mediaId = value
- // getAction('/ctop/project/queryById', { id: this.queryParam.projectId }).then((res) => {
- // console.log(res)
- // if (res.success) {
- if (value == '1' || value == '3') {
- this.$refs.check.getData('/ctop/userAllocation/getAccountListByUserIdAndProductId', {
- userId: this.userInfo().id,
- productId: this.queryParam.productId,
- mediaId: value,
- })
- } else if (value == '2' || value == '4') {
- this.$refs.accountCheckBytedance.getParticipateList(this.queryParam.productId)
- // this.$refs.check.getData('/ctop/userAllocation/getAccountListByUserIdAndProductId', {
- // userId: this.userInfo().id,
- // productId: this.queryParam.productId,
- // mediaId: value,
- // })
- }
- // } else {
- // this.$message.error('网络波动,请稍后再试')
- // }
- // })
- },
- implement(data) {
- // {treeData:data,shieldBackwardSwitch:this.shieldBackwardSwitch}
- var params = {}
- params.mediaId = this.mediaId
- params.materialArray = JSON.stringify(this.checkArr)
- params.accountArray = data.treeData ? JSON.stringify(data.treeData) : JSON.stringify(data)
- if (this.mediaId == '2') {
- params.shieldBackwardSwitch = data.shieldBackwardSwitch
- }
- postAction('/ctop/materialUpload/uploadAccount', params).then((res) => {
- if (res.code == 0) {
- this.checkArr = []
- this.checkAll = false
- }
- })
- // /ctop/materialUpload/uploadAccount
- },
- downloadByBlobShowUrl() {
- fetch(this.showUrl)
- .then((res) => res.blob())
- .then((blob) => {
- const a = document.createElement('a')
- document.body.appendChild(a)
- a.style.display = 'none'
- // 使用获取到的blob对象创建的url
- const url = window.URL.createObjectURL(blob)
- a.href = url
- // 指定下载的文件名
- a.download = this.materialName
- a.click()
- document.body.removeChild(a)
- // 移除blob对象的url
- window.URL.revokeObjectURL(url)
- })
- },
- downloadByBlob() {
- fetch(this.showUrlWater)
- .then((res) => res.blob())
- .then((blob) => {
- const a = document.createElement('a')
- document.body.appendChild(a)
- a.style.display = 'none'
- // 使用获取到的blob对象创建的url
- const url = window.URL.createObjectURL(blob)
- a.href = url
- // 指定下载的文件名
- a.download = this.name
- a.click()
- document.body.removeChild(a)
- // 移除blob对象的url
- window.URL.revokeObjectURL(url)
- })
- },
- download(href, name) {
- let eleLink = document.createElement('a')
- eleLink.download = name
- eleLink.href = href
- eleLink.click()
- eleLink.remove()
- },
- ...mapGetters(['nickname', 'avatar', 'userInfo']),
- onCheckAllChange() {
- if (this.checkAll) {
- this.checkArr = []
- } else {
- this.checkArr = this.dataSource.map((item) => {
- return item.id
- })
- }
- this.checkAll = !this.checkAll
- },
- onCheckAllImageChange() {
- if (this.checkAllImage) {
- this.checkArrImage = []
- } else {
- this.checkArrImage = this.model.map((item) => {
- return item.id
- })
- }
- this.checkAllImage = !this.checkAllImage
- },
- searchRe() {
- this.queryParam = {
- type: 'VIDEO',
- userId: this.userInfo().id,
- status: this.active,
- productId: '',
- }
- this.$refs.selectTable.keyValue = ''
- this.$refs.selectTable.getData()
- this.$refs.selectTableProject.keyValue = ''
- this.$refs.selectTableProject.getData()
-
- this.labelValue = []
- this.loadData(1)
- },
- getList(value) {
- // if (value) {
- // // this.mediaId = this.dataElse.filter(item => {
- // // if (value == item.projectId) {
- // // return item
- // // }
- // // })[0].mediaId
- // getAction('/ctop/product/getUserProductList', {
- // userId: this.userInfo().id,
- // productId: value,
- // }).then((res) => {
- // if (res.code == 0) {
- // this.mediaId = res.result.records[0].mediaId
- // }
- // })
- // }
- this.loadData()
- },
- onChangeCheckImage(checkedList) {
- if (checkedList.length == 0) {
- this.checkAllImage = false
- }
- },
- onChangeCheck(checkedList) {
- if (checkedList.length == 0) {
- this.checkAll = false
- }
- },
- handleClose(removedTag) {
- const tags = this.tags.filter((tag) => tag !== removedTag)
- this.tags = tags
- },
- showInput() {
- this.inputVisible = true
- this.$nextTick(function () {
- this.$refs.input.focus()
- })
- },
- handleInputChange(e) {
- this.inputValue = e.target.value
- },
- handleInputConfirm() {
- const inputValue = this.inputValue
- let tags = this.tags
- if (inputValue && tags.indexOf(inputValue) === -1) {
- tags = [...tags, inputValue]
- }
- Object.assign(this, {
- tags,
- inputVisible: false,
- inputValue: '',
- })
- },
- getWater() {
- this.waterLoading = true
- var params = qs.stringify({
- id: this.id,
- watermarkTemplateId: this.size,
- })
- postAction('/ctop/materialInfo/watermark', params).then((res) => {
- if (res.success) {
- // getAction("/ctop/videoWatermarkTask/list").then(res=>{
- // console.log(res)
- // })
- this.$message.success('水印素材生成中')
- this.visibleDetail = false
- this.refuseFile = []
- this.refuseReason = ''
- closeAllVideoFun()
- this.loadData()
- this.waterLoading = false
- }
- })
- },
- showDetail(item) {
- this.visibleDetail = true
- this.showUrl = item.url
- this.id = item.id
- this.code = item.code
- this.excellent = item.excellent
- this.allDetailData = item
- if (this.active == '2') {
- this.refuseReason = item.refuseReason
- this.refuseFile = item.refuseFile ? JSON.parse(item.refuseFile) : null
- } else if (this.active == '1') {
- this.creativeCopywriter = item.creativeCopywriter
- this.refuseReason = ''
- this.refuseFile = []
- } else {
- this.refuseReason = ''
- this.refuseFile = []
- }
- getAction('/ctop/materialInfo/getDetail', {
- materialId: item.id,
- }).then((res) => {
- this.detail = res
- this.size =
- res.parameter.width == '1080' ? 3 : res.parameter.width == '1920' ? 1 : res.parameter.width == '1280' ? 2 : 4
- })
- getAction('/ctop/materialInfo/queryById', {
- id: item.id,
- }).then((res) => {
- if (res.success) {
- this.showUrlWater = res.result.watermarkUrl
- this.name = res.result.watermarkCode
- this.materialName = res.result.materialName
- } else {
- this.showUrlWater = null
- this.name = null
- }
- })
- getAction('/ctop/MaterialImageInfo/list', {
- videoId: item.code,
- }).then((res) => {
- console.log(res)
- if (res.success) {
- this.model = res.result.map((item, index) => {
- return {
- ...item,
- key: index,
- }
- })
- }
- })
- this.getTagListInfo(item.code)
- },
- getTagListInfo(md5) {
- this.departValueInfoModality = []
- this.departValueInfoMod = []
- this.departValueInfoContent = []
- this.departValueInfoSence = []
- getAction('/ctop/materialTagInfo/detail', {
- code: md5,
- }).then((res) => {
- if (res.success) {
- // ...res.contentTagList,
- this.tagInfoList = [...res.modalityTagList, ...res.senceTagList, ...res.modTagList]
- if (this.tagInfoListVisible) {
- this.departValueInfoModality = res.modalityTagList.map((item) => {
- return item.tagId
- })
- this.departValueInfoMod = res.modTagList.map((item) => {
- return item.tagId
- })
- // this.departValueInfoContent = res.contentTagList.map((item) => {
- // return item.tagId
- // })
- this.departValueInfoSence = res.senceTagList.map((item) => {
- return item.tagId
- })
- }
- }
- })
- },
- coverPreviewShowModal(item, index) {
- console.log(this.model)
- this.modelNew = this.model.filter((items) => {
- return items.status == 0
- })
- if (this.modelNew.length > 0) {
- this.coverPreviewVisible = true
- }
- },
- okEditShow(item, editStatus) {
- if (editStatus == '2') {
- var params = {}
- params.id = item.id
- params.auditorId = this.userInfo().id
- params.refuseReason = this.refuseReason
- var data = this.refuseFile.map((item) => {
- return 'https:' + item
- })
- params.refuseFile = JSON.stringify(data)
- params.status = editStatus
- fileEdit(params).then((res) => {
- this.refuseFile = []
- this.refuseReason = ''
- this.loadData()
- })
- } else if (editStatus == '1') {
- var params = {}
- params.id = item.id
- params.auditorId = this.userInfo().id
- params.creativeCopywriter = this.refuseReason
- params.status = editStatus
- fileEdit(params).then((res) => {
- this.refuseReason = ''
- this.loadData()
- })
- }
- },
- okEdit(e) {
- this.edit(null, this.active, '2')
- },
- handleSearch(value) {},
- personEdit(item, status) {
- this.add = false
- this.personVisible = true
- this.getProjectId(item.projectId)
- getAction('/ctop/materialInfo/getDetail', {
- materialId: item.id,
- }).then((res) => {
- this.code = item.code
- if (res.ascription) {
- this.formPerson.setFieldsValue({
- clipId: res.ascription.clipId,
- planId: res.ascription.planId,
- shotId: res.ascription.shotId,
- })
- }
- })
- },
- edit(item, status, editStatus) {
- if (status == '0' || status == '1') {
- if (editStatus == '2') {
- var params = {}
- params.id = this.id
- params.auditorId = this.userInfo().id
- params.refuseReason = this.refuseReason
- var data = this.refuseFile.map((item) => {
- return 'https:' + item
- })
- params.refuseFile = JSON.stringify(data)
- params.status = editStatus
- fileEdit(params).then((res) => {
- this.refuseFile = []
- this.refuseReason = ''
- this.loadData()
- this.visibleDetail = false
- closeAllVideoFun()
- })
- } else {
- fileEdit({
- id: this.id,
- status: editStatus,
- auditorId: this.userInfo().id,
- creativeCopywriter: this.refuseReason,
- }).then((res) => {
- this.refuseFile = []
- this.refuseReason = ''
- this.loadData()
- this.visibleDetail = false
- closeAllVideoFun()
- })
- }
- } else {
- this.add = false
- this.visible = true
- this.getProjectId(item.projectId)
- getAction('/ctop/materialInfo/getDetail', {
- materialId: item.id,
- }).then((res) => {
- if (this.activeKey == 'image') {
- this.form.setFieldsValue({
- projectId: item.projectId,
- clipId: res.ascription.clipId,
- planeId: res.ascription.planeId,
- materialDescribe: item.materialDescribe,
- })
- } else {
- this.form.setFieldsValue({
- projectId: item.projectId,
- clipId: res.ascription.clipId,
- planId: res.ascription.planId,
- shotId: res.ascription.shotId,
- materialDescribe: item.materialDescribe,
- })
- }
- this.tags = res.tag
- this.urlList.url = item.url
- this.urlList.md5 = item.code
- this.urlList.name = item.materialName
- this.watermarkUrl.url = item.watermarkUrl
- this.watermarkUrl.md5 = item.watermarkCode
- this.watermarkUrl.name = item.watermarkMaterialName
- this.id = item.id
- })
- }
- },
- closePerson() {
- this.personVisible = false
- },
- handleOkPerson() {
- this.loadingPerson = true
- this.formPerson.validateFieldsAndScroll((err, values) => {
- if (err) {
- // 这里做逻辑处理
- } else {
- var params = {
- planId: values.planId,
- shotId: values.shotId,
- clipId: values.clipId,
- materialId: this.code,
- }
- fileEditAll(params).then((res) => {
- console.log(res)
- if (res.success) {
- this.$message.success('修改成功')
- this.loadingPerson = false
- this.closePerson()
- this.loadData()
- } else {
- this.$message.error(res.message)
- }
- })
- }
- })
- },
- handleOkImage() {
- // if(this.urlListImage.url.length>0){
- var params = {}
- params.projectId = this.addImageData.projectId
- params.videoId = this.addImageData.code
- params.imageArr = this.imageArrList
- this.loadingImage = true
- postAction('/insertImage', params).then((res) => {
- console.log(res)
- if (res.code == 0) {
- this.urlListImage = {
- url: [],
- md5: [],
- name: [],
- size: [],
- }
- this.imageArrList = []
- this.addImageVisible = false
- this.loadingImage = false
- this.loadData()
- } else {
- this.loadingImage = false
- }
- })
- // }
- },
- handleOk() {
- this.form.validateFieldsAndScroll((err, values) => {
- if (err) {
- // 这里做逻辑处理
- } else {
- this.loadingElse = true
- var params = {
- ...values,
- }
- var roleCode = {}
- for (const key in this.role) {
- if (key == 'roleCode') {
- this.role[key] = this.role[key] + 'Id'
- roleCode[this.role[key]] = this.userInfo().id
- }
- }
- params.id = this.add ? null : this.id
- params.code = this.urlList.md5
- params.url = this.urlList.url
- params.materialName = this.urlList.name
- params.watermarkCode = this.watermarkUrl.md5
- params.watermarkUrl = this.watermarkUrl.url
- params.watermarkMaterialName = this.watermarkUrl.name
- params.userId = this.userInfo().id
- params.projectId = values.projectId
- params.materialDescribe = values.materialDescribe
- params.type = 'VIDEO'
- // params.tagList = values.tagList
- params.ascription =
- this.activeKey == 'image'
- ? roleCode
- : {
- planId: values.planId,
- shotId: values.shotId,
- clipId: values.clipId,
- }
- params.tag = this.tags
- params.imageArr = this.imageArrList
- if (this.add) {
- fileInsertV2(params).then((res) => {
- if (res.success) {
- this.form.resetFields()
- this.urlList = {
- url: '',
- md5: '',
- name: '',
- }
- this.watermarkUrl = {
- url: '',
- md5: '',
- name: '',
- }
- this.urlListImage = {
- url: [],
- md5: [],
- name: [],
- size: [],
- }
- this.imageArrList = []
- this.tags = []
- this.loadData()
- this.visible = false
- this.add = true
- for (const key in this.role) {
- if (key == 'roleCode') {
- this.role[key] = this.role[key].substr(0, this.role[key].length - 2)
- }
- }
- this.$message.success('素材上传成功')
- this.loadingElse = false
- // this.departValue = []
- } else {
- this.$message.error(res.message)
- this.loadingElse = false
- }
- })
- } else {
- fileEdit({
- ...params,
- status: '0',
- }).then((res) => {
- if (res.success) {
- this.form.resetFields()
- this.urlList = {
- url: '',
- md5: '',
- name: '',
- }
- this.watermarkUrl = {
- url: '',
- md5: '',
- name: '',
- }
- this.tags = []
- this.loadData()
- this.visible = false
- this.add = true
- this.loading = false
- this.loadingElse = false
- for (const key in this.role) {
- if (key == 'roleCode') {
- this.role[key] = this.role[key].substr(0, this.role[key].length - 2)
- }
- }
- } else {
- this.$message.error(res.message)
- this.loading = false
- this.loadingElse = false
- }
- })
- }
- }
- })
- },
- close() {
- this.visible = false
- this.dataElse = []
- this.form.resetFields()
- this.urlList = {
- url: '',
- md5: '',
- name: '',
- }
- this.tags = []
- this.urlListImage = {
- url: [],
- md5: [],
- name: [],
- size: [],
- }
- this.imageArrList = []
- },
- addImage(item) {
- this.addImageVisible = true
- this.addImageData = item
- },
- showImage(item) {
- this.chouzhen = true
- this.chouzhenList = []
- var params = {
- videoSignature: item.code,
- pageSize: 20,
- pageNo: 1,
- }
- getAction('/cutFrame/material/list', params).then((res) => {
- console.log(res)
- if (res.success) {
- this.chouzhenList.push(...res.result.records)
- }
- })
- },
- closeImage() {
- this.addImageVisible = false
- this.urlListImage = {
- url: [],
- md5: [],
- name: [],
- size: [],
- }
- this.imageArrList = []
- },
- onChange(date, dateString) {},
- callbackTwo(key) {
- this.checkAll = false
- this.checkArr = []
- if (key == '3') {
- this.url.list = '/ctop/materialInfo/effiMaterialInfo'
- this.queryParam = {}
- } else {
- this.url.list = '/ctop/materialInfo/listV2'
- this.queryParam = {
- ...this.queryParam,
- status: key,
- }
- if (this.labelValue.length >= 1) {
- this.queryParam.tagCode = this.labelValue[this.labelValue.length - 1]
- } else {
- this.queryParam.tagCode = ''
- }
- if (this.form.getFieldValue('projectId')) {
- this.form.setFieldsValue({
- projectId: '',
- })
- }
- }
- // if (this.form.getFieldValue('projectId')) {
- // this.form.setFieldsValue({
- // projectId: ''
- // })
- // }
- // this.queryParam.status = key
- this.loadData(1)
- },
- removeUpload() {
- this.form.setFieldsValue({
- // contentTagList: null,
- modalityTagList: null,
- modTagList: null,
- senceTagList: null,
- })
- },
- overUpload(urlAll) {
- console.log(urlAll)
- this.confirmLoading = true
- this.repeat = false
- this.urlList.url = urlAll[0].url
- this.$message.success('上传成功')
- getAction('/ctop/materialTagInfo/detail', {
- code: this.urlList.md5,
- }).then((res) => {
- if (res.success) {
- if (res.modalityTagList.length > 0) {
- this.form.setFieldsValue({
- // contentTagList: res.contentTagList.map((item) => {
- // return item.tagId
- // }),
- modalityTagList: res.modalityTagList.map((item) => {
- return item.tagId
- }),
- modTagList: res.modTagList.map((item) => {
- return item.tagId
- }),
- senceTagList: res.senceTagList.map((item) => {
- return item.tagId
- }),
- })
- }
- // this.tagInfoList = [...res.modalityTagList, ...res.contentTagList, ...res.senceTagList, ...res.modTagList]
- // if (this.tagInfoListVisible) {
- // this.departValueInfoModality = res.modalityTagList.map((item) => {
- // return item.tagId
- // })
- // this.departValueInfoMod = res.modTagList.map((item) => {
- // return item.tagId
- // })
- // this.departValueInfoContent = res.contentTagList.map((item) => {
- // return item.tagId
- // })
- // this.departValueInfoSence = res.senceTagList.map((item) => {
- // return item.tagId
- // })
- // }
- }
- })
- },
- deleteImage(url) {
- console.log(url, this.urlListImage.url)
- var index = this.imageArrList.findIndex((v) => v.url === url)
- this.imageArrList.splice(index, 1)
- console.log(index)
- },
- overUploadImage(urlAll) {
- // var index = this.urlList.url.findIndex(item => item === urlAll[0])
- // var data = { url: urlAll[0], code: this.urlList.md5[index], name: this.urlList.name[index] }
- // this.imageArr.push(data)
- var that = this
- that.material = []
- that.imageArrList = []
- var img
- if (urlAll.length > 0) {
- for (var i = 0; i < urlAll.length; i++) {
- that.imageArrList.push({
- // width: img.width,
- // height: img.height,
- // size: this.urlListImage.size[i],
- code: this.urlListImage.md5[i],
- url: urlAll[i].url,
- materialName: this.urlListImage.name[i],
- })
- img = new Image()
- img.src = urlAll[i].url
- // if (img.complete) {
- // // 打印
- // if (img.width == 720) {
- // if (img.height == 1280) {
- // that.material.push(true)
- // } else {
- // that.material.push(false)
- // }
- // } else if (img.width == 1080) {
- // if (img.height == 1920) {
- // that.material.push(true)
- // } else {
- // that.material.push(false)
- // }
- // } else if (img.width == 1280) {
- // if (img.height == 720) {
- // that.material.push(true)
- // } else {
- // that.material.push(false)
- // }
- // } else if (img.width == 1920) {
- // if (img.height == 1080) {
- // that.material.push(true)
- // } else {
- // that.material.push(false)
- // }
- // } else {
- // that.material.push(false)
- // }
- // } else {
- // img.onload = () => {
- // if (img.width == 720) {
- // if (img.height == 1280) {
- // that.material.push(true)
- // } else {
- // that.material.push(false)
- // }
- // } else if (img.width == 1080) {
- // if (img.height == 1920) {
- // that.material.push(true)
- // } else {
- // that.material.push(false)
- // }
- // } else if (img.width == 1280) {
- // if (img.height == 720) {
- // that.material.push(true)
- // } else {
- // that.material.push(false)
- // }
- // } else if (img.width == 1920) {
- // if (img.height == 1080) {
- // that.material.push(true)
- // } else {
- // that.material.push(false)
- // }
- // } else {
- // that.material.push(false)
- // }
- // }
- // }
- }
- } else {
- }
- },
- file(file) {
- var bmf = new BMF()
- var that = this
- return new Promise(function (resolve, reject) {
- bmf.md5(file, (err, md5) => {
- that.urlList.name = file.name
- that.urlList.md5 = md5
- fileCheck({
- code: md5,
- projectId: that.getData('projectId'),
- }).then((res) => {
- if (res.code == 0) {
- that.$message.error('此素材已经上传')
- that.repeat = true
- reject()
- } else {
- that.repeat = false
- resolve()
- // reject()
- }
- })
- })
- })
- },
- fileWater(file) {
- var bmf = new BMF()
- var that = this
- var codeData = that.urlList.md5 != '' ? that.urlList.md5 : that.addImageData.code
- console.log(codeData)
- this.urlListImage = {
- url: [],
- md5: [],
- name: [],
- size: [],
- }
- return new Promise(function (resolve, reject) {
- bmf.md5(file, (err, md5) => {
- that.urlListImage.name.push(file.name)
- that.urlListImage.md5.push(md5)
- that.urlListImage.size.push(file.size)
- resolve()
- // fileCheckImage({
- // code: md5,
- // projectId: that.getData('projectId'),
- // videoId: codeData,
- // }).then((res) => {
- // if (res.code == 0) {
- // that.$message.error('此素材已经上传')
- // reject()
- // } else {
- // // reject()
- // }
- // })
- })
- })
- },
- getParticipateList(value) {
- getAction('/ctop/projectMember/participateListV2', {
- userId: this.userInfo().id,
- pageSize: 50,
- pageNo: 1,
- projectName: value,
- }).then((res) => {
- if (res.code == 0) {
- this.dataElse = res.result.records
- }
- })
- },
- getProjectId(items) {
- this.form.resetFields(['clipId', 'planId', 'shotId'])
- getAction('/ctop/projectMember/getMemberList', {
- projectId: items,
- }).then((res) => {
- if (res.code == 0) {
- this.ascription.clipId = res.result.filter((item) => {
- if (
- item.roleCode == 'clip' ||
- item.roleCode == 'plan' ||
- item.roleCode == 'designTeamLeader' ||
- item.roleCode == 'shot' ||
- item.roleCode == 'plane' ||
- item.roleCode == 'planeLeader'
- ) {
- return {
- userId: item.userId,
- userName: item.userName,
- }
- }
- })
- this.ascription.shotId = res.result.filter((item) => {
- if (
- item.roleCode == 'clip' ||
- item.roleCode == 'shot' ||
- item.roleCode == 'plan' ||
- item.roleCode == 'designTeamLeader' ||
- item.roleCode == 'plane' ||
- item.roleCode == 'planeLeader'
- ) {
- return {
- userId: item.userId,
- userName: item.userName,
- }
- }
- })
- this.ascription.planId = res.result.filter((item) => {
- if (
- item.roleCode == 'shot' ||
- item.roleCode == 'plan' ||
- item.roleCode == 'designTeamLeader' ||
- item.roleCode == 'clip' ||
- item.roleCode == 'plane' ||
- item.roleCode == 'planeLeader'
- ) {
- return {
- userId: item.userId,
- userName: item.userName,
- }
- }
- })
- this.ascription.planeId = res.result.filter((item) => {
- if (item.roleCode == 'plane') {
- return {
- userId: item.userId,
- userName: item.userName,
- }
- }
- })
- }
- })
- },
- getDataSource(page, pageSize) {
- this.ipagination.current = page
- this.ipagination.pageSize = pageSize
- this.checkArr = []
- this.checkAll = false
- this.loadData()
- },
- getDataSourceSize(page, pageSize) {
- this.ipagination.current = 1
- this.ipagination.pageSize = pageSize
- this.checkArr = []
- this.checkAll = false
- this.loadData()
- },
- },
- }
- </script>
- <style scoped>
- @import '~@assets/less/common.less';
- </style>
|