123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428 |
- <style lang="scss">
- ::v-deep .usage-details-modal {
- width: 750px !important;
- }
- .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;
- }
- .video-metarial-table {
- .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 video-metarial-table">
- <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">
- <a-form-item label="是否创新视频">
- <a-select v-model="queryParam.materialInnovate" allowClear>
- <a-select-option :value="1">
- 否
- </a-select-option>
- <a-select-option :value="2">
- 是
- </a-select-option>
- </a-select>
- </a-form-item>
- </a-col>
- <a-col :md="8" :sm="8" v-if="active == '1'">
- <a-form-item label="状态">
- <a-select v-model="queryParam.videoStatus">
- <a-select-option :value="0">
- 不限
- </a-select-option>
- <a-select-option :value="1">
- 未推送
- </a-select-option>
- <a-select-option :value="2">
- 未推送到快手
- </a-select-option>
- <a-select-option :value="3">
- 未推送到头条
- </a-select-option>
- <a-select-option :value="4">
- 推送到快手
- </a-select-option>
- <a-select-option :value="5">
- 推送到头条
- </a-select-option>
- <a-select-option :value="6">
- 已推送到快手&头条
- </a-select-option>
- </a-select>
- </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="passTheAudit"
- :disabled="checkArr.length == 0"
- v-if="active == '0'"
- :loading="passTheAuditLoading"
- type="primary"
- >批量通过审核</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'||active == '2'"
- 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.syncKuaishou == 2"
- :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.syncBytedance == 2 && items.toutiaoEffiType == 1"
- style="width: 30px; height: 30px; margin-left: 5px"
- src="./douyin.jpg"
- alt
- />
- <img
- v-else-if="items.syncBytedance == 2 && 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>
- <a-tag>{{ items.materialInnovate == 2? '创新素材' : '非创新素材' }}</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="userInfo().id == 'e9ca23d68d884d4ebb19d07889727dae'"
- >
- <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="userInfo().id == 'e9ca23d68d884d4ebb19d07889727dae'||active !== '1'"
- v-if="items.userId == userInfo().id ||(userInfo().id == '6a2e036486ea480ab3d9870e2d810daf' && items.projectId == 4830885) || userInfo().id == 'e9ca23d68d884d4ebb19d07889727dae'">
- <a href="javascript:;" style="margin-right: 20px" @click="editMaterialName(items)">修改素材名称</a>
- </a-menu-item>
- <a-menu-item key="7" v-show="active === '0' || active === '1'">
- <a href="javascript:;" @click="handleUsageDetails(items)">使用详情</a>
- </a-menu-item>
- </a-menu>
- </a-dropdown>
- <a v-show="active === '1'" style="margin-right: 20px" @click="handleRecord(items)">同步记录</a>
- <a-checkbox :value="items.id" style="float: right" v-show="active != '2'"></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',
- }"
- v-if="!items.modalityTagList.includes(60158)
- && !items.modalityTagList.includes(60159)
- && !items.modalityTagList.includes(101)
- && !items.modalityTagList.includes(104)
- && !items.modalityTagList.includes(112)"
- >
- <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 label="创新素材"
- :prop="'urlListData.'+index+'.materialInnovate'"
- :label-col="{ span: 4 }"
- :wrapper-col="{ span: 14 }"
- :rules="{
- required: true,
- message: '创新素材必选',
- trigger: 'change',
- }">
- <a-switch v-model="items.materialInnovate"/>
- </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: '请选择形式标签!' }],initialValue:[] },
- ]"
- :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 && (!getData('modalityTagList')||(!getData('modalityTagList').includes(60158)
- && !getData('modalityTagList').includes(60159)
- && !getData('modalityTagList').includes(101)
- && !getData('modalityTagList').includes(104)
- && !getData('modalityTagList').includes(112)))"
- >
- <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: 12 },
- }"
- label="创新素材"
- v-if="add && visible"
- >
- <a-switch v-decorator="[
- 'materialInnovate', // 给表单赋值或拉取表单时,该input对应的key
- { rules: [{ required: true, message: '' }],initialValue:false },
- ]"/>
- </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"
- @change="clearChangjing"
- :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="场景"
- v-if="!departValueInfoModality.includes(60158)
- && !departValueInfoModality.includes(60159)
- && !departValueInfoModality.includes(101)
- && !departValueInfoModality.includes(104)
- && !departValueInfoModality.includes(112)"
- >
- <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-form-item
- :label-col="labelCol"
- :wrapper-col="{
- xs: { span: 24 },
- sm: { span: 12 },
- }"
- label="创新素材"
- >
- <a-switch v-model="materialInnovate"/>
- </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-modal
- v-if="usageDetailsStatus"
- title="使用详情"
- :width="750"
- :visible="usageDetailsStatus"
- dialog-class="usage-details-modal change-face-modal change-list-modal-show"
- :footer="null"
- @cancel="handleProfitModalnCancel"
- >
- <div style="overflow: hidden;">
- <a-tabs v-model="materiaModalType" @change="handleMateriaTabsChange">
- <a-tab-pane key="1" tab="头条">
- <a-table
- class="face-right-table"
- ref="table"
- size="middle"
- bordered
- :columns="materiaColumnsToutiao"
- :dataSource="materiaDataToutiao"
- :pagination="false"
- :loading="toutiaoMateriaLoading"
- >
- <span slot="accountStatus" slot-scope="text">
- <span>{{ text === 0 ? '投放中' : '已暂停' }}</span>
- </span>
- </a-table>
- <a-pagination
- class="pagin-table-class"
- :total="materiaDataTotalToutiao"
- :show-total="total => `共 ${materiaDataTotalToutiao} 条`"
- size="small"
- :current="defaultCurrentToutiao"
- :defaultPageSize="10"
- @change="materiaDataSizeChange"
- @showSizeChange="materiaDataSizeChange"
- />
- </a-tab-pane>
- <a-tab-pane key="2" tab="快手">
- <a-table
- class="face-right-table"
- ref="table"
- size="middle"
- bordered
- :columns="materiaColumnsKuaishou"
- :dataSource="materiaDataKuaishou"
- :pagination="false"
- :loading="kuaishouMateriaLoading"
- >
- <span slot="accountStatus" slot-scope="text">
- <span>{{ text === 0 ? '投放中' : '已暂停' }}</span>
- </span>
- <span slot="refuseCount" slot-scope="text, record">
- <span>{{ record.refuseInfo.refuseCount }}</span>
- </span>
- <span slot="refuseDetail" slot-scope="text, record">
- <a :disabled="!record.refuseInfo.refuseDetail" @click="handleRejectReason(record)">拒绝原因</a>
- </span>
- </a-table>
- <a-pagination
- class="pagin-table-class"
- :total="materiaDataTotalKuaishou"
- :show-total="total => `共 ${materiaDataTotalKuaishou} 条`"
- size="small"
- :current="defaultCurrentKuaishou"
- :defaultPageSize="10"
- @change="materiaDataSizeChangeKuaishou"
- @showSizeChange="materiaDataSizeChangeKuaishou"
- />
- </a-tab-pane>
- </a-tabs>
- </div>
- </a-modal>
- <a-modal
- v-if="recordDetailVisible"
- title="素材同步记录"
- :width="750"
- :visible="recordDetailVisible"
- dialog-class="usage-details-modal change-face-modal change-list-modal-show"
- :footer="null"
- @cancel="handleRecordCancel"
- >
- <div style="overflow: hidden;">
- <a-table
- class="face-right-table"
- ref="table"
- size="middle"
- bordered
- :columns="recordColumns"
- :dataSource="recordData"
- :pagination="recordIpagination"
- :loading="toutiaoMateriaLoading"
- >
- <span slot="createTime" slot-scope="text">
- {{text}}
- </span>
- </a-table>
- </div>
- </a-modal>
-
- <a-modal
- v-if="rejectReasonStatus"
- title="审核拒绝原因"
- :width="750"
- :visible="rejectReasonStatus"
- :footer="null"
- @cancel="handleRejectReasonCancel"
- >
- <div>
- <p v-for="(item, index) in rejectReasonList" :key="index + 1">{{ index + 1 }}:{{ item }}</p>
- </div>
- </a-modal>
- <a-modal v-model="showDataListVisible" title="信息" :footer="null">
- <div v-if="showDataList">
- <p v-for="(item, index) in showDataList" :key="index">
- 素材:{{item.materialName}},{{item.message}};
- <br/>
- 同步账户:{{item.ids.join()}}
- </p>
- </div>
-
- </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 {
- rejectReasonStatus: false,
- defaultCurrentKuaishou: 1,
- materiaDataTotalKuaishou: 0,
- kuaishouMateriaLoading: false,
- materiaDataKuaishou: [],
- materiaColumnsKuaishou: [
- {
- title: '账户ID',
- align: 'center',
- dataIndex: 'accountId'
- },
- {
- title: '账户所属人',
- align: 'center',
- dataIndex: 'userName'
- },
- {
- title: '账户状态',
- align: 'center',
- dataIndex: 'accountStatus',
- scopedSlots: {customRender: 'accountStatus'}
- },
- {
- title: '视频ID',
- align: 'center',
- dataIndex: 'photoId'
- },
- {
- title: '关联创意总数(自定义创意)',
- align: 'center',
- dataIndex: 'relationCount'
- },
- {
- title: '审核拒绝创意数',
- align: 'center',
- dataIndex: 'refuseCount',
- scopedSlots: {customRender: 'refuseCount'}
- },
- {
- title: '审核拒绝原因',
- align: 'center',
- dataIndex: 'refuseDetail',
- scopedSlots: {customRender: 'refuseDetail'}
- },
- ],
- passTheAuditLoading:false,
- toutiaoMateriaLoading: false,
- defaultCurrentToutiao: 1,
- materiaDataTotalToutiao: 0,
- materiaDataToutiao: [],
- materiaColumnsToutiao: [
- {
- title: '账户ID',
- align: 'center',
- dataIndex: 'accountId'
- },
- {
- title: '账户归属人',
- align: 'center',
- dataIndex: 'userName'
- },
- {
- title: '账户状态',
- align: 'center',
- dataIndex: 'accountStatus',
- scopedSlots: {customRender: 'accountStatus'}
- },
- {
- title: '素材ID',
- align: 'center',
- dataIndex: 'materialId'
- },
- {
- title: '素材关联创意数',
- align: 'center',
- dataIndex: 'relationCount'
- }
- ],
- materiaModalType: '2',
- materialUseDetailList: {},
- usageDetailsStatus: false,
- recordDetailVisible:false,
- recordSignature: null,
- recordColumns:[
- {
- title: '项目',
- align: 'center',
- dataIndex: 'projectName'
- },
- {
- title: '账户Id',
- align: 'center',
- dataIndex: 'userId',
- customRender: function (text, records) {
- if(records.mediaId == '1' || records.mediaId == '3') {
- return records.accountId
- }else if(records.mediaId == '2' || records.mediaId == '4') {
- return records.userId
- }else {
- return text
- }
- }
- },
- {
- title: '媒体',
- align: 'center',
- dataIndex: 'mediaId',
- customRender: function (text) {
- if (text == '1' || text == '3') {
- return '头条'
- } else if (text == '2' || text == '4') {
- return '快手'
- } else {
- return text
- }
- }
- },
- {
- title: '同步人',
- align: 'center',
- dataIndex: 'userName'
- },
- {
- title: '同步时间',
- align: 'center',
- dataIndex: 'createTime',
- scopedSlots: { customRender: 'createTime' },
- },
- {
- title: '结果',
- align: 'center',
- dataIndex: 'remarks'
- }
- ],
- recordData:[],
- recordIpagination: {
- current: 1,
- pageSize: 10,
- // pageSizeOptions: ['10', '20', '30'],
- showTotal: (total, range) => {
- return range[0] + "-" + range[1] + " 共" + total + "条"
- },
- showQuickJumper: true,
- // showSizeChanger:true,
- // pageSizeOptions: ['10', '30', '50'],
- total: 0,
- onChange: (current, pageSize) => {
- // 切换分页时的回调,
- // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
- this.recordIpagination.current = current;
- this.recordIpagination.pageSize= pageSize;
- this.handleGetRecordDetail(this.recordSignature)
- }
- },
- 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: [],
- materialInnovate:false,
- 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',
- showDataList:null,
- showDataListVisible:false,
- 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: {
- handleMateriaTabsChange(e) {
- const defaultData = this.materialUseDetailList;
- this.defaultCurrentToutiao = 1;
- this.materiaDataToutiao = defaultData['byteDance'] ? defaultData['byteDance'].slice(0, 10) : [];
- this.defaultCurrentKuaishou = 1;
- this.materiaDataKuaishou = defaultData['kuaishou'] ? defaultData['kuaishou'].slice(0, 10) : [];
- },
- handleRejectReasonCancel() {
- this.rejectReasonStatus = false;
- },
- handleRejectReason(data) {
- this.rejectReasonList = data.refuseInfo.refuseDetail.split('@#');
- this.rejectReasonStatus = true;
- },
- materiaDataSizeChange(current, pageSize) {
- this.materiaDataToutiao = [];
- this.defaultCurrentToutiao = current;
- const defaultData = this.materialUseDetailList['byteDance'];
- this.materiaDataToutiao = [...defaultData.slice(10 * current - 10, 10 * current)];
- },
- materiaDataSizeChangeKuaishou(current, pageSize) {
- this.materiaDataKuaishou = [];
- this.defaultCurrentKuaishou = current;
- const defaultData = this.materialUseDetailList['kuaishou'];
- this.materiaDataKuaishou = [...defaultData.slice(10 * current - 10, 10 * current)];
- },
- handleProfitModalnCancel() {
- this.materialUseDetailList = {};
- this.materiaDataToutiao = [];
- this.materiaDataTotalToutiao = 0;
- this.defaultCurrentToutiao = 1;
- this.materiaDataKuaishou = [];
- this.materiaDataTotalKuaishou = 0;
- this.defaultCurrentKuaishou = 1;
- this.materiaModalType = '2';
- this.usageDetailsStatus = false;
- },
- handleRecordCancel(){
- this.recordDetailVisible = false;
- },
- handleRecord(data){
- this.recordIpagination.current = 1
- this.handleGetRecordDetail(data.code);
- this.recordSignature = data.code;
- this.recordDetailVisible = true;
- this.toutiaoMateriaLoading = true;
- this.kuaishouMateriaLoading = true;
- },
- handleGetRecordDetail(id) {
- // 测试code '7b676546bfb50f1b992d44bd479a1536'
- var params = {}
- params.signature = id
- params.pageNo = this.recordIpagination.current
- params.pageSize = this.recordIpagination.pageSize
- getAction('/ctop/materialUpload/uploadDetail', params).then(result => {
- if (result.success) {
-
- // 头条处理数据
- this.recordData = result.result.list || []
- this.recordIpagination.total = result.result.total || 0
- }
- else {
- this.$message.error(result.message);
- }
- }).catch(error => {
- console.log(error, 'eeee');
- }).finally(() => {
- this.toutiaoMateriaLoading = false;
- this.kuaishouMateriaLoading = false;
- });
- },
- handleUsageDetails(data) {
- this.handleGetMaterialUseDetail(data.code);
- this.usageDetailsStatus = true;
- this.toutiaoMateriaLoading = true;
- this.kuaishouMateriaLoading = true;
- },
- handleGetMaterialUseDetail(id) {
- // 测试code '7b676546bfb50f1b992d44bd479a1536'
- getAction('/materialUse/getMaterialUseDetail', {code: id}).then(result => {
- if (result.success) {
- const defaultData = result.result;
- this.materialUseDetailList = defaultData;
- // 头条处理数据
- this.materiaDataToutiao = defaultData['byteDance'] ? defaultData['byteDance'].slice(0, 10) : [];
- this.materiaDataTotalToutiao = defaultData['byteDance'] ? defaultData['byteDance'].length : 0;
- // 快手处理数据
- this.materiaDataKuaishou = defaultData['kuaishou'] ? defaultData['kuaishou'].slice(0, 10) : [];
- this.materiaDataTotalKuaishou = defaultData['kuaishou'] ? defaultData['kuaishou'].length : 0;
- }
- else {
- this.$message.error(result.message);
- }
- }).catch(error => {
- console.log(error, 'eeee');
- }).finally(() => {
- this.toutiaoMateriaLoading = false;
- this.kuaishouMateriaLoading = false;
- });
- },
- 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:'',
- materialInnovate:false
- }
- })
- },
- 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,
- },
- materialInnovate:item.materialInnovate?2:1
- }
- })
- 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()
- },
- clearChangjing(data){
- if(data.includes(60158)
- || data.includes(60159)
- || data.includes(101)
- || data.includes(104)
- || data.includes(112)){
- this.departValueInfoSence = []
- }
- },
- handleOkTag(e) {
- this.loadingTag = true
- if(this.departValueInfoModality.includes(60158)
- || this.departValueInfoModality.includes(60159)
- || this.departValueInfoModality.includes(101)
- || this.departValueInfoModality.includes(104)
- || this.departValueInfoModality.includes(112)){
- this.departValueInfoSence = []
- }
- var data = [
- ...this.departValueInfoModality,
- ...this.departValueInfoMod,
- ...this.departValueInfoContent,
- ...this.departValueInfoSence,
- ]
- var params = {}
- params.id = this.id
- params.materialInnovate = this.materialInnovate?2:1
- fileEdit({
- ...params
- }).then((res) => {
- })
- postAction('/ctop/materialTagInfo/mark', {
- code: this.tagCode,
- tagList: data
- }).then((res) => {
- if (res.success) {
- this.departValueInfoModality = []
- this.departValueInfoMod = []
- this.departValueInfoContent = []
- this.departValueInfoSence = []
- this.materialInnovate = false
- this.loadingTag = false
- this.tagInfoListVisible = false
- this.loadData()
- } else {
- this.loadingTag = false
- this.$message.error(res.message)
- }
- })
- },
- editTagList(item) {
- this.tagInfoListVisible = true
- this.materialInnovate = item.materialInnovate == 1?false:true
- this.getTagListInfo(item.code)
- this.tagCode = item.code
- this.id = item.id
- },
- 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)
- params.loginId = this.userInfo().id
- params.userName = this.userInfo().realname
- if (this.mediaId == '2') {
- params.shieldBackwardSwitch = data.shieldBackwardSwitch?1:2
- }
- postAction('/ctop/materialUpload/uploadAccount', params).then((res) => {
- if (res.code == 0) {
- this.checkArr = []
- this.checkAll = false
- if(res.data){
- this.showDataList = res.data
- this.showDataListVisible = true
- }else{
- this.$message.success(res.message)
- }
- }
- })
- // /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']),
- passTheAudit() {
- if(this.checkArr.length == 0){
- this.$message.error('请选择素材')
- }else{
- this.passTheAuditLoading = true
- this.postDataAction('/ctop/materialInfo/batchEditStatus', {ids:this.checkArr, status:'1'}).then(res=>{
- this.passTheAuditLoading = false
- if(res.success){
- this.$message.success(res.message)
- this.checkArr = []
- this.searchQuery()
- }else{
- this.$message.error(res.message)
- }
- })
- }
- },
- 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
- params.materialInnovate = values.materialInnovate?2:1
- 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>
|