creative-copywrit.vue 162 KB

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