configLaunchInfo.vue 113 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713
  1. <template>
  2. <div class="configLaunchInfo">
  3. <a-spin :spinning="spinning">
  4. <a-form :form="form">
  5. <!-- 投放范围 -->
  6. <div class="moduler">
  7. <div class="moduler-title">选择账户</div>
  8. <div>
  9. <div class="row-item">
  10. <div class="hint-item"></div>
  11. <div class="label-item">
  12. <div class="text-item">账户</div>
  13. <div class="required-item"></div>
  14. </div>
  15. <div class="input-item">
  16. <Treeselect :appId.sync="accountId" :multiple="false" request="2,4" ref="treeSelect" style="margin-bottom:8px;width:600px " />
  17. <!-- <Treeselect :appId.sync="accountId" :multiple="false" request="2" reqUrl='/ctop/projectMember/getProjectAccountByUserId' ref="treeSelect" style="margin-bottom:8px;width:580px " /> -->
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <!-- 推广目的 -->
  23. <div class="moduler">
  24. <div class="moduler-title">请选择营销目标</div>
  25. <div class="row-item">
  26. <div class="hint-item">
  27. </div>
  28. <div class="label-item">
  29. <div class="text-item">营销目标</div>
  30. <div class="required-item"></div>
  31. </div>
  32. <div class="input-item">
  33. <a-form-item >
  34. <a-radio-group v-decorator="['campaignType',{initialValue:2 }]" @change="campaignTypeChange">
  35. <a-radio-button :value="2">提升应用安装</a-radio-button>
  36. <a-radio-button :value="3">获取电商下单</a-radio-button>
  37. <a-radio-button :value="4">推广品牌活动</a-radio-button>
  38. <a-radio-button :value="5">收集销售线索</a-radio-button>
  39. <a-radio-button :value="7">提高应用活跃</a-radio-button>
  40. </a-radio-group>
  41. </a-form-item>
  42. </div>
  43. </div>
  44. </div>
  45. <!-- 基础信息 -->
  46. <div class="moduler">
  47. <div class="moduler-title">请设置基本信息</div>
  48. <!-- <div class="row-item">
  49. <div class="hint-item"> </div>
  50. <div class="label-item">
  51. <div class="text-item">模板名称</div>
  52. <div class="required-item"></div>
  53. </div>
  54. <div class="input-item">
  55. <a-form-item>
  56. <a-input v-model="strategyName" allow-clear />
  57. </a-form-item>
  58. </div>
  59. </div> -->
  60. <div class="row-item">
  61. <div class="hint-item"> </div>
  62. <div class="label-item">
  63. <div class="text-item">计划命名规范</div>
  64. <div class="required-item"></div>
  65. </div>
  66. <div class="input-item">
  67. <a-form-item>
  68. <a-input v-decorator="['campaignName',{ rules: [{ required: true, message: '请填写计划的命名规则' }] }]" allow-clear />
  69. </a-form-item>
  70. </div>
  71. </div>
  72. <div class="row-item">
  73. <div class="hint-item"> </div>
  74. <div class="label-item">
  75. <div class="text-item">组命名规范</div>
  76. <div class="required-item"></div>
  77. </div>
  78. <div class="input-item">
  79. <a-form-item>
  80. <a-input v-decorator="['groupName',{ rules: [{ required: true, message: '请填写组的命名规则' }] }]" allow-clear />
  81. </a-form-item>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="moduler">
  86. <div class="moduler-title">目标应用</div>
  87. <div class="ad-range">
  88. <div class="row-item" >
  89. <div class="hint-item"></div>
  90. <div class="label-item">
  91. <div class="text-item">是否单一应用</div>
  92. <div class="required-item"></div>
  93. </div>
  94. <div class="input-item">
  95. <a-form-item >
  96. <a-radio-group v-decorator="['singleAppid', {initialValue:1 }]" @change="singleAppidChange">
  97. <a-radio-button :value="1">是</a-radio-button>
  98. <a-radio-button :value="0">否</a-radio-button>
  99. </a-radio-group>
  100. </a-form-item>
  101. </div>
  102. </div>
  103. <div class="row-item" >
  104. <div class="hint-item"></div>
  105. <div class="label-item">
  106. <div class="text-item">系统类型</div>
  107. <div class="required-item"></div>
  108. </div>
  109. <div class="input-item">
  110. <a-form-item >
  111. <a-radio-group v-model="sysType" @change="sysTypeChange">
  112. <a-radio-button :value="1">安卓</a-radio-button>
  113. <a-radio-button :value="2">IOS</a-radio-button>
  114. </a-radio-group>
  115. </a-form-item>
  116. </div>
  117. </div>
  118. <div class="row-item" v-if="getFormData('campaignType')==2||getFormData('campaignType')==7">
  119. <div class="hint-item"></div>
  120. <div class="label-item">
  121. <div class="text-item">选择应用</div>
  122. <div class="required-item"></div>
  123. </div>
  124. <div class="input-item">
  125. <a-form-item>
  126. <a-select v-decorator="['appId', { rules: [{ required: true, message: '请选择目标应用' }] }]" showSearch allowClear
  127. placeholder="选择应用目标" optionFilterProp="children" style="width: 500px"
  128. :filterOption="filterOption" @change="appIdChange" :mode="getFormData('singleAppid')==1?'defalut':'multiple'" :maxTagCount='1'>
  129. <a-select-option v-if="getFormData('singleAppid')==0" :value='0' @click="selectAllAppId">选择以下全部</a-select-option>
  130. <a-select-option v-for="appModel in appList" :key="appModel.appId" :value="appModel.appId">
  131. {{ appModel.appName }}&#12288;&nbsp;&#12288; {{ appModel.appVersion }}&#12288;&#12288;&#12288;{{
  132. appModel.platform | platform
  133. }}
  134. </a-select-option>
  135. </a-select>
  136. <a-button type="primary" @click="addApplication" style="margin-left:10px" :loading="tongbuLoading">刷新应用</a-button>
  137. </a-form-item>
  138. </div>
  139. </div>
  140. <div class="row-item" v-if="getFormData('campaignType') == 3">
  141. <div class="hint-item"></div>
  142. <div class="label-item">
  143. <div class="text-item">转化类型</div>
  144. <div class="required-item"></div>
  145. </div>
  146. <div class="input-item">
  147. <a-form-item >
  148. <a-radio-group buttonStyle="solid"
  149. v-decorator="['urlType', { rules: [{ required: true, message: '请选择目标应用' }], initialValue: '1' }]">
  150. <a-radio-button value="1">淘宝商品</a-radio-button>
  151. <a-radio-button value="2">淘客商品</a-radio-button>
  152. </a-radio-group>
  153. </a-form-item>
  154. </div>
  155. </div>
  156. <div class="row-item" v-if="getFormData('campaignType') == 3||getFormData('campaignType') == 4||getFormData('campaignType') == 5">
  157. <div class="hint-item"></div>
  158. <div class="label-item">
  159. <div class="text-item">链接</div>
  160. <!-- <div class="required-item"></div> -->
  161. </div>
  162. <div class="input-item">
  163. <a-form-item v-if="getFormData('campaignType') != 2" :class="{ 'else-label': getFormData('campaignType') == 3 }">
  164. <a-input placeholder="请填写链接" v-decorator="['url', { rules: [{ required: true,message:'链接不能为空'}] }]" />
  165. </a-form-item>
  166. </div>
  167. </div>
  168. <div class="row-item" v-if="getFormData('campaignType') == 2||getFormData('campaignType') == 4||getFormData('campaignType') == 5">
  169. <div class="hint-item"></div>
  170. <div class="label-item">
  171. <div class="text-item">转化追踪</div>
  172. <!-- <div class="required-item"></div> -->
  173. </div>
  174. <div class="input-item">
  175. <a-form-item >
  176. <span v-if="convertId&&!convert" style="display:block;font-size:16px">已选择转化目标: {{convertId.label}}</span>
  177. <a-button type="primary" @click="showConvert">{{convertId?'更换转化目标':'选择转化目标'}}</a-button>
  178. </a-form-item>
  179. <div style="margin-top:10px">
  180. <a-form-item v-if="sysType==1" >
  181. <a-checkbox v-decorator="[
  182. 'useAppMarket',
  183. {
  184. valuePropName: 'checked',
  185. initialValue: false,
  186. },
  187. ]">
  188. 优先从系统应用商店下载
  189. </a-checkbox>
  190. </a-form-item>
  191. <a-form-item v-if="sysType==1&&getData('useAppMarket')">
  192. 请勾选投放应用已上架的应用商店(默认全选)
  193. <a-checkbox-group v-model="appStore">
  194. <a-checkbox value="huawei">华为</a-checkbox>
  195. <a-checkbox value="oppo">OPPO</a-checkbox>
  196. <a-checkbox value="vivo">VIVO</a-checkbox>
  197. <a-checkbox value="xiaomi">小米</a-checkbox>
  198. <a-checkbox value="meizu">魅族</a-checkbox>
  199. <a-checkbox value="smartisan">锤子</a-checkbox>
  200. </a-checkbox-group>
  201. </a-form-item>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. <div class="moduler">
  208. <div class="moduler-title">用户定向
  209. <div style="margin-left:30px;position:relative;top:-2px">
  210. <a-radio-group v-model="useDirectional" @change="useDirectionalChange">
  211. <a-radio :value="1">
  212. 不使用定向
  213. </a-radio>
  214. <!-- <a-radio :value="0">
  215. 使用定向包
  216. </a-radio> -->
  217. </a-radio-group>
  218. </div>
  219. </div>
  220. <div class="ad-range" v-if="useDirectional==1">
  221. <div class="row-item">
  222. <div class="hint-item"></div>
  223. <div class="label-item">
  224. <div class="text-item">地域</div>
  225. <div class="required-item"></div>
  226. </div>
  227. <div class="input-item">
  228. <a-form-item>
  229. <a-radio-group v-model="district" @change="cityChange">
  230. <a-radio-button value="NONE">不限</a-radio-button>
  231. <a-radio-button value="CITY">按省市</a-radio-button>
  232. <a-radio-button value="COUNTY">按区县</a-radio-button>
  233. </a-radio-group>
  234. </a-form-item>
  235. <div class="region" style="margin-top:20px" v-show="district!='NONE'">
  236. <!-- 省市 -->
  237. <div class="provincyCity" v-if="district=='CITY'">
  238. <linkMultiSelect title='省份' :listArr='regionList' :maxLayers='2' :listUrl='regionCityListUrl' @getSelectedArr='getSelectedCityArr'/>
  239. </div>
  240. <!-- 区县 -->
  241. <div class="district" v-else-if="district=='COUNTY'">
  242. <linkMultiSelect title='省份' :listArr='regionList' :maxLayers='3' :listUrl='regionCityListUrl' @getSelectedArr='getSelectedCountyArr'/>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. <div class="row-item">
  248. <div class="hint-item"></div>
  249. <div class="label-item">
  250. <div class="text-item">性别</div>
  251. <div class="required-item"></div>
  252. </div>
  253. <div class="input-item">
  254. <a-form-item>
  255. <a-radio-group v-decorator="['gender', {initialValue:0 }]" >
  256. <a-radio-button :value="0">不限</a-radio-button>
  257. <a-radio-button :value="2">男</a-radio-button>
  258. <a-radio-button :value="1">女</a-radio-button>
  259. </a-radio-group>
  260. </a-form-item>
  261. </div>
  262. </div>
  263. <div class="row-item">
  264. <div class="hint-item"></div>
  265. <div class="label-item">
  266. <div class="text-item">年龄</div>
  267. <div class="required-item"></div>
  268. </div>
  269. <div class="input-item">
  270. <a-form-item>
  271. <radioCheck :checkArr='ageArr' @getSonValue='getAgeSelect' />
  272. </a-form-item>
  273. </div>
  274. </div>
  275. <div class="row-item">
  276. <div class="hint-item"></div>
  277. <div class="label-item">
  278. <div class="text-item">操作系统</div>
  279. <div class="required-item"></div>
  280. </div>
  281. <div class="input-item">
  282. <a-form-item>
  283. <a-radio-group v-decorator="['platformOs', {initialValue:1 }]" >
  284. <a-radio-button :value="0">不限</a-radio-button>
  285. <a-radio-button :value="1">Android</a-radio-button>
  286. <a-radio-button :value="2">IOS</a-radio-button>
  287. </a-radio-group>
  288. </a-form-item>
  289. </div>
  290. </div>
  291. <div class="row-item">
  292. <div class="hint-item"></div>
  293. <div class="label-item">
  294. <div class="text-item">自定义人群</div>
  295. <div class="required-item"></div>
  296. </div>
  297. <div class="input-item">
  298. <a-form-item>
  299. <a-radio-group v-decorator="['customCrowd', {initialValue:'0' }]" @change="customCrowdChange">
  300. <a-radio-button value="0">不限</a-radio-button>
  301. <a-radio-button value="1">定向</a-radio-button>
  302. <a-radio-button value="2">排除</a-radio-button>
  303. <a-radio-button value="3">同时定向排除</a-radio-button>
  304. </a-radio-group>
  305. </a-form-item>
  306. <div class="dingxiang_paichu" v-if="getFormData('customCrowd')&&getFormData('customCrowd')!='0'" style="width:60%">
  307. <a-tabs v-model="tabKey" @change="retargetTabChange" >
  308. <a-tab-pane key="1" tab="定向池" v-if="getFormData('customCrowd')!='2'">
  309. <a-table
  310. :columns="retargetColumns"
  311. :row-key="record => record.key"
  312. :data-source="retargetDataAll"
  313. :loading="loading"
  314. style="width:100%;margin:15px 0"
  315. :pagination='false'
  316. @change="retargetTableChange"
  317. :scroll="{ y: 250 }"
  318. :row-selection="rowSelection"
  319. bordered
  320. >
  321. <template slot="name" slot-scope="name"> {{ name }} </template>
  322. <template slot="populationType" slot-scope="populationType"> {{ populationType | customCrowdHandler}} </template>
  323. </a-table>
  324. </a-tab-pane>
  325. <a-tab-pane key="2" tab="排除池" v-if="getFormData('customCrowd')!='1'">
  326. <a-table
  327. :columns="retargetColumns"
  328. :row-key="record => record.key"
  329. :data-source="retargetDataAll"
  330. :loading="loading"
  331. style="width:100%;margin:15px 0"
  332. :pagination='false'
  333. @change="retargetTableChange"
  334. :scroll="{ y: 250 }"
  335. :row-selection="rowSelection2"
  336. bordered
  337. >
  338. <template slot="name" slot-scope="name"> {{ name }} </template>
  339. <template slot="populationType" slot-scope="populationType"> {{ populationType |customCrowdHandler}} </template>
  340. </a-table>
  341. </a-tab-pane>
  342. <a-button slot="tabBarExtraContent" type='primary' @click="refreshPopulation" :loading='refreshPopulationLoading'>刷新人群包</a-button>
  343. </a-tabs>
  344. </div>
  345. </div>
  346. </div>
  347. <div class="row-item">
  348. <div class="hint-item"></div>
  349. <div class="label-item">
  350. <div class="text-item">过滤已转化用户</div>
  351. <div class="required-item"></div>
  352. </div>
  353. <div class="input-item">
  354. <a-form-item>
  355. <a-radio-group v-decorator="['filterConvertedLevel', { initialValue: 0 }]">
  356. <a-radio-button :value="0">不限</a-radio-button>
  357. <a-radio-button :value="1">广告组</a-radio-button>
  358. <a-radio-button :value="2">广告计划</a-radio-button>
  359. <a-radio-button :value="3">本账户</a-radio-button>
  360. <a-radio-button :value="4">公司主体</a-radio-button>
  361. <a-radio-button :value="5">APP</a-radio-button>
  362. </a-radio-group>
  363. </a-form-item>
  364. </div>
  365. </div>
  366. <div class="row-item" >
  367. <div class="hint-item"></div>
  368. <div class="label-item">
  369. <div class="text-item">是否开启智能扩量</div>
  370. <div class="required-item"></div>
  371. </div>
  372. <div class="input-item">
  373. <a-form-item>
  374. <a-radio-group v-decorator="['isOpen', { initialValue: 0 }]" @change="isOpenChange">
  375. <a-radio-button :value='0'>关闭</a-radio-button>
  376. <a-radio-button :value="1">开启</a-radio-button>
  377. </a-radio-group>
  378. </a-form-item>
  379. <div style="width: 400px; margin-top: 24px;" class="inventoryTypes" v-show="getFormData('isOpen')==1">
  380. <div class="inventory-tags-lists-container">
  381. <a-checkbox v-model="noAgeBreak">不可突破年龄</a-checkbox>
  382. <a-checkbox v-model="noGenderBreak">不可突破性别</a-checkbox>
  383. <a-checkbox v-model="noAreaBreak">不可突破地域</a-checkbox>
  384. </div>
  385. </div>
  386. </div>
  387. </div>
  388. </div>
  389. <div class="ad-range2" v-if="useDirectional==0">
  390. <div style="position:relative" class="ad-range2-title">
  391. <span>当前选择模板数量:{{directionalCheckedList.length}}</span>
  392. <a-checkbox :indeterminate="indeterminateDirectional" :checked="checkAllDirectional" @change="onCheckAllDirectionalChange" class="quanxuanDirectional">
  393. <span>点击全选</span>
  394. </a-checkbox>
  395. </div>
  396. <a-spin :spinning="directionalSpinning">
  397. <div class="title-list">
  398. <a-checkbox-group v-model="directionalCheckedList" @change="directionalChange">
  399. <div class="title-item" v-for="(item,index) in directionalList" :key='index'>
  400. <label>
  401. <a-checkbox :value='item.id'>
  402. {{item.templateName+'_('+item.id+')'}}
  403. </a-checkbox>
  404. </label>
  405. </div>
  406. </a-checkbox-group>
  407. </div>
  408. </a-spin>
  409. </div>
  410. </div>
  411. <!-- <div class="moduler">
  412. <div class="moduler-title">预算和排期</div>
  413. <div class="ad-range">
  414. <div class="row-item" >
  415. <div class="hint-item"></div>
  416. <div class="label-item">
  417. <div class="text-item">投放时间</div>
  418. <div class="required-item"></div>
  419. </div>
  420. <div class="input-item">
  421. <a-form-item>
  422. <a-radio-group v-decorator="['scheduleType', { initialValue:'SCHEDULE_FROM_NOW' }]" @change="scheduleTypeChange">
  423. <a-radio-button value="SCHEDULE_FROM_NOW">从今天起长期投放</a-radio-button>
  424. <a-radio-button value="SCHEDULE_START_END">设置开始和结束时间</a-radio-button>
  425. </a-radio-group>
  426. <p style="margin-top:15px">
  427. <a-range-picker
  428. @change="dateChange"
  429. v-model="dateRange"
  430. :disabled-date="disabledDate"
  431. v-if="getFormData('scheduleType')=='SCHEDULE_START_END'"
  432. />
  433. </p>
  434. </a-form-item>
  435. </div>
  436. </div>
  437. <div class="row-item">
  438. <div class="hint-item"></div>
  439. <div class="label-item">
  440. <div class="text-item">投放时段</div>
  441. <div class="required-item"></div>
  442. </div>
  443. <div class="input-item">
  444. <a-form-item>
  445. <a-radio-group v-decorator="['scheduleTimes', { initialValue:'' }]" >
  446. <a-radio-button value=''>不限</a-radio-button>
  447. <a-radio-button value="SpecifiedTImePeriod">指定时间段</a-radio-button>
  448. </a-radio-group>
  449. <div
  450. v-show="getFormData('scheduleTimes')=='SpecifiedTImePeriod'"
  451. style="margin-top:15px"
  452. >
  453. <scheduleTime
  454. style="width:100%"
  455. :scheduleTime.sync="scheduleTimeData"
  456. ref="selectCheck"
  457. />
  458. </div>
  459. </a-form-item>
  460. </div>
  461. </div>
  462. <div class="row-item">
  463. <div class="hint-item">
  464. </div>
  465. <div class="label-item">
  466. <div class="text-item">策略预算</div>
  467. <div class="required-item"></div>
  468. </div>
  469. <div class="input-item">
  470. <a-form-item>
  471. <a-radio-group v-decorator="['strategyBudget', { initialValue:'' }]" >
  472. <a-radio-button value=''>不限</a-radio-button>
  473. <a-radio-button value="unifiedBudget">统一预算</a-radio-button>
  474. </a-radio-group>
  475. <a-input-group compact v-if="getFormData('strategyBudget')=='unifiedBudget'" style="margin-top:20px">
  476. <a-select :disabled="true" v-decorator="['budgetMode', { initialValue:'TOTAL' }]">
  477. <a-select-option value="TOTAL" >总预算</a-select-option>
  478. <a-select-option
  479. value="TOTAL"
  480. v-if="getFormData('smartBidType')=='SMART_BID_CUSTOM'"
  481. >总预算</a-select-option>
  482. </a-select>
  483. <a-input style="width: 25%" v-decorator="['budget', { initialValue:300 }]" />
  484. </a-input-group>
  485. <span class="tip" v-if="getFormData('budget')<300">请输入预算,不少于300元,不超过9999999.99元</span>
  486. </a-form-item>
  487. </div>
  488. </div>
  489. </div>
  490. </div> -->
  491. <div class="moduler">
  492. <div class="moduler-title">优化目标和付费</div>
  493. <div class="ad-range">
  494. <div class="row-item" >
  495. <div class="hint-item"></div>
  496. <div class="label-item">
  497. <div class="text-item">优化目标</div>
  498. <!-- <div class="required-item"></div> -->
  499. </div>
  500. <div class="input-item">
  501. <a-form-item>
  502. <a-radio-group v-decorator="['bidType', { initialValue:10 }]" @change="bidTypeChange">
  503. <!-- <a-radio-button :value="2">封面点击数</a-radio-button> -->
  504. <a-radio-button :value="10">转化数</a-radio-button>
  505. </a-radio-group>
  506. </a-form-item>
  507. </div>
  508. </div>
  509. <div class="row-item" v-if="getFormData('bidType')==10">
  510. <div class="hint-item"></div>
  511. <div class="label-item">
  512. <div class="text-item">转化目标</div>
  513. <!-- <div class="required-item"></div> -->
  514. </div>
  515. <div class="input-item">
  516. <a-form-item>
  517. <a-select size="default" v-decorator="['ocpxActionType']" style="width: 200px" @change="handleChange">
  518. <a-select-option :value="2">行为数</a-select-option>
  519. <!-- v-if="getFormData('campaignType') == 2 && groupTypeData.isActivate == 1 -->
  520. <a-select-option :value="180" >激活</a-select-option>
  521. <a-select-option :value="53" v-if="
  522. groupTypeData.isFormSubmit == '1'
  523. ">表单提交</a-select-option>
  524. <a-select-option :value="394" v-if="
  525. groupTypeData.isOrderSubmit == '1'
  526. ">订单提交</a-select-option>
  527. <a-select-option :value="348" v-if="
  528. groupTypeData.isValidClue == '1'
  529. ">使用有效线索</a-select-option>
  530. <a-select-option :value="383" v-if="
  531. groupTypeData.isCreditGrant == '1'
  532. ">授信出价</a-select-option>
  533. <a-select-option :value="384" v-if="
  534. groupTypeData.isWanJian == '1'
  535. ">完件出价</a-select-option>
  536. <a-select-option :value="190" v-if="
  537. groupTypeData.isPurchase == '1'
  538. ">付费出价</a-select-option>
  539. <a-select-option :value="191" v-if="
  540. groupTypeData.isFirstdayRoi == '1'
  541. ">首日ROI</a-select-option>
  542. <a-select-option :value="396" v-if="
  543. groupTypeData.isRegister == '1'
  544. ">注册优化目标</a-select-option>
  545. </a-select>
  546. </a-form-item>
  547. </div>
  548. </div>
  549. <div class="row-item" v-if="(getFormData('ocpxActionType') == 180 || getFormData('ocpxActionType') == 53) && groupTypeData.deepConversionTypes && groupTypeData.deepConversionTypes.length > 0 ">
  550. <div class="hint-item"></div>
  551. <div class="label-item">
  552. <div class="text-item">深度转化目标</div>
  553. <!-- <div class="required-item"></div> -->
  554. </div>
  555. <div class="input-item">
  556. <a-form-item>
  557. <a-select v-decorator="['deepConversionType']" allowClear style="width: 200px">
  558. <a-select-option v-for="(items, index) of groupTypeData.deepConversionTypes" :key="index" :value='items.deepConversionType'>
  559. {{ items.desc }}</a-select-option>
  560. </a-select>
  561. </a-form-item>
  562. </div>
  563. </div>
  564. <div class="row-item" >
  565. <div class="hint-item"></div>
  566. <div class="label-item">
  567. <div class="text-item">计费方式</div>
  568. <!-- <div class="required-item"></div> -->
  569. </div>
  570. <div class="input-item">
  571. <a-form-item>
  572. <a-radio-group v-model="chargeMethods">
  573. <a-radio-button v-if="getFormData('bidType')==2" value="CPC">点击计费(CPC)</a-radio-button>
  574. <a-radio-button v-if="getFormData('bidType')==10" value="OCPM">按展示付费(oCPM)</a-radio-button>
  575. </a-radio-group>
  576. </a-form-item>
  577. </div>
  578. </div>
  579. <div class="row-item" v-if="getFormData('bidType')==2">
  580. <div class="hint-item">
  581. </div>
  582. <div class="label-item">
  583. <div class="text-item">点击出价</div>
  584. <div class="required-item"></div>
  585. </div>
  586. <div class="input-item">
  587. <a-form-item>
  588. <a-input-number
  589. style="width:200px"
  590. :max="10000"
  591. :step="0.1"
  592. v-decorator="['bid', {rules:validationRules.bid} ]"
  593. />
  594. <span style="margin-left:5px">元</span>
  595. <!-- <span style="margin-left:20px">请填入必填字段,获取建议出价</span> -->
  596. </a-form-item>
  597. <span
  598. class="tip"
  599. v-if="getFormData('bid')<0.1"
  600. >请输入点击出价,不少于0.1元,不超过10000元</span>
  601. </div>
  602. </div>
  603. <div class="row-item" v-if="getFormData('bidType')==10">
  604. <div class="hint-item">
  605. </div>
  606. <div class="label-item">
  607. <div class="text-item">转化目标出价</div>
  608. <div class="required-item"></div>
  609. </div>
  610. <div class="input-item">
  611. <a-form-item>
  612. <a-input-number
  613. style="width:200px"
  614. :max="10000"
  615. :step="0.1"
  616. v-decorator="['cpaBid', {rules:validationRules.bid} ]"
  617. />
  618. <span style="margin-left:5px">元</span>
  619. </a-form-item>
  620. <span
  621. class="tip"
  622. v-if="getFormData('cpaBid')<0.1"
  623. >请输入点击出价,不少于0.1元,不超过10000元</span>
  624. </div>
  625. </div>
  626. <div class="row-item" v-if="(getFormData('ocpxActionType') == 180 || getFormData('ocpxActionType') == 53) && groupTypeData.deepConversionTypes && groupTypeData.deepConversionTypes.length > 0 ">
  627. <div class="hint-item">
  628. </div>
  629. <div class="label-item">
  630. <div class="text-item">深度转化目标出价</div>
  631. <!-- <div class="required-item"></div> -->
  632. <!-- {{getFormData('deepConversionBid')}} -->
  633. </div>
  634. <div class="input-item">
  635. <a-form-item>
  636. <a-input-number
  637. style="width:200px"
  638. :max="10000"
  639. :step="0.1"
  640. v-decorator="['deepConversionBid' ]"
  641. />
  642. <span style="margin-left:5px">元</span>
  643. <!-- <span style="margin-left:20px">请填入必填字段,获取建议出价</span> -->
  644. </a-form-item>
  645. <!-- <span
  646. class="tip"
  647. v-if="getFormData('deepConversionBid')<0.1"
  648. >请输入点击出价,不少于0.1元,不超过10000元</span> -->
  649. </div>
  650. </div>
  651. </div>
  652. </div>
  653. <div class="moduler">
  654. <div class="moduler-title">创意信息</div>
  655. <div class="ad-range">
  656. <div class="row-item">
  657. <div class="hint-item"></div>
  658. <div class="label-item">
  659. <div class="text-item">广告位置</div>
  660. <div class="required-item"></div>
  661. </div>
  662. <div class="input-item">
  663. <a-form-item>
  664. <a-radio-group v-model="adposition" @change="adpositionChange">
  665. <a-radio-button :value='1'>优选广告位</a-radio-button>
  666. <a-radio-button value="inventoryTypes">按媒体指定位置</a-radio-button>
  667. </a-radio-group>
  668. </a-form-item>
  669. <div style="width: 400px; margin-top: 24px;" class="inventoryTypes" v-show="adposition=='inventoryTypes'">
  670. <div class="inventory-tags-lists-header">
  671. <a-checkbox :indeterminate="indeterminate" :checked="checkAll" @change="onCheckAllChange">
  672. </a-checkbox>
  673. <div class="inventory-tags-lists-name"><strong>APP名称</strong></div>
  674. </div>
  675. <div class="inventory-tags-lists-container">
  676. <a-checkbox-group v-model="checkedList" :options="plainOptions" @change="onChange" />
  677. </div>
  678. </div>
  679. </div>
  680. </div>
  681. <div class="row-item">
  682. <div class="hint-item"></div>
  683. <div class="label-item">
  684. <div class="text-item">创意制作方式</div>
  685. <div class="required-item"></div>
  686. </div>
  687. <div class="input-item">
  688. <a-form-item>
  689. <a-radio-group v-decorator="['openProgramCreate', { initialValue:2 }]">
  690. <a-radio-button :value='2'>不限</a-radio-button>
  691. <a-radio-button :value="0">自定义</a-radio-button>
  692. <a-radio-button :value="1">程序化</a-radio-button>
  693. </a-radio-group>
  694. </a-form-item>
  695. </div>
  696. </div>
  697. <div class="row-item">
  698. <div class="hint-item"></div>
  699. <div class="label-item">
  700. <div class="text-item">素材类型</div>
  701. <div class="required-item"></div>
  702. </div>
  703. <div class="input-item">
  704. <a-form-item>
  705. <a-radio-group v-decorator="['channelType', { initialValue:2 }]">
  706. <a-radio-button :value='2'>不限</a-radio-button>
  707. <a-radio-button :value="0">内部</a-radio-button>
  708. <a-radio-button :value="1">素造</a-radio-button>
  709. </a-radio-group>
  710. </a-form-item>
  711. </div>
  712. </div>
  713. <div class="row-item">
  714. <div class="hint-item"></div>
  715. <div class="label-item">
  716. <div class="text-item">是否开启历史素材挖掘</div>
  717. <div class="required-item"></div>
  718. </div>
  719. <div class="input-item">
  720. <a-form-item>
  721. <a-radio-group v-decorator="['assetMining', { initialValue:0 }]">
  722. <a-radio-button :value='1'>是</a-radio-button>
  723. <a-radio-button :value="0">否</a-radio-button>
  724. </a-radio-group>
  725. </a-form-item>
  726. </div>
  727. </div>
  728. <div class="row-item" >
  729. <div class="hint-item"></div>
  730. <div class="label-item">
  731. <div class="text-item">是否开启智能抽帧</div>
  732. <div class="required-item"></div>
  733. </div>
  734. <div class="input-item">
  735. <a-form-item>
  736. <a-radio-group v-decorator="['smartCover', { initialValue:0 }]">
  737. <a-radio-button :value='1'>是</a-radio-button>
  738. <a-radio-button :value="0">否</a-radio-button>
  739. </a-radio-group>
  740. </a-form-item>
  741. </div>
  742. </div>
  743. <!-- <div class="row-item" >
  744. <div class="hint-item"></div>
  745. <div class="label-item">
  746. <div class="text-item">下载详情</div>
  747. <div class="required-item"></div>
  748. </div>
  749. <div class="input-item" >
  750. <a-form-item>
  751. <a-select
  752. v-decorator="['siteId']"
  753. showSearch
  754. allowClear
  755. placeholder="选择应用下载详情页"
  756. optionFilterProp="children"
  757. :filterOption="filterOption"
  758. style="width:400px"
  759. >
  760. <a-select-option v-for="appModel in siteList" :key="appModel.siteId" :value="appModel.siteId">
  761. {{ appModel.name }}
  762. </a-select-option>
  763. </a-select>
  764. </a-form-item>
  765. </div>
  766. </div> -->
  767. <div class="row-item" >
  768. <div class="hint-item"></div>
  769. <div class="label-item">
  770. <div class="text-item">监测链接选择</div>
  771. <div class="required-item"></div>
  772. </div>
  773. <div class="input-item">
  774. <a-form-item>
  775. <a-radio-group v-decorator="['generalTrack', { initialValue: 1 }]">
  776. <a-radio-button :value="1">通用</a-radio-button>
  777. <a-radio-button :value="0">非通用</a-radio-button>
  778. </a-radio-group>
  779. </a-form-item>
  780. </div>
  781. </div>
  782. <div class="row-item" v-if="getFormData('generalTrack')==1">
  783. <div class="hint-item"></div>
  784. <div class="label-item">
  785. <div class="text-item">点击监测链接</div>
  786. </div>
  787. <div class="input-item">
  788. <a-form-item>
  789. <a-input v-decorator="['clickTrackUrl']" />
  790. </a-form-item>
  791. </div>
  792. </div>
  793. <div class="row-item" v-if="getFormData('generalTrack')==1">
  794. <div class="hint-item"></div>
  795. <div class="label-item">
  796. <div class="text-item">开始播放监测链接</div>
  797. <!-- <div class="required-item"></div> -->
  798. </div>
  799. <div class="input-item">
  800. <a-form-item>
  801. <a-input v-decorator="['impressionUrl']" />
  802. </a-form-item>
  803. </div>
  804. </div>
  805. <div class="row-item" v-if="getFormData('generalTrack')==1">
  806. <div class="hint-item"></div>
  807. <div class="label-item">
  808. <div class="text-item">点击按钮监测链接</div>
  809. <!-- <div class="required-item"></div> -->
  810. </div>
  811. <div class="input-item">
  812. <a-form-item>
  813. <a-input v-decorator="['actionbarClickUrl']" />
  814. </a-form-item>
  815. </div>
  816. </div>
  817. <!-- <div class="row-item" v-if="whiteList.actionbar_click_url_switch&&getFormData('generalTrack')==1">
  818. <div class="hint-item"></div>
  819. <div class="label-item">
  820. <div class="text-item">第三方ActionBar点击监控链接</div>
  821. <div class="required-item"></div>
  822. </div>
  823. <div class="input-item">
  824. <a-form-item >
  825. <a-input
  826. v-decorator="[
  827. 'actionbarClickUrl',
  828. {
  829. rules: [{ message: '请输入第三方点击监控链接' }],
  830. },
  831. ]"
  832. placeholder="请输入第三方点击监控链接"
  833. >
  834. </a-input>
  835. <span style="color: red; position: relative; top: -10px">仅加白使用</span>
  836. </a-form-item>
  837. </div>
  838. </div> -->
  839. <div class="row-item" v-if="whiteList.creative_category_switch==1">
  840. <div class="hint-item"></div>
  841. <div class="label-item">
  842. <div class="text-item">创意分类</div>
  843. <div class="required-item" ></div>
  844. </div>
  845. <div class="input-item">
  846. <a-form-item >
  847. <a-cascader
  848. :options="createOptions"
  849. v-decorator="['creativeCategory',{ initialValue:[],rules: [{ required: whiteList.creative_category_switch==1, message: '创意分类必填' }] }]"
  850. :fieldNames="fieldNames"
  851. placeholder="请选择创意分类"
  852. />
  853. </a-form-item>
  854. </div>
  855. </div>
  856. <div class="row-item" v-if="whiteList.creative_category_switch==1">
  857. <div class="hint-item"></div>
  858. <div class="label-item">
  859. <div class="text-item">创意标签</div>
  860. <div class="required-item" ></div>
  861. </div>
  862. <div class="input-item">
  863. <a-form-item>
  864. <a-select
  865. mode="tags"
  866. style="width: 100%"
  867. placeholder="按回车生成标签"
  868. v-decorator="['creativeTag',{initialValue:[],rules: [ {required: whiteList.creative_category_switch==1, validator: creativeTagValid }]}]"
  869. dropdownClassName="display-none-selset"
  870. :token-separators="[',', ' ', ',']"
  871. >
  872. </a-select>
  873. <span v-if="getData('creativeTag')&&getData('creativeTag').length > 10" style="color:red">创意标签最多填写10个,请删减</span>
  874. </a-form-item>
  875. </div>
  876. </div>
  877. <div class="row-item">
  878. <div class="hint-item"></div>
  879. <div class="label-item">
  880. <div class="text-item">行动号召</div>
  881. <div class="required-item"></div>
  882. </div>
  883. <div class="input-item">
  884. <a-form-item >
  885. <a-select
  886. v-decorator="['actionBarText', { rules: [{ required: true, message: '请选择行动号召按钮文案' }] }]"
  887. showSearch
  888. allowClear
  889. placeholder="选择行动号召按钮文案"
  890. optionFilterProp="children"
  891. :filterOption="filterOption"
  892. >
  893. <a-select-option v-for="appModel in actionBarTextList" :key="appModel.id" :value="appModel.actionBarText">
  894. {{ appModel.actionBarText }}
  895. </a-select-option>
  896. </a-select>
  897. </a-form-item>
  898. </div>
  899. </div>
  900. <div class="row-item">
  901. <div class="hint-item"></div>
  902. <div class="label-item">
  903. <div class="text-item">关联封面数</div>
  904. <div class="required-item"></div>
  905. </div>
  906. <div class="input-item">
  907. <a-form-item >
  908. <a-input-number
  909. style="width:200px"
  910. :max="15"
  911. :step="1"
  912. :min='1'
  913. v-decorator="['imageCnt',{ initialValue:1, rules: [{ required: true, message: '请填写关联封面数' }] } ]"
  914. />
  915. </a-form-item>
  916. </div>
  917. </div>
  918. <div class="row-item">
  919. <div class="hint-item"> </div>
  920. <div class="label-item">
  921. <div class="text-item">广告语</div>
  922. <div class="required-item"></div>
  923. </div>
  924. <div class="input-item">
  925. <a-form-item>
  926. <div style="position:relative">
  927. <a-textarea
  928. class="rending"
  929. placeholder="请输入广告语"
  930. @change="descriptionchange"
  931. v-decorator="['description',{rules: [ { required: true, message: '请填写广告语' }] } ]"
  932. :autosize="{ minRows: 2, maxRows: 6 }"
  933. :max-length="30"
  934. ></a-textarea>
  935. <p
  936. style="
  937. font-size: 12px;
  938. color: #b6bbc7;
  939. letter-spacing: 0.3px;
  940. text-align: right;
  941. line-height: 30px;
  942. position: absolute;
  943. bottom: 0;
  944. right: 6px;
  945. width: 100%;
  946. margin-bottom: 0;
  947. "
  948. >
  949. {{ description.length }}/30
  950. <!-- {{ getFormData('description').length }}/30 -->
  951. </p>
  952. </div>
  953. </a-form-item>
  954. </div>
  955. </div>
  956. </div>
  957. </div>
  958. <!-- <div class="moduler">
  959. <div class="opt">
  960. <a-button type="default" style="margin-right:15px" @click="goBack">取消</a-button>
  961. <a-button type="primary" @click="goNext" :loading="goNextloading">下一步</a-button>
  962. </div>
  963. </div> -->
  964. <div class="moduler">
  965. <!-- <div class="moduler-title">计划名称</div> -->
  966. <div class="opt">
  967. <a-button type="default" style="margin-right:15px" @click="goBack">取消</a-button>
  968. <!-- -->
  969. <a-button type="primary" @click="goNext" :loading="goNextloading">确定</a-button>
  970. </div>
  971. </div>
  972. </a-form>
  973. <div class="infoModal">
  974. <a-modal v-model="visible" title="提示" @ok="handleOk" :keyboard='false' :maskClosable='false'>
  975. <ul>
  976. <li v-for="(item,index) in errorInfo" :key="index">
  977. <span>账户{{LHKaccountInfo[index].title}}:</span>{{item.message || '定向设置成功'}}
  978. </li>
  979. </ul>
  980. <template slot="footer">
  981. <a-button key="back" @click="handleCancel">
  982. 返回本页
  983. </a-button>
  984. <a-button key="submit" type="primary" @click="handleOk">
  985. 下一步
  986. </a-button>
  987. </template>
  988. </a-modal>
  989. </div>
  990. <a-modal v-model="convert" title="选择转化目标">
  991. <template slot="footer">
  992. <a-button key="back" @click="convert=false">取消</a-button>
  993. <a-button key="submit" type="primary" @click="convert=false">
  994. 确定
  995. </a-button>
  996. </template>
  997. <a-form-item label="追踪方式" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
  998. :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }">
  999. <a-radio-group buttonStyle="solid" v-model="convertType" @change="convertChange">
  1000. <a-radio-button value="1" v-show="getFormData('campaignType') == 4||getFormData('campaignType') == 5">JS布玛</a-radio-button>
  1001. <a-radio-button value="2" v-show="getFormData('campaignType') == 4||getFormData('campaignType') == 5">Xpath</a-radio-button>
  1002. <a-radio-button value="3"
  1003. v-show="getFormData('campaignType') == 2">应用-SDK
  1004. </a-radio-button>
  1005. <a-radio-button value="7" v-show="getFormData('campaignType') == 2">应用-API</a-radio-button>
  1006. </a-radio-group>
  1007. </a-form-item>
  1008. <a-form-item label="选择转化" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
  1009. :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }">
  1010. <a-select allowClear labelInValue style="width:100%" v-model="convertId" @focus="getConvertList">
  1011. <a-select-option :value="item.convert_id" v-for="item in convertList" :key="item.convert_id">
  1012. {{item.convert_name}}</a-select-option>
  1013. </a-select>
  1014. </a-form-item>
  1015. </a-modal>
  1016. <a-modal v-model="useDirectionalVisible" title="选择定向包" @ok="selectDirectionalOk" width='600px' height='500px'>
  1017. <div style="position:relative">
  1018. <span>当前选择模板数量:{{directionalCheckedList.length}}</span>
  1019. <a-checkbox :indeterminate="indeterminateDirectional" :checked="checkAllDirectional" @change="onCheckAllDirectionalChange" class="quanxuanDirectional">
  1020. <span>点击全选</span>
  1021. </a-checkbox>
  1022. </div>
  1023. <a-spin :spinning="directionalSpinning">
  1024. <div class="title-list">
  1025. <a-checkbox-group v-model="directionalCheckedList" @change="directionalChange">
  1026. <div class="title-item" v-for="(item,index) in directionalList" :key='index'>
  1027. <label>
  1028. <a-checkbox :value='item.id'>
  1029. {{item.templateName+'_('+item.id+')'}}
  1030. </a-checkbox>
  1031. </label>
  1032. </div>
  1033. </a-checkbox-group>
  1034. </div>
  1035. </a-spin>
  1036. </a-modal>
  1037. </a-spin>
  1038. </div>
  1039. </template>
  1040. <script>
  1041. import moment from 'moment'
  1042. import { getAction, postAction, downFile, downFilePost } from '@/api/manage'
  1043. import Treeselect from '@/views/modules/Statistics/components/Treeselect.vue'
  1044. import { TreeSelect } from 'ant-design-vue';
  1045. import qs from 'qs'
  1046. const SHOW_PARENT = TreeSelect.SHOW_PARENT;
  1047. // import selectCheckAll from './toutiaoTime'
  1048. import radioCheck from './components/radioCheck';
  1049. import linkMultiSelect from './components/linkMultiSelect'
  1050. import singleLayersSelecte from './components/singleLayerSelecte'
  1051. import scheduleTime from '@/components/formComponents/toutiaoTime'
  1052. import $ from "jquery"
  1053. // import { filter } from 'vue/types/umd';
  1054. var str = ""
  1055. for (let i = 0; i < 7*24; i++) {
  1056. str+='0'
  1057. }
  1058. let ageArr=[
  1059. {
  1060. value:'',
  1061. title:'不限',
  1062. checked:false,
  1063. },
  1064. {
  1065. value:18,
  1066. title:' 18-23岁',
  1067. checked:false,
  1068. },
  1069. {
  1070. value:24,
  1071. title:'24-30岁',
  1072. checked:false,
  1073. },
  1074. {
  1075. value:31,
  1076. title:'31-40岁',
  1077. checked:false,
  1078. },
  1079. {
  1080. value:41,
  1081. title:'41-49岁',
  1082. checked:false,
  1083. },
  1084. {
  1085. value:50,
  1086. title:'50岁+',
  1087. checked:false,
  1088. },
  1089. ]
  1090. let autoExtendOptions=[
  1091. {
  1092. label:'地域',
  1093. value:'REGION',
  1094. },
  1095. {
  1096. label:'性别',
  1097. value:'GENDER',
  1098. },
  1099. {
  1100. label:'年龄',
  1101. value:'AGE',
  1102. },
  1103. {
  1104. label:'行为兴趣',
  1105. value:'INTEREST_ACTION',
  1106. },
  1107. {
  1108. label:'自定义人群',
  1109. value:'CUSTOM_AUDIENCE',
  1110. },
  1111. ]
  1112. let retargetColumns=[
  1113. {
  1114. title: '人群包',
  1115. dataIndex: 'name',
  1116. sorter: true,
  1117. width: '40%',
  1118. scopedSlots: { customRender: 'name' },
  1119. },
  1120. {
  1121. title: '属性',
  1122. dataIndex: 'populationType',
  1123. scopedSlots: {
  1124. customRender: 'populationType'
  1125. },
  1126. width: 200
  1127. },
  1128. {
  1129. title: '所属账号',
  1130. dataIndex: 'accountId',
  1131. sorter: true,
  1132. width: '40%',
  1133. scopedSlots: { customRender: 'accountId' },
  1134. },
  1135. ]
  1136. const plainOptions = [
  1137. {
  1138. value: 6,
  1139. label: '上下滑大屏广告'
  1140. },
  1141. {
  1142. value: 7,
  1143. label: '信息流广告'
  1144. },
  1145. {
  1146. value: 3,
  1147. label: '视频播放页广告'
  1148. },
  1149. {
  1150. value: 5,
  1151. label: '联盟广告'
  1152. },
  1153. ];
  1154. export default {
  1155. components: {
  1156. // selectCheckAll,
  1157. // newDirectedPackage,
  1158. Treeselect,
  1159. radioCheck,
  1160. linkMultiSelect,
  1161. singleLayersSelecte,
  1162. scheduleTime
  1163. },
  1164. data() {
  1165. return {
  1166. tongbuLoading:false,
  1167. refreshPopulationLoading:false,
  1168. noAreaBreak:false,
  1169. noGenderBreak:false,
  1170. noAgeBreak:false,
  1171. regionList:[],
  1172. editRecordId:'',
  1173. spinning:false,
  1174. description:'',
  1175. whiteList:{},
  1176. actionBarTextList:[],
  1177. treeData:[],
  1178. accountId:undefined,
  1179. strategyName: '',
  1180. form: this.$form.createForm(this),
  1181. goNextloading:false,
  1182. goPlanShowloading:false,
  1183. dateRange: [moment(), moment()],
  1184. visible:false,
  1185. errorInfo:[],
  1186. fieldNames: {
  1187. label: 'category_name',
  1188. value: 'category_id',
  1189. children: 'child',
  1190. },
  1191. createOptions: [],
  1192. appStore: ["huawei", "oppo", "vivo", "xiaomi", "meizu", "smartisan"],
  1193. sysType:1,
  1194. indeterminateDirectional:false,
  1195. checkAllDirectional:false,
  1196. directionalList:[],
  1197. directionalSpinning:false,
  1198. directionalCheckedList:[],
  1199. useDirectional:1,
  1200. siteList:[],
  1201. tabKey:'1',
  1202. adposition:1,
  1203. groupTypeData:{},
  1204. convert: false,
  1205. convertId: "",
  1206. convertList: [],
  1207. convertType: '1',
  1208. strategyInfo:{},
  1209. accountInfo:{},
  1210. appList: [],
  1211. appListAll:[],
  1212. dateRange: [moment(), moment()],
  1213. scheduleTime: '',
  1214. scheduleTimeData:str,
  1215. projectInfo:[],
  1216. chargeMethods:'CPC',
  1217. unionVideoType:'REWARDED_VIDEO',
  1218. district:'NONE',
  1219. sceneInventory:'',
  1220. checkedList: [],
  1221. indeterminate: false,
  1222. checkAll: false,
  1223. plainOptions,
  1224. // 定向的参数
  1225. regionValue:'NONE',
  1226. ageArr,//受众年龄
  1227. region:[],
  1228. agesRange:[],
  1229. regionCityListUrl:'/kuaishou/batch/getRegion',
  1230. regionCountyListUrl:'/kuaishou/batch/getRegion',
  1231. // 自定义人群
  1232. // 自定义人群参数
  1233. retargetColumns,
  1234. retargetData:[],
  1235. retargetDataAll:[],
  1236. loading:false,
  1237. customCrowd:'NONE',//自定义人群 选择的值
  1238. selectedRowKeys:[],
  1239. incluedSelectedRowKeys:[],
  1240. incluedSelectedKeys:[],
  1241. excludeSelectedKeys:[],
  1242. excludeSelectedRowKeys:[],
  1243. autoExtendEnabled:0,//智能放量是否开启
  1244. autoExtendOptions,//智能投放可选定向数组
  1245. autoExtendTargets:[],//智能放量开启后的选择数据----------需传递的参数
  1246. autoExtendTargetsChecked:[],
  1247. radioStyle: {
  1248. display: 'block',
  1249. height: '30px',
  1250. lineHeight: '30px',
  1251. padding: '0 15px'
  1252. },
  1253. goNextloading:false,
  1254. goPlanShowloading:false,
  1255. dateRange: [moment(), moment()],
  1256. visible:false,
  1257. errorInfo:[],
  1258. validationRules: {
  1259. url: [
  1260. {
  1261. required: true,
  1262. validator: this.validateURL,
  1263. },
  1264. ],
  1265. name:[{
  1266. required: true,
  1267. validator: this.validateName,
  1268. }],
  1269. bid:[{
  1270. required: true,
  1271. message:'出价信息必须填写',
  1272. // validator: this.validateBid,
  1273. }],
  1274. roi:[{
  1275. required: true,
  1276. message:'ROI系数必须填写',
  1277. // validator: this.validateBid,
  1278. }],
  1279. },
  1280. useDirectionalVisible:false,
  1281. }
  1282. },
  1283. watch: {
  1284. accountId(newValue,oldValue){
  1285. setTimeout(()=>{
  1286. this.form.setFieldsValue({
  1287. appId:undefined,
  1288. ocpxActionType:undefined
  1289. })
  1290. },0)
  1291. if(newValue){
  1292. // this.treeData.forEach(item=>{
  1293. // if(item.children){
  1294. // item.children.forEach(ele=>{
  1295. // if(ele.value==newValue){
  1296. // this.$parent.accountInfo=ele
  1297. // }
  1298. // })
  1299. // }
  1300. // })
  1301. this.getAppList()
  1302. getAction('/kuaishou/batch/getIsActivate', {
  1303. accountId: this.accountId
  1304. }).then(res => {
  1305. if (res.success) {
  1306. this.groupTypeData = res.result
  1307. }
  1308. })
  1309. getAction('/kuaishou/batch/getCreativeCategory', {
  1310. accountId:this.accountId,
  1311. }).then((res) => {
  1312. if (res.success) {
  1313. console.log(res)
  1314. this.createOptions = res.result
  1315. }
  1316. })
  1317. this.getWhiteList()
  1318. this.getpopulationlist()
  1319. }else{
  1320. }
  1321. },
  1322. },
  1323. computed: {
  1324. hasSelected() {
  1325. return this.selectedRowKeys.length > 0;
  1326. },
  1327. rowSelection() {
  1328. return {
  1329. // selectedRowKeys: this.incluedSelectedRowKeys,
  1330. onChange: (selectedRowKeys, selectedRows) => {
  1331. console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
  1332. this.incluedSelectedRowKeys = selectedRowKeys;
  1333. this.incluedSelectedKeys=selectedRows
  1334. },
  1335. getCheckboxProps: record => ({
  1336. props: {
  1337. disabled: this.excludeSelectedRowKeys.indexOf(record.key)>-1, // Column configuration not to be checked
  1338. name: record.name,
  1339. defaultChecked:this.incluedSelectedRowKeys.indexOf(record.key)>-1
  1340. },
  1341. }),
  1342. };
  1343. },
  1344. rowSelection2() {
  1345. return {
  1346. // selectedRowKeys: this.excludeSelectedRowKeys,
  1347. onChange: (selectedRowKeys, selectedRows) => {
  1348. // console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
  1349. // this.selectedRowKeys = selectedRowKeys;
  1350. this.excludeSelectedRowKeys = selectedRowKeys;
  1351. this.excludeSelectedKeys=selectedRows
  1352. },
  1353. getCheckboxProps: record => ({
  1354. props: {
  1355. disabled: this.incluedSelectedRowKeys.indexOf(record.key)>-1, // Column configuration not to be checked
  1356. name: record.name,
  1357. defaultChecked:this.excludeSelectedRowKeys.indexOf(record.key)>-1
  1358. },
  1359. }),
  1360. };
  1361. },
  1362. },
  1363. methods: {
  1364. refreshPopulation(){
  1365. if(this.accountId){
  1366. this.refreshPopulationLoading = true
  1367. // this.$refs.application.showApplication()
  1368. getAction('/kuaishou/batch/pullPopulationList', {
  1369. accountId: this.accountId
  1370. }).then(res => {
  1371. if (res.success) {
  1372. this.refreshPopulationLoading = false
  1373. this.$message.success(res.message)
  1374. this.retargetTabChange()
  1375. } else {
  1376. this.refreshPopulationLoading = false
  1377. this.$message.error(res.message)
  1378. }
  1379. })
  1380. }else{
  1381. this.$message.error('请先选择账户')
  1382. }
  1383. },
  1384. addApplication() {
  1385. if(this.accountId){
  1386. this.tongbuLoading = true
  1387. // this.$refs.application.showApplication()
  1388. getAction('/kuaishou/batch/syncAppList', {
  1389. accountId: this.accountId
  1390. }).then(res => {
  1391. if (res.success) {
  1392. this.tongbuLoading = false
  1393. this.$message.success(res.message)
  1394. this.getAppList()
  1395. } else {
  1396. this.tongbuLoading = false
  1397. this.$message.error(res.message)
  1398. }
  1399. })
  1400. }else{
  1401. this.$message.error('请先选择账户')
  1402. }
  1403. },
  1404. getIsActivate(val){
  1405. let params={};
  1406. params.accountId=this.accountId;
  1407. params.campaignType=this.getFormData('campaignType');
  1408. params.appId=val
  1409. getAction('/kuaishou/batch/getIsActivate',params).then(res => {
  1410. if (res.success) {
  1411. this.groupTypeData = res.result
  1412. }
  1413. })
  1414. },
  1415. isOpenChange(e){
  1416. this.noAreaBreak=false;
  1417. this.noGenderBreak=false;
  1418. this.noAgeBreak=false;
  1419. },
  1420. selectAllAppId(){
  1421. console.log(this.getFormData('appId'))
  1422. },
  1423. singleAppidChange(e){
  1424. // console.log(e.target.value,this.getFormData('appId'));
  1425. this.form.setFieldsValue({
  1426. appId:undefined
  1427. })
  1428. },
  1429. descriptionchange(e){
  1430. this.description=e.target.value
  1431. },
  1432. //获取表单的某一个属性值
  1433. getFormData(className) {
  1434. return this.form.getFieldValue(className)
  1435. },
  1436. dateChange(date, dateString) {
  1437. // console.log(date,dateString)
  1438. this.form.getFieldDecorator('startTime')
  1439. this.form.getFieldDecorator('endTime')
  1440. this.form.setFieldsValue({
  1441. startTime: date[0].format('YYYY-MM-DD HH:mm'),
  1442. endTime: date[1].format('YYYY-MM-DD HH:mm'),
  1443. })
  1444. },
  1445. //推广目的改变
  1446. campaignTypeChange(e){
  1447. console.log(e.target)
  1448. let strategyNamepart=this.campaignTypeHandle(e.target.value);
  1449. this.strategyName ='[策略]_'+ strategyNamepart+'_' + moment().format('MM_DD_hh:mm') ;
  1450. this.getActionBarText()
  1451. },
  1452. goBack() {
  1453. this.$router.replace('/autoLaunch/configLaunchList')
  1454. this.$bus.$emit('remove', '/autoLaunch/configLaunchInfo')
  1455. this.$bus.$emit('remove', `/autoLaunch/configLaunchInfo?id=${this.editRecordId}`)
  1456. },
  1457. //请求项目和账户内容
  1458. accountHttp(){
  1459. this.treeData=[];
  1460. this.accountIds=[];
  1461. getAction('/ctop/projectMember/getProjectAccountByUserId?mediaType=2', {}).then(res => {
  1462. if(res.success){
  1463. // console.log(res);
  1464. if(res.result){
  1465. res.result.forEach((element,index) => {
  1466. if(element){
  1467. this.treeData.push({});
  1468. this.treeData[index].title=element.project.projectName +'_('+ element.project.advertiserName +')';
  1469. this.treeData[index].value='project'+element.project.projectId;
  1470. this.treeData[index].key=element.project.projectId;
  1471. this.treeData[index].mediaId=element.project.mediaId;
  1472. this.treeData[index].children=[];
  1473. if(element.account.length){
  1474. element.account.forEach((ele,i)=>{
  1475. this.treeData[index].children.push({});
  1476. this.treeData[index].children[i].title=ele.userName+'_'+ele.authName+'_'+element.project.projectName;
  1477. this.treeData[index].children[i].value=ele.accountId;
  1478. this.treeData[index].children[i].key=ele.accountId;
  1479. })
  1480. }
  1481. }
  1482. });
  1483. // console.log(this.treeData)
  1484. }
  1485. }
  1486. })
  1487. },
  1488. campaignTypeHandle(val){
  1489. let str='';
  1490. switch (val) {
  1491. case '2':
  1492. str='应用安装'
  1493. break;
  1494. case '3':
  1495. str='电商下单'
  1496. break;
  1497. case '4':
  1498. str='推广品牌'
  1499. break;
  1500. case '5':
  1501. str='营销线索'
  1502. break;
  1503. case '7':
  1504. str='应用活跃'
  1505. break;
  1506. default:
  1507. str='转化错误'
  1508. break;
  1509. }
  1510. return str
  1511. },
  1512. creativeTagValid(rule, value, callback) {
  1513. console.log(rule, value, callback)
  1514. if(value.length == 0 || value==undefined){
  1515. // console.log(1)
  1516. callback('创意标签必须填写')
  1517. }else if (value.length > 10) {
  1518. callback('创意标签最多填写10个,请删减')
  1519. }else{
  1520. // console.log(2)
  1521. callback()
  1522. }
  1523. },
  1524. directionalChange(checkedList) {
  1525. // console.log(checkedList)
  1526. this.indeterminateDirectional = !!checkedList.length && checkedList.length < this.directionalList.length;
  1527. this.checkAllDirectional = checkedList.length === this.directionalList.length;
  1528. },
  1529. onCheckAllDirectionalChange(e) {
  1530. console.log(e)
  1531. let valueOption=[];
  1532. valueOption=this.directionalList.map(item=>{
  1533. return item.id
  1534. })
  1535. Object.assign(this, {
  1536. directionalCheckedList: e.target.checked ? valueOption : [],
  1537. indeterminateDirectional: false,
  1538. checkAllDirectional: e.target.checked,
  1539. });
  1540. },
  1541. selectDirectionalOk(e){
  1542. this.useDirectionalVisible=false
  1543. },
  1544. useDirectionalChange(e){
  1545. console.log(e);
  1546. if(e.target.value==0){
  1547. // this.useDirectionalVisible=true;
  1548. this.getUserDirectional()
  1549. }
  1550. },
  1551. // 获取定向包
  1552. getUserDirectional(){
  1553. getAction('/kuaishou/batch/getDirectionalTemplate',{
  1554. accountId:this.accountId
  1555. }).then(res=>{
  1556. console.log(res);
  1557. this.directionalList=res.result
  1558. })
  1559. },
  1560. appIdChange(val){
  1561. console.log(val)
  1562. this.siteList=[]
  1563. // this.getPageList(val)
  1564. if(this.getFormData('singleAppid')==0){
  1565. if(val&&val.indexOf(0)>-1){
  1566. let appidArr=this.appList.map(item=>{
  1567. return item.appId
  1568. })
  1569. // setTimeout(()=>{
  1570. // this.form.setFieldsValue({
  1571. // appId:appidArr
  1572. // })
  1573. // },0)
  1574. this.$nextTick(()=>{
  1575. this.form.setFieldsValue({
  1576. appId:appidArr
  1577. })
  1578. })
  1579. }
  1580. }
  1581. if(val!=undefined || (val&&val.length>0) ){
  1582. if(this.getFormData('campaignType')==2){
  1583. if(this.getFormData('singleAppid')==1){
  1584. this.getIsActivate(val)
  1585. }else{
  1586. this.getIsActivate(val[0])
  1587. }
  1588. }
  1589. }
  1590. },
  1591. disabledDate(current) {
  1592. return current && current < moment().subtract(1, 'day')
  1593. },
  1594. bidTypeChange(e){
  1595. console.log(e);
  1596. this.chargeMethods=e.target.value==10?"OCPM":'CPC'
  1597. },
  1598. getData(className) {
  1599. return this.form.getFieldValue(className)
  1600. },
  1601. handleChange(val){
  1602. console.log(val)
  1603. },
  1604. // 投放日期改变
  1605. scheduleTypeChange(val){
  1606. console.log(val)
  1607. if(val=='SCHEDULE_FROM_NOW'){
  1608. this.dateRange=[moment(),moment().add(10,'years')]
  1609. }else{
  1610. this.dateRange=[moment(),moment().add(10,'days')]
  1611. }
  1612. },
  1613. filterOption(input, option) {
  1614. return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1615. },
  1616. adpositionChange(){
  1617. if(this.adposition!='inventoryTypes'){
  1618. this.checkedList=[];
  1619. this.indeterminate=false;
  1620. this.checkAll=false;
  1621. }
  1622. },
  1623. cityChange(){
  1624. this.region=[];
  1625. },
  1626. onChange(checkedList) {
  1627. this.indeterminate = !!checkedList.length && checkedList.length < plainOptions.length;
  1628. this.checkAll = checkedList.length === plainOptions.length;
  1629. },
  1630. onCheckAllChange(e) {
  1631. let valueOption = [];
  1632. this.plainOptions.forEach((item) => {
  1633. valueOption.push(item.value)
  1634. })
  1635. Object.assign(this, {
  1636. checkedList: e.target.checked ? valueOption : [],
  1637. indeterminate: false,
  1638. checkAll: e.target.checked,
  1639. });
  1640. },
  1641. customCrowdChange(e){
  1642. console.log(e);
  1643. if(e.target.value=='1' || e.target.value=='2'){
  1644. this.retargetTabChange();
  1645. this.tabKey=e.target.value
  1646. }else if(e.target.value=='3'){
  1647. this.retargetTabChange();
  1648. this.tabKey='1'
  1649. }
  1650. },
  1651. // 自定义人群的--同时定向排除tab切换事件
  1652. retargetTabChange(){
  1653. console.log()
  1654. this.retargetDataAll=[];
  1655. this.loading=true;
  1656. getAction('/kuaishou/batch/getPopulationList',{
  1657. accountId:this.accountId
  1658. }).then((res)=>{
  1659. // console.log(res)
  1660. this.loading=false;
  1661. if(res.success){
  1662. res.result.forEach((ele)=>{
  1663. ele.key=ele.orientationId
  1664. ele.id= ele.orientationId
  1665. ele.name=ele.orientationName+"("+ele.orientationId+")"
  1666. // ele.accountName=this.accountInfo.title
  1667. ele.accountId=this.accountId
  1668. })
  1669. // this.retargetData=res.data;
  1670. this.retargetDataAll=[...this.retargetDataAll,...res.result];
  1671. }
  1672. })
  1673. },
  1674. onSelectChange(selectedRowKeys) {
  1675. // console.log('selectedRowKeys changed: ', selectedRowKeys);
  1676. this.selectedRowKeys = selectedRowKeys;
  1677. },
  1678. // 自定义人群的改变
  1679. retargetTableChange(pagination, filters, sorter){
  1680. // console.log(pagination);
  1681. },
  1682. //获取选中的城市
  1683. getSelectedCityArr(val){
  1684. console.log(val);
  1685. this.region=[];
  1686. this.region=val;
  1687. },
  1688. // 获取选中的区县
  1689. getSelectedCountyArr(val){
  1690. // console.log(val)
  1691. this.region=[];
  1692. this.region=val;
  1693. },
  1694. //获取选中的年龄段
  1695. getAgeSelect(val){
  1696. // console.log(val)
  1697. if(val.length==1&&val[0]==""){
  1698. this.agesRange=[]
  1699. }else{
  1700. this.agesRange=val;
  1701. }
  1702. },
  1703. //获取智能放量定向的值
  1704. getAutoExtendEnabled(val){
  1705. // console.log(val)
  1706. this.autoExtendTargets=[];
  1707. this.autoExtendTargets.push(...val)
  1708. },
  1709. callback(val) {
  1710. console.log(val);
  1711. },
  1712. handleOk(e) {
  1713. this.visible=false;
  1714. this.$router.push({path:'/LaunchHousekeeper/setProjectCreate'})
  1715. },
  1716. handleCancel(e) {
  1717. this.visible = false;
  1718. },
  1719. // 直达链接是否启用
  1720. useOpenUrlChange(){
  1721. this.form.setFieldsValue({
  1722. openUrl:''
  1723. })
  1724. },
  1725. //获取表单的某一个属性值
  1726. getFormData(className) {
  1727. return this.form.getFieldValue(className)
  1728. },
  1729. dateChange(date, dateString) {
  1730. // console.log(date,dateString)
  1731. this.form.getFieldDecorator('beginTime')
  1732. this.form.getFieldDecorator('endTime')
  1733. this.form.setFieldsValue({
  1734. beginTime: date[0].format('YYYY-MM-DD HH:mm'),
  1735. endTime: date[1].format('YYYY-MM-DD HH:mm'),
  1736. })
  1737. },
  1738. // 验证网址
  1739. IsURL(res) {
  1740. // var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/|www\.)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/
  1741. var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+(.+[A-Za-z0-9-~\/])+$/
  1742. var re = new RegExp(strRegex)
  1743. // console.log(re.test(res))
  1744. if (re.test(res)) {
  1745. return true
  1746. } else {
  1747. return false
  1748. }
  1749. },
  1750. validateURL(rule, value, callback) {
  1751. // console.log(rule, value, callback);
  1752. if (this.IsURL(value)) {
  1753. callback()
  1754. } else if (value && !this.IsURL(value)) {
  1755. callback('链接地址无法访问,请正确输入')
  1756. } else {
  1757. callback('链接必须填写')
  1758. }
  1759. },
  1760. validateName(rule, value, callback){
  1761. // console.log(rule, value, callback);
  1762. if (value) {
  1763. callback()
  1764. } else {
  1765. callback('应用包名称必须填写')
  1766. }
  1767. },
  1768. validateBid(rule, value, callback){
  1769. // console.log(rule, value, callback);
  1770. if (value) {
  1771. callback()
  1772. } else {
  1773. callback('出价必须填写')
  1774. }
  1775. },
  1776. // 保存并新建创意
  1777. goNext() {
  1778. this.$nextTick(()=>{
  1779. this.form.validateFields((err, values) => {
  1780. console.log(values)
  1781. if (!err) {
  1782. this.goNextloading=true;
  1783. if(this.district!='NONE'){
  1784. values.district=this.district
  1785. }
  1786. console.log(this.excludeSelectedKeys,this.incluedSelectedKeys)
  1787. // 设置广告位值
  1788. if(this.adposition!='inventoryTypes'){
  1789. this.checkedList=[];
  1790. values.sceneId=JSON.stringify([this.adposition])
  1791. }else{
  1792. values.sceneId=JSON.stringify(this.checkedList)
  1793. }
  1794. // 时间段值
  1795. // if(this.getFormData('scheduleTime')!=''){
  1796. // values.scheduleTime=this.scheduleTimeData
  1797. // }else{
  1798. // values.scheduleTime=''
  1799. // }
  1800. // 投放时间的值
  1801. // if(this.getFormData('scheduleType')=='SCHEDULE_FROM_NOW'){
  1802. // values.beginTime=this.dateRange[0].format('YYYY-MM-DD');
  1803. // values.endTime= this.dateRange[1].add(10,"years").format('YYYY-MM-DD');
  1804. // }else{
  1805. // values.beginTime=this.dateRange[0].format('YYYY-MM-DD');
  1806. // values.endTime= this.dateRange[1].format('YYYY-MM-DD');
  1807. // }
  1808. values.appIdArray=values.appId instanceof Array?JSON.stringify(values.appId):JSON.stringify([values.appId])
  1809. values.appId=undefined;
  1810. values.agesRange=JSON.stringify(this.agesRange)
  1811. values.region=JSON.stringify(this.region);
  1812. values.convertId=this.convertId==''?undefined:this.convertId;
  1813. let excludePopulation=this.excludeSelectedKeys.map(item=>{
  1814. return item.id
  1815. })
  1816. let population=this.incluedSelectedKeys.map(item=>{
  1817. return item.id
  1818. })
  1819. values.excludePopulation=excludePopulation.length>0?JSON.stringify(excludePopulation):undefined;
  1820. values.population=population.length>0?JSON.stringify(population):undefined;
  1821. values.useAppMarket=values.useAppMarket?'1':'0'
  1822. // if(this.useDirectional==0){
  1823. // values.templateId=this.directionalCheckedList
  1824. // }
  1825. if(this.sysType==1&&this.getData('useAppMarket')){
  1826. values.appStore=JSON.stringify(this.appStore)
  1827. }else if(this.sysType==1&&!this.getData('useAppMarket')){
  1828. values.appStore="[]"
  1829. }
  1830. if(values.cpaBid){
  1831. values.cpaBid=parseInt(values.cpaBid*1000)
  1832. }
  1833. if(values.deepConversionBid){
  1834. values.deepConversionBid=parseInt(values.deepConversionBid*1000)
  1835. }
  1836. if(values.creativeCategory&&values.creativeCategory.length>0){
  1837. values.creativeCategory=values.creativeCategory[values.creativeCategory.length-1]
  1838. }else{
  1839. values.creativeCategory=undefined
  1840. }
  1841. values.accountId = this.accountId
  1842. values.creativeTag=values.creativeTag?JSON.stringify(values.creativeTag):undefined
  1843. values.noAreaBreak=this.noAreaBreak?1:0
  1844. values.noGenderBreak=this.noGenderBreak?1:0
  1845. values.noAgeBreak=this.noAgeBreak?1:0
  1846. console.log('Received values of form: ', values)
  1847. let url=''
  1848. if(this.editRecordId){
  1849. url='/ctop/aiKuaishouAdvertiserStrategy/edit';
  1850. values.id=this.editRecordId
  1851. }else{
  1852. url='/ctop/aiKuaishouAdvertiserStrategy/add'
  1853. }
  1854. postAction(url,values).then(res=>{
  1855. console.log(res)
  1856. this.goNextloading=false
  1857. if(res.success){
  1858. this.$router.replace('/autoLaunch/configLaunchList')
  1859. this.$bus.$emit('remove', '/autoLaunch/configLaunchInfo')
  1860. this.$bus.$emit('remove', `/autoLaunch/configLaunchInfo?id=${this.editRecordId}`)
  1861. }else{
  1862. this.$message.error(res.message)
  1863. // this.$router.replace('/autoLaunch/configLaunchList')
  1864. // this.$bus.$emit('remove', '/autoLaunch/configLaunchInfo')
  1865. // this.$bus.$emit('remove', `/autoLaunch/configLaunchInfo?id=${this.editRecordId}`)
  1866. }
  1867. })
  1868. // $.ajax({
  1869. // url:'http://192.168.1.193:31012/add_advertiser_strategy',
  1870. // type:"POST",
  1871. // data:JSON.stringify(values),
  1872. // crossDomain:true,
  1873. // contentType:"application/json; charset=utf-8;",
  1874. // dataType:'json',
  1875. // success:(res)=>{
  1876. // this.goNextloading=false
  1877. // console.log(res)
  1878. // let result=JSON.parse(res)
  1879. // if(result.code==0){
  1880. // this.$router.replace('/autoLaunch/configLaunchList')
  1881. // this.$bus.$emit('remove', '/autoLaunch/configLaunchInfo')
  1882. // }else{
  1883. // this.$message.error(result.message)
  1884. // this.$router.replace('/autoLaunch/configLaunchList')
  1885. // this.$bus.$emit('remove', '/autoLaunch/configLaunchInfo')
  1886. // }
  1887. // },
  1888. // error:(res)=>{
  1889. // console.log(res)
  1890. // }
  1891. // })
  1892. }else{
  1893. this.$message.error('请正确填写必填项目')
  1894. }
  1895. })
  1896. })
  1897. },
  1898. // 获取applist
  1899. getAppList() {
  1900. let params = {}
  1901. params.accountId = this.accountId
  1902. getAction('/kuaishou/batch/getAppList', params).then(res => {
  1903. if (res.success) {
  1904. this.appListAll = res.result.map((item, index) => {
  1905. return {
  1906. ...item,
  1907. key: index
  1908. }
  1909. })
  1910. if(this.sysType==1){
  1911. this.appList=this.appListAll.filter(item=>{
  1912. return item.platform==1||item.platform==2
  1913. })
  1914. }else if(this.sysType==2){
  1915. this.appList=this.appListAll.filter(item=>{
  1916. return item.platform==3||item.platform==4
  1917. })
  1918. }
  1919. }
  1920. })
  1921. },
  1922. convertChange() {
  1923. this.convertId = ""
  1924. },
  1925. getConvertList() {
  1926. var params = {}
  1927. params.accountId = this.accountId
  1928. params.type = this.convertType
  1929. getAction('/kuaishou/batch/getConvertList', params).then(res => {
  1930. console.log(res)
  1931. if (res.success) {
  1932. this.convertList = res.result.map(item => {
  1933. return {
  1934. ...item,
  1935. convert_id: item.convert_id + ''
  1936. }
  1937. })
  1938. }
  1939. })
  1940. },
  1941. sysTypeChange(e){
  1942. console.log(e.target.value);
  1943. this.form.setFieldsValue({
  1944. appId:undefined,
  1945. platformOs:e.target.value
  1946. })
  1947. // if(this.getFormData('campaignType')==2 || this.getFormData('campaignType')==7){
  1948. // this.appIdChange(this.getFormData('appId'))
  1949. // }
  1950. if(this.sysType==1){
  1951. this.appList=this.appListAll.filter(item=>{
  1952. return (item.platform==1 || item.platform==2)
  1953. })
  1954. }else if(this.sysType==2){
  1955. this.appList=this.appListAll.filter(item=>{
  1956. return (item.platform==3||item.platform==4)
  1957. })
  1958. }
  1959. },
  1960. getPlatForm(appId) {
  1961. if (appId) {
  1962. var data = this.appList.filter(item => {
  1963. return item.appId == appId
  1964. })
  1965. return data[0].platform
  1966. }
  1967. },
  1968. showConvert() {
  1969. this.convertChange()
  1970. if (this.getFormData('campaignType') == 2) {
  1971. if (this.getData('appId')) {
  1972. this.convert = true;
  1973. let appIdvalue=this.getData('appId');
  1974. if (this.getPlatForm(appIdvalue instanceof Array?appIdvalue[0]:appIdvalue) == 1 || this.getPlatForm(appIdvalue instanceof Array?appIdvalue[0]:appIdvalue) == 2) {
  1975. this.convertType = '3'
  1976. } else {
  1977. this.convertType = '7'
  1978. }
  1979. } else {
  1980. this.$message.error('请选择应用')
  1981. }
  1982. } else {
  1983. this.convert = true
  1984. this.convertType = '1'
  1985. }
  1986. this.getConvertList()
  1987. },
  1988. getPageList(appId) {
  1989. getAction('/kuaishou/batch/getPageList', {
  1990. accountId: this.accountId,
  1991. appId: appId,
  1992. viewComp: 7,
  1993. }).then((res) => {
  1994. if (res.success) {
  1995. this.siteList = res.result
  1996. }
  1997. })
  1998. },
  1999. // 获取行动号召按钮
  2000. getActionBarText(){
  2001. this.actionBarTextList=[]
  2002. getAction('/kuaishou/batch/getActionBarTextByType', {
  2003. type:this.getFormData('campaignType')
  2004. }).then((res) => {
  2005. if (res.success) {
  2006. this.actionBarTextList = res.result
  2007. }
  2008. })
  2009. },
  2010. // 获取创意分类创意标签白名单
  2011. getWhiteList(){
  2012. this.whiteList={}
  2013. getAction('/kuaishou/batch/getWhiteList', {
  2014. accountId: this.accountId,
  2015. }).then((res) => {
  2016. if (res.success) {
  2017. // console.log(res)
  2018. if (res.result) {
  2019. this.whiteList=res.result
  2020. }
  2021. }
  2022. })
  2023. },
  2024. editEchoPage(){
  2025. this.spinning=true;
  2026. if(this.editRecordId){
  2027. getAction('/ctop/aiKuaishouAdvertiserStrategy/queryById',{
  2028. id:this.editRecordId
  2029. }).then(res=>{
  2030. console.log(res);
  2031. this.accountId=res.result.accountId;
  2032. this.description=res.result.description
  2033. // res.result.creativeTag=res.result.creativeTag?res.result.creativeTag:[]
  2034. this.sysType=res.result.platformOs
  2035. let fngetIsActivate=new Promise((resolve,reject)=>{
  2036. getAction('/kuaishou/batch/getIsActivate', {
  2037. accountId: this.accountId
  2038. }).then(res => {
  2039. if (res.success) {
  2040. this.groupTypeData = res.result
  2041. resolve()
  2042. }
  2043. })
  2044. })
  2045. let fngetWhite=new Promise((resolve,reject)=>{
  2046. getAction('/kuaishou/batch/getIsActivate', {
  2047. accountId: this.accountId
  2048. }).then(res => {
  2049. if (res.success) {
  2050. this.groupTypeData = res.result
  2051. resolve()
  2052. }
  2053. })
  2054. })
  2055. Promise.all([fngetIsActivate,fngetWhite]).then(r=>{
  2056. // this.form.setFieldsValue({
  2057. // ...res.result,
  2058. // creativeTag:res.result.creativeTag?JSON.parse(res.result.creativeTag):[],
  2059. // useAppMarket:res.result.useAppMarket==1?true:false,
  2060. // isOpen:res.result.isOpen?res.result.isOpen:0,
  2061. // cpaBid:res.result.cpaBid/1000,
  2062. // appId:res.singleAppid?JSON.parse(res.result.appIdArray)[0]:JSON.parse(res.result.appIdArray)
  2063. // })
  2064. if(res.result.creativeCategory){
  2065. // let arr=[];
  2066. if(res.result.creativeCategory>10000){
  2067. res.result.creativeCategory=res.result.creativeCategory?[parseInt(res.result.creativeCategory/10000),parseInt(res.result.creativeCategory/100),res.result.creativeCategory]:[];
  2068. }else if(res.result.creativeCategory>100){
  2069. res.result.creativeCategory=res.result.creativeCategory?[parseInt(res.result.creativeCategory/100),res.result.creativeCategory]:[];
  2070. }else{
  2071. res.result.creativeCategory=res.result.creativeCategory?[res.result.creativeCategory]:[];
  2072. }
  2073. }
  2074. setTimeout(()=>{
  2075. this.form.setFieldsValue({
  2076. ...res.result,
  2077. creativeTag:res.result.creativeTag?JSON.parse(res.result.creativeTag):[],
  2078. useAppMarket:res.result.useAppMarket==1?true:false,
  2079. isOpen:res.result.isOpen?res.result.isOpen:0,
  2080. cpaBid:res.result.cpaBid/1000,
  2081. appId:res.singleAppid?JSON.parse(res.result.appIdArray)[0]:JSON.parse(res.result.appIdArray)
  2082. })
  2083. },0)
  2084. if((res.result.ocpxActionType == 180 || res.result.ocpxActionType == 53) && this.groupTypeData.deepConversionTypes&&this.groupTypeData.deepConversionTypes.length > 0){
  2085. // console.log(1)
  2086. setTimeout(()=>{
  2087. this.form.setFieldsValue({
  2088. deepConversionType:res.result.deepConversionType,
  2089. })
  2090. if(res.result.deepConversionBid!=null){
  2091. this.form.setFieldsValue({
  2092. deepConversionBid:res.result.deepConversionBid/1000,
  2093. })
  2094. }
  2095. },0)
  2096. }
  2097. // console.log(this.getFormData('deepConversionBid'))
  2098. this.noAreaBreak=res.result.noAreaBreak?true:false
  2099. this.noGenderBreak=res.result.noGenderBreak?true:false
  2100. this.noAgeBreak=res.result.noAgeBreak?true:false
  2101. this.appStore=res.result.appStore?JSON.parse(res.result.appStore):[]
  2102. this.ageArr=[];
  2103. this.ageArr=JSON.parse(JSON.stringify(ageArr))
  2104. let agesRange=res.result.agesRange?JSON.parse(res.result.agesRange):[]
  2105. if(agesRange.length>0){
  2106. agesRange.forEach((item,index)=>{
  2107. this.ageArr.forEach((ele)=>{
  2108. if(ele.value==item){
  2109. ele.checked=true;
  2110. }
  2111. })
  2112. });
  2113. }
  2114. let sceneId=res.result.sceneId?JSON.parse(res.result.sceneId):[]
  2115. if(sceneId.length==1&&sceneId[0]==1){
  2116. this.adposition=1
  2117. }else{
  2118. this.adposition='inventoryTypes';
  2119. this.checkedList=sceneId
  2120. }
  2121. if(res.result.population&&res.result.excludePopulation){
  2122. this.form.setFieldsValue({
  2123. customCrowd:'3'
  2124. })
  2125. }else if(res.result.population&&!res.result.excludePopulation){
  2126. this.form.setFieldsValue({
  2127. customCrowd:'1'
  2128. })
  2129. }else if(!res.result.population&&!res.result.excludePopulation){
  2130. this.form.setFieldsValue({
  2131. customCrowd:'0'
  2132. })
  2133. }else{
  2134. this.form.setFieldsValue({
  2135. customCrowd:'2'
  2136. })
  2137. }
  2138. this.incluedSelectedRowKeys=res.result.population?JSON.parse(res.result.population):[]
  2139. this.excludeSelectedRowKeys=res.result.excludePopulation?JSON.parse(res.result.excludePopulation):[]
  2140. let region=res.result.region?JSON.parse(res.result.region):[]
  2141. if(region.length==0){
  2142. this.district='NONE'
  2143. }else{
  2144. this.district='CITY';
  2145. this.regionList=region
  2146. }
  2147. if(this.getFormData('customCrowd')=='1' || this.getFormData('customCrowd')=='2'){
  2148. this.tabKey=this.getFormData('customCrowd')
  2149. }else if(this.getFormData('customCrowd')=='3'){
  2150. this.tabKey='1'
  2151. }
  2152. this.spinning=false;
  2153. })
  2154. })
  2155. }
  2156. },
  2157. getpopulationlist(){
  2158. this.retargetDataAll=[]
  2159. getAction('/kuaishou/batch/getPopulationList',{
  2160. accountId:this.accountId
  2161. }).then((res)=>{
  2162. // console.log(res)
  2163. this.loading=false;
  2164. if(res.success){
  2165. res.result.forEach((ele)=>{
  2166. ele.key=ele.orientationId
  2167. ele.id= ele.orientationId
  2168. ele.name=ele.orientationName+"("+ele.orientationId+")"
  2169. ele.accountName=this.accountInfo.title
  2170. ele.accountId=this.accountId
  2171. })
  2172. // this.retargetData=res.data;
  2173. // this.retargetDataAll=[...this.retargetDataAll,...res.result];
  2174. this.retargetDataAll=[...res.result];
  2175. }
  2176. })
  2177. }
  2178. },
  2179. created() {
  2180. if(this.$route){
  2181. let editRecordId=this.$route.query.id;
  2182. if(editRecordId){
  2183. this.$nextTick(()=>{
  2184. this.editRecordId=editRecordId;
  2185. this.editEchoPage()
  2186. })
  2187. }
  2188. }
  2189. },
  2190. mounted() {
  2191. this.accountHttp()
  2192. // this.$bus.$emit('remove', '/modules/BatchCreate/newGroup')
  2193. let strategyNamepart=this.campaignTypeHandle(this.getFormData('campaignType'));
  2194. this.strategyName ='[预设]_'+ strategyNamepart+'_' + moment().format('MM_DD_hh:mm') ;
  2195. this.getActionBarText()
  2196. },
  2197. filters: {
  2198. getDate(value) {
  2199. let date = new Date(value)
  2200. let y = date.getFullYear()
  2201. let MM = date.getMonth() + 1
  2202. MM = MM < 10 ? '0' + MM : MM
  2203. let d = date.getDate()
  2204. d = d < 10 ? '0' + d : d
  2205. return y + '-' + MM + '-' + d
  2206. },
  2207. platform(str) {
  2208. var data = {
  2209. 1: 'Android应用下载',
  2210. 2: 'Android网页游戏',
  2211. 3: 'iOS应用下载',
  2212. 4: 'iOS网页游戏'
  2213. }
  2214. return data[str]
  2215. },
  2216. customCrowdHandler(val){
  2217. let str=''
  2218. switch (val) {
  2219. case 1:
  2220. str='上传人群'
  2221. break;
  2222. case 2:
  2223. str='广告人群'
  2224. break;
  2225. case 3:
  2226. str='主题专区'
  2227. break;
  2228. case 4:
  2229. str='逻辑规则'
  2230. break;
  2231. case 5:
  2232. str='人群扩展'
  2233. break;
  2234. case 6:
  2235. str='平台定制'
  2236. break;
  2237. case 7:
  2238. str='定制付费'
  2239. break;
  2240. case 8:
  2241. str='网红粉丝类别'
  2242. break;
  2243. case 9:
  2244. str='内容付费行为'
  2245. break;
  2246. case 10:
  2247. str='移动应用安装'
  2248. break;
  2249. case 11:
  2250. str='快手使用活跃度'
  2251. break;
  2252. case 12:
  2253. str='行业分类'
  2254. break;
  2255. case 13:
  2256. str='商业兴趣'
  2257. break;
  2258. case 14:
  2259. str='固化标签'
  2260. break;
  2261. case 15:
  2262. str='行业偏好'
  2263. break;
  2264. case 16:
  2265. str='第三方标签'
  2266. break;
  2267. case 17:
  2268. str='产品关键词'
  2269. break;
  2270. default:
  2271. break;
  2272. }
  2273. return str
  2274. }
  2275. },
  2276. }
  2277. </script>
  2278. <style lang="scss">
  2279. .configLaunchInfo{
  2280. .display-none-selset {
  2281. display: none !important;
  2282. }
  2283. .ant-btn-danger {
  2284. background-color: #ff4d4f !important;
  2285. }
  2286. }
  2287. .ant-tooltip-inner,
  2288. .ant-tooltip,
  2289. .ant-tooltip-arrow::before {
  2290. background-color: #fff;
  2291. color: #333;
  2292. }
  2293. .ant-tooltip-inner {
  2294. span {
  2295. display: block;
  2296. }
  2297. }
  2298. .ant-tooltip {
  2299. max-width: 450px;
  2300. }
  2301. .configLaunchInfo {
  2302. .ant-radio-button-wrapper {
  2303. min-width: 80px;
  2304. text-align: center;
  2305. }
  2306. .ant-form-item {
  2307. -webkit-box-sizing: border-box;
  2308. box-sizing: border-box;
  2309. margin: 0;
  2310. padding: 0;
  2311. color: rgba(0, 0, 0, 0.65);
  2312. font-size: 14px;
  2313. font-variant: tabular-nums;
  2314. line-height: 1.5;
  2315. list-style: none;
  2316. -webkit-font-feature-settings: 'tnum';
  2317. font-feature-settings: 'tnum';
  2318. vertical-align: top;
  2319. }
  2320. .directedBody {
  2321. .ant-form-item {
  2322. margin-bottom: 20px;
  2323. }
  2324. }
  2325. .inventoryTypes{
  2326. .ant-checkbox-wrapper,
  2327. .ant-checkbox-group-item {
  2328. display: block;
  2329. padding: 5px 15px;
  2330. }
  2331. .ant-checkbox-wrapper:first-child {
  2332. padding: 0 15px 5px;
  2333. }
  2334. .ant-checkbox-wrapper + .ant-checkbox-wrapper {
  2335. margin-left: 0px;
  2336. }
  2337. }
  2338. }
  2339. </style>
  2340. <style lang="scss" scoped>
  2341. .configLaunchInfo {
  2342. .region{
  2343. width: 100%;
  2344. }
  2345. font-family: PingFangSC-Regular, tahoma, arial, 'Hiragino Sans GB', 'Microsoft yahei', sans-serif;
  2346. color: #333;
  2347. ul,
  2348. li {
  2349. margin: 0;
  2350. padding: 0;
  2351. }
  2352. .moduler {
  2353. background: #fff;
  2354. margin-bottom: 16px;
  2355. position: relative;
  2356. padding: 32px 24px 48px 32px;
  2357. border-radius: 4px;
  2358. box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.05);
  2359. .ad-range2{
  2360. width: 680px;
  2361. padding: 5px 32px;
  2362. .ad-range2-title{
  2363. background: #f9f9f9;
  2364. // line-height: 32px;
  2365. // height: 32px;
  2366. padding: 15px 15px;
  2367. border: 1px solid #eaeaea;
  2368. border-bottom: 0;
  2369. }
  2370. .quanxuanDirectional{
  2371. // padding: 0 8px;
  2372. position: absolute;
  2373. right: 10px;
  2374. top: 15px;
  2375. color: #1890ff;
  2376. }
  2377. .title-list {
  2378. // width: calc(100% + 48px);
  2379. width: 100%;
  2380. margin: 0;
  2381. margin-bottom: 0;
  2382. padding: 0;
  2383. background: #fff;
  2384. height: 363px;
  2385. border: 1px solid #eaeaea;
  2386. overflow: scroll;
  2387. overflow-x: hidden;
  2388. // margin-top: 10px;
  2389. }
  2390. .title-list .title-item{
  2391. padding: 10px 30px;
  2392. width: 100%;
  2393. // height: 32px;
  2394. // line-height: 32px;
  2395. // border-bottom: 1px solid #eaeaea;
  2396. }
  2397. }
  2398. .moduler-title {
  2399. display: flex;
  2400. align-items: center;
  2401. font-size: 22px;
  2402. margin-bottom: 20px;
  2403. }
  2404. .row-item {
  2405. display: flex;
  2406. justify-content: flex-start;
  2407. align-items: center;
  2408. margin-bottom: 32px;
  2409. }
  2410. .row-item:last-of-type {
  2411. margin-bottom: 0;
  2412. }
  2413. .row-item .hint-item {
  2414. width: 24px;
  2415. min-width: 24px;
  2416. align-self: flex-start;
  2417. line-height: 20px;
  2418. height: 20px;
  2419. margin-top: 9px;
  2420. }
  2421. .row-item .label-item {
  2422. position: relative;
  2423. align-items: flex-start;
  2424. align-self: flex-start;
  2425. line-height: 20px;
  2426. height: 20px;
  2427. margin-top: 10px;
  2428. width: 120px;
  2429. // min-width: 80px;
  2430. .text-item {
  2431. font-size: 14px;
  2432. width: 100px;
  2433. }
  2434. }
  2435. .row-item .required-item {
  2436. width: 4px;
  2437. height: 4px;
  2438. border-radius: 2px;
  2439. background: #f45858;
  2440. position: absolute;
  2441. right: 10px;
  2442. top: 50%;
  2443. transform: translateY(-50%);
  2444. }
  2445. .row-item .input-item {
  2446. min-width: 480px;
  2447. position: relative;
  2448. // height: 35px;
  2449. .tip {
  2450. font-size: 12px;
  2451. color: tomato;
  2452. }
  2453. .inventory-tags-lists-header {
  2454. background-color: #F8F9FA;
  2455. border: 1px solid #E4E9ED;
  2456. height: 36px;
  2457. line-height: 33px;
  2458. border-radius: 4px 4px 0 0;
  2459. font-weight: bold;
  2460. display: flex;
  2461. }
  2462. .inventory-tags-lists-container {
  2463. border: 1px solid #E4E9ED;
  2464. margin-top: -1px;
  2465. height: 100%;
  2466. padding: 4px 0px;
  2467. border-radius: 0 0 4px 4px;
  2468. }
  2469. .inventory-tags-lists-item {
  2470. width: 100%;
  2471. height: 37px;
  2472. line-height: 37px;
  2473. padding-left: 12px;
  2474. padding-right: 12px;
  2475. display: flex;
  2476. font-size: 14px;
  2477. color: #333;
  2478. }
  2479. }
  2480. }
  2481. .opt {
  2482. text-align: right;
  2483. }
  2484. }
  2485. </style>