videoMaterial.vue 132 KB

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