videoMaterial.vue 150 KB

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