videoMaterial.vue 155 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554
  1. <style lang="scss">
  2. ::v-deep .usage-details-modal {
  3. width: 750px !important;
  4. }
  5. .is-disabled .el-checkbox__inner {
  6. display: none !important;
  7. }
  8. .downLoad .ant-form-item-control-wrapper {
  9. width: 70%;
  10. }
  11. #material-card .ant-tabs-tab {
  12. border: 1px solid gainsboro !important;
  13. }
  14. #material-card .ant-tabs-top-bar {
  15. position: relative;
  16. z-index: 100;
  17. }
  18. #material-card .ant-badge-count {
  19. top: 0px;
  20. }
  21. .detail .ant-form-item {
  22. margin-bottom: 10px !important;
  23. }
  24. .ant-carousel .slick-slide {
  25. text-align: center;
  26. // height: 160px;
  27. // line-height: 160px;
  28. background: #364d79;
  29. overflow: hidden;
  30. }
  31. .ad_cover_container .ant-card-body {
  32. padding: 0;
  33. }
  34. .ant-carousel .slick-slide h3 {
  35. color: #fff;
  36. }
  37. .ant-carousel .custom-slick-arrow {
  38. width: 25px;
  39. height: 25px;
  40. font-size: 25px;
  41. color: #fff;
  42. background-color: rgba(31, 45, 61, 0.11);
  43. opacity: 0.3;
  44. }
  45. .ant-carousel .custom-slick-arrow:before {
  46. display: none;
  47. }
  48. .ant-carousel .custom-slick-arrow:hover {
  49. opacity: 0.5;
  50. }
  51. .cover_carousel_con .slick-dots {
  52. bottom: 55px;
  53. }
  54. .add-image-material .draggable-list {
  55. display: block !important;
  56. }
  57. li.chouzhen.first:before {
  58. font-size: 12px;
  59. content: '首帧';
  60. position: absolute;
  61. top: 7px;
  62. left: 5px;
  63. width: 36px;
  64. height: 20px;
  65. color: rgb(255, 255, 255);
  66. line-height: 20px;
  67. text-align: center;
  68. background: rgba(0, 0, 0, 0.5);
  69. border-radius: 2px;
  70. }
  71. .video-metarial-table {
  72. .el-cascader .el-input {
  73. cursor: pointer;
  74. height: 100%;
  75. }
  76. .el-cascader .el-input .el-input__inner {
  77. text-overflow: ellipsis;
  78. height: 100%;
  79. position: relative;
  80. top: -4px;
  81. }
  82. .el-cascader .el-input .el-icon-arrow-down {
  83. -webkit-transition: -webkit-transform 0.3s;
  84. transition: -webkit-transform 0.3s;
  85. transition: transform 0.3s;
  86. transition: transform 0.3s, -webkit-transform 0.3s;
  87. transition: transform 0.3s, -webkit-transform 0.3s;
  88. font-size: 14px;
  89. position: relative;
  90. top: -4px;
  91. }
  92. .el-cascader .el-input .el-icon-arrow-down.is-reverse {
  93. -webkit-transform: rotateZ(180deg);
  94. transform: rotateZ(180deg);
  95. position: relative;
  96. top: 2px;
  97. }
  98. .el-cascader .el-input .el-input__inner .el-input__icon.el-icon-arrow-down {
  99. text-overflow: ellipsis;
  100. height: 100%;
  101. position: relative;
  102. top: -4px;
  103. }
  104. .el-cascader .el-input .el-input__suffix .el-input__icon.el-icon-circle-close {
  105. text-overflow: ellipsis;
  106. height: 100%;
  107. position: relative;
  108. top: -4px;
  109. }
  110. }
  111. </style>
  112. <style lang="scss" scoped>
  113. .chouzhen {
  114. border-style: solid;
  115. border-width: 1px;
  116. border-color: #e4e4e4;
  117. width: calc(20% - 10px);
  118. padding: 10px;
  119. margin-right: 10px;
  120. margin-bottom: 10px;
  121. display: flex;
  122. align-items: center;
  123. background: #fff;
  124. position: relative;
  125. z-index: 99;
  126. float: left;
  127. }
  128. .content {
  129. display: flex !important;
  130. flex-direction: column;
  131. justify-content: center;
  132. align-items: center;
  133. .slick-dots {
  134. bottom: 55px;
  135. }
  136. }
  137. .video-content {
  138. width: 50%;
  139. padding: 10px;
  140. box-sizing: border-box;
  141. display: flex;
  142. flex-direction: column;
  143. justify-content: center;
  144. border-right: 1px solid #f2f2f2;
  145. }
  146. .tag-video {
  147. position: absolute;
  148. right: 0px;
  149. top: 8px;
  150. padding: 4px;
  151. border-radius: 2px;
  152. line-height: 16px;
  153. font-size: 12px;
  154. color: #fff;
  155. background-color: rgba(0, 0, 0, 0.3);
  156. }
  157. .home-item {
  158. overflow: hidden;
  159. }
  160. @media only screen and (min-width: 1200px) {
  161. .home-item {
  162. border-style: solid;
  163. border-width: 1px;
  164. border-color: #e4e4e4;
  165. width: calc(50% - 10px);
  166. padding: 10px;
  167. margin-right: 10px;
  168. margin-bottom: 10px;
  169. display: flex;
  170. align-items: center;
  171. background: #fff;
  172. position: relative;
  173. z-index: 99;
  174. }
  175. }
  176. /*>=1024的设备*/
  177. // @media (min-width: 1100px) {
  178. // .checkbox_item_container {
  179. // width:70%
  180. // }
  181. // } /*>=1100的设备*/
  182. @media only screen and (min-width: 1250px) {
  183. .home-item {
  184. border-style: solid;
  185. border-width: 1px;
  186. border-color: #e4e4e4;
  187. width: calc(25% - 10px);
  188. padding: 10px;
  189. margin-right: 10px;
  190. margin-bottom: 10px;
  191. display: flex;
  192. align-items: center;
  193. background: #fff;
  194. position: relative;
  195. z-index: 99;
  196. }
  197. }
  198. /*>=1280的设备*/
  199. // @media (min-width: 1366px) {
  200. // }
  201. // @media (min-width: 1440px) {
  202. // }
  203. // @media (min-width: 1680px) {
  204. // }
  205. // @media (min-width: 1920px) {
  206. // .home-item {
  207. // border-style: solid;
  208. // border-width: 1px;
  209. // border-color: #e4e4e4;
  210. // width: calc(25% - 10px);
  211. // padding: 10px;
  212. // margin-right: 10px;
  213. // margin-bottom: 10px;
  214. // display: flex;
  215. // align-items: center;
  216. // background: #fff;
  217. // position: relative;
  218. // z-index: 99;
  219. // cursor: pointer;
  220. // }
  221. // }
  222. .actor-photo-list {
  223. display: flex;
  224. padding-left: 0;
  225. li {
  226. width: 25%;
  227. margin: 10px;
  228. position: relative;
  229. height: 250px;
  230. border: 1px solid #f2f2f2;
  231. img,
  232. video {
  233. width: 100%;
  234. margin-top: auto;
  235. margin-bottom: auto;
  236. top: 0;
  237. bottom: 0;
  238. position: absolute;
  239. max-height: 250px;
  240. }
  241. }
  242. }
  243. .home-card {
  244. width: 100%;
  245. overflow: hidden;
  246. padding: 10px 0px;
  247. display: flex;
  248. flex-wrap: wrap;
  249. margin-right: -10px;
  250. .home-right {
  251. width: 100%;
  252. }
  253. .bg:after {
  254. content: '';
  255. width: 110%;
  256. height: 110%;
  257. position: absolute;
  258. left: -5%;
  259. top: -5%;
  260. background: inherit;
  261. filter: blur(10px);
  262. z-index: 2;
  263. }
  264. }
  265. .bh {
  266. height: 60px;
  267. line-height: 30px;
  268. overflow: hidden;
  269. text-overflow: ellipsis;
  270. -webkit-line-clamp: 2;
  271. display: -webkit-box;
  272. -webkit-box-orient: vertical;
  273. }
  274. .bhShow {
  275. height: 100px;
  276. line-height: 25px;
  277. text-align: center;
  278. }
  279. .bhShow span {
  280. font-size: 14px;
  281. }
  282. .show-data {
  283. width: 50%;
  284. display: flex;
  285. flex-direction: column;
  286. align-items: flex-start;
  287. }
  288. a {
  289. font-size: 14px;
  290. }
  291. .actor-photo-list {
  292. display: flex;
  293. padding-left: 0;
  294. li {
  295. width: 25%;
  296. margin: 10px;
  297. position: relative;
  298. height: 250px;
  299. border: 1px solid #f2f2f2;
  300. list-style: none;
  301. img,
  302. video {
  303. width: 100%;
  304. margin-top: auto;
  305. margin-bottom: auto;
  306. top: 0;
  307. bottom: 0;
  308. position: absolute;
  309. max-height: 250px;
  310. }
  311. }
  312. }
  313. </style>
  314. <template>
  315. <a-card :bordered="false" class="only-video-material-disable">
  316. <!-- 查询区域 -->
  317. <div class="table-page-search-wrapper video-metarial-table">
  318. <a-form layout="inline" :selfUpdate="true">
  319. <a-row :gutter="24">
  320. <a-col :md="8" :sm="8">
  321. <!-- <a-form-item label="项目名称"> -->
  322. <selectTable :projectId.sync="queryParam.productId" ref="selectTable"></selectTable>
  323. </a-col>
  324. <a-col :md="8" :sm="8">
  325. <selectTableProject :projectId.sync="queryParam.projectId" :productId="queryParam.productId" ref="selectTableProject"></selectTableProject>
  326. </a-col>
  327. <a-col :md="8" :sm="8">
  328. <a-form-item label="素材名称">
  329. <a-input placeholder="请输入素材名称" v-model="queryParam.materialName"></a-input>
  330. </a-form-item>
  331. </a-col>
  332. <!-- -->
  333. <a-col :md="8" :sm="8">
  334. <a-form-item label="搜索时间">
  335. <a-range-picker v-model="queryParam.createTime" format="YYYY-MM-DD" style="width: 100%" />
  336. </a-form-item>
  337. </a-col>
  338. <!-- -->
  339. <a-col :md="8" :sm="8">
  340. <a-form-item label="唯一标识">
  341. <a-input placeholder="请输入素材唯一标识" v-model="queryParam.code"></a-input>
  342. </a-form-item>
  343. </a-col>
  344. <a-col :md="8" :sm="8">
  345. <a-form-item label="视频标签">
  346. <el-cascader
  347. placeholder="请选择视频的标签"
  348. v-model="labelValue"
  349. :options="options"
  350. :props="{ checkStrictly: true, value: 'tagCode', label: 'tagName', expandTrigger: 'hover' }"
  351. clearable
  352. style="width: 100%; height: 32px"
  353. filterable
  354. ></el-cascader>
  355. </a-form-item>
  356. </a-col>
  357. <a-col :md="8" :sm="8">
  358. <a-form-item label="剪辑">
  359. <a-select v-model="queryParam.clipId" allowClear show-search :filter-option="filterOption">
  360. <a-select-option v-for="item in designList" :key="item.userId" :value="item.userId">
  361. {{ item.companyName + '_' + item.userName }}
  362. </a-select-option>
  363. </a-select>
  364. </a-form-item>
  365. </a-col>
  366. <a-col :md="8" :sm="8">
  367. <a-form-item label="拍摄">
  368. <a-select v-model="queryParam.shotId" allowClear show-search :filter-option="filterOption">
  369. <a-select-option v-for="item in designList" :key="item.userId" :value="item.userId">
  370. {{ item.companyName + '_' + item.userName }}
  371. </a-select-option>
  372. </a-select>
  373. </a-form-item>
  374. </a-col>
  375. <a-col :md="8" :sm="8">
  376. <a-form-item label="编导">
  377. <a-select v-model="queryParam.planId" allowClear show-search :filter-option="filterOption">
  378. <a-select-option v-for="item in designList" :key="item.userId" :value="item.userId">
  379. {{ item.companyName + '_' + item.userName }}
  380. </a-select-option>
  381. </a-select>
  382. </a-form-item>
  383. </a-col>
  384. <a-col :md="8" :sm="8">
  385. <a-form-item label="设计负责人">
  386. <a-input placeholder="请输入设计负责人" v-model="queryParam.leaderName"></a-input>
  387. </a-form-item>
  388. </a-col>
  389. <a-col :md="8" :sm="8">
  390. <a-form-item label="是否创新视频">
  391. <a-select v-model="queryParam.materialInnovate" allowClear>
  392. <a-select-option :value="1">
  393. </a-select-option>
  394. <a-select-option :value="2">
  395. </a-select-option>
  396. </a-select>
  397. </a-form-item>
  398. </a-col>
  399. <a-col :md="8" :sm="8" v-if="active == '1'">
  400. <a-form-item label="状态">
  401. <a-select v-model="queryParam.videoStatus">
  402. <a-select-option :value="0">
  403. 不限
  404. </a-select-option>
  405. <a-select-option :value="1">
  406. 未推送
  407. </a-select-option>
  408. <a-select-option :value="2">
  409. 未推送到快手
  410. </a-select-option>
  411. <a-select-option :value="3">
  412. 未推送到头条
  413. </a-select-option>
  414. <a-select-option :value="4">
  415. 推送到快手
  416. </a-select-option>
  417. <a-select-option :value="5">
  418. 推送到头条
  419. </a-select-option>
  420. <a-select-option :value="6">
  421. 已推送到快手&头条
  422. </a-select-option>
  423. </a-select>
  424. </a-form-item>
  425. </a-col>
  426. <a-col :md="8" :sm="8">
  427. <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
  428. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  429. <a-button type="primary" @click="searchRe" icon="reload" style="margin-left: 8px">重置</a-button>
  430. </span>
  431. </a-col>
  432. </a-row>
  433. </a-form>
  434. </div>
  435. <!-- table区域-begin -->
  436. <!-- <div> -->
  437. <!-- 操作按钮区域 -->
  438. <div class="table-operator" style="position: relative; z-index: 100">
  439. <a-button
  440. @click="
  441. visible = true
  442. confirmLoading = false
  443. add = true
  444. "
  445. type="primary"
  446. icon="plus"
  447. >新增</a-button
  448. >
  449. <a-button
  450. @click="batchUploadVisible=true"
  451. type="primary"
  452. icon="plus"
  453. >批量新增</a-button
  454. >
  455. <a-button
  456. @click="passTheAudit"
  457. :disabled="checkArr.length == 0"
  458. v-if="active == '0'"
  459. :loading="passTheAuditLoading"
  460. type="primary"
  461. >批量通过审核</a-button
  462. >
  463. <a-popconfirm
  464. @confirm="rejectTheAudit"
  465. >
  466. <div slot="title">
  467. <div>
  468. 驳回原因:
  469. <a-textarea
  470. placeholder="请输入原因"
  471. v-model="refuseReasonAll"
  472. :autosize="{ minRows: 3, maxRows: 10 }"
  473. />
  474. </div>
  475. </div>
  476. <a-button
  477. :disabled="checkArr.length == 0"
  478. v-if="active == '0'"
  479. :loading="rejectTheAuditLoading"
  480. type="primary"
  481. >批量驳回</a-button
  482. >
  483. </a-popconfirm>
  484. <a-button
  485. v-if="
  486. active == '0'
  487. "
  488. :disabled="!queryParam.productId"
  489. @click="metarialDownLoad"
  490. :loading="metarialDownLoadLoading"
  491. >素材下载</a-button
  492. >
  493. <a-button
  494. @click="onCheckAllChange"
  495. v-if="
  496. queryParam.productId &&
  497. active == '1' &&
  498. (role.roleCode == 'operator' ||
  499. role.roleCode == 'kuaishouOperationManager' ||
  500. role.roleCode == 'admin' ||
  501. role.roleCode == 'operationAssistant' ||
  502. role.roleCode == 'touTiaoOperationManager')
  503. "
  504. >{{ checkAll ? '取消 ( ' + checkArr.length + ' )' : '全选' }}</a-button
  505. >
  506. <a-button
  507. @click="onCheckAllChange"
  508. v-if="
  509. active == '0'
  510. "
  511. >{{ checkAll ? '取消 ( ' + checkArr.length + ' )' : '全选' }}</a-button
  512. >
  513. <a-button
  514. v-if="
  515. queryParam.productId &&
  516. active == '1' &&
  517. (role.roleCode == 'operator' ||
  518. role.roleCode == 'kuaishouOperationManager' ||
  519. role.roleCode == 'admin' ||
  520. role.roleCode == 'operationAssistant' ||
  521. role.roleCode == 'touTiaoOperationManager')
  522. "
  523. :disabled="checkArr.length == 0"
  524. @click="tongbu('1')"
  525. >一键同步头条</a-button
  526. >
  527. <a-button
  528. v-if="
  529. queryParam.productId &&
  530. active == '1' &&
  531. (role.roleCode == 'operator' ||
  532. role.roleCode == 'kuaishouOperationManager' ||
  533. role.roleCode == 'admin' ||
  534. role.roleCode == 'operationAssistant' ||
  535. role.roleCode == 'touTiaoOperationManager')
  536. "
  537. :disabled="checkArr.length == 0"
  538. @click="tongbu('3')"
  539. >一键同步头条内广</a-button
  540. >
  541. <a-button
  542. v-if="
  543. queryParam.productId &&
  544. active == '1' &&
  545. (role.roleCode == 'operator' ||
  546. role.roleCode == 'kuaishouOperationManager' ||
  547. role.roleCode == 'admin' ||
  548. role.roleCode == 'operationAssistant' ||
  549. role.roleCode == 'touTiaoOperationManager')
  550. "
  551. :disabled="checkArr.length == 0"
  552. @click="tongbu('2')"
  553. >一键同步快手</a-button
  554. >
  555. <a-button
  556. v-if="
  557. queryParam.productId &&
  558. active == '1' &&
  559. (role.roleCode == 'operator' ||
  560. role.roleCode == 'kuaishouOperationManager' ||
  561. role.roleCode == 'admin' ||
  562. role.roleCode == 'operationAssistant' ||
  563. role.roleCode == 'touTiaoOperationManager')
  564. "
  565. :disabled="checkArr.length == 0"
  566. @click="tongbu('4')"
  567. >一键同步快手内广</a-button
  568. >
  569. <!-- <a-button
  570. v-if="active === '1'"
  571. type="primary"
  572. @click="handleAllChangeFace"
  573. >
  574. 换脸列表
  575. </a-button
  576. > -->
  577. </div>
  578. <a-tabs @change="callbackTwo" v-model="active" type="card" id="material-card">
  579. <a-tab-pane :tab="item.tab" v-for="item of examinelList" :key="item.value">
  580. <a-spin :spinning="spinning">
  581. <div v-if="dataSource.length > 0">
  582. <a-checkbox-group @change="onChangeCheck" v-model="checkArr" class="home-card">
  583. <div class="home-item" v-for="(items, index) in dataSource" :key="index" @click="showDetail(items)">
  584. <span v-if="items.excellent == 0"></span>
  585. <span
  586. v-else
  587. 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"
  588. >优秀素材</span
  589. >
  590. <div class="home-right">
  591. <a-badge
  592. :count="checkArr.indexOf(items.id) > -1 ? checkArr.indexOf(items.id) + 1 : 0"
  593. :numberStyle="{ backgroundColor: '#52c41a' }"
  594. style="width: 100%; display: flex"
  595. @click.stop
  596. >
  597. <span
  598. style="
  599. color: #999;
  600. fontsize: 14px;
  601. padding-bottom: 10px;
  602. display: inline-block;
  603. width: 100%;
  604. white-space: nowrap;
  605. overflow: hidden;
  606. text-overflow: ellipsis;
  607. "
  608. :title="items.projectName"
  609. >{{ (items.mediaId == "1" ? '头条' :items.mediaId == "2"? '快手':items.mediaId == "3"?'内广':'内广') +(items.projectName?'_'+items.projectName:'') }}</span
  610. >
  611. <span
  612. style="
  613. color: #999;
  614. fontsize: 14px;
  615. padding-bottom: 10px;
  616. display: inline-block;
  617. width: 100%;
  618. white-space: nowrap;
  619. overflow: hidden;
  620. text-overflow: ellipsis;
  621. "
  622. :title="items.materialName"
  623. >{{ items.materialName }}</span
  624. >
  625. <a-icon
  626. type="close-circle"
  627. @click="deleteData(items.id)"
  628. v-show="active == '0'||active == '2'"
  629. v-if="items.userId == userInfo().id"
  630. />
  631. </a-badge>
  632. <div style="display: flex; justify-content: center; width: 100%; height: 200px; position: relative">
  633. <!-- <video
  634. :src="items.url"
  635. @canplay="a(items)"
  636. style="height:200px;max-width:100%;position:absolute;z-index:10;"
  637. />-->
  638. <div style="width: 100px; position: absolute; left: 0; z-index: 1000">
  639. <a-tooltip placement="top">
  640. <template slot="title">
  641. <span>{{ items.kuaishouEffiType == 1 ? '快手有效视频' : '已经同步到快手平台' }}</span>
  642. </template>
  643. <img
  644. style="width: 30px; height: 30px"
  645. v-if="items.syncKuaishou == 2"
  646. :style="{ filter: items.kuaishouEffiType == 1 ? 'grayscale(0%)' : 'grayscale(100%)' }"
  647. src="./kuaishou.jpg"
  648. />
  649. </a-tooltip>
  650. <a-tooltip placement="top">
  651. <template slot="title">
  652. <span>{{ items.toutiaoEffiType == 1 ? '抖音有效视频' : '已经同步到抖音平台' }}</span>
  653. </template>
  654. <img
  655. v-if="items.syncBytedance == 2 && items.toutiaoEffiType == 1"
  656. style="width: 30px; height: 30px; margin-left: 5px"
  657. src="./douyin.jpg"
  658. alt
  659. />
  660. <img
  661. v-else-if="items.syncBytedance == 2 && items.toutiaoEffiType == 0"
  662. style="width: 30px; height: 30px; margin-left: 5px"
  663. src="./douyinhui.jpg"
  664. alt
  665. />
  666. </a-tooltip>
  667. </div>
  668. <a-icon
  669. type="fire"
  670. style="font-size: 20px; position: absolute; right: 0; bottom: 10px; z-index: 1000; color: red"
  671. v-if="items.whetherUnaudited"
  672. />
  673. <a-popover
  674. title="视频标签"
  675. @visibleChange="changeTag(items.code)"
  676. :overlayStyle="{ width: '400px' }"
  677. >
  678. <template slot="content" v-if="videoTag.length > 0">
  679. <!-- {{ videoTag.join(',') }} -->
  680. <!-- <br v-if="index%3"/> -->
  681. <a-tag v-for="(item, index) of videoTag" :key="index" style="margin: 5px">{{ item }}</a-tag>
  682. <a-tag>{{ items.materialInnovate == 2? '创新素材' : '非创新素材' }}</a-tag>
  683. </template>
  684. <template slot="content" v-else>
  685. <div style="width: 100%; text-align: center">加载中。。。</div>
  686. </template>
  687. <img
  688. :src="items.coverUrl"
  689. alt
  690. style="height: 200px; max-width: 100%; position: absolute; z-index: 10"
  691. />
  692. </a-popover>
  693. <!-- <img
  694. src="./timg.gif"
  695. v-if="!items.showVideo"
  696. alt=""
  697. style="height:200px;max-width:100%;position:absolute;z-index:11;"
  698. @click.stop
  699. />-->
  700. </div>
  701. <div style="width: 100%; height: 1px; border-bottom: 1px solid #f2f2f2; margin-top: 5px"></div>
  702. <div v-if="active == '2'" class="bh">驳回原因:{{ items.refuseReason }}</div>
  703. <div
  704. v-if="active == '1'"
  705. class="bhShow"
  706. style="display: flex; justify-content: space-between"
  707. @click.stop="showData(items)"
  708. >
  709. <div class="show-data">
  710. <span>抖音</span>
  711. <span>消耗:{{ items.bytedanceCost || 0 }}</span>
  712. <span style="display: inline-block;text-align: left;width: 400px;">审核通过时间:{{ items.confirmTime || '-' }}</span>
  713. <!-- <span>封面点击:{{ items.byteDance.click }}</span> -->
  714. <!-- <span>封面展示:{{ items.byteDance.showNum }}</span> -->
  715. </div>
  716. <!-- <div v-else style="line-height:100px;" class="show-data">
  717. <span>抖音:无</span>
  718. </div> -->
  719. <div class="show-data">
  720. <span>快手</span>
  721. <span>消耗:{{ items.cost || 0 }}</span>
  722. <!-- <span>封面点击:{{ items.kuaiShou.photoClick }}</span> -->
  723. <!-- <span>封面展示:{{ items.kuaiShou.photoShow }}</span> -->
  724. </div>
  725. <!-- <div v-else style="line-height:100px;" class="show-data">
  726. <span>快手:无</span>
  727. </div> -->
  728. </div>
  729. <div
  730. style="width: 100%; height: 1px; border-bottom: 1px solid #f2f2f2; margin-top: 5px"
  731. v-if="active != '0'"
  732. ></div>
  733. <span
  734. style="color: black; fontsize: 16px; padding-top: 10px; display: block; width: 100%"
  735. @click.stop
  736. >
  737. <!-- <a href="javascript:;" style="margin-right:20px" @click="edit(items, '2')" v-show="active == '2'"
  738. v-if="items.userId == userInfo().id">
  739. 修改</a>
  740. <a href="javascript:;" style="margin-right:20px" v-show="active !='3'" @click="personEdit(items, '2')"
  741. v-if="items.userId == userInfo().id||role.roleCode =='designTeamLeader'">
  742. 人员修改</a>-->
  743. <a-popconfirm
  744. @confirm="okEditShow(items, '2')"
  745. v-show="active != '2' && active != '3'"
  746. v-if="
  747. role.roleCode == 'operator' ||
  748. role.roleCode == 'kuaishouOperationManager' ||
  749. role.roleCode == 'admin' ||
  750. role.roleCode == 'operationAssistant' ||
  751. role.roleCode == 'touTiaoOperationManager'||
  752. role.roleCode == 'businessOperation'
  753. "
  754. >
  755. <div slot="title">
  756. <div>
  757. 驳回原因:
  758. <a-textarea
  759. placeholder="请输入原因"
  760. v-model="refuseReason"
  761. :autosize="{ minRows: 3, maxRows: 10 }"
  762. />
  763. </div>
  764. <div>
  765. 截图:
  766. <uploadFile v-if="refuseFile" :value.sync="refuseFile" :fileCount="15" uploadType="image" />
  767. <!-- <upload-to-ali
  768. v-model="refuseFile"
  769. :customDomain="customDomain"
  770. multiple
  771. preview
  772. :region="region"
  773. :bucket="bucket"
  774. :accept="acceptImage"
  775. :max="10"
  776. :size="1024000"
  777. :accessKeyId="accessKeyId"
  778. :accessKeySecret="accessKeySecret"
  779. :dir="dirImg"
  780. ></upload-to-ali>-->
  781. </div>
  782. </div>
  783. <a href="javascript:;" style="margin-right: 20px">驳回</a>
  784. </a-popconfirm>
  785. <!-- <a v-show="active === '1'" style="margin-right: 20px" @click="handleChangeFace(items)">换脸</a> -->
  786. <a-popconfirm
  787. @confirm="okEditShow(items, '1')"
  788. v-show="active != '1' && active != '3'"
  789. v-if="
  790. role.roleCode == 'operator' ||
  791. role.roleCode == 'kuaishouOperationManager' ||
  792. role.roleCode == 'admin' ||
  793. role.roleCode == 'operationAssistant' ||
  794. role.roleCode == 'touTiaoOperationManager'||
  795. role.roleCode == 'businessOperation'
  796. "
  797. >
  798. <div slot="title">
  799. <div>
  800. 广告语:
  801. <a-textarea
  802. placeholder="请输入"
  803. v-model="refuseReason"
  804. :autosize="{ minRows: 3, maxRows: 10 }"
  805. />
  806. </div>
  807. </div>
  808. <a
  809. href="javascript:;"
  810. style="margin-right: 20px"
  811. v-show="active != '1'"
  812. v-if="
  813. role.roleCode == 'operator' ||
  814. role.roleCode == 'kuaishouOperationManager' ||
  815. role.roleCode == 'admin' ||
  816. role.roleCode == 'operationAssistant' ||
  817. role.roleCode == 'touTiaoOperationManager' ||
  818. role.roleCode == 'businessOperation'
  819. "
  820. >通过审核</a
  821. >
  822. </a-popconfirm>
  823. <!-- <a v-show="active!='3'" style="margin-right:20px" @click="addImage(items)">添加封面</a>
  824. <a style="margin-right:20px" @click="showImage(items)">推荐封面</a>-->
  825. <a-dropdown style="margin-right: 20px">
  826. <a class="ant-dropdown-link" @click="(e) => e.preventDefault()">
  827. 更多操作
  828. <a-icon type="down" />
  829. </a>
  830. <a-menu slot="overlay">
  831. <a-menu-item key="0" v-show="active == '2'" v-if="items.userId == userInfo().id">
  832. <a href="javascript:;" style="margin-right: 20px" @click="edit(items, '2')">修改</a>
  833. </a-menu-item>
  834. <a-menu-item
  835. key="1"
  836. v-show="active != '3'"
  837. v-if="userInfo().id == 'e9ca23d68d884d4ebb19d07889727dae'"
  838. >
  839. <a href="javascript:;" style="margin-right: 20px" @click="personEdit(items, '2')">人员修改</a>
  840. </a-menu-item>
  841. <a-menu-item key="3" v-show="active != '3'">
  842. <a style="margin-right: 20px" @click="addImage(items)">添加封面</a>
  843. </a-menu-item>
  844. <a-menu-item key="4">
  845. <a style="margin-right: 20px" @click="showImage(items)">推荐封面</a>
  846. </a-menu-item>
  847. <a-menu-item key="5">
  848. <a href="javascript:;" style="margin-right: 20px" @click="editTagList(items)">修改标签</a>
  849. </a-menu-item>
  850. <a-menu-item key="6" v-show="userInfo().id == 'e9ca23d68d884d4ebb19d07889727dae'||active !== '1'"
  851. v-if="items.userId == userInfo().id ||(userInfo().id == '6a2e036486ea480ab3d9870e2d810daf' && items.projectId == 4830885) || userInfo().id == 'e9ca23d68d884d4ebb19d07889727dae'">
  852. <a href="javascript:;" style="margin-right: 20px" @click="editMaterialName(items)">修改素材名称</a>
  853. </a-menu-item>
  854. <a-menu-item key="7" v-show="active === '0' || active === '1'">
  855. <a href="javascript:;" @click="handleUsageDetails(items)">使用详情</a>
  856. </a-menu-item>
  857. </a-menu>
  858. </a-dropdown>
  859. <a v-show="active === '1'" style="margin-right: 20px" @click="handleRecord(items)">同步记录</a>
  860. <a-checkbox :value="items.id" style="float: right" v-show="active != '2'"></a-checkbox>
  861. <br />
  862. {{ items.createTime }}
  863. </span>
  864. </div>
  865. </div>
  866. </a-checkbox-group>
  867. <a-pagination
  868. size="small"
  869. :showTotal="ipagination.showTotal"
  870. style="float: right"
  871. v-if="dataSource.length > 0"
  872. showQuickJumper
  873. showSizeChanger
  874. :pageSize.sync="ipagination.pageSize"
  875. :total="ipagination.total"
  876. v-model="ipagination.current"
  877. :pageSizeOptions="ipagination.pageSizeOptions"
  878. @change="getDataSource"
  879. @showSizeChange="getDataSourceSize"
  880. />
  881. </div>
  882. <div v-else style="width: 100%; height: 400px; display: flex; justify-content: center; align-items: center">
  883. <img
  884. 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"
  885. alt
  886. v-if="!loading"
  887. />
  888. <div v-else></div>
  889. </div>
  890. </a-spin>
  891. </a-tab-pane>
  892. </a-tabs>
  893. <a-modal title="修改素材名称" @cancel="editMaterialVisible=false" v-if="editMaterialVisible" v-model="editMaterialVisible">
  894. <template slot="footer">
  895. <a-button key="back" @click="editMaterialVisible=false">取消</a-button>
  896. <a-button type="primary" @click="handleOkEditMaterialName" :loading="loadingEdit">确定</a-button>
  897. </template>
  898. <a-form :form="editMaterialform">
  899. <a-form-model-item
  900. label="素材名称"
  901. >
  902. <a-input placeholder="请填写素材名称"
  903. v-decorator="[
  904. 'name',
  905. {
  906. rules: [{ required: true, message: '素材名称不能为空' }]
  907. }
  908. ]" />
  909. </a-form-model-item>
  910. </a-form>
  911. </a-modal>
  912. <a-modal title="封面上传" @cancel="closeImage" @afterClose="closeImage" v-model="addImageVisible">
  913. <template slot="footer">
  914. <a-button key="back" @click="closeImage">取消</a-button>
  915. <a-button key="submit" type="primary" @click="handleOkImage" :loading="loadingImage">确定</a-button>
  916. </template>
  917. <a-form-item label class="add-image-material">
  918. <uploadFile
  919. v-if="addImageVisible"
  920. :value.sync="urlListImage.url"
  921. :checkFile="fileWater"
  922. @overUpload="overUploadImage"
  923. @removeUpload="deleteImage"
  924. :fileCount="15"
  925. uploadType="image"
  926. />
  927. <!-- <upload-to-ali
  928. style="width:100%"
  929. v-model="urlListImage.url"
  930. :customDomain="customDomain"
  931. :multiple="true"
  932. preview
  933. :region="region"
  934. :bucket="bucket"
  935. :accept="acceptImage"
  936. :max="10"
  937. :size="1024000"
  938. :accessKeyId="accessKeyId"
  939. :accessKeySecret="accessKeySecret"
  940. :before-upload="fileWater"
  941. :dir="dirImg"
  942. @delete='deleteImage'
  943. @loaded="overUploadImage"
  944. ></upload-to-ali>-->
  945. <span
  946. v-if="material.filter((item) => item == false).length > 0 && urlListImage.url.length > 0"
  947. style="color: red"
  948. >
  949. 上传素材的尺寸不符,请修改(
  950. <span v-for="(item, index) of material" :key="index" v-show="!item">第{{ index + 1 }}张</span>出错)
  951. </span>
  952. <span
  953. v-else-if="urlListImage.url.length > 0 && material.filter((item) => item == false).length == 0"
  954. style="color: green"
  955. >上传成功</span
  956. >
  957. </a-form-item>
  958. </a-modal>
  959. <a-modal title="数据详情" v-model="showDataBool" :footer="null">
  960. <div class="bhShow" style="display: flex; justify-content: space-between; height: 400px">
  961. <div v-if="douyinData" class="show-data">
  962. <span style="color: black; font-size: 18px; text-align: center; width: 100%">抖音</span>
  963. <span>消耗:{{ douyinData.cost }}</span>
  964. <span>封面点击:{{ douyinData.click }}</span>
  965. <span>封面展示:{{ douyinData.showNum }}</span>
  966. <span>激活:{{ douyinData.active }}</span>
  967. <span>转化量:{{ douyinData.convertNum }}</span>
  968. <span>表单提交:{{ douyinData.form }}</span>
  969. <span>下载注册:{{ douyinData.register }}</span>
  970. <span>视频总播放:{{ douyinData.totalPlay }}</span>
  971. <span>视频有效播放:{{ douyinData.validPlay }}</span>
  972. </div>
  973. <div v-if="kuaishouData" class="show-data">
  974. <span style="color: black; font-size: 18px; text-align: center; width: 100%">快手</span>
  975. <span>消耗:{{ kuaishouData.charge }}</span>
  976. <span>封面点击:{{ kuaishouData.photoClick }}</span>
  977. <span>封面展示:{{ kuaishouData.photoShow }}</span>
  978. <span>素材曝光数:{{ kuaishouData.aclick }}</span>
  979. <span>激活数:{{ kuaishouData.activation }}</span>
  980. <span>行为数:{{ kuaishouData.bclick }}</span>
  981. <span>表单提交数:{{ kuaishouData.formCount }}</span>
  982. </div>
  983. </div>
  984. </a-modal>
  985. <a-modal
  986. title="批量上传素材"
  987. v-model="batchUploadVisible"
  988. v-if="batchUploadVisible"
  989. :maskClosable="false"
  990. :width="1200"
  991. >
  992. <template slot="footer">
  993. <a-button type="primary" @click="handleOkBatch" :loading="loadingBatch">确定</a-button>
  994. </template>
  995. <a-form-model
  996. ref="ruleForm"
  997. :model="ruleForm"
  998. :label-col="{ span: 4 }"
  999. :wrapper-col="{ span: 14 }"
  1000. >
  1001. <a-form-model-item ref="name" label="项目选择" prop="projectId" :rules="{
  1002. required: true,
  1003. message: '项目不能为空',
  1004. trigger: 'blur',
  1005. }">
  1006. <a-select
  1007. v-model="ruleForm.projectId"
  1008. @change="getProjectId"
  1009. @focus="getParticipateList"
  1010. showSearch
  1011. optionFilterProp="children"
  1012. :filterOption="filterOption"
  1013. @search="getParticipateList"
  1014. :disabled="!add"
  1015. >
  1016. <a-select-option :value="item.projectId" v-for="item of dataElse" :key="item.id">
  1017. {{ item.projectName }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{
  1018. item.mediaId == '1'
  1019. ? '头条'
  1020. : item.mediaId == '2'
  1021. ? '快手'
  1022. : item.mediaId == '3'
  1023. ? '头条内广'
  1024. : '快手内广'
  1025. }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ item.advertiserName }}
  1026. </a-select-option>
  1027. </a-select>
  1028. </a-form-model-item>
  1029. <a-form-model-item label="视频上传" prop="videoList" v-if="ruleForm.projectId!=''">
  1030. <uploadFile
  1031. :checkFile="ruleFormFile"
  1032. :value.sync="ruleForm.urlList"
  1033. @overUpload="ruleFormOverUpload"
  1034. @removeUpload="ruleFormRemoveUpload"
  1035. :fileCount="100"
  1036. :sizeCheck="true"
  1037. uploadType="video"
  1038. :multiple="true"
  1039. v-if="batchUploadVisible"
  1040. />
  1041. <!-- <uploadFile
  1042. :checkFile="file"
  1043. :value.sync="urlList.url"
  1044. @overUpload="overUpload"
  1045. @removeUpload="removeUpload"
  1046. :fileCount="2"
  1047. uploadType="video"
  1048. :multiple="true"
  1049. /> -->
  1050. </a-form-model-item>
  1051. <a-form-model-item :wrapper-col="{ span: 14 , offset:4}">
  1052. <el-collapse v-model="activeCollapse" accordion v-if="ruleForm.urlList.length>0">
  1053. <el-collapse-item :title="'视频'+(index+1)" :name="index" v-for="(items,index) of ruleForm.urlListData" :key="index">
  1054. <a-form-model-item label="视频" :label-col="{ span: 4 }"
  1055. :wrapper-col="{ span: 14 }">
  1056. <video :src="items.url" style="width:150px"></video>
  1057. </a-form-model-item>
  1058. <!-- <a-form-model-item label="素材名称"
  1059. :key="index"
  1060. :prop="'urlListData.'+index+'.materialName'"
  1061. :label-col="{ span: 4 }"
  1062. :wrapper-col="{ span: 14 }"
  1063. :rules="{
  1064. required: true,
  1065. message: '素材名称必填',
  1066. trigger: 'blur',
  1067. }"
  1068. >
  1069. <a-input placeholder="请输入素材名称" v-model="items.materialName"></a-input>
  1070. </a-form-model-item> -->
  1071. <a-form-model-item label="剪辑"
  1072. :key="index"
  1073. :prop="'urlListData.'+index+'.clipId'"
  1074. :label-col="{ span: 4 }"
  1075. :wrapper-col="{ span: 14 }"
  1076. :rules="{
  1077. required: true,
  1078. message: '剪辑必选',
  1079. trigger: 'blur',
  1080. }">
  1081. <a-select
  1082. v-model="items.clipId"
  1083. showSearch
  1084. optionFilterProp="children"
  1085. :filterOption="filterOption"
  1086. >
  1087. <a-select-option :value="item.userId" v-for="item of ascription.clipId" :key="item.userId">{{
  1088. item.userName
  1089. }}</a-select-option>
  1090. </a-select>
  1091. </a-form-model-item>
  1092. <a-form-model-item label="策划"
  1093. :prop="'urlListData.' + index + '.planId'"
  1094. :label-col="{ span: 4 }"
  1095. :wrapper-col="{ span: 14 }"
  1096. :rules="{
  1097. required: true,
  1098. message: '策划必选',
  1099. trigger: 'blur',
  1100. }">
  1101. <a-select
  1102. v-model="items.planId"
  1103. showSearch
  1104. optionFilterProp="children"
  1105. :filterOption="filterOption"
  1106. >
  1107. <a-select-option :value="item.userId" v-for="item of ascription.planId" :key="item.userId">{{
  1108. item.userName
  1109. }}</a-select-option>
  1110. </a-select>
  1111. </a-form-model-item>
  1112. <a-form-model-item label="拍摄"
  1113. :prop="'urlListData.'+index+'.shotId'"
  1114. :label-col="{ span: 4 }"
  1115. :wrapper-col="{ span: 14 }">
  1116. <a-select
  1117. v-model="items.shotId"
  1118. showSearch
  1119. optionFilterProp="children"
  1120. :filterOption="filterOption"
  1121. >
  1122. <a-select-option :value="item.userId" v-for="item of ascription.shotId" :key="item.userId">{{
  1123. item.userName
  1124. }}</a-select-option>
  1125. </a-select>
  1126. </a-form-model-item>
  1127. <a-form-model-item label="形式标签"
  1128. :prop="'urlListData.'+index+'.modalityTagList'"
  1129. :label-col="{ span: 4 }"
  1130. :wrapper-col="{ span: 14 }"
  1131. :rules="{
  1132. required: true,
  1133. message: '形式标签必选',
  1134. trigger: 'blur',
  1135. }">
  1136. <el-cascader
  1137. placeholder="搜索你想要的形式标签"
  1138. :options="departTreeModality"
  1139. v-model="items.modalityTagList"
  1140. :props="{
  1141. multiple: true,
  1142. value: 'id',
  1143. label: 'tagName',
  1144. emitPath: false,
  1145. checkStrictly: true,
  1146. expandTrigger: 'hover',
  1147. }"
  1148. filterable
  1149. style="width: 100%"
  1150. ></el-cascader>
  1151. </a-form-model-item>
  1152. <a-form-model-item label="场景标签"
  1153. :prop="'urlListData.'+index+'.senceTagList'"
  1154. :label-col="{ span: 4 }"
  1155. :wrapper-col="{ span: 14 }"
  1156. :rules="{
  1157. required: true,
  1158. message: '场景标签必选',
  1159. trigger: 'blur',
  1160. }"
  1161. v-if="!items.modalityTagList.includes(60158)
  1162. && !items.modalityTagList.includes(60159)
  1163. && !items.modalityTagList.includes(101)
  1164. && !items.modalityTagList.includes(104)
  1165. && !items.modalityTagList.includes(112)"
  1166. >
  1167. <el-cascader
  1168. placeholder="搜索你想要的场景标签"
  1169. :options="departTreeSence"
  1170. v-model="items.senceTagList"
  1171. :props="{
  1172. multiple: true,
  1173. value: 'id',
  1174. label: 'tagName',
  1175. emitPath: false,
  1176. checkStrictly: true,
  1177. expandTrigger: 'hover',
  1178. }"
  1179. filterable
  1180. style="width: 100%"
  1181. ></el-cascader>
  1182. </a-form-model-item>
  1183. <a-form-model-item label="基调标签"
  1184. :prop="'urlListData.'+index+'.modTagList'"
  1185. :label-col="{ span: 4 }"
  1186. :wrapper-col="{ span: 14 }"
  1187. :rules="{
  1188. required: true,
  1189. message: '基调标签必选',
  1190. trigger: 'blur',
  1191. }">
  1192. <el-cascader
  1193. placeholder="搜索你想要的基调标签"
  1194. :options="departTreeMod"
  1195. v-model="items.modTagList"
  1196. :props="{
  1197. multiple: true,
  1198. value: 'id',
  1199. label: 'tagName',
  1200. emitPath: false,
  1201. checkStrictly: true,
  1202. expandTrigger: 'hover',
  1203. }"
  1204. filterable
  1205. style="width: 100%"
  1206. ></el-cascader>
  1207. </a-form-model-item>
  1208. <a-form-model-item label="创新素材"
  1209. :prop="'urlListData.'+index+'.materialInnovate'"
  1210. :label-col="{ span: 4 }"
  1211. :wrapper-col="{ span: 14 }"
  1212. :rules="{
  1213. required: true,
  1214. message: '创新素材必选',
  1215. trigger: 'change',
  1216. }">
  1217. <a-switch v-model="items.materialInnovate"/>
  1218. </a-form-model-item>
  1219. <a-form-model-item :wrapper-col="{ span: 14,offset:4 }" v-if="index == 0">
  1220. <a-button type="primary" @click="syncDesign">剩余素材同步设计人员</a-button>
  1221. <a-button type="primary" style="margin-left:10px" @click="syncTag" v-if="
  1222. userInfo().id == 'e1f29124450b47cf84a70820122478bf'||
  1223. userInfo().id == '6e7f1a35b74a490ba0a5773c2a21748c'||
  1224. userInfo().id == 'e9ca23d68d884d4ebb19d07889727dae'">剩余素材同步标签</a-button>
  1225. </a-form-model-item>
  1226. </el-collapse-item>
  1227. </el-collapse>
  1228. </a-form-model-item>
  1229. </a-form-model>
  1230. </a-modal>
  1231. <a-modal
  1232. :title="add ? '添加素材' : '修改素材'"
  1233. v-model="visible"
  1234. @cancel="close"
  1235. @afterClose="close"
  1236. :maskClosable="false"
  1237. :width="800"
  1238. >
  1239. <template slot="footer">
  1240. <a-button key="back" @click="close">取消</a-button>
  1241. <a-button type="primary" :disabled="!confirmLoading" @click="handleOk" :loading="loadingElse">确定</a-button>
  1242. </template>
  1243. <a-form :form="form">
  1244. <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="项目选择">
  1245. <!-- <selectTable :projectId.sync="projectId" /> -->
  1246. <!-- <a-select v-decorator="[
  1247. 'projectId', // 给表单赋值或拉取表单时,该input对应的key
  1248. { rules: [{ required: true, message: '请选择项目!' }] }
  1249. ]" @change="getProjectId" showSearch optionFilterProp="children" :filterOption="filterOption"
  1250. :default-active-first-option="false" :show-arrow="false" :not-found-content="null" :disabled="!add"
  1251. @search="getParticipateList">
  1252. <a-select-option :value="item.projectId" v-for="item of dataElse" :key="item.id">
  1253. {{ item.projectName }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{
  1254. item.mediaId == "1" ? '头条' :item.mediaId == "2"? '快手':item.mediaId == "3"?'头条内广':'快手内广'
  1255. }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ item.advertiserName }}
  1256. </a-select-option>
  1257. </a-select>-->
  1258. <!-- <selectTable :projectId.sync="projectId" @change="getProjectId" :disabled="!add"></selectTable> -->
  1259. <a-select
  1260. v-decorator="[
  1261. 'projectId', // 给表单赋值或拉取表单时,该input对应的key
  1262. { rules: [{ required: true, message: '请选择项目!' }] },
  1263. ]"
  1264. @change="getProjectId"
  1265. @focus="getParticipateList"
  1266. showSearch
  1267. optionFilterProp="children"
  1268. :filterOption="filterOption"
  1269. @search="getParticipateList"
  1270. :disabled="!add"
  1271. >
  1272. <a-select-option :value="item.projectId" v-for="item of dataElse" :key="item.id">
  1273. {{ item.projectName }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{
  1274. item.mediaId == '1'
  1275. ? '头条'
  1276. : item.mediaId == '2'
  1277. ? '快手'
  1278. : item.mediaId == '3'
  1279. ? '头条内广'
  1280. : '快手内广'
  1281. }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ item.advertiserName }}
  1282. </a-select-option>
  1283. </a-select>
  1284. </a-form-item>
  1285. <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="视频素材上传" v-if="getData('projectId')">
  1286. <uploadFile
  1287. :checkFile="file"
  1288. :value.sync="urlList.url"
  1289. @overUpload="overUpload"
  1290. @removeUpload="removeUpload"
  1291. :fileCount="1"
  1292. uploadType="video"
  1293. :multiple="false"
  1294. />
  1295. <!-- <upload-to-ali
  1296. v-model="urlList.url"
  1297. :customDomain="customDomain"
  1298. preview
  1299. :region="region"
  1300. :bucket="bucket"
  1301. :accept="acceptVideo"
  1302. :max="10"
  1303. :size="1024000"
  1304. :accessKeyId="accessKeyId"
  1305. :accessKeySecret="accessKeySecret"
  1306. :before-upload="file"
  1307. :dir="dirVideo"
  1308. @loaded="overUpload"
  1309. >
  1310. </upload-to-ali>-->
  1311. <span v-if="repeat" style="color: red">此素材重复,请重新选择上传</span>
  1312. <span v-if="confirmLoading && urlList.url != ''" style="color: green">上传成功</span>
  1313. </a-form-item>
  1314. <a-form-item
  1315. :label-col="labelCol"
  1316. :wrapper-col="wrapperCol"
  1317. label="封面上传"
  1318. class="add-image-material"
  1319. v-if="getData('projectId') && add && urlList.url != ''"
  1320. >
  1321. <!-- <upload-to-ali
  1322. style="width:160%"
  1323. v-model="urlListImage.url"
  1324. :customDomain="customDomain"
  1325. :multiple="true"
  1326. preview
  1327. :region="region"
  1328. :bucket="bucket"
  1329. :accept="acceptImage"
  1330. :max="10"
  1331. :size="1024000"
  1332. :accessKeyId="accessKeyId"
  1333. :accessKeySecret="accessKeySecret"
  1334. :before-upload="fileWater"
  1335. :dir="dirImg"
  1336. @delete='deleteImage'
  1337. @loaded="overUploadImage"
  1338. ></upload-to-ali>-->
  1339. <uploadFile
  1340. :value.sync="urlListImage.url"
  1341. :checkFile="fileWater"
  1342. @overUpload="overUploadImage"
  1343. @removeUpload="deleteImage"
  1344. :fileCount="15"
  1345. uploadType="image"
  1346. />
  1347. <span
  1348. v-if="material.filter((item) => item == false).length > 0 && urlListImage.url.length > 0"
  1349. style="color: red"
  1350. >
  1351. 上传素材的尺寸不符,请修改(
  1352. <span v-for="(item, index) of material" :key="index" v-show="!item">第{{ index + 1 }}张</span>出错)
  1353. </span>
  1354. <span
  1355. v-else-if="urlListImage.url.length > 0 && material.filter((item) => item == false).length == 0"
  1356. style="color: green"
  1357. >上传成功</span
  1358. >
  1359. </a-form-item>
  1360. <div v-if="add">
  1361. <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="策划" v-if="activeKey == 'video'">
  1362. <a-select
  1363. v-decorator="[
  1364. 'planId', // 给表单赋值或拉取表单时,该input对应的key
  1365. { rules: [{ required: true, message: '请选择策划!' }] },
  1366. ]"
  1367. showSearch
  1368. optionFilterProp="children"
  1369. :filterOption="filterOption"
  1370. >
  1371. <a-select-option :value="item.userId" v-for="item of ascription.planId" :key="item.userId">{{
  1372. item.userName
  1373. }}</a-select-option>
  1374. </a-select>
  1375. </a-form-item>
  1376. <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="拍摄" v-if="activeKey == 'video'">
  1377. <a-select
  1378. v-decorator="[
  1379. 'shotId', // 给表单赋值或拉取表单时,该input对应的key
  1380. ]"
  1381. showSearch
  1382. optionFilterProp="children"
  1383. :filterOption="filterOption"
  1384. >
  1385. <a-select-option :value="item.userId" v-for="item of ascription.shotId" :key="item.userId">{{
  1386. item.userName
  1387. }}</a-select-option>
  1388. </a-select>
  1389. </a-form-item>
  1390. <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="剪辑">
  1391. <a-select
  1392. v-decorator="[
  1393. 'clipId', // 给表单赋值或拉取表单时,该input对应的key
  1394. { rules: [{ required: true, message: '请选择剪辑!' }] },
  1395. ]"
  1396. showSearch
  1397. optionFilterProp="children"
  1398. :filterOption="filterOption"
  1399. >
  1400. <a-select-option :value="item.userId" v-for="item of ascription.clipId" :key="item.userId">{{
  1401. item.userName
  1402. }}</a-select-option>
  1403. </a-select>
  1404. </a-form-item>
  1405. </div>
  1406. <a-form-item
  1407. :label-col="labelCol"
  1408. :wrapper-col="{
  1409. xs: { span: 24 },
  1410. sm: { span: 12 },
  1411. }"
  1412. label="形式标签"
  1413. v-if="add && visible"
  1414. >
  1415. <el-cascader
  1416. placeholder="搜索你想要的形式标签"
  1417. :options="departTreeModality"
  1418. v-decorator="[
  1419. 'modalityTagList', // 给表单赋值或拉取表单时,该input对应的key
  1420. { rules: [{ required: true, message: '请选择形式标签!' }],initialValue:[] },
  1421. ]"
  1422. :props="{
  1423. multiple: true,
  1424. value: 'id',
  1425. label: 'tagName',
  1426. emitPath: false,
  1427. checkStrictly: true,
  1428. expandTrigger: 'hover',
  1429. }"
  1430. filterable
  1431. style="width: 100%"
  1432. ></el-cascader>
  1433. </a-form-item>
  1434. <!-- <a-form-item
  1435. :label-col="labelCol"
  1436. :wrapper-col="{
  1437. xs: { span: 24 },
  1438. sm: { span: 12 },
  1439. }"
  1440. label="内容标签"
  1441. v-if="add && visible"
  1442. >
  1443. <el-cascader
  1444. placeholder="搜索你想要的内容标签"
  1445. :options="departTreeContent"
  1446. class="only-video-material-disable-modal"
  1447. v-decorator="[
  1448. 'contentTagList',
  1449. { rules: [{ required: true, message: '请选择内容标签!' }] },
  1450. ]"
  1451. :props="{
  1452. multiple: true,
  1453. value: 'id',
  1454. label: 'tagName',
  1455. emitPath: false,
  1456. checkStrictly: true,
  1457. expandTrigger: 'hover',
  1458. }"
  1459. filterable
  1460. style="width: 100%"
  1461. ></el-cascader>
  1462. </a-form-item> -->
  1463. <a-form-item
  1464. :label-col="labelCol"
  1465. :wrapper-col="{
  1466. xs: { span: 24 },
  1467. sm: { span: 12 },
  1468. }"
  1469. label="场景标签"
  1470. v-if="add && visible && (!getData('modalityTagList')||(!getData('modalityTagList').includes(60158)
  1471. && !getData('modalityTagList').includes(60159)
  1472. && !getData('modalityTagList').includes(101)
  1473. && !getData('modalityTagList').includes(104)
  1474. && !getData('modalityTagList').includes(112)))"
  1475. >
  1476. <el-cascader
  1477. placeholder="搜索你想要的场景标签"
  1478. :options="departTreeSence"
  1479. v-decorator="[
  1480. 'senceTagList', // 给表单赋值或拉取表单时,该input对应的key
  1481. { rules: [{ required: true, message: '请选择场景标签!' }] },
  1482. ]"
  1483. :props="{
  1484. multiple: true,
  1485. value: 'id',
  1486. label: 'tagName',
  1487. emitPath: false,
  1488. checkStrictly: true,
  1489. expandTrigger: 'hover',
  1490. }"
  1491. filterable
  1492. style="width: 100%"
  1493. ></el-cascader>
  1494. </a-form-item>
  1495. <a-form-item
  1496. :label-col="labelCol"
  1497. :wrapper-col="{
  1498. xs: { span: 24 },
  1499. sm: { span: 12 },
  1500. }"
  1501. label="基调标签"
  1502. v-if="add && visible"
  1503. >
  1504. <el-cascader
  1505. placeholder="搜索你想要的基调标签"
  1506. :options="departTreeMod"
  1507. v-decorator="[
  1508. 'modTagList', // 给表单赋值或拉取表单时,该input对应的key
  1509. { rules: [{ required: true, message: '请选择基调标签!' }] },
  1510. ]"
  1511. :props="{
  1512. multiple: true,
  1513. value: 'id',
  1514. label: 'tagName',
  1515. emitPath: false,
  1516. checkStrictly: true,
  1517. expandTrigger: 'hover',
  1518. }"
  1519. filterable
  1520. style="width: 100%"
  1521. ></el-cascader>
  1522. </a-form-item>
  1523. <a-form-item
  1524. :label-col="labelCol"
  1525. :wrapper-col="{
  1526. xs: { span: 24 },
  1527. sm: { span: 12 },
  1528. }"
  1529. label="创新素材"
  1530. v-if="add && visible"
  1531. >
  1532. <a-switch v-decorator="[
  1533. 'materialInnovate', // 给表单赋值或拉取表单时,该input对应的key
  1534. { rules: [{ required: true, message: '' }],initialValue:false },
  1535. ]"/>
  1536. </a-form-item>
  1537. <a-form-item
  1538. :label-col="labelCol"
  1539. :wrapper-col="{
  1540. xs: { span: 24 },
  1541. sm: { span: 18 },
  1542. }"
  1543. label="其他"
  1544. v-if="add"
  1545. >
  1546. <template v-for="(tag, index) in tags">
  1547. <a-tooltip v-if="tag.length > 20" :key="tag" :title="tag">
  1548. <a-tag :key="tag" :closable="index !== 0" :afterClose="() => handleClose(tag)">{{
  1549. `${tag.slice(0, 20)}...`
  1550. }}</a-tag>
  1551. </a-tooltip>
  1552. <a-tag v-else :key="index" :closable="true" :afterClose="() => handleClose(tag)">{{ tag }}</a-tag>
  1553. </template>
  1554. <a-input
  1555. v-if="inputVisible"
  1556. ref="input"
  1557. type="text"
  1558. size="small"
  1559. :style="{ width: '78px' }"
  1560. :value="inputValue"
  1561. @change="handleInputChange"
  1562. @blur="handleInputConfirm"
  1563. @keyup.enter="handleInputConfirm"
  1564. />
  1565. <a-tag v-else @click="showInput" style="background: #fff; borderstyle: dashed">
  1566. <a-icon type="plus" />New Tag
  1567. </a-tag>
  1568. </a-form-item>
  1569. <a-form-item
  1570. :label-col="labelCol"
  1571. :wrapper-col="{
  1572. xs: { span: 24 },
  1573. sm: { span: 12 },
  1574. }"
  1575. label="描述"
  1576. v-if="add"
  1577. >
  1578. <a-textarea
  1579. placeholder="请输入描述"
  1580. v-decorator="[
  1581. 'materialDescribe', // 给表单赋值或拉取表单时,该input对应的key
  1582. ]"
  1583. :auto-size="{ minRows: 3, maxRows: 10 }"
  1584. />
  1585. </a-form-item>
  1586. </a-form>
  1587. </a-modal>
  1588. <a-modal title="素材详情" v-model="visibleDetail" width="70%" :footer="null">
  1589. <div style="width: 100%; height: 35px">
  1590. <a-button type="primary" @click="setSuccess" style="float: right">{{
  1591. excellent == 0 ? '标记为优秀素材' : '取消标记'
  1592. }}</a-button>
  1593. </div>
  1594. <div style="display: flex; height: 700px">
  1595. <div
  1596. class="video-content"
  1597. style="
  1598. width: 50%;
  1599. padding: 10px;
  1600. box-sizing: border-box;
  1601. display: flex;
  1602. justify-content: center;
  1603. border-right: 1px solid #f2f2f2;
  1604. "
  1605. >
  1606. <video class="video" :src="showUrl" controls="controls" style="height: 50%" controlslist="nodownload">
  1607. 您的浏览器不支持 video 标签。
  1608. </video>
  1609. <div class="downLoad" style="height: 50%; overflow: auto">
  1610. <a-button @click="onCheckAllImageChange" v-if="model.length > 0">
  1611. {{ checkAllImage ? '取消 ( ' + checkArrImage.length + ' )' : '全选' }}
  1612. </a-button>
  1613. <ul
  1614. class="actor-photo-list"
  1615. :style="{ width: model.length > 4 ? 25 * model.length + '%' : '100%' }"
  1616. v-if="model.length > 0"
  1617. >
  1618. <a-checkbox-group
  1619. v-model="checkArrImage"
  1620. style="width: 100%; display: flex; padding-left: 0"
  1621. @change="onChangeCheckImage"
  1622. >
  1623. <li v-for="(item, index) of model" :key="index">
  1624. <a-checkbox :value="item.id" style="position: absolute; z-index: 100"></a-checkbox>
  1625. <img class="video" :src="item.url" @click="coverPreviewShowModal(item, index)" />
  1626. <span
  1627. class="tag-video"
  1628. :style="{
  1629. backgroundColor:
  1630. item.status == 0 ? 'rgba(0, 0, 0)' : item.status == 1 ? 'rgba(0, 180, 100)' : 'red',
  1631. }"
  1632. >{{ item.status == 0 ? '未审核' : item.status == 1 ? '已批准' : '已驳回' }}</span
  1633. >
  1634. </li>
  1635. </a-checkbox-group>
  1636. </ul>
  1637. <div v-else style="height: 100%; display: flex; justify-content: center; align-items: center">
  1638. <img
  1639. 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"
  1640. alt
  1641. />
  1642. </div>
  1643. </div>
  1644. </div>
  1645. <a-modal title="图片预览" v-model="coverPreviewVisible" :footer="null">
  1646. <a-carousel arrows class="cover_carousel_con">
  1647. <div v-for="(item, index) in modelNew" :key="index" class="content">
  1648. <img :src="item.url" :width="300" />
  1649. <div style="margin-top: 10px">
  1650. <a-button type="primary" @click="editImage(item, '1')">通过审核</a-button>
  1651. <a-divider type="vertical" />
  1652. <a-popconfirm @confirm="editImage(item, '2')">
  1653. <div slot="title">
  1654. <div>
  1655. 驳回原因:
  1656. <a-textarea
  1657. placeholder="请输入原因"
  1658. v-model="refuseReasonImage"
  1659. :autosize="{ minRows: 3, maxRows: 10 }"
  1660. />
  1661. </div>
  1662. </div>
  1663. <a-button type="primary">驳回</a-button>
  1664. <!-- @click="edit(null, '0', '2')" -->
  1665. </a-popconfirm>
  1666. </div>
  1667. </div>
  1668. <a-icon
  1669. type="left-circle"
  1670. slot="prevArrow"
  1671. slot-scope
  1672. style="left: 10px; zindex: 9; font-size: 30px; color: black"
  1673. />
  1674. <a-icon
  1675. type="right-circle"
  1676. slot="nextArrow"
  1677. slot-scope
  1678. style="right: 10px; zindex: 9; font-size: 30px; color: black"
  1679. />
  1680. </a-carousel>
  1681. </a-modal>
  1682. <div style="flex: 3; padding: 10px; box-sizing: border-box">
  1683. <a-form v-if="detail&&allDetailData" class="detail ant-advanced-search-form" layout="inline">
  1684. <div>
  1685. <a-form-item label="视频名称">{{allDetailData.materialName}}</a-form-item>
  1686. </div>
  1687. <div>
  1688. <a-form-item label="唯一编码">{{allDetailData.code}}</a-form-item>
  1689. </div>
  1690. <a-form-item label="视频链接"><a-input v-model="allDetailData.url" type="text" read-only /></a-form-item>
  1691. <div v-if="detail.parameter" style="display: flex">
  1692. <a-form-item label="视频时长" v-if="detail.parameter.second" style="flex: 1"
  1693. >{{ detail.parameter.second }}秒</a-form-item
  1694. >
  1695. <a-form-item label="尺寸" style="flex: 1" v-if="detail.parameter.width"
  1696. >{{ detail.parameter.width }}*{{ detail.parameter.height }}</a-form-item
  1697. >
  1698. <a-form-item label="大小" style="flex: 1" v-if="detail.parameter.size">{{
  1699. detail.parameter.size
  1700. }}</a-form-item>
  1701. </div>
  1702. <div v-if="detail.ascription" style="display: flex">
  1703. <a-form-item label="策划" style="flex: 1">{{ detail.ascription.planName }}</a-form-item>
  1704. <a-form-item label="拍摄" style="flex: 1">{{ detail.ascription.shotName }}</a-form-item>
  1705. <a-form-item label="剪辑" v-if="detail.ascription.clipName" style="flex: 1">{{
  1706. detail.ascription.clipName
  1707. }}</a-form-item>
  1708. </div>
  1709. <div>
  1710. <a-form-item label="标签" v-if="tagInfoList.length > 0">
  1711. <a-tag v-for="(item, index) of tagInfoList" :key="index">{{ item.tagName }}</a-tag>
  1712. </a-form-item>
  1713. </div>
  1714. <div>
  1715. <a-form-item label="其他" v-if="detail.tag">
  1716. <a-tag v-for="(item, index) of detail.tag" :key="index">{{ item }}</a-tag>
  1717. </a-form-item>
  1718. </div>
  1719. <div>
  1720. <a-form-item label="无水印素材下载" v-if="name">
  1721. <a-button type="primary" @click="downloadByBlobShowUrl">下载</a-button>
  1722. </a-form-item>
  1723. </div>
  1724. <div>
  1725. <a-form-item label="水印素材下载" v-if="name">
  1726. <a-button type="primary" @click="downloadByBlob" v-if="showUrlWater">下载</a-button>
  1727. <span v-else>水印素材生成中,请一分钟后刷新</span>
  1728. </a-form-item>
  1729. </div>
  1730. <div>
  1731. <a-form-item label="水印素材链接" v-if="showUrlWater">
  1732. <a-input v-model="showUrlWater" type="text" read-only />
  1733. </a-form-item>
  1734. </div>
  1735. <div style="width: 100%" class="downLoad">
  1736. <a-form-item label="生成水印素材" style="width: 100%">
  1737. <a-select :defaultValue="4" v-model="size" style="width: 80%">
  1738. <a-select-option :value="item.id" :key="item.id" v-for="item of sizeType">
  1739. {{ item.name }}
  1740. </a-select-option>
  1741. </a-select>
  1742. <a-button type="primary" @click="getWater" :loading="waterLoading">生成</a-button>
  1743. </a-form-item>
  1744. </div>
  1745. <div>
  1746. <a-form-item label="审核人" v-if="active == '2' && detail.auditorName">{{
  1747. detail.auditorName
  1748. }}</a-form-item>
  1749. </div>
  1750. <div>
  1751. <a-form-item label="广告语" v-if="active == '1'">{{
  1752. creativeCopywriter ? creativeCopywriter : '无广告语'
  1753. }}</a-form-item>
  1754. </div>
  1755. <div>
  1756. <a-form-item label="驳回原因" v-if="active == '2'">{{
  1757. refuseReason ? refuseReason : '无原因'
  1758. }}</a-form-item>
  1759. </div>
  1760. <div>
  1761. <a-form-item label="截图" v-if="active == '2'">
  1762. <div v-if="refuseFile" style="width: 100%">
  1763. <img
  1764. style="width: 100px; height: auto; margin: 5px"
  1765. @click="showBoHui(item)"
  1766. :src="item"
  1767. v-for="(item, index) in refuseFile"
  1768. :key="index"
  1769. alt
  1770. />
  1771. </div>
  1772. <!-- :checkFile="fileWater"
  1773. @overUpload="overUploadImage"
  1774. @removeUpload="deleteImage"-->
  1775. <!-- <upload-to-ali
  1776. v-if="refuseFile"
  1777. disabled
  1778. v-model="refuseFile"
  1779. :customDomain="customDomain"
  1780. multiple
  1781. preview
  1782. :region="region"
  1783. :bucket="bucket"
  1784. :accept="acceptImage"
  1785. :max="10"
  1786. :size="1024000"
  1787. :accessKeyId="accessKeyId"
  1788. :accessKeySecret="accessKeySecret"
  1789. :dir="dirImg"
  1790. ></upload-to-ali>-->
  1791. <div v-else>无截图</div>
  1792. </a-form-item>
  1793. </div>
  1794. <div>
  1795. <a-form-item
  1796. label="视频审核"
  1797. v-if="
  1798. active != '2' &&
  1799. (role.roleCode == 'operator' ||
  1800. role.roleCode == 'kuaishouOperationManager' ||
  1801. role.roleCode == 'admin' ||
  1802. role.roleCode == 'operationAssistant' ||
  1803. role.roleCode == 'touTiaoOperationManager'||
  1804. role.roleCode == 'businessOperation')
  1805. "
  1806. >
  1807. <a-popconfirm
  1808. @confirm="edit(null, '0', '1')"
  1809. v-show="active != '1'"
  1810. v-if="
  1811. role.roleCode == 'operator' ||
  1812. role.roleCode == 'kuaishouOperationManager' ||
  1813. role.roleCode == 'admin' ||
  1814. role.roleCode == 'operationAssistant' ||
  1815. role.roleCode == 'touTiaoOperationManager'||
  1816. role.roleCode == 'businessOperation'
  1817. "
  1818. >
  1819. <div slot="title">
  1820. <div>
  1821. 广告语:
  1822. <a-textarea placeholder="请输入" v-model="refuseReason" :autosize="{ minRows: 3, maxRows: 10 }" />
  1823. </div>
  1824. </div>
  1825. <a-button type="primary" v-if="active == '0'" style="margin-right: 10px">通过审核</a-button>
  1826. </a-popconfirm>
  1827. <a-popconfirm @confirm="okEdit" v-show="active != '2'">
  1828. <div slot="title">
  1829. <div>
  1830. 驳回原因:
  1831. <a-textarea
  1832. placeholder="请输入原因"
  1833. v-model="refuseReason"
  1834. :autosize="{ minRows: 3, maxRows: 10 }"
  1835. />
  1836. </div>
  1837. <div>
  1838. 截图:
  1839. <uploadFile v-if="refuseFile" :value.sync="refuseFile" :fileCount="15" uploadType="image" />
  1840. <!-- <upload-to-ali
  1841. v-model="refuseFile"
  1842. :customDomain="customDomain"
  1843. multiple
  1844. preview
  1845. :region="region"
  1846. :bucket="bucket"
  1847. :accept="acceptImage"
  1848. :max="10"
  1849. :size="1024000"
  1850. :accessKeyId="accessKeyId"
  1851. :accessKeySecret="accessKeySecret"
  1852. :dir="dirImg"
  1853. ></upload-to-ali>-->
  1854. </div>
  1855. </div>
  1856. <a-button type="primary" v-show="active != '2'">驳回</a-button>
  1857. <!-- @click="edit(null, '0', '2')" -->
  1858. </a-popconfirm>
  1859. </a-form-item>
  1860. </div>
  1861. <div>
  1862. <a-form-item label="封面审核" style="width: 120%">
  1863. <a-button type="primary" :disabled="checkArrImage.length == 0" @click="editImageAll('1')"
  1864. >通过审核</a-button
  1865. >
  1866. <a-popconfirm @confirm="editImageAll('2')" v-show="active != '2'">
  1867. <div slot="title">
  1868. <div>
  1869. 驳回原因:
  1870. <a-textarea
  1871. placeholder="请输入原因"
  1872. v-model="refuseReasonImage"
  1873. :autosize="{ minRows: 3, maxRows: 10 }"
  1874. />
  1875. </div>
  1876. </div>
  1877. <a-button type="primary" :disabled="checkArrImage.length != 1" style="margin-left: 10px"
  1878. >驳回</a-button
  1879. >
  1880. <!-- @click="edit(null, '0', '2')" -->
  1881. </a-popconfirm>
  1882. </a-form-item>
  1883. </div>
  1884. </a-form>
  1885. </div>
  1886. </div>
  1887. </a-modal>
  1888. <a-modal title="查看截图" v-model="bohuiShow" :width="300" :footer="null">
  1889. <img :src="bohui" alt style="width: 100%" />
  1890. </a-modal>
  1891. <a-modal title="人员修改" v-model="personVisible" @afterClose="closePerson">
  1892. <template slot="footer">
  1893. <a-button key="back" @click="closePerson">取消</a-button>
  1894. <a-button key="submit" type="primary" :loading="loadingPerson" @click="handleOkPerson">确定</a-button>
  1895. </template>
  1896. <a-form :form="formPerson">
  1897. <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="策划" v-if="activeKey == 'video'">
  1898. <a-select
  1899. v-decorator="[
  1900. 'planId', // 给表单赋值或拉取表单时,该input对应的key
  1901. { rules: [{ required: true, message: '请选择策划!' }] },
  1902. ]"
  1903. showSearch
  1904. optionFilterProp="children"
  1905. :filterOption="filterOption"
  1906. >
  1907. <a-select-option :value="item.userId" v-for="item of ascription.planId" :key="item.userId">{{
  1908. item.userName
  1909. }}</a-select-option>
  1910. </a-select>
  1911. </a-form-item>
  1912. <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="拍摄" v-if="activeKey == 'video'">
  1913. <a-select
  1914. v-decorator="[
  1915. 'shotId', // 给表单赋值或拉取表单时,该input对应的key
  1916. ]"
  1917. showSearch
  1918. optionFilterProp="children"
  1919. :filterOption="filterOption"
  1920. >
  1921. <a-select-option :value="item.userId" v-for="item of ascription.shotId" :key="item.userId">{{
  1922. item.userName
  1923. }}</a-select-option>
  1924. </a-select>
  1925. </a-form-item>
  1926. <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="剪辑">
  1927. <a-select
  1928. v-decorator="[
  1929. 'clipId', // 给表单赋值或拉取表单时,该input对应的key
  1930. { rules: [{ required: true, message: '请选择剪辑!' }] },
  1931. ]"
  1932. showSearch
  1933. optionFilterProp="children"
  1934. :filterOption="filterOption"
  1935. >
  1936. <a-select-option :value="item.userId" v-for="item of ascription.clipId" :key="item.userId">{{
  1937. item.userName
  1938. }}</a-select-option>
  1939. </a-select>
  1940. </a-form-item>
  1941. </a-form>
  1942. </a-modal>
  1943. <a-modal title="标签修改" v-model="tagInfoListVisible">
  1944. <template slot="footer">
  1945. <a-button
  1946. key="back"
  1947. @click="
  1948. tagInfoListVisible = false
  1949. departValueInfoModality = []
  1950. departValueInfoMod = []
  1951. departValueInfoContent = []
  1952. departValueInfoSence = []
  1953. tagCode = null
  1954. "
  1955. >取消</a-button
  1956. >
  1957. <a-button key="submit" type="primary" :loading="loadingTag" @click="handleOkTag">确定</a-button>
  1958. </template>
  1959. <!-- <a-form-item :label-col="labelCol" :wrapper-col="{
  1960. xs: { span: 24 },
  1961. sm: { span: 12 }
  1962. }" label="标签">
  1963. <el-cascader placeholder="搜索你想要的标签" :options="departTree" v-model="departValueInfo"
  1964. :props="{ multiple: true,value:'id',label:'tagName',emitPath:false}" filterable style="width:100%">
  1965. </el-cascader>
  1966. </a-form-item>-->
  1967. <a-form-item
  1968. :label-col="labelCol"
  1969. :wrapper-col="{
  1970. xs: { span: 24 },
  1971. sm: { span: 12 },
  1972. }"
  1973. label="形式"
  1974. >
  1975. <el-cascader
  1976. placeholder="搜索你想要的形式标签"
  1977. :options="departTreeModality"
  1978. v-model="departValueInfoModality"
  1979. @change="clearChangjing"
  1980. :props="{
  1981. multiple: true,
  1982. value: 'id',
  1983. label: 'tagName',
  1984. emitPath: false,
  1985. checkStrictly: true,
  1986. expandTrigger: 'hover',
  1987. }"
  1988. filterable
  1989. style="width: 100%"
  1990. ></el-cascader>
  1991. </a-form-item>
  1992. <!-- <a-form-item
  1993. :label-col="labelCol"
  1994. :wrapper-col="{
  1995. xs: { span: 24 },
  1996. sm: { span: 12 },
  1997. }"
  1998. label="内容"
  1999. >
  2000. <el-cascader
  2001. placeholder="搜索你想要的内容标签"
  2002. :options="departTreeContent"
  2003. v-model="departValueInfoContent"
  2004. :props="{ multiple: true, value: 'id', label: 'tagName', emitPath: false }"
  2005. filterable
  2006. style="width: 100%"
  2007. ></el-cascader>
  2008. </a-form-item> -->
  2009. <a-form-item
  2010. :label-col="labelCol"
  2011. :wrapper-col="{
  2012. xs: { span: 24 },
  2013. sm: { span: 12 },
  2014. }"
  2015. label="场景"
  2016. v-if="!departValueInfoModality.includes(60158)
  2017. && !departValueInfoModality.includes(60159)
  2018. && !departValueInfoModality.includes(101)
  2019. && !departValueInfoModality.includes(104)
  2020. && !departValueInfoModality.includes(112)"
  2021. >
  2022. <el-cascader
  2023. placeholder="搜索你想要的场景标签"
  2024. :options="departTreeSence"
  2025. v-model="departValueInfoSence"
  2026. :props="{
  2027. multiple: true,
  2028. value: 'id',
  2029. label: 'tagName',
  2030. emitPath: false,
  2031. checkStrictly: true,
  2032. expandTrigger: 'hover',
  2033. }"
  2034. filterable
  2035. style="width: 100%"
  2036. ></el-cascader>
  2037. </a-form-item>
  2038. <a-form-item
  2039. :label-col="labelCol"
  2040. :wrapper-col="{
  2041. xs: { span: 24 },
  2042. sm: { span: 12 },
  2043. }"
  2044. label="基调"
  2045. >
  2046. <el-cascader
  2047. placeholder="搜索你想要的基调标签"
  2048. :options="departTreeMod"
  2049. v-model="departValueInfoMod"
  2050. :props="{
  2051. multiple: true,
  2052. value: 'id',
  2053. label: 'tagName',
  2054. emitPath: false,
  2055. checkStrictly: true,
  2056. expandTrigger: 'hover',
  2057. }"
  2058. filterable
  2059. style="width: 100%"
  2060. ></el-cascader>
  2061. </a-form-item>
  2062. <a-form-item
  2063. :label-col="labelCol"
  2064. :wrapper-col="{
  2065. xs: { span: 24 },
  2066. sm: { span: 12 },
  2067. }"
  2068. label="创新素材"
  2069. >
  2070. <a-switch v-model="materialInnovate"/>
  2071. </a-form-item>
  2072. </a-modal>
  2073. <a-modal title="推荐封面" v-model="chouzhen" width="60%">
  2074. <template slot="footer">
  2075. <a-button key="back" @click="chouzhen = false">关闭</a-button>
  2076. </template>
  2077. <ul v-if="chouzhenList.length > 0" style="height: 600px; overflow: auto">
  2078. <li v-for="(item, index) of chouzhenList" :key="index" class="chouzhen" :class="{ first: index == 0 }">
  2079. <img
  2080. :src="item.url"
  2081. alt
  2082. style="width: 100%"
  2083. @click="
  2084. showImageStr = item.url
  2085. showImageChouzhen = true
  2086. "
  2087. />
  2088. </li>
  2089. </ul>
  2090. <div style="clear: both"></div>
  2091. <a-modal title="图片预览" v-model="showImageChouzhen" :footer="null">
  2092. <img :src="showImageStr" style="width: 100%" />
  2093. </a-modal>
  2094. </a-modal>
  2095. <account-check ref="check" @synchro="implement"></account-check>
  2096. <accountCheckBytedance ref="accountCheckBytedance" @synchro="implement" :productId="queryParam.productId"/>
  2097. <permission-modal ref="modalForm" @ok="modalFormOkElse"></permission-modal>
  2098. <!-- 换脸模块 -->
  2099. <change-face
  2100. :status="faceTypeStatus"
  2101. :defaultList="faceChangeList"
  2102. @closeface="handleFaceCloseModal"
  2103. @sureface="handleFaceSureModal"
  2104. >
  2105. </change-face>
  2106. <a-modal
  2107. v-if="faceShowStatus"
  2108. title="换脸操作"
  2109. :visible="faceShowStatus"
  2110. dialog-class="change-face-modal change-list-modal-show"
  2111. @ok="handlePolicyOperationSure"
  2112. @cancel="handlePolicyOperationCancel"
  2113. >
  2114. <a-table
  2115. class="face-right-table"
  2116. ref="table"
  2117. size="middle"
  2118. bordered
  2119. :columns="settlementColumns"
  2120. :dataSource="dataSourceFace"
  2121. :pagination="false"
  2122. :loading="controlLoading"
  2123. >
  2124. <span slot="input_video_url" slot-scope="text, record">
  2125. <div style="width:100px;height:177px;margin-left:25px;">
  2126. <video v-if="record.input_video_url" :src="record.input_video_url" style="width:100px" controls></video>
  2127. <img v-else style="width:100px" src="@/assets/noImg.png">
  2128. </div>
  2129. </span>
  2130. <span slot="output_video_url" slot-scope="text, record">
  2131. <div style="width:100px;height:177px;margin-left:25px;">
  2132. <video v-if="record.output_video_url" :src="record.output_video_url" style="width:100px" controls></video>
  2133. <img v-else style="width:100px" src="@/assets/noImg.png">
  2134. </div>
  2135. </span>
  2136. <span slot="input_image_url" slot-scope="text, record">
  2137. <img v-if="text" :src="text" style="width:100px">
  2138. <img v-else src="@/assets/noImg.png" style="width:100px">
  2139. </span>
  2140. <span slot="actions" slot-scope="text, record">
  2141. <!-- <a :disabled="record.status !== 'finished'" @click="handlePushData(record)">推送</a>
  2142. <a-divider type="vertical"/> -->
  2143. <a @click="handleDownLoadData(record)" :disabled="record.status !== 'finished'">下载</a>
  2144. </span>
  2145. </a-table>
  2146. <a-pagination
  2147. class="pagin-table-class"
  2148. :total="totalAll"
  2149. :show-total="total => `共 ${totalAll} 条`"
  2150. size="small"
  2151. :current="defaultCurrent"
  2152. :defaultPageSize="2"
  2153. @change="onShowSizeChange"
  2154. @showSizeChange="onShowSizeChange"
  2155. />
  2156. </a-modal>
  2157. <a-modal
  2158. v-if="usageDetailsStatus"
  2159. title="使用详情"
  2160. :width="750"
  2161. :visible="usageDetailsStatus"
  2162. dialog-class="usage-details-modal change-face-modal change-list-modal-show"
  2163. :footer="null"
  2164. @cancel="handleProfitModalnCancel"
  2165. >
  2166. <div style="overflow: hidden;">
  2167. <a-tabs v-model="materiaModalType" @change="handleMateriaTabsChange">
  2168. <a-tab-pane key="1" tab="头条">
  2169. <a-table
  2170. class="face-right-table"
  2171. ref="table"
  2172. size="middle"
  2173. bordered
  2174. :columns="materiaColumnsToutiao"
  2175. :dataSource="materiaDataToutiao"
  2176. :pagination="false"
  2177. :loading="toutiaoMateriaLoading"
  2178. >
  2179. <span slot="accountStatus" slot-scope="text">
  2180. <span>{{ text === 0 ? '投放中' : '已暂停' }}</span>
  2181. </span>
  2182. </a-table>
  2183. <a-pagination
  2184. class="pagin-table-class"
  2185. :total="materiaDataTotalToutiao"
  2186. :show-total="total => `共 ${materiaDataTotalToutiao} 条`"
  2187. size="small"
  2188. :current="defaultCurrentToutiao"
  2189. :defaultPageSize="10"
  2190. @change="materiaDataSizeChange"
  2191. @showSizeChange="materiaDataSizeChange"
  2192. />
  2193. </a-tab-pane>
  2194. <a-tab-pane key="2" tab="快手">
  2195. <a-table
  2196. class="face-right-table"
  2197. ref="table"
  2198. size="middle"
  2199. bordered
  2200. :columns="materiaColumnsKuaishou"
  2201. :dataSource="materiaDataKuaishou"
  2202. :pagination="false"
  2203. :loading="kuaishouMateriaLoading"
  2204. >
  2205. <span slot="accountStatus" slot-scope="text">
  2206. <span>{{ text === 0 ? '投放中' : '已暂停' }}</span>
  2207. </span>
  2208. <span slot="refuseCount" slot-scope="text, record">
  2209. <span>{{ record.refuseInfo.refuseCount }}</span>
  2210. </span>
  2211. <span slot="refuseDetail" slot-scope="text, record">
  2212. <a :disabled="!record.refuseInfo.refuseDetail" @click="handleRejectReason(record)">拒绝原因</a>
  2213. </span>
  2214. </a-table>
  2215. <a-pagination
  2216. class="pagin-table-class"
  2217. :total="materiaDataTotalKuaishou"
  2218. :show-total="total => `共 ${materiaDataTotalKuaishou} 条`"
  2219. size="small"
  2220. :current="defaultCurrentKuaishou"
  2221. :defaultPageSize="10"
  2222. @change="materiaDataSizeChangeKuaishou"
  2223. @showSizeChange="materiaDataSizeChangeKuaishou"
  2224. />
  2225. </a-tab-pane>
  2226. </a-tabs>
  2227. </div>
  2228. </a-modal>
  2229. <a-modal
  2230. v-if="recordDetailVisible"
  2231. title="素材同步记录"
  2232. :width="750"
  2233. :visible="recordDetailVisible"
  2234. dialog-class="usage-details-modal change-face-modal change-list-modal-show"
  2235. :footer="null"
  2236. @cancel="handleRecordCancel"
  2237. >
  2238. <div style="overflow: hidden;">
  2239. <a-table
  2240. class="face-right-table"
  2241. ref="table"
  2242. size="middle"
  2243. bordered
  2244. :columns="recordColumns"
  2245. :dataSource="recordData"
  2246. :pagination="recordIpagination"
  2247. :loading="toutiaoMateriaLoading"
  2248. >
  2249. <span slot="createTime" slot-scope="text">
  2250. {{text}}
  2251. </span>
  2252. </a-table>
  2253. </div>
  2254. </a-modal>
  2255. <a-modal
  2256. v-if="rejectReasonStatus"
  2257. title="审核拒绝原因"
  2258. :width="750"
  2259. :visible="rejectReasonStatus"
  2260. :footer="null"
  2261. @cancel="handleRejectReasonCancel"
  2262. >
  2263. <div>
  2264. <p v-for="(item, index) in rejectReasonList" :key="index + 1">{{ index + 1 }}:{{ item }}</p>
  2265. </div>
  2266. </a-modal>
  2267. <a-modal v-model="showDataListVisible" title="信息" :footer="null">
  2268. <div v-if="showDataList">
  2269. <p v-for="(item, index) in showDataList" :key="index">
  2270. 素材:{{item.materialName}},{{item.message}};
  2271. <br/>
  2272. 同步账户:{{item.ids.join()}}
  2273. </p>
  2274. </div>
  2275. </a-modal>
  2276. </a-card>
  2277. </template>
  2278. <script>
  2279. import changeFace from '@/views/modules/Statistics/change-face/change-face';
  2280. import PermissionModal from './modules/DepartModal'
  2281. import { JeecgListMixin } from '@/mixins/videoMaterialMixin'
  2282. import JEllipsis from '@/components/jeecg/JEllipsis'
  2283. import UploadToAli from '@femessage/upload-to-ali'
  2284. import { fileCheck, fileCheckImage, fileEdit, fileEditAll, fileInsertV2 } from '@/api/actor'
  2285. import { deleteAction, getAction, postAction, putAction,downFile } from '@/api/manage'
  2286. import qs from 'qs'
  2287. import { mapGetters } from 'vuex'
  2288. import moment from 'moment'
  2289. import selectTable from './comment/selectTable.vue'
  2290. import selectTableProject from '@/views/modules/Statistics/components/selectPagination.vue'
  2291. import BMF from 'browser-md5-file'
  2292. import uploadFile from '@/components/uploadFile.vue'
  2293. import { closeAllVideoFun, stopOtherVideo } from '@/utils/videoControl'
  2294. import accountCheck from './accountCheck'
  2295. import accountCheckBytedance from './accountCheckBytedance'
  2296. let md5Arr = []
  2297. export default {
  2298. name: 'video-material',
  2299. mixins: [JeecgListMixin],
  2300. components: {
  2301. JEllipsis,
  2302. UploadToAli,
  2303. accountCheck,
  2304. selectTable,
  2305. uploadFile,
  2306. PermissionModal,
  2307. accountCheckBytedance,
  2308. selectTableProject,
  2309. changeFace
  2310. },
  2311. data() {
  2312. return {
  2313. rejectReasonStatus: false,
  2314. defaultCurrentKuaishou: 1,
  2315. materiaDataTotalKuaishou: 0,
  2316. kuaishouMateriaLoading: false,
  2317. materiaDataKuaishou: [],
  2318. materiaColumnsKuaishou: [
  2319. {
  2320. title: '账户ID',
  2321. align: 'center',
  2322. dataIndex: 'accountId'
  2323. },
  2324. {
  2325. title: '账户所属人',
  2326. align: 'center',
  2327. dataIndex: 'userName'
  2328. },
  2329. {
  2330. title: '账户状态',
  2331. align: 'center',
  2332. dataIndex: 'accountStatus',
  2333. scopedSlots: {customRender: 'accountStatus'}
  2334. },
  2335. {
  2336. title: '视频ID',
  2337. align: 'center',
  2338. dataIndex: 'photoId'
  2339. },
  2340. {
  2341. title: '关联创意总数(自定义创意)',
  2342. align: 'center',
  2343. dataIndex: 'relationCount'
  2344. },
  2345. {
  2346. title: '审核拒绝创意数',
  2347. align: 'center',
  2348. dataIndex: 'refuseCount',
  2349. scopedSlots: {customRender: 'refuseCount'}
  2350. },
  2351. {
  2352. title: '审核拒绝原因',
  2353. align: 'center',
  2354. dataIndex: 'refuseDetail',
  2355. scopedSlots: {customRender: 'refuseDetail'}
  2356. },
  2357. ],
  2358. passTheAuditLoading:false,
  2359. rejectTheAuditLoading:false,
  2360. metarialDownLoadLoading:false,
  2361. refuseReasonAll:null,
  2362. toutiaoMateriaLoading: false,
  2363. defaultCurrentToutiao: 1,
  2364. materiaDataTotalToutiao: 0,
  2365. materiaDataToutiao: [],
  2366. materiaColumnsToutiao: [
  2367. {
  2368. title: '账户ID',
  2369. align: 'center',
  2370. dataIndex: 'accountId'
  2371. },
  2372. {
  2373. title: '账户归属人',
  2374. align: 'center',
  2375. dataIndex: 'userName'
  2376. },
  2377. {
  2378. title: '账户状态',
  2379. align: 'center',
  2380. dataIndex: 'accountStatus',
  2381. scopedSlots: {customRender: 'accountStatus'}
  2382. },
  2383. {
  2384. title: '素材ID',
  2385. align: 'center',
  2386. dataIndex: 'materialId'
  2387. },
  2388. {
  2389. title: '素材关联创意数',
  2390. align: 'center',
  2391. dataIndex: 'relationCount'
  2392. }
  2393. ],
  2394. materiaModalType: '2',
  2395. materialUseDetailList: {},
  2396. usageDetailsStatus: false,
  2397. recordDetailVisible:false,
  2398. recordSignature: null,
  2399. recordColumns:[
  2400. {
  2401. title: '项目',
  2402. align: 'center',
  2403. dataIndex: 'projectName'
  2404. },
  2405. {
  2406. title: '账户Id',
  2407. align: 'center',
  2408. dataIndex: 'userId',
  2409. customRender: function (text, records) {
  2410. if(records.mediaId == '1' || records.mediaId == '3') {
  2411. return records.accountId
  2412. }else if(records.mediaId == '2' || records.mediaId == '4') {
  2413. return records.userId
  2414. }else {
  2415. return text
  2416. }
  2417. }
  2418. },
  2419. {
  2420. title: '媒体',
  2421. align: 'center',
  2422. dataIndex: 'mediaId',
  2423. customRender: function (text) {
  2424. if (text == '1' || text == '3') {
  2425. return '头条'
  2426. } else if (text == '2' || text == '4') {
  2427. return '快手'
  2428. } else {
  2429. return text
  2430. }
  2431. }
  2432. },
  2433. {
  2434. title: '同步人',
  2435. align: 'center',
  2436. dataIndex: 'userName'
  2437. },
  2438. {
  2439. title: '同步时间',
  2440. align: 'center',
  2441. dataIndex: 'createTime',
  2442. scopedSlots: { customRender: 'createTime' },
  2443. },
  2444. {
  2445. title: '结果',
  2446. align: 'center',
  2447. dataIndex: 'remarks'
  2448. }
  2449. ],
  2450. recordData:[],
  2451. recordIpagination: {
  2452. current: 1,
  2453. pageSize: 10,
  2454. // pageSizeOptions: ['10', '20', '30'],
  2455. showTotal: (total, range) => {
  2456. return range[0] + "-" + range[1] + " 共" + total + "条"
  2457. },
  2458. showQuickJumper: true,
  2459. // showSizeChanger:true,
  2460. // pageSizeOptions: ['10', '30', '50'],
  2461. total: 0,
  2462. onChange: (current, pageSize) => {
  2463. // 切换分页时的回调,
  2464. // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
  2465. this.recordIpagination.current = current;
  2466. this.recordIpagination.pageSize= pageSize;
  2467. this.handleGetRecordDetail(this.recordSignature)
  2468. }
  2469. },
  2470. ruleForm:{
  2471. projectId:'',
  2472. urlList:[],
  2473. urlListData:[]
  2474. },
  2475. loadingBatch:false,
  2476. batchUploadVisible:false,
  2477. controlLoading: false,
  2478. defaultCurrent: 1,
  2479. settlementColumns: [
  2480. {
  2481. title: '原视频',
  2482. dataIndex: 'input_video_url',
  2483. align: 'center',
  2484. width: 150,
  2485. scopedSlots: {customRender: 'input_video_url'}
  2486. },
  2487. {
  2488. title: '人脸',
  2489. dataIndex: 'input_image_url',
  2490. align: 'center',
  2491. width: 150,
  2492. scopedSlots: {customRender: 'input_image_url'}
  2493. },
  2494. {
  2495. title: '更换后视频',
  2496. dataIndex: 'output_video_url',
  2497. align: 'center',
  2498. width: 150,
  2499. scopedSlots: {customRender: 'output_video_url'}
  2500. },
  2501. {
  2502. title: '状态',
  2503. align: 'center',
  2504. dataIndex: 'status',
  2505. width: 100
  2506. },
  2507. {
  2508. title: '创建时间',
  2509. align: 'center',
  2510. dataIndex: 'create_time',
  2511. width: 160
  2512. },
  2513. {
  2514. title: '操作',
  2515. align: 'center',
  2516. dataIndex: 'actions',
  2517. width: 130,
  2518. scopedSlots: {customRender: 'actions'}
  2519. }
  2520. ],
  2521. faceShowStatus: false,
  2522. faceTypeStatus: false,
  2523. faceChangeList: {},
  2524. designList: [],
  2525. // 标签的数据
  2526. labelValue: [],
  2527. options: [],
  2528. departTree: [],
  2529. departTreeModality: [],
  2530. departTreeContent: [],
  2531. departTreeSence: [],
  2532. departTreeMod: [],
  2533. departValue: [],
  2534. departValueInfo: [],
  2535. materialInnovate:false,
  2536. departValueInfoModality: [],
  2537. departValueInfoContent: [],
  2538. departValueInfoSence: [],
  2539. departValueInfoMod: [],
  2540. tagInfoList: [],
  2541. tagInfoListVisible: false,
  2542. tagCode: null,
  2543. loadingTag: false,
  2544. showImageChouzhen: false,
  2545. showImageStr: null,
  2546. coverPreviewVisible: false,
  2547. chouzhen: false,
  2548. chouzhenList: [],
  2549. model: [],
  2550. modelNew: [],
  2551. goodsColumns: [
  2552. {
  2553. title: '封面预览',
  2554. // dataIndex: 'coverUrl',
  2555. // key: 'coverUrl',
  2556. dataIndex: 'url',
  2557. align: 'center',
  2558. scopedSlots: {
  2559. customRender: 'url',
  2560. },
  2561. },
  2562. {
  2563. title: '审核',
  2564. align: 'center',
  2565. dataIndex: 'action',
  2566. width: 100,
  2567. scopedSlots: {
  2568. customRender: 'action',
  2569. },
  2570. },
  2571. ],
  2572. editMaterialVisible:false,
  2573. editMaterialId:'',
  2574. loadingEdit:false,
  2575. addImageVisible: false,
  2576. addImageData: null,
  2577. projectId: '',
  2578. inputVisible: false,
  2579. inputValue: '',
  2580. labelCol: {
  2581. xs: {
  2582. span: 24,
  2583. },
  2584. sm: {
  2585. span: 5,
  2586. },
  2587. },
  2588. wrapperCol: {
  2589. xs: {
  2590. span: 24,
  2591. },
  2592. sm: {
  2593. span: 12,
  2594. },
  2595. },
  2596. queryParam: {},
  2597. dataElse: [],
  2598. ascription: {
  2599. clipId: [], //剪辑人id
  2600. shotId: [], //拍摄人id
  2601. planId: [], //策划id
  2602. planeId: [], //平面id
  2603. },
  2604. show: true,
  2605. visible: false,
  2606. visibleDetail: false,
  2607. personVisible: false,
  2608. confirmLoading: false,
  2609. loadingElse: false,
  2610. loadingImage: false,
  2611. loadingPerson: false,
  2612. activeKey: 'video',
  2613. active: '0',
  2614. examinelList: [
  2615. {
  2616. value: '0',
  2617. tab: '未审核',
  2618. },
  2619. {
  2620. value: '1',
  2621. tab: '已批准',
  2622. },
  2623. {
  2624. value: '2',
  2625. tab: '已驳回',
  2626. },
  2627. // {
  2628. // value: '3',
  2629. // tab: '有效视频',
  2630. // },
  2631. ],
  2632. // 表头
  2633. columns: [],
  2634. urlList: {
  2635. url: '',
  2636. md5: '',
  2637. name: '',
  2638. },
  2639. urlListImage: {
  2640. url: [],
  2641. md5: [],
  2642. name: [],
  2643. size: [],
  2644. },
  2645. watermarkUrl: {
  2646. url: '',
  2647. md5: '',
  2648. name: '',
  2649. },
  2650. url: {
  2651. list: '/ctop/materialInfo/listV2',
  2652. },
  2653. detail: false,
  2654. form: this.$form.createForm(this),
  2655. formPerson: this.$form.createForm(this),
  2656. editMaterialform: this.$form.createForm(this),
  2657. tags: [],
  2658. refuseFile: [],
  2659. refuseReason: '',
  2660. refuseReasonImage: '',
  2661. creativeCopywriter: '',
  2662. customDomain: '',
  2663. region: 'oss-cn-beijing',
  2664. bucket: 'ctop-media',
  2665. acceptVideo: 'video/mpeg,video/mp4',
  2666. acceptImage: 'image/jpeg,image/jpg,image/png',
  2667. accessKeyId: 'LTAIbNbqWzSOklQV',
  2668. accessKeySecret: '1rkPz7JNoXk8sJevPaeYHWqfkQXBGh',
  2669. showDataList:null,
  2670. showDataListVisible:false,
  2671. checkArr: [],
  2672. checkAll: false,
  2673. checkArrImage: [],
  2674. checkAllImage: false,
  2675. showUrl: '',
  2676. showUrlWater: '',
  2677. materialName: '',
  2678. materialDescribe: '',
  2679. name: '',
  2680. detail: null,
  2681. add: true,
  2682. id: '',
  2683. role: {
  2684. roleCode: '',
  2685. roleName: '',
  2686. },
  2687. key: '0',
  2688. mediaId: null,
  2689. sizeType: [],
  2690. size: null,
  2691. repeat: false,
  2692. excellent: 0,
  2693. code: '',
  2694. material: [],
  2695. imageArrList: [],
  2696. showDataBool: false,
  2697. kuaishouData: null,
  2698. douyinData: null,
  2699. bohui: '',
  2700. bohuiShow: false,
  2701. waterLoading: false,
  2702. videoTag: [],
  2703. videoVisibleChange: '',
  2704. allDetailData: null,
  2705. dataAllList: [],
  2706. dataSourceFace: [],
  2707. totalAll: 0,
  2708. activeCollapse: 0
  2709. }
  2710. },
  2711. filters: {
  2712. getDate(value) {
  2713. let date = new Date(value)
  2714. let y = date.getFullYear()
  2715. let MM = date.getMonth() + 1
  2716. MM = MM < 10 ? '0' + MM : MM
  2717. let d = date.getDate()
  2718. d = d < 10 ? '0' + d : d
  2719. return y + '-' + MM + '-' + d
  2720. },
  2721. },
  2722. computed: {
  2723. dirImg() {
  2724. let date = new Date()
  2725. let y = date.getFullYear()
  2726. let MM = date.getMonth() + 1
  2727. MM = MM < 10 ? '0' + MM : MM
  2728. let d = date.getDate()
  2729. d = d < 10 ? '0' + d : d
  2730. return 'image/' + y + '-' + MM + '-' + d + '/'
  2731. },
  2732. dirVideo() {
  2733. let date = new Date()
  2734. let y = date.getFullYear()
  2735. let MM = date.getMonth() + 1
  2736. MM = MM < 10 ? '0' + MM : MM
  2737. let d = date.getDate()
  2738. d = d < 10 ? '0' + d : d
  2739. return 'video/' + y + '-' + MM + '-' + d + '/'
  2740. },
  2741. },
  2742. created() {
  2743. this.queryParam.type = 'VIDEO'
  2744. this.queryParam.userId = this.userInfo().id
  2745. this.queryParam.status = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
  2746. this.active = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
  2747. // this.queryParam.status = key
  2748. this.ipagination.pageSize = 8
  2749. this.getParticipateList(null)
  2750. // /sys/user/getRoleInfo
  2751. getAction('/sys/user/getRoleInfo', {
  2752. userId: this.userInfo().id,
  2753. }).then((res) => {
  2754. this.role = res
  2755. })
  2756. getAction('/ctop/videoWatermarkTemplate/list').then((res) => {
  2757. if (res.success) {
  2758. this.sizeType = res.result.records
  2759. }
  2760. })
  2761. this.getTagListAll()
  2762. },
  2763. updated() {
  2764. stopOtherVideo()
  2765. },
  2766. mounted() {
  2767. setInterval(function () {
  2768. document.querySelectorAll('.el-cascader-node__label').forEach((el) => {
  2769. el.onclick = function () {
  2770. if (this.previousElementSibling) this.previousElementSibling.click()
  2771. }
  2772. })
  2773. }, 1000)
  2774. this.getDesignList()
  2775. getAction('/ctop/tagInfo/treeList', {
  2776. pageSize: 10000,
  2777. }).then((res) => {
  2778. console.log(res)
  2779. if (res.success) {
  2780. this.options = res.result.records
  2781. } else {
  2782. this.$message.error('数据请求失败!')
  2783. }
  2784. })
  2785. },
  2786. watch: {
  2787. $route: function (n, o) {
  2788. if (n.path == '/modules/material/videoMaterial') {
  2789. this.queryParam.userId = this.userInfo().id
  2790. this.queryParam.status = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
  2791. this.active = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
  2792. this.loadData()
  2793. }
  2794. },
  2795. 'queryParam.productId': function (n, o) {
  2796. if (n != '') {
  2797. this.getList(n)
  2798. this.checkArr = []
  2799. this.$refs.selectTableProject.keyValue = ''
  2800. this.$refs.selectTableProject.getData(n)
  2801. }
  2802. },
  2803. visibleDetail: function (n, o) {
  2804. if (!n) {
  2805. this.refuseFile = []
  2806. this.refuseReason = ''
  2807. closeAllVideoFun()
  2808. }
  2809. },
  2810. labelValue: {
  2811. deep: true,
  2812. handler(n, o) {
  2813. if (n.length >= 1) {
  2814. this.queryParam.tagCode = n[n.length - 1]
  2815. } else {
  2816. this.queryParam.tagCode = ''
  2817. }
  2818. // this.loadData()
  2819. },
  2820. },
  2821. batchUploadVisible:function(n,o){
  2822. if(!n){
  2823. md5Arr = []
  2824. this.ruleForm={
  2825. projectId:'',
  2826. urlList:[],
  2827. urlListData:[]
  2828. }
  2829. }
  2830. }
  2831. },
  2832. methods: {
  2833. metarialDownLoad(){
  2834. this.metarialDownLoadLoading = true
  2835. var params = {...this.queryParam}
  2836. if(params.createTime&&params.createTime.length>0){
  2837. // params.createTime = moment(params.createTime).format('YYYY-MM-DD')
  2838. params.startDate = moment(params.createTime[0]).format('YYYY-MM-DD')
  2839. params.endDate = moment(params.createTime[1]).format('YYYY-MM-DD')
  2840. params.createTime = null
  2841. }
  2842. downFile('/ctop/materialInfo/v2Excel', params).then((res) => {
  2843. this.metarialDownLoadLoading = false
  2844. let blob = new Blob([res], {
  2845. type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  2846. })
  2847. let downloadElement = document.createElement('a')
  2848. let href = window.URL.createObjectURL(blob) //创建下载的链接
  2849. downloadElement.href = href
  2850. downloadElement.download = `素材.xlsx` //下载后文件名
  2851. document.body.appendChild(downloadElement)
  2852. downloadElement.click() //点击下载
  2853. document.body.removeChild(downloadElement) //下载完成移除元素
  2854. window.URL.revokeObjectURL(href) //释放掉blob对象
  2855. })
  2856. },
  2857. handleMateriaTabsChange(e) {
  2858. const defaultData = this.materialUseDetailList;
  2859. this.defaultCurrentToutiao = 1;
  2860. this.materiaDataToutiao = defaultData['byteDance'] ? defaultData['byteDance'].slice(0, 10) : [];
  2861. this.defaultCurrentKuaishou = 1;
  2862. this.materiaDataKuaishou = defaultData['kuaishou'] ? defaultData['kuaishou'].slice(0, 10) : [];
  2863. },
  2864. handleRejectReasonCancel() {
  2865. this.rejectReasonStatus = false;
  2866. },
  2867. handleRejectReason(data) {
  2868. this.rejectReasonList = data.refuseInfo.refuseDetail.split('@#');
  2869. this.rejectReasonStatus = true;
  2870. },
  2871. materiaDataSizeChange(current, pageSize) {
  2872. this.materiaDataToutiao = [];
  2873. this.defaultCurrentToutiao = current;
  2874. const defaultData = this.materialUseDetailList['byteDance'];
  2875. this.materiaDataToutiao = [...defaultData.slice(10 * current - 10, 10 * current)];
  2876. },
  2877. materiaDataSizeChangeKuaishou(current, pageSize) {
  2878. this.materiaDataKuaishou = [];
  2879. this.defaultCurrentKuaishou = current;
  2880. const defaultData = this.materialUseDetailList['kuaishou'];
  2881. this.materiaDataKuaishou = [...defaultData.slice(10 * current - 10, 10 * current)];
  2882. },
  2883. handleProfitModalnCancel() {
  2884. this.materialUseDetailList = {};
  2885. this.materiaDataToutiao = [];
  2886. this.materiaDataTotalToutiao = 0;
  2887. this.defaultCurrentToutiao = 1;
  2888. this.materiaDataKuaishou = [];
  2889. this.materiaDataTotalKuaishou = 0;
  2890. this.defaultCurrentKuaishou = 1;
  2891. this.materiaModalType = '2';
  2892. this.usageDetailsStatus = false;
  2893. },
  2894. handleRecordCancel(){
  2895. this.recordDetailVisible = false;
  2896. },
  2897. handleRecord(data){
  2898. this.recordIpagination.current = 1
  2899. this.handleGetRecordDetail(data.code);
  2900. this.recordSignature = data.code;
  2901. this.recordDetailVisible = true;
  2902. this.toutiaoMateriaLoading = true;
  2903. this.kuaishouMateriaLoading = true;
  2904. },
  2905. handleGetRecordDetail(id) {
  2906. // 测试code '7b676546bfb50f1b992d44bd479a1536'
  2907. var params = {}
  2908. params.signature = id
  2909. params.pageNo = this.recordIpagination.current
  2910. params.pageSize = this.recordIpagination.pageSize
  2911. getAction('/ctop/materialUpload/uploadDetail', params).then(result => {
  2912. if (result.success) {
  2913. // 头条处理数据
  2914. this.recordData = result.result.list || []
  2915. this.recordIpagination.total = result.result.total || 0
  2916. }
  2917. else {
  2918. this.$message.error(result.message);
  2919. }
  2920. }).catch(error => {
  2921. console.log(error, 'eeee');
  2922. }).finally(() => {
  2923. this.toutiaoMateriaLoading = false;
  2924. this.kuaishouMateriaLoading = false;
  2925. });
  2926. },
  2927. handleUsageDetails(data) {
  2928. this.handleGetMaterialUseDetail(data.code);
  2929. this.usageDetailsStatus = true;
  2930. this.toutiaoMateriaLoading = true;
  2931. this.kuaishouMateriaLoading = true;
  2932. },
  2933. handleGetMaterialUseDetail(id) {
  2934. // 测试code '7b676546bfb50f1b992d44bd479a1536'
  2935. getAction('/materialUse/getMaterialUseDetail', {code: id}).then(result => {
  2936. if (result.success) {
  2937. const defaultData = result.result;
  2938. this.materialUseDetailList = defaultData;
  2939. // 头条处理数据
  2940. this.materiaDataToutiao = defaultData['byteDance'] ? defaultData['byteDance'].slice(0, 10) : [];
  2941. this.materiaDataTotalToutiao = defaultData['byteDance'] ? defaultData['byteDance'].length : 0;
  2942. // 快手处理数据
  2943. this.materiaDataKuaishou = defaultData['kuaishou'] ? defaultData['kuaishou'].slice(0, 10) : [];
  2944. this.materiaDataTotalKuaishou = defaultData['kuaishou'] ? defaultData['kuaishou'].length : 0;
  2945. }
  2946. else {
  2947. this.$message.error(result.message);
  2948. }
  2949. }).catch(error => {
  2950. console.log(error, 'eeee');
  2951. }).finally(() => {
  2952. this.toutiaoMateriaLoading = false;
  2953. this.kuaishouMateriaLoading = false;
  2954. });
  2955. },
  2956. ruleFormFile(file){
  2957. var bmf = new BMF()
  2958. var that = this
  2959. return new Promise(function (resolve, reject) {
  2960. bmf.md5(file, (err, md5) => {
  2961. let videoInfo = {name:file.name,md5:md5}
  2962. if(md5Arr.findIndex(item=>item==md5)>-1){
  2963. reject()
  2964. that.$message.error('素材'+file.name+'已经上传')
  2965. return
  2966. }else{
  2967. md5Arr.push(md5)
  2968. }
  2969. // that.ruleForm.urlList = []
  2970. fileCheck({
  2971. code: md5,
  2972. projectId: that.ruleForm.projectId,
  2973. }).then((res) => {
  2974. if (res.code == 0) {
  2975. that.$message.error('素材'+file.name+'已经上传')
  2976. reject()
  2977. } else {
  2978. resolve()
  2979. // reject()
  2980. }
  2981. })
  2982. })
  2983. })
  2984. },
  2985. ruleFormOverUpload(urlAll){
  2986. this.ruleForm.urlListData = urlAll.map(item=>{
  2987. return {
  2988. url:item.url,
  2989. planId:undefined,
  2990. clipId:undefined,
  2991. shotId:undefined,
  2992. modTagList:[],
  2993. modalityTagList:[],
  2994. senceTagList:[],
  2995. materialName:'',
  2996. materialInnovate:false
  2997. }
  2998. })
  2999. },
  3000. ruleFormRemoveUpload(file){
  3001. //media-1301855440.cos.ap-chongqing.myqcloud.com/video/2021-08-16/03-1629102879421.mp4
  3002. let index = this.ruleForm.urlListData.findIndex(item=>item.url==file.url)
  3003. md5Arr = []
  3004. if(index>-1){
  3005. this.ruleForm.urlListData.splice(index,1)
  3006. }
  3007. },
  3008. handleOkBatch(){
  3009. this.$refs.ruleForm.validate(valid => {
  3010. if(valid){
  3011. if(this.ruleForm.urlListData.length == 0){
  3012. this.$message.error('请上传视频素材')
  3013. return
  3014. }
  3015. this.loadingBatch = true
  3016. let params = {}
  3017. params.projectId = this.ruleForm.projectId
  3018. params.videoArray = this.ruleForm.urlListData.map(item=>{
  3019. return {
  3020. ...item,
  3021. ascription:{
  3022. planId:item.planId,
  3023. clipId:item.clipId,
  3024. shotId:item.shotId,
  3025. },
  3026. materialInnovate:item.materialInnovate?2:1
  3027. }
  3028. })
  3029. postAction('/insertV3',params).then(res=>{
  3030. this.loadingBatch = false
  3031. if(res.success){
  3032. md5Arr = []
  3033. this.$message.success('上传成功')
  3034. this.batchUploadVisible = false
  3035. this.loadData(1)
  3036. }else{
  3037. this.$message.error(res.message)
  3038. }
  3039. })
  3040. }else{
  3041. this.$message.error('有必填项未填')
  3042. }
  3043. })
  3044. },
  3045. syncDesign(){
  3046. let clipId = this.ruleForm.urlListData[0].clipId
  3047. let planId = this.ruleForm.urlListData[0].planId
  3048. let shotId = this.ruleForm.urlListData[0].shotId
  3049. this.ruleForm.urlListData = this.ruleForm.urlListData.map(item=>{
  3050. return {
  3051. ...item,
  3052. clipId,
  3053. planId,
  3054. shotId
  3055. }
  3056. })
  3057. },
  3058. syncTag(){
  3059. // modTagList
  3060. // senceTagList
  3061. // modalityTagList
  3062. let modTagList = this.ruleForm.urlListData[0].modTagList
  3063. let senceTagList = this.ruleForm.urlListData[0].senceTagList
  3064. let modalityTagList = this.ruleForm.urlListData[0].modalityTagList
  3065. this.ruleForm.urlListData = this.ruleForm.urlListData.map(item=>{
  3066. return {
  3067. ...item,
  3068. modTagList,
  3069. senceTagList,
  3070. modalityTagList
  3071. }
  3072. })
  3073. },
  3074. editMaterialName(item) {
  3075. this.editMaterialVisible = true
  3076. this.editMaterialId = item.id
  3077. this.$nextTick(()=>{
  3078. this.editMaterialform.setFieldsValue({name:item.materialName})
  3079. })
  3080. },
  3081. handleOkEditMaterialName(){
  3082. this.editMaterialform.validateFieldsAndScroll((err, values) => {
  3083. if (err) {
  3084. // 这里做逻辑处理
  3085. } else {
  3086. this.loadingEdit = true
  3087. let params={}
  3088. params.id = this.editMaterialId
  3089. params.name = values.name
  3090. postAction('/ctop/materialInfo/editName', params).then(res=>{
  3091. this.loadingEdit = false
  3092. if(res.success){
  3093. this.$message.success('修改成功')
  3094. this.editMaterialVisible = false
  3095. this.editMaterialform.resetFields()
  3096. }else{
  3097. this.$message.error(res.message)
  3098. }
  3099. })
  3100. }
  3101. })
  3102. },
  3103. // TODO 推送操作
  3104. handlePushData(list) {
  3105. const paramsData = {
  3106. projectId: this.faceShowList.projectId, // 项目选择
  3107. ascription: {
  3108. planId: 'e9ca23d68d884d4ebb19d07889727dae',
  3109. shotId: 'e9ca23d68d884d4ebb19d07889727dae',
  3110. clipId: 'e9ca23d68d884d4ebb19d07889727dae'
  3111. },
  3112. status: '1',
  3113. code: list.output_video_md5,
  3114. url: list.output_video_url && list.output_video_url.split(':')[1],
  3115. type: 'VIDEO',
  3116. userId: this.userInfo().id,
  3117. modalityTagList: this.departValueInfoModality, // 形式标签
  3118. senceTagList: this.departValueInfoSence, // 场景标签
  3119. modTagList: this.departValueInfoMod // 基调标签
  3120. };
  3121. const that = this;
  3122. this.$confirm({
  3123. title: '提示',
  3124. content: '是否进行推送操作',
  3125. onOk() {
  3126. fileInsertV2(paramsData).then(res => {
  3127. if (res.code === 0) {
  3128. that.handlePolicyOperationCancel();
  3129. that.$emit('sureface');
  3130. that.$message.success('素材已经同步到未审核列表,请进入查看');
  3131. }
  3132. else {
  3133. that.$message.error(res.message);
  3134. }
  3135. });
  3136. }
  3137. });
  3138. },
  3139. // 下载操作
  3140. handleDownLoadData(list) {
  3141. const randomTime = new Date().getTime() + '_check.mp4';
  3142. fetch(list.output_video_url)
  3143. .then(res => res.blob())
  3144. .then(blob => {
  3145. const a = document.createElement('a');
  3146. document.body.appendChild(a);
  3147. a.style.display = 'none';
  3148. // 使用获取到的blob对象创建的url
  3149. const url = window.URL.createObjectURL(blob);
  3150. a.href = url;
  3151. // 指定下载的文件名
  3152. a.download = randomTime;
  3153. a.click()
  3154. document.body.removeChild(a);
  3155. // 移除blob对象的url
  3156. window.URL.revokeObjectURL(url);
  3157. });
  3158. },
  3159. onShowSizeChange(current, pageSize) {
  3160. this.dataSourceFace = [];
  3161. this.defaultCurrent = current;
  3162. const defaultData = [...this.dataAllList];
  3163. this.dataSourceFace = [...defaultData.slice(2 * current - 2, 2 * current)];
  3164. },
  3165. handlePolicyOperationSure() {
  3166. this.defaultCurrent = 1;
  3167. this.faceShowStatus = false;
  3168. },
  3169. handlePolicyOperationCancel() {
  3170. this.defaultCurrent = 1;
  3171. this.faceShowStatus = false;
  3172. },
  3173. handleAllChangeFace() {
  3174. this.faceShowStatus = true;
  3175. this.controlLoading = true;
  3176. this.dataSourceFace = [];
  3177. postAction('http://faceswap.tjyourong.com.cn/jeecg-boot/task/query', {}).then(result => {
  3178. if (result.code === 0) {
  3179. const defaultData = result.data;
  3180. defaultData.forEach(item => {
  3181. item.create_time = item.create_time ? item.create_time.replace('T', ' ') : '-';
  3182. });
  3183. this.dataAllList = defaultData;
  3184. this.dataSourceFace = defaultData.slice(0, 2);
  3185. this.totalAll = defaultData.length ? defaultData.length : 0;
  3186. }
  3187. else {
  3188. this.dataAllList = [];
  3189. this.dataSourceFace = [];
  3190. this.totalAll = 0;
  3191. this.$message.error(result.message);
  3192. }
  3193. }).catch(error => {
  3194. console.log(error, 'eeee');
  3195. }).finally(() => {
  3196. this.controlLoading = false;
  3197. });
  3198. },
  3199. handleChangeFace(data) {
  3200. this.faceTypeStatus = true;
  3201. this.faceChangeList = data;
  3202. },
  3203. handleFaceCloseModal() {
  3204. this.faceTypeStatus = false;
  3205. },
  3206. handleFaceSureModal() {
  3207. this.searchQuery();
  3208. },
  3209. // 获取设计人员
  3210. getDesignList() {
  3211. postAction('/ctop/kuaishou/videoReport/getDesignList').then((res) => {
  3212. if (res.success) {
  3213. this.designList = res.result
  3214. }
  3215. })
  3216. },
  3217. changeTag(visible) {
  3218. if (this.videoVisibleChange != visible) {
  3219. this.videoVisibleChange = visible
  3220. this.videoTag = []
  3221. getAction('/ctop/materialTagInfo/list', { code: visible }).then((res) => {
  3222. this.videoTag = res.result.records.map((item) => {
  3223. return item.tagName
  3224. })
  3225. })
  3226. } else {
  3227. return
  3228. }
  3229. },
  3230. modalFormOkElse() {
  3231. this.getTagListAll()
  3232. },
  3233. clearChangjing(data){
  3234. if(data.includes(60158)
  3235. || data.includes(60159)
  3236. || data.includes(101)
  3237. || data.includes(104)
  3238. || data.includes(112)){
  3239. this.departValueInfoSence = []
  3240. }
  3241. },
  3242. handleOkTag(e) {
  3243. this.loadingTag = true
  3244. if(this.departValueInfoModality.includes(60158)
  3245. || this.departValueInfoModality.includes(60159)
  3246. || this.departValueInfoModality.includes(101)
  3247. || this.departValueInfoModality.includes(104)
  3248. || this.departValueInfoModality.includes(112)){
  3249. this.departValueInfoSence = []
  3250. }
  3251. var data = [
  3252. ...this.departValueInfoModality,
  3253. ...this.departValueInfoMod,
  3254. ...this.departValueInfoContent,
  3255. ...this.departValueInfoSence,
  3256. ]
  3257. var params = {}
  3258. params.id = this.id
  3259. params.materialInnovate = this.materialInnovate?2:1
  3260. fileEdit({
  3261. ...params
  3262. }).then((res) => {
  3263. })
  3264. postAction('/ctop/materialTagInfo/mark', {
  3265. code: this.tagCode,
  3266. tagList: data
  3267. }).then((res) => {
  3268. if (res.success) {
  3269. this.departValueInfoModality = []
  3270. this.departValueInfoMod = []
  3271. this.departValueInfoContent = []
  3272. this.departValueInfoSence = []
  3273. this.materialInnovate = false
  3274. this.loadingTag = false
  3275. this.tagInfoListVisible = false
  3276. this.loadData()
  3277. } else {
  3278. this.loadingTag = false
  3279. this.$message.error(res.message)
  3280. }
  3281. })
  3282. },
  3283. editTagList(item) {
  3284. this.tagInfoListVisible = true
  3285. this.materialInnovate = item.materialInnovate == 1?false:true
  3286. this.getTagListInfo(item.code)
  3287. this.tagCode = item.code
  3288. this.id = item.id
  3289. },
  3290. getTagListAll() {
  3291. this.departTree = []
  3292. this.departTreeModality = [] //形式
  3293. this.departTreeContent = [] // 内容
  3294. this.departTreeSence = [] // 场景
  3295. this.departTreeMod = [] //基调
  3296. this.getQueryTree(1, 'departTreeModality')
  3297. this.getQueryTree(2, 'departTreeMod')
  3298. this.getQueryTree(3, 'departTreeContent')
  3299. this.getQueryTree(4, 'departTreeSence')
  3300. },
  3301. getQueryTree(type, arr) {
  3302. getAction('/ctop/tagInfo/queryTreeList', {
  3303. categoryId: type,
  3304. }).then((res) => {
  3305. if (res.success) {
  3306. if (res.result) {
  3307. this[arr] = this.getTreeData(res.result)
  3308. }
  3309. }
  3310. })
  3311. },
  3312. getTreeData(data) {
  3313. for (var i = 0; i < data.length; i++) {
  3314. if (data[i].children) {
  3315. if (data[i].children.length < 1) {
  3316. // children若为空数组,则将children设为undefined
  3317. data[i].disabled = false
  3318. } else {
  3319. // // children若不为空数组,则继续 递归调用 本方法
  3320. data[i].disabled = true
  3321. this.getTreeData(data[i].children)
  3322. }
  3323. } else {
  3324. data[i].disabled = false
  3325. }
  3326. }
  3327. return data
  3328. },
  3329. showBoHui(item) {
  3330. this.bohui = item
  3331. this.bohuiShow = true
  3332. },
  3333. editImage(item, status) {
  3334. var params = {}
  3335. params.id = item.id
  3336. params.status = status
  3337. params.auditorId = this.userInfo().id
  3338. if (status == '1') {
  3339. } else {
  3340. params.refuseReason = this.refuseReasonImage
  3341. }
  3342. var updateArr = [params]
  3343. putAction('/ctop/MaterialImageInfo/batchEdit', updateArr).then((res) => {
  3344. console.log(res)
  3345. if (res.success) {
  3346. // this.coverPreviewVisible = false
  3347. getAction('/ctop/MaterialImageInfo/list', {
  3348. videoId: this.code,
  3349. }).then((res) => {
  3350. if (res.success) {
  3351. this.model = res.result.map((item, index) => {
  3352. return {
  3353. ...item,
  3354. key: index,
  3355. }
  3356. })
  3357. this.modelNew = this.model.filter((item, index) => {
  3358. return item.status == '0'
  3359. })
  3360. if (this.modelNew.length == 0) {
  3361. this.coverPreviewVisible = false
  3362. }
  3363. }
  3364. })
  3365. this.loadData()
  3366. } else {
  3367. this.$message.error(res.message)
  3368. }
  3369. })
  3370. },
  3371. editImageAll(status) {
  3372. this.checkArrImage
  3373. // var params = {}
  3374. // params.id = item.id
  3375. // params.status = status
  3376. var updateArr = []
  3377. if (status == '1') {
  3378. updateArr = this.checkArrImage.map((item) => {
  3379. return {
  3380. id: item,
  3381. status: status,
  3382. }
  3383. })
  3384. } else {
  3385. updateArr = this.checkArrImage.map((item) => {
  3386. return {
  3387. id: item,
  3388. status: status,
  3389. refuseReason: this.refuseReasonImage,
  3390. }
  3391. })
  3392. }
  3393. putAction('/ctop/MaterialImageInfo/batchEdit', updateArr).then((res) => {
  3394. if (res.success) {
  3395. // this.coverPreviewVisible = false
  3396. getAction('/ctop/MaterialImageInfo/list', {
  3397. videoId: this.code,
  3398. }).then((res) => {
  3399. if (res.success) {
  3400. this.checkArrImage = []
  3401. this.checkAllImage = false
  3402. this.model = res.result.map((item, index) => {
  3403. return {
  3404. ...item,
  3405. key: index,
  3406. }
  3407. })
  3408. }
  3409. })
  3410. this.loadData()
  3411. } else {
  3412. this.$message.error(res.message)
  3413. }
  3414. })
  3415. },
  3416. showData(item) {
  3417. if (item.byteDance || item.kuaiShou) {
  3418. this.showDataBool = true
  3419. this.kuaishouData = item.kuaiShou
  3420. this.douyinData = item.byteDance
  3421. } else {
  3422. this.$message.error('抖音和快手都无数据')
  3423. return
  3424. }
  3425. },
  3426. setSuccess() {
  3427. var params = {}
  3428. params.id = this.code
  3429. params.excellent = this.excellent == 1 ? 0 : 1
  3430. getAction('/ctop/materialInfo/excellent/set', params).then((res) => {
  3431. if (res.success) {
  3432. this.excellent = this.excellent == 1 ? 0 : 1
  3433. this.loadData(this.ipagination.current)
  3434. }
  3435. })
  3436. },
  3437. getData(className) {
  3438. return this.form.getFieldValue(className)
  3439. },
  3440. deleteData(id) {
  3441. deleteAction('/ctop/materialInfo/delete', {
  3442. id: id,
  3443. }).then((res) => {
  3444. if (res.success) {
  3445. this.$message.success('删除成功')
  3446. this.loadData()
  3447. } else {
  3448. this.$message.error(res.message)
  3449. }
  3450. })
  3451. },
  3452. filterOption(input, option) {
  3453. return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
  3454. },
  3455. moment,
  3456. tongbu(value) {
  3457. this.mediaId = value
  3458. // getAction('/ctop/project/queryById', { id: this.queryParam.projectId }).then((res) => {
  3459. // console.log(res)
  3460. // if (res.success) {
  3461. if (value == '1' || value == '3') {
  3462. this.$refs.check.getData('/ctop/userAllocation/getAccountListByUserIdAndProductId', {
  3463. userId: this.userInfo().id,
  3464. productId: this.queryParam.productId,
  3465. mediaId: value,
  3466. })
  3467. } else if (value == '2' || value == '4') {
  3468. this.$refs.accountCheckBytedance.getParticipateList(this.queryParam.productId)
  3469. // this.$refs.check.getData('/ctop/userAllocation/getAccountListByUserIdAndProductId', {
  3470. // userId: this.userInfo().id,
  3471. // productId: this.queryParam.productId,
  3472. // mediaId: value,
  3473. // })
  3474. }
  3475. // } else {
  3476. // this.$message.error('网络波动,请稍后再试')
  3477. // }
  3478. // })
  3479. },
  3480. implement(data) {
  3481. // {treeData:data,shieldBackwardSwitch:this.shieldBackwardSwitch}
  3482. var params = {}
  3483. params.mediaId = this.mediaId
  3484. params.materialArray = JSON.stringify(this.checkArr)
  3485. params.loginId = this.userInfo().id
  3486. params.userName = this.userInfo().realname
  3487. if (this.mediaId == '2') {
  3488. params.shieldBackwardSwitch = data.shieldBackwardSwitch?1:2
  3489. params.isMultiagent = !data.isMultiagent?1:2
  3490. }else{
  3491. params.isMultiagent = 1
  3492. }
  3493. params.accountArray = data.treeData ? JSON.stringify(data.treeData) : JSON.stringify(data)
  3494. console.log(params)
  3495. postAction('/ctop/materialUpload/uploadAccount', params).then((res) => {
  3496. if (res.code == 0) {
  3497. this.checkArr = []
  3498. this.checkAll = false
  3499. if(res.data){
  3500. this.showDataList = res.data
  3501. this.showDataListVisible = true
  3502. }else{
  3503. this.$message.success(res.message)
  3504. }
  3505. }
  3506. })
  3507. // /ctop/materialUpload/uploadAccount
  3508. },
  3509. downloadByBlobShowUrl() {
  3510. fetch(this.showUrl)
  3511. .then((res) => res.blob())
  3512. .then((blob) => {
  3513. const a = document.createElement('a')
  3514. document.body.appendChild(a)
  3515. a.style.display = 'none'
  3516. // 使用获取到的blob对象创建的url
  3517. const url = window.URL.createObjectURL(blob)
  3518. a.href = url
  3519. // 指定下载的文件名
  3520. a.download = this.materialName
  3521. a.click()
  3522. document.body.removeChild(a)
  3523. // 移除blob对象的url
  3524. window.URL.revokeObjectURL(url)
  3525. })
  3526. },
  3527. downloadByBlob() {
  3528. fetch(this.showUrlWater)
  3529. .then((res) => res.blob())
  3530. .then((blob) => {
  3531. const a = document.createElement('a')
  3532. document.body.appendChild(a)
  3533. a.style.display = 'none'
  3534. // 使用获取到的blob对象创建的url
  3535. const url = window.URL.createObjectURL(blob)
  3536. a.href = url
  3537. // 指定下载的文件名
  3538. a.download = this.name
  3539. a.click()
  3540. document.body.removeChild(a)
  3541. // 移除blob对象的url
  3542. window.URL.revokeObjectURL(url)
  3543. })
  3544. },
  3545. download(href, name) {
  3546. let eleLink = document.createElement('a')
  3547. eleLink.download = name
  3548. eleLink.href = href
  3549. eleLink.click()
  3550. eleLink.remove()
  3551. },
  3552. ...mapGetters(['nickname', 'avatar', 'userInfo']),
  3553. rejectTheAudit(){
  3554. if(this.checkArr.length == 0){
  3555. this.$message.error('请选择素材')
  3556. }else{
  3557. this.rejectTheAuditLoading = true
  3558. this.postDataAction('/ctop/materialInfo/batchEditStatus',
  3559. {ids:this.checkArr, status:'2',userId:this.userInfo().id,refuseReason:this.refuseReasonAll}).then(res=>{
  3560. this.rejectTheAuditLoading = false
  3561. if(res.success){
  3562. this.$message.success('批量驳回已完成')
  3563. this.refuseReasonAll = null
  3564. this.checkArr = []
  3565. this.searchQuery()
  3566. }else{
  3567. this.refuseReasonAll = null
  3568. this.$message.error(res.message)
  3569. }
  3570. })
  3571. }
  3572. },
  3573. passTheAudit() {
  3574. if(this.checkArr.length == 0){
  3575. this.$message.error('请选择素材')
  3576. }else{
  3577. this.passTheAuditLoading = true
  3578. this.postDataAction('/ctop/materialInfo/batchEditStatus', {ids:this.checkArr, status:'1',userId:this.userInfo().id}).then(res=>{
  3579. this.passTheAuditLoading = false
  3580. if(res.success){
  3581. this.$message.success(res.message)
  3582. this.checkArr = []
  3583. this.searchQuery()
  3584. }else{
  3585. this.$message.error(res.message)
  3586. }
  3587. })
  3588. }
  3589. },
  3590. onCheckAllChange() {
  3591. if (this.checkAll) {
  3592. this.checkArr = []
  3593. } else {
  3594. this.checkArr = this.dataSource.map((item) => {
  3595. return item.id
  3596. })
  3597. }
  3598. this.checkAll = !this.checkAll
  3599. },
  3600. onCheckAllImageChange() {
  3601. if (this.checkAllImage) {
  3602. this.checkArrImage = []
  3603. } else {
  3604. this.checkArrImage = this.model.map((item) => {
  3605. return item.id
  3606. })
  3607. }
  3608. this.checkAllImage = !this.checkAllImage
  3609. },
  3610. searchRe() {
  3611. this.queryParam = {
  3612. type: 'VIDEO',
  3613. userId: this.userInfo().id,
  3614. status: this.active,
  3615. productId: '',
  3616. }
  3617. this.$refs.selectTable.keyValue = ''
  3618. this.$refs.selectTable.getData()
  3619. this.$refs.selectTableProject.keyValue = ''
  3620. this.$refs.selectTableProject.getData()
  3621. this.labelValue = []
  3622. this.loadData(1)
  3623. },
  3624. getList(value) {
  3625. // if (value) {
  3626. // // this.mediaId = this.dataElse.filter(item => {
  3627. // // if (value == item.projectId) {
  3628. // // return item
  3629. // // }
  3630. // // })[0].mediaId
  3631. // getAction('/ctop/product/getUserProductList', {
  3632. // userId: this.userInfo().id,
  3633. // productId: value,
  3634. // }).then((res) => {
  3635. // if (res.code == 0) {
  3636. // this.mediaId = res.result.records[0].mediaId
  3637. // }
  3638. // })
  3639. // }
  3640. this.loadData()
  3641. },
  3642. onChangeCheckImage(checkedList) {
  3643. if (checkedList.length == 0) {
  3644. this.checkAllImage = false
  3645. }
  3646. },
  3647. onChangeCheck(checkedList) {
  3648. if (checkedList.length == 0) {
  3649. this.checkAll = false
  3650. }
  3651. },
  3652. handleClose(removedTag) {
  3653. const tags = this.tags.filter((tag) => tag !== removedTag)
  3654. this.tags = tags
  3655. },
  3656. showInput() {
  3657. this.inputVisible = true
  3658. this.$nextTick(function () {
  3659. this.$refs.input.focus()
  3660. })
  3661. },
  3662. handleInputChange(e) {
  3663. this.inputValue = e.target.value
  3664. },
  3665. handleInputConfirm() {
  3666. const inputValue = this.inputValue
  3667. let tags = this.tags
  3668. if (inputValue && tags.indexOf(inputValue) === -1) {
  3669. tags = [...tags, inputValue]
  3670. }
  3671. Object.assign(this, {
  3672. tags,
  3673. inputVisible: false,
  3674. inputValue: '',
  3675. })
  3676. },
  3677. getWater() {
  3678. this.waterLoading = true
  3679. var params = qs.stringify({
  3680. id: this.id,
  3681. watermarkTemplateId: this.size,
  3682. userId:this.userInfo().id
  3683. })
  3684. postAction('/ctop/materialInfo/watermark', params).then((res) => {
  3685. if (res.success) {
  3686. // getAction("/ctop/videoWatermarkTask/list").then(res=>{
  3687. // console.log(res)
  3688. // })
  3689. this.$message.success('水印素材生成中')
  3690. this.visibleDetail = false
  3691. this.refuseFile = []
  3692. this.refuseReason = ''
  3693. closeAllVideoFun()
  3694. this.loadData()
  3695. this.waterLoading = false
  3696. }
  3697. })
  3698. },
  3699. showDetail(item) {
  3700. this.visibleDetail = true
  3701. this.showUrl = item.url
  3702. this.id = item.id
  3703. this.code = item.code
  3704. this.excellent = item.excellent
  3705. this.allDetailData = item
  3706. if (this.active == '2') {
  3707. this.refuseReason = item.refuseReason
  3708. this.refuseFile = item.refuseFile ? JSON.parse(item.refuseFile) : null
  3709. } else if (this.active == '1') {
  3710. this.creativeCopywriter = item.creativeCopywriter
  3711. this.refuseReason = ''
  3712. this.refuseFile = []
  3713. } else {
  3714. this.refuseReason = ''
  3715. this.refuseFile = []
  3716. }
  3717. getAction('/ctop/materialInfo/getDetail', {
  3718. materialId: item.id,
  3719. }).then((res) => {
  3720. this.detail = res
  3721. this.size =
  3722. res.parameter.width == '1080' ? 3 : res.parameter.width == '1920' ? 1 : res.parameter.width == '1280' ? 2 : 4
  3723. })
  3724. getAction('/ctop/materialInfo/queryById', {
  3725. id: item.id,
  3726. }).then((res) => {
  3727. if (res.success) {
  3728. this.showUrlWater = res.result.watermarkUrl
  3729. this.name = res.result.watermarkCode
  3730. this.materialName = res.result.materialName
  3731. } else {
  3732. this.showUrlWater = null
  3733. this.name = null
  3734. }
  3735. })
  3736. getAction('/ctop/MaterialImageInfo/list', {
  3737. videoId: item.code,
  3738. }).then((res) => {
  3739. console.log(res)
  3740. if (res.success) {
  3741. this.model = res.result.map((item, index) => {
  3742. return {
  3743. ...item,
  3744. key: index,
  3745. }
  3746. })
  3747. }
  3748. })
  3749. this.getTagListInfo(item.code)
  3750. },
  3751. getTagListInfo(md5) {
  3752. this.departValueInfoModality = []
  3753. this.departValueInfoMod = []
  3754. this.departValueInfoContent = []
  3755. this.departValueInfoSence = []
  3756. getAction('/ctop/materialTagInfo/detail', {
  3757. code: md5,
  3758. }).then((res) => {
  3759. if (res.success) {
  3760. // ...res.contentTagList,
  3761. this.tagInfoList = [...res.modalityTagList, ...res.senceTagList, ...res.modTagList]
  3762. if (this.tagInfoListVisible) {
  3763. this.departValueInfoModality = res.modalityTagList.map((item) => {
  3764. return item.tagId
  3765. })
  3766. this.departValueInfoMod = res.modTagList.map((item) => {
  3767. return item.tagId
  3768. })
  3769. // this.departValueInfoContent = res.contentTagList.map((item) => {
  3770. // return item.tagId
  3771. // })
  3772. this.departValueInfoSence = res.senceTagList.map((item) => {
  3773. return item.tagId
  3774. })
  3775. }
  3776. }
  3777. })
  3778. },
  3779. coverPreviewShowModal(item, index) {
  3780. console.log(this.model)
  3781. this.modelNew = this.model.filter((items) => {
  3782. return items.status == 0
  3783. })
  3784. if (this.modelNew.length > 0) {
  3785. this.coverPreviewVisible = true
  3786. }
  3787. },
  3788. okEditShow(item, editStatus) {
  3789. if (editStatus == '2') {
  3790. var params = {}
  3791. params.id = item.id
  3792. params.auditorId = this.userInfo().id
  3793. params.refuseReason = this.refuseReason
  3794. var data = this.refuseFile.map((item) => {
  3795. return 'https:' + item
  3796. })
  3797. params.refuseFile = JSON.stringify(data)
  3798. params.status = editStatus
  3799. fileEdit(params).then((res) => {
  3800. this.refuseFile = []
  3801. this.refuseReason = ''
  3802. this.loadData()
  3803. })
  3804. } else if (editStatus == '1') {
  3805. var params = {}
  3806. params.id = item.id
  3807. params.auditorId = this.userInfo().id
  3808. params.creativeCopywriter = this.refuseReason
  3809. params.status = editStatus
  3810. fileEdit(params).then((res) => {
  3811. this.refuseReason = ''
  3812. this.loadData()
  3813. })
  3814. }
  3815. },
  3816. okEdit(e) {
  3817. this.edit(null, this.active, '2')
  3818. },
  3819. handleSearch(value) {},
  3820. personEdit(item, status) {
  3821. this.add = false
  3822. this.personVisible = true
  3823. this.getProjectId(item.projectId)
  3824. getAction('/ctop/materialInfo/getDetail', {
  3825. materialId: item.id,
  3826. }).then((res) => {
  3827. this.code = item.code
  3828. if (res.ascription) {
  3829. this.formPerson.setFieldsValue({
  3830. clipId: res.ascription.clipId,
  3831. planId: res.ascription.planId,
  3832. shotId: res.ascription.shotId,
  3833. })
  3834. }
  3835. })
  3836. },
  3837. edit(item, status, editStatus) {
  3838. if (status == '0' || status == '1') {
  3839. if (editStatus == '2') {
  3840. var params = {}
  3841. params.id = this.id
  3842. params.auditorId = this.userInfo().id
  3843. params.refuseReason = this.refuseReason
  3844. var data = this.refuseFile.map((item) => {
  3845. return 'https:' + item
  3846. })
  3847. params.refuseFile = JSON.stringify(data)
  3848. params.status = editStatus
  3849. fileEdit(params).then((res) => {
  3850. this.refuseFile = []
  3851. this.refuseReason = ''
  3852. this.loadData()
  3853. this.visibleDetail = false
  3854. closeAllVideoFun()
  3855. })
  3856. } else {
  3857. fileEdit({
  3858. id: this.id,
  3859. status: editStatus,
  3860. auditorId: this.userInfo().id,
  3861. creativeCopywriter: this.refuseReason,
  3862. }).then((res) => {
  3863. this.refuseFile = []
  3864. this.refuseReason = ''
  3865. this.loadData()
  3866. this.visibleDetail = false
  3867. closeAllVideoFun()
  3868. })
  3869. }
  3870. } else {
  3871. this.add = false
  3872. this.visible = true
  3873. this.getProjectId(item.projectId)
  3874. getAction('/ctop/materialInfo/getDetail', {
  3875. materialId: item.id,
  3876. }).then((res) => {
  3877. if (this.activeKey == 'image') {
  3878. this.form.setFieldsValue({
  3879. projectId: item.projectId,
  3880. clipId: res.ascription.clipId,
  3881. planeId: res.ascription.planeId,
  3882. materialDescribe: item.materialDescribe,
  3883. })
  3884. } else {
  3885. this.form.setFieldsValue({
  3886. projectId: item.projectId,
  3887. clipId: res.ascription.clipId,
  3888. planId: res.ascription.planId,
  3889. shotId: res.ascription.shotId,
  3890. materialDescribe: item.materialDescribe,
  3891. })
  3892. }
  3893. this.tags = res.tag
  3894. this.urlList.url = item.url
  3895. this.urlList.md5 = item.code
  3896. this.urlList.name = item.materialName
  3897. this.watermarkUrl.url = item.watermarkUrl
  3898. this.watermarkUrl.md5 = item.watermarkCode
  3899. this.watermarkUrl.name = item.watermarkMaterialName
  3900. this.id = item.id
  3901. })
  3902. }
  3903. },
  3904. closePerson() {
  3905. this.personVisible = false
  3906. },
  3907. handleOkPerson() {
  3908. this.loadingPerson = true
  3909. this.formPerson.validateFieldsAndScroll((err, values) => {
  3910. if (err) {
  3911. // 这里做逻辑处理
  3912. } else {
  3913. var params = {
  3914. planId: values.planId,
  3915. shotId: values.shotId,
  3916. clipId: values.clipId,
  3917. materialId: this.code,
  3918. }
  3919. fileEditAll(params).then((res) => {
  3920. console.log(res)
  3921. if (res.success) {
  3922. this.$message.success('修改成功')
  3923. this.loadingPerson = false
  3924. this.closePerson()
  3925. this.loadData()
  3926. } else {
  3927. this.$message.error(res.message)
  3928. }
  3929. })
  3930. }
  3931. })
  3932. },
  3933. handleOkImage() {
  3934. // if(this.urlListImage.url.length>0){
  3935. var params = {}
  3936. params.projectId = this.addImageData.projectId
  3937. params.videoId = this.addImageData.code
  3938. params.imageArr = this.imageArrList
  3939. this.loadingImage = true
  3940. postAction('/insertImage', params).then((res) => {
  3941. console.log(res)
  3942. if (res.code == 0) {
  3943. this.urlListImage = {
  3944. url: [],
  3945. md5: [],
  3946. name: [],
  3947. size: [],
  3948. }
  3949. this.imageArrList = []
  3950. this.addImageVisible = false
  3951. this.loadingImage = false
  3952. this.loadData()
  3953. } else {
  3954. this.loadingImage = false
  3955. }
  3956. })
  3957. // }
  3958. },
  3959. handleOk() {
  3960. this.form.validateFieldsAndScroll((err, values) => {
  3961. if (err) {
  3962. // 这里做逻辑处理
  3963. } else {
  3964. this.loadingElse = true
  3965. var params = {
  3966. ...values,
  3967. }
  3968. var roleCode = {}
  3969. for (const key in this.role) {
  3970. if (key == 'roleCode') {
  3971. this.role[key] = this.role[key] + 'Id'
  3972. roleCode[this.role[key]] = this.userInfo().id
  3973. }
  3974. }
  3975. params.id = this.add ? null : this.id
  3976. params.code = this.urlList.md5
  3977. params.url = this.urlList.url
  3978. params.materialName = this.urlList.name
  3979. params.watermarkCode = this.watermarkUrl.md5
  3980. params.watermarkUrl = this.watermarkUrl.url
  3981. params.watermarkMaterialName = this.watermarkUrl.name
  3982. params.userId = this.userInfo().id
  3983. params.projectId = values.projectId
  3984. params.materialDescribe = values.materialDescribe
  3985. params.type = 'VIDEO'
  3986. // params.tagList = values.tagList
  3987. params.ascription =
  3988. this.activeKey == 'image'
  3989. ? roleCode
  3990. : {
  3991. planId: values.planId,
  3992. shotId: values.shotId,
  3993. clipId: values.clipId,
  3994. }
  3995. params.tag = this.tags
  3996. params.imageArr = this.imageArrList
  3997. params.materialInnovate = values.materialInnovate?2:1
  3998. if (this.add) {
  3999. fileInsertV2(params).then((res) => {
  4000. if (res.success) {
  4001. this.form.resetFields()
  4002. this.urlList = {
  4003. url: '',
  4004. md5: '',
  4005. name: '',
  4006. }
  4007. this.watermarkUrl = {
  4008. url: '',
  4009. md5: '',
  4010. name: '',
  4011. }
  4012. this.urlListImage = {
  4013. url: [],
  4014. md5: [],
  4015. name: [],
  4016. size: [],
  4017. }
  4018. this.imageArrList = []
  4019. this.tags = []
  4020. this.loadData()
  4021. this.visible = false
  4022. this.add = true
  4023. for (const key in this.role) {
  4024. if (key == 'roleCode') {
  4025. this.role[key] = this.role[key].substr(0, this.role[key].length - 2)
  4026. }
  4027. }
  4028. this.$message.success('素材上传成功')
  4029. this.loadingElse = false
  4030. // this.departValue = []
  4031. } else {
  4032. this.$message.error(res.message)
  4033. this.loadingElse = false
  4034. }
  4035. })
  4036. } else {
  4037. fileEdit({
  4038. ...params,
  4039. status: '0',
  4040. }).then((res) => {
  4041. if (res.success) {
  4042. this.form.resetFields()
  4043. this.urlList = {
  4044. url: '',
  4045. md5: '',
  4046. name: '',
  4047. }
  4048. this.watermarkUrl = {
  4049. url: '',
  4050. md5: '',
  4051. name: '',
  4052. }
  4053. this.tags = []
  4054. this.loadData()
  4055. this.visible = false
  4056. this.add = true
  4057. this.loading = false
  4058. this.loadingElse = false
  4059. for (const key in this.role) {
  4060. if (key == 'roleCode') {
  4061. this.role[key] = this.role[key].substr(0, this.role[key].length - 2)
  4062. }
  4063. }
  4064. } else {
  4065. this.$message.error(res.message)
  4066. this.loading = false
  4067. this.loadingElse = false
  4068. }
  4069. })
  4070. }
  4071. }
  4072. })
  4073. },
  4074. close() {
  4075. this.visible = false
  4076. this.dataElse = []
  4077. this.form.resetFields()
  4078. this.urlList = {
  4079. url: '',
  4080. md5: '',
  4081. name: '',
  4082. }
  4083. this.tags = []
  4084. this.urlListImage = {
  4085. url: [],
  4086. md5: [],
  4087. name: [],
  4088. size: [],
  4089. }
  4090. this.imageArrList = []
  4091. },
  4092. addImage(item) {
  4093. this.addImageVisible = true
  4094. this.addImageData = item
  4095. },
  4096. showImage(item) {
  4097. this.chouzhen = true
  4098. this.chouzhenList = []
  4099. var params = {
  4100. videoSignature: item.code,
  4101. pageSize: 20,
  4102. pageNo: 1,
  4103. }
  4104. getAction('/cutFrame/material/list', params).then((res) => {
  4105. console.log(res)
  4106. if (res.success) {
  4107. this.chouzhenList.push(...res.result.records)
  4108. }
  4109. })
  4110. },
  4111. closeImage() {
  4112. this.addImageVisible = false
  4113. this.urlListImage = {
  4114. url: [],
  4115. md5: [],
  4116. name: [],
  4117. size: [],
  4118. }
  4119. this.imageArrList = []
  4120. },
  4121. onChange(date, dateString) {},
  4122. callbackTwo(key) {
  4123. this.checkAll = false
  4124. this.checkArr = []
  4125. if (key == '3') {
  4126. this.url.list = '/ctop/materialInfo/effiMaterialInfo'
  4127. this.queryParam = {}
  4128. } else {
  4129. this.url.list = '/ctop/materialInfo/listV2'
  4130. this.queryParam = {
  4131. ...this.queryParam,
  4132. status: key,
  4133. }
  4134. if (this.labelValue.length >= 1) {
  4135. this.queryParam.tagCode = this.labelValue[this.labelValue.length - 1]
  4136. } else {
  4137. this.queryParam.tagCode = ''
  4138. }
  4139. if (this.form.getFieldValue('projectId')) {
  4140. this.form.setFieldsValue({
  4141. projectId: '',
  4142. })
  4143. }
  4144. }
  4145. // if (this.form.getFieldValue('projectId')) {
  4146. // this.form.setFieldsValue({
  4147. // projectId: ''
  4148. // })
  4149. // }
  4150. // this.queryParam.status = key
  4151. this.loadData(1)
  4152. },
  4153. removeUpload() {
  4154. this.form.setFieldsValue({
  4155. // contentTagList: null,
  4156. modalityTagList: null,
  4157. modTagList: null,
  4158. senceTagList: null,
  4159. })
  4160. },
  4161. overUpload(urlAll) {
  4162. console.log(urlAll)
  4163. this.confirmLoading = true
  4164. this.repeat = false
  4165. this.urlList.url = urlAll[0].url
  4166. this.$message.success('上传成功')
  4167. getAction('/ctop/materialTagInfo/detail', {
  4168. code: this.urlList.md5,
  4169. }).then((res) => {
  4170. if (res.success) {
  4171. if (res.modalityTagList.length > 0) {
  4172. this.form.setFieldsValue({
  4173. // contentTagList: res.contentTagList.map((item) => {
  4174. // return item.tagId
  4175. // }),
  4176. modalityTagList: res.modalityTagList.map((item) => {
  4177. return item.tagId
  4178. }),
  4179. modTagList: res.modTagList.map((item) => {
  4180. return item.tagId
  4181. }),
  4182. senceTagList: res.senceTagList.map((item) => {
  4183. return item.tagId
  4184. }),
  4185. })
  4186. }
  4187. // this.tagInfoList = [...res.modalityTagList, ...res.contentTagList, ...res.senceTagList, ...res.modTagList]
  4188. // if (this.tagInfoListVisible) {
  4189. // this.departValueInfoModality = res.modalityTagList.map((item) => {
  4190. // return item.tagId
  4191. // })
  4192. // this.departValueInfoMod = res.modTagList.map((item) => {
  4193. // return item.tagId
  4194. // })
  4195. // this.departValueInfoContent = res.contentTagList.map((item) => {
  4196. // return item.tagId
  4197. // })
  4198. // this.departValueInfoSence = res.senceTagList.map((item) => {
  4199. // return item.tagId
  4200. // })
  4201. // }
  4202. }
  4203. })
  4204. },
  4205. deleteImage(url) {
  4206. console.log(url, this.urlListImage.url)
  4207. var index = this.imageArrList.findIndex((v) => v.url === url)
  4208. this.imageArrList.splice(index, 1)
  4209. console.log(index)
  4210. },
  4211. overUploadImage(urlAll) {
  4212. // var index = this.urlList.url.findIndex(item => item === urlAll[0])
  4213. // var data = { url: urlAll[0], code: this.urlList.md5[index], name: this.urlList.name[index] }
  4214. // this.imageArr.push(data)
  4215. var that = this
  4216. that.material = []
  4217. that.imageArrList = []
  4218. var img
  4219. if (urlAll.length > 0) {
  4220. for (var i = 0; i < urlAll.length; i++) {
  4221. that.imageArrList.push({
  4222. // width: img.width,
  4223. // height: img.height,
  4224. // size: this.urlListImage.size[i],
  4225. code: this.urlListImage.md5[i],
  4226. url: urlAll[i].url,
  4227. materialName: this.urlListImage.name[i],
  4228. })
  4229. img = new Image()
  4230. img.src = urlAll[i].url
  4231. // if (img.complete) {
  4232. // // 打印
  4233. // if (img.width == 720) {
  4234. // if (img.height == 1280) {
  4235. // that.material.push(true)
  4236. // } else {
  4237. // that.material.push(false)
  4238. // }
  4239. // } else if (img.width == 1080) {
  4240. // if (img.height == 1920) {
  4241. // that.material.push(true)
  4242. // } else {
  4243. // that.material.push(false)
  4244. // }
  4245. // } else if (img.width == 1280) {
  4246. // if (img.height == 720) {
  4247. // that.material.push(true)
  4248. // } else {
  4249. // that.material.push(false)
  4250. // }
  4251. // } else if (img.width == 1920) {
  4252. // if (img.height == 1080) {
  4253. // that.material.push(true)
  4254. // } else {
  4255. // that.material.push(false)
  4256. // }
  4257. // } else {
  4258. // that.material.push(false)
  4259. // }
  4260. // } else {
  4261. // img.onload = () => {
  4262. // if (img.width == 720) {
  4263. // if (img.height == 1280) {
  4264. // that.material.push(true)
  4265. // } else {
  4266. // that.material.push(false)
  4267. // }
  4268. // } else if (img.width == 1080) {
  4269. // if (img.height == 1920) {
  4270. // that.material.push(true)
  4271. // } else {
  4272. // that.material.push(false)
  4273. // }
  4274. // } else if (img.width == 1280) {
  4275. // if (img.height == 720) {
  4276. // that.material.push(true)
  4277. // } else {
  4278. // that.material.push(false)
  4279. // }
  4280. // } else if (img.width == 1920) {
  4281. // if (img.height == 1080) {
  4282. // that.material.push(true)
  4283. // } else {
  4284. // that.material.push(false)
  4285. // }
  4286. // } else {
  4287. // that.material.push(false)
  4288. // }
  4289. // }
  4290. // }
  4291. }
  4292. } else {
  4293. }
  4294. },
  4295. file(file) {
  4296. var bmf = new BMF()
  4297. var that = this
  4298. return new Promise(function (resolve, reject) {
  4299. bmf.md5(file, (err, md5) => {
  4300. that.urlList.name = file.name
  4301. that.urlList.md5 = md5
  4302. fileCheck({
  4303. code: md5,
  4304. projectId: that.getData('projectId'),
  4305. }).then((res) => {
  4306. if (res.code == 0) {
  4307. that.$message.error('此素材已经上传')
  4308. that.repeat = true
  4309. reject()
  4310. } else {
  4311. that.repeat = false
  4312. resolve()
  4313. // reject()
  4314. }
  4315. })
  4316. })
  4317. })
  4318. },
  4319. fileWater(file) {
  4320. var bmf = new BMF()
  4321. var that = this
  4322. var codeData = that.urlList.md5 != '' ? that.urlList.md5 : that.addImageData.code
  4323. console.log(codeData)
  4324. this.urlListImage = {
  4325. url: [],
  4326. md5: [],
  4327. name: [],
  4328. size: [],
  4329. }
  4330. return new Promise(function (resolve, reject) {
  4331. bmf.md5(file, (err, md5) => {
  4332. that.urlListImage.name.push(file.name)
  4333. that.urlListImage.md5.push(md5)
  4334. that.urlListImage.size.push(file.size)
  4335. resolve()
  4336. // fileCheckImage({
  4337. // code: md5,
  4338. // projectId: that.getData('projectId'),
  4339. // videoId: codeData,
  4340. // }).then((res) => {
  4341. // if (res.code == 0) {
  4342. // that.$message.error('此素材已经上传')
  4343. // reject()
  4344. // } else {
  4345. // // reject()
  4346. // }
  4347. // })
  4348. })
  4349. })
  4350. },
  4351. getParticipateList(value) {
  4352. getAction('/ctop/projectMember/participateListV2', {
  4353. userId: this.userInfo().id,
  4354. pageSize: 50,
  4355. pageNo: 1,
  4356. projectName: value,
  4357. }).then((res) => {
  4358. if (res.code == 0) {
  4359. this.dataElse = res.result.records
  4360. }
  4361. })
  4362. },
  4363. getProjectId(items) {
  4364. this.form.resetFields(['clipId', 'planId', 'shotId'])
  4365. getAction('/ctop/projectMember/getMemberList', {
  4366. projectId: items,
  4367. }).then((res) => {
  4368. if (res.code == 0) {
  4369. this.ascription.clipId = res.result.filter((item) => {
  4370. if (
  4371. item.roleCode == 'clip' ||
  4372. item.roleCode == 'plan' ||
  4373. item.roleCode == 'designTeamLeader' ||
  4374. item.roleCode == 'shot' ||
  4375. item.roleCode == 'plane' ||
  4376. item.roleCode == 'planeLeader'||
  4377. item.roleCode == 'externalClip'
  4378. ) {
  4379. return {
  4380. userId: item.userId,
  4381. userName: item.userName,
  4382. }
  4383. }
  4384. })
  4385. this.ascription.shotId = res.result.filter((item) => {
  4386. if (
  4387. item.roleCode == 'clip' ||
  4388. item.roleCode == 'shot' ||
  4389. item.roleCode == 'plan' ||
  4390. item.roleCode == 'designTeamLeader' ||
  4391. item.roleCode == 'plane' ||
  4392. item.roleCode == 'planeLeader'||
  4393. item.roleCode == 'externalClip'
  4394. ) {
  4395. return {
  4396. userId: item.userId,
  4397. userName: item.userName,
  4398. }
  4399. }
  4400. })
  4401. this.ascription.planId = res.result.filter((item) => {
  4402. if (
  4403. item.roleCode == 'shot' ||
  4404. item.roleCode == 'plan' ||
  4405. item.roleCode == 'designTeamLeader' ||
  4406. item.roleCode == 'clip' ||
  4407. item.roleCode == 'plane' ||
  4408. item.roleCode == 'planeLeader'||
  4409. item.roleCode == 'externalClip'
  4410. ) {
  4411. return {
  4412. userId: item.userId,
  4413. userName: item.userName,
  4414. }
  4415. }
  4416. })
  4417. this.ascription.planeId = res.result.filter((item) => {
  4418. if (item.roleCode == 'plane') {
  4419. return {
  4420. userId: item.userId,
  4421. userName: item.userName,
  4422. }
  4423. }
  4424. })
  4425. }
  4426. })
  4427. },
  4428. getDataSource(page, pageSize) {
  4429. this.ipagination.current = page
  4430. this.ipagination.pageSize = pageSize
  4431. this.checkArr = []
  4432. this.checkAll = false
  4433. this.loadData()
  4434. },
  4435. getDataSourceSize(page, pageSize) {
  4436. this.ipagination.current = 1
  4437. this.ipagination.pageSize = pageSize
  4438. this.checkArr = []
  4439. this.checkAll = false
  4440. this.loadData()
  4441. },
  4442. },
  4443. }
  4444. </script>
  4445. <style scoped>
  4446. @import '~@assets/less/common.less';
  4447. </style>