videoMaterial.vue 151 KB

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