filterQuery.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. <template>
  2. <view>
  3. <u-popup :show="showFilter" mode="bottom" closeable @close="handleClose" @open="handleOpen">
  4. <scroll-view scroll-y :style="{ height: mapHeight }" @touchmove.stop="() => {}">
  5. <view class="filterQuery" :style="{ height : mapHeight }">
  6. <view class="query_wrap">
  7. <view class="title">
  8. 线索创建时间
  9. </view>
  10. <view class="dept_wrap form_input_pointer_events" @click="handleShowJtimePickerPopup">
  11. <u--input v-model="createTimeTxt" disabled style='pointer-events: none !important'
  12. disabledColor="#ffffff" placeholder="点击选择" border="none">
  13. </u--input>
  14. <u-icon slot="right" name="arrow-right"></u-icon>
  15. </view>
  16. <view class="title">
  17. 归属机构
  18. </view>
  19. <view class="dept_wrap form_input_pointer_events" @click="handleShowclueDept">
  20. <u--input v-model="value.deptName" disabled style='pointer-events: none !important'
  21. disabledColor="#ffffff" placeholder="点击选择" border="none">
  22. </u--input>
  23. <u-icon slot="right" name="arrow-right"></u-icon>
  24. </view>
  25. <view class="title">
  26. 来源
  27. </view>
  28. <view class="dept_wrap form_input_pointer_events" @click="handleShowclueAppName">
  29. <u--input v-model="value.appNameLabel" disabled style='pointer-events: none !important'
  30. disabledColor="#ffffff" placeholder="点击选择" border="none">
  31. </u--input>
  32. <u-icon slot="right" name="arrow-right"></u-icon>
  33. </view>
  34. <view class="title">
  35. 是否撞单
  36. </view>
  37. <view class="dept_wrap form_input_pointer_events">
  38. <ld-select :list="repetitionDict" label-key="dictLabel" value-key="dictValue"
  39. placeholder="请选择" v-model="value.isRepetitionOperationName" :border="false"></ld-select>
  40. <u-icon slot="right" name="arrow-right"></u-icon>
  41. </view>
  42. <!-- <view class="title">
  43. 是否微信撞单
  44. </view>
  45. <view class="dept_wrap form_input_pointer_events">
  46. <ld-select :list="repetitionDict" label-key="dictLabel" value-key="dictValue"
  47. placeholder="请选择" v-model="value.isRepetitionOperWeixinName" :border="false"></ld-select>
  48. <u-icon slot="right" name="arrow-right"></u-icon>
  49. </view> -->
  50. <view class="title">
  51. 是否有视频ID
  52. </view>
  53. <view class="dept_wrap form_input_pointer_events">
  54. <ld-select :list="repetitionDict" label-key="dictLabel" value-key="dictValue"
  55. placeholder="请选择" v-model="value.isVideoIdIsNull" :border="false"></ld-select>
  56. <u-icon slot="right" name="arrow-right"></u-icon>
  57. </view>
  58. <view class="title">
  59. 归属人
  60. </view>
  61. <view class="person_wrap">
  62. <view class="person_item" v-for="(item,index) in clueOwners.userInfos" :key="item.userId">
  63. <view class="person_top">
  64. <u-avatar :src="$avatar(item.avatar)" size="40px"></u-avatar>
  65. </view>
  66. <view class="person_bottom">
  67. {{item.nickName}}
  68. </view>
  69. </view>
  70. <view class="person_item more_item" @click="handleShowclueOwner">
  71. <view class="person_top">
  72. <image src="/static/case/icon-more.png" mode="" class="more"></image>
  73. </view>
  74. <view class="person_bottom">
  75. 更多
  76. </view>
  77. </view>
  78. </view>
  79. <view class="title">
  80. 运营人
  81. </view>
  82. <view class="person_wrap">
  83. <view class="person_item" v-for="(item,index) in clueOperations.userInfos" :key="item.userId">
  84. <view class="person_top">
  85. <u-avatar :src="$avatar(item.avatar)" size="40px"></u-avatar>
  86. </view>
  87. <view class="person_bottom">
  88. {{item.nickName}}
  89. </view>
  90. </view>
  91. <view class="person_item more_item" @click="handleShowclueOperation">
  92. <view class="person_top">
  93. <image src="/static/case/icon-more.png" mode="" class="more"></image>
  94. </view>
  95. <view class="person_bottom">
  96. 更多
  97. </view>
  98. </view>
  99. </view>
  100. <view class="title">
  101. 线索阶段
  102. </view>
  103. <view class="option_list">
  104. <u-tag :text="item.dictLabel" plain :color="item.isCheck ? '#bd0017' : '#aaa'"
  105. :borderColor="item.isCheck ? '#bd0017' : '#aaa'" class="option_item"
  106. v-for="(item,index) in clueStateDicts" :key="index"
  107. @click="handleClickTag(item,'clueStateList')"></u-tag>
  108. </view>
  109. <!-- <view class="title">
  110. 线索标签
  111. </view>
  112. <view class="option_list">
  113. <ld-select :list="clueTagGroupVoList" label-key="name" value-key="id" placeholder="请选择线索标签"
  114. v-model="value.allTagList" multiple clearable></ld-select>
  115. </view> -->
  116. <view class="title">
  117. 手机号码或微信
  118. </view>
  119. <view class="search_input">
  120. <u--input clearable prefixIcon="search" v-model="value.telephone"
  121. placeholder="请输入手机号码或微信"></u--input>
  122. </view>
  123. <view class="title">
  124. 姓名
  125. </view>
  126. <view class="search_input">
  127. <u--input clearable prefixIcon="search" v-model="value.name" placeholder="请输入姓名"></u--input>
  128. </view>
  129. <view class="title">
  130. 广告主名称
  131. </view>
  132. <view class="search_input">
  133. <u--input clearable prefixIcon="search" v-model="value.advName"
  134. placeholder="请输入广告主名称"></u--input>
  135. </view>
  136. <view class="title">
  137. 广告名称
  138. </view>
  139. <view class="search_input">
  140. <u--input clearable prefixIcon="search" v-model="value.promotionName"
  141. placeholder="请输入广告名称"></u--input>
  142. </view>
  143. <view class="title">
  144. 广告主ID
  145. </view>
  146. <view class="search_input">
  147. <u--input clearable prefixIcon="search" v-model="value.advId" placeholder="请输入广告主ID"></u--input>
  148. </view>
  149. <view class="title">
  150. 广告ID
  151. </view>
  152. <view class="search_input">
  153. <u--input clearable prefixIcon="search" v-model="value.promotionId"
  154. placeholder="请输入广告ID"></u--input>
  155. </view>
  156. <view class="title">
  157. 标题ID
  158. </view>
  159. <view class="search_input">
  160. <u--input clearable prefixIcon="search" v-model="value.titleId"
  161. placeholder="请输入标题ID"></u--input>
  162. </view>
  163. <view class="title">
  164. 视频ID
  165. </view>
  166. <view class="search_input">
  167. <u--input clearable prefixIcon="search" v-model="value.videoId"
  168. placeholder="请输入视频ID"></u--input>
  169. </view>
  170. <view class="title">
  171. 自动定位城市
  172. </view>
  173. <view class="pick_regions_wrap form_input_pointer_events">
  174. <pick-regions :defaultRegion="defaultRegion" @getRegion="handleGetRegion1">
  175. <view class="province">
  176. <template v-if="value.autoProvince">
  177. <u--input :value="value.autoProvince + '/' + value.autoCity + '/' + value.autoArea"
  178. placeholder="点击选择" readonly suffixIcon="arrow-right"
  179. suffixIconStyle="color : #c0c4cc"></u--input>
  180. </template>
  181. <template v-else>
  182. <u--input placeholder="点击选择" readonly suffixIcon="arrow-right"
  183. suffixIconStyle="color : #c0c4cc"></u--input>
  184. </template>
  185. </view>
  186. </pick-regions>
  187. </view>
  188. <view class="title">
  189. 手动填写地域
  190. </view>
  191. <view class="pick_regions_wrap form_input_pointer_events">
  192. <pick-regions :defaultRegion="defaultRegion" @getRegion="handleGetRegion2">
  193. <view class="province">
  194. <template v-if="value.manualProvince">
  195. <u--input
  196. :value="value.manualProvince + '/' + value.manualCity + '/' + value.manualArea"
  197. placeholder="点击选择" readonly suffixIcon="arrow-right"
  198. suffixIconStyle="color : #c0c4cc"></u--input>
  199. </template>
  200. <template v-else>
  201. <u--input placeholder="点击选择" readonly suffixIcon="arrow-right"
  202. suffixIconStyle="color : #c0c4cc"></u--input>
  203. </template>
  204. </view>
  205. </pick-regions>
  206. </view>
  207. <view class="title">
  208. 跟进状态
  209. </view>
  210. <view class="option_list">
  211. <u-tag :text="item.dictLabel" plain :color="item.isCheck ? '#bd0017' : '#aaa'"
  212. :borderColor="item.isCheck ? '#bd0017' : '#aaa'" class="option_item"
  213. v-for="(item,index) in followStatusDicts" :key="index"
  214. @click="handleClickTag(item,'handleStateList')"></u-tag>
  215. </view>
  216. <view class="title">
  217. 通话状态
  218. </view>
  219. <view class="option_list">
  220. <u-tag :text="item.dictLabel" plain :color="item.isCheck ? '#bd0017' : '#aaa'"
  221. :borderColor="item.isCheck ? '#bd0017' : '#aaa'" class="option_item"
  222. v-for="(item,index) in callStatusDicts" :key="index"
  223. @click="handleClickTag(item,'followStatusList')"></u-tag>
  224. </view>
  225. <view class="title">
  226. 入池方式
  227. </view>
  228. <view class="option_list">
  229. <u-tag :text="item.dictLabel" plain :color="item.isCheck ? '#bd0017' : '#aaa'"
  230. :borderColor="item.isCheck ? '#bd0017' : '#aaa'" class="option_item"
  231. v-for="(item,index) in clueEntranceTypeDicts" :key="index"
  232. @click="handleClickTag(item,'clueEntranceType')"></u-tag>
  233. </view>
  234. </view>
  235. <u-tabbar :fixed="true" inactiveColor="#ffffff" class="case_tabbar" :placeholder="true"
  236. :safeAreaInsetBottom="true">
  237. <u-tabbar-item text="重置" :customStyle="{backgroundColor : '#fff'}" class="uTabbarItem close_btn"
  238. @click="handleReset"></u-tabbar-item>
  239. <u-tabbar-item text="确定" :customStyle="{backgroundColor : '#4c8afe'}" class="uTabbarItem"
  240. @click="handleEnter"></u-tabbar-item>
  241. </u-tabbar>
  242. <ba-tree-picker :selectParent="false" v-if="clueOwnerListData.length > 0" ref="clueOwner" :multiple="false"
  243. border title="归属人" :localdata="clueOwnerListData" valueKey="id" textKey="label" childrenKey="children"
  244. :selectedValues="value.clueOwnerId" @select-change="clueOwnerSeletchang" />
  245. <ba-tree-picker :selectParent="false" v-if="clueOperationListData.length > 0" ref="clueOperation" :multiple="false"
  246. border title="运营人" :localdata="clueOperationListData" valueKey="id" textKey="label" childrenKey="children"
  247. :selectedValues="value.clueOperationId" @select-change="clueOperationSeletchang" />
  248. <ba-tree-picker :selectParent="true" v-if="deptList.length > 0" ref="dept" :multiple='false'
  249. @select-change="deptSeletchang" border title="归属机构" :localdata="deptList" valueKey="deptId"
  250. textKey="deptName" childrenKey="children" :selectedValues="value.deptId"
  251. :personNames="value.deptName" />
  252. <ba-tree-picker :selectParent="true" v-if="dictCascadeData.length > 0" ref="appName" :multiple='false'
  253. @select-change="appNameSeletchang" border title="来源" :localdata="dictCascadeData" valueKey="id"
  254. textKey="name" childrenKey="children" :selectedValues="value.appNames"
  255. :personNames="value.appNameLabel" />
  256. <jtimePickerPopup :isShowShortTimeList="true" shortTimeTitle="快捷时间" :shortTimeList="shortTimeList"
  257. :isShowSeletTimeTitle="true" seletTimeTitle="时间选择" cancelText="取消" confirmText="确认"
  258. :endSelectMonth="-1" :endSelectDay="-1" beginTimePlaceHolder='开始时间' endTimePlaceHolder="结束时间"
  259. :isDateTypeRange="true" :isShowSelectedTimeEcho="true" @confirm="getSelectTime"
  260. ref="jtimePickerPopup" :defaultSelect="1">
  261. </jtimePickerPopup>
  262. </view>
  263. </scroll-view>
  264. </u-popup>
  265. </view>
  266. </template>
  267. <script>
  268. import {
  269. filterCustomerManager,
  270. handleTree
  271. } from '@/utils/util';
  272. import jtimePickerPopup from '@/uni_modules/jtime-picker-popup/components/JTimePicker/JTimePicker.vue';
  273. export default {
  274. components: {
  275. jtimePickerPopup
  276. },
  277. props: {
  278. value: {
  279. type: Object,
  280. },
  281. mapHeight: {
  282. type: String,
  283. },
  284. dicts: {
  285. type: Object
  286. },
  287. },
  288. emits: ["getList"],
  289. computed: {
  290. clueStateDicts() {
  291. this.dicts.caseStatusDicts.forEach(v => {
  292. const item = this.value.clueStateList.find(s => s == v.dictValue);
  293. v.isCheck = item ? true : false;
  294. });
  295. return this.dicts.caseStatusDicts;
  296. },
  297. followStatusDicts() {
  298. this.dicts.crmFollowStatus.forEach(v => {
  299. const item = this.value.handleStateList.find(s => s == v.dictValue);
  300. v.isCheck = item ? true : false;
  301. });
  302. return this.dicts.crmFollowStatus;
  303. },
  304. callStatusDicts() {
  305. this.dicts.crmCallStatus.forEach(v => {
  306. const item = this.value.followStatusList.find(s => s == v.dictValue);
  307. v.isCheck = item ? true : false;
  308. });
  309. return this.dicts.crmCallStatus;
  310. },
  311. clueEntranceTypeDicts() {
  312. this.dicts.clueEntranceType.forEach(v => {
  313. const item = this.value.clueEntranceType.find(s => s == v.dictValue);
  314. v.isCheck = item ? true : false;
  315. });
  316. return this.dicts.clueEntranceType;
  317. },
  318. },
  319. data() {
  320. return {
  321. repetitionDict: [{
  322. dictLabel: '是',
  323. dictValue: '1'
  324. },
  325. {
  326. dictLabel: '否',
  327. dictValue: '2'
  328. },
  329. {
  330. dictLabel: '查所有',
  331. dictValue: ''
  332. },
  333. ],
  334. showFilter: false,
  335. dictCascadeData: [],
  336. clueOwnerListData: [], // 人员列表
  337. clueOperationListData: [], // 人员列表
  338. deptList: [],
  339. dateRange: [], // 日期范围
  340. shortTimeList: [{
  341. unit: 'day',
  342. key: '全部',
  343. value: 0
  344. },
  345. {
  346. unit: 'day',
  347. key: '今天',
  348. value: 1
  349. },
  350. {
  351. unit: 'day',
  352. key: '昨天',
  353. value: -1
  354. },
  355. {
  356. unit: 'day',
  357. key: '近3天',
  358. value: 3
  359. },
  360. {
  361. unit: 'day',
  362. key: '近7天',
  363. value: 7
  364. },
  365. {
  366. unit: 'day',
  367. key: '近15天',
  368. value: 15
  369. },
  370. {
  371. unit: 'month',
  372. key: '本月',
  373. value: 1
  374. },
  375. {
  376. unit: 'month',
  377. key: '上月',
  378. value: -1
  379. },
  380. ],
  381. createTimeTxt: null,
  382. clueOwners: {
  383. ids: [],
  384. names: [],
  385. userInfos: [],
  386. },
  387. clueOperations: {
  388. ids: [],
  389. names: [],
  390. userInfos: [],
  391. },
  392. clueTagGroupVoList: [],
  393. defaultRegion: ['广东省', '广州市', '番禺区'],
  394. sortParams: [{
  395. value: 1,
  396. text: '企业名称'
  397. }, {
  398. value: 2,
  399. text: '项目名称'
  400. }, {
  401. value: 3,
  402. text: '项目状态'
  403. }, {
  404. value: 4,
  405. text: '项目等级'
  406. }, {
  407. value: 5,
  408. text: '省市区'
  409. }, {
  410. value: 6,
  411. text: '委托日期'
  412. }, {
  413. value: 7,
  414. text: '创建日期'
  415. }, {
  416. value: 8,
  417. text: '跟进时间'
  418. }]
  419. }
  420. },
  421. mounted() {
  422. this.handleInitTag();
  423. },
  424. methods: {
  425. handleOpen(){
  426. if(this.createTimeTxt === null){
  427. this.$refs.jtimePickerPopup.handleInit();
  428. }
  429. },
  430. handleShowclueAppName() {
  431. this.$refs.appName._show();
  432. },
  433. getSelectTime(timeValue) {
  434. this.value.createTimeStart = timeValue.beginTime;
  435. this.value.createTimeEnd = timeValue.endTime;
  436. if (this.value.createTimeStart && this.value.createTimeEnd) {
  437. this.createTimeTxt = this.value.createTimeStart + "至" + this.value.createTimeEnd;
  438. } else {
  439. this.createTimeTxt = "";
  440. }
  441. },
  442. deptSeletchang(ids, names) {
  443. this.value.deptId = ids[0];
  444. this.value.deptName = names[0];
  445. },
  446. handleShowJtimePickerPopup() {
  447. this.$refs.jtimePickerPopup.pickerShow();
  448. },
  449. handleShowclueDept() {
  450. this.$refs.dept._show();
  451. },
  452. // 自动定位城市
  453. handleGetRegion1(region) {
  454. const {
  455. 0: provinceData,
  456. 1: cityData,
  457. 2: areaData
  458. } = region;
  459. this.value.autoProvince = provinceData.name;
  460. this.value.autoCity = cityData.name;
  461. this.value.autoArea = areaData.name;
  462. },
  463. // 手动填写地域
  464. handleGetRegion2(region) {
  465. const {
  466. 0: provinceData,
  467. 1: cityData,
  468. 2: areaData
  469. } = region;
  470. this.value.manualProvince = provinceData.name;
  471. this.value.manualCity = cityData.name;
  472. this.value.manualArea = areaData.name;
  473. },
  474. appNameSeletchang(ids, names) {
  475. this.value.appNames = ids;
  476. this.value.appNameLabel = names[0];
  477. },
  478. clueOperationSeletchang(ids, names) {
  479. this.clueOperations.ids = ids;
  480. this.clueOperations.names = ids;
  481. this.value.clueOperationId = ids[0];
  482. if (ids.length > 0) {
  483. // 暂时只做单向
  484. uni.$u.api.getUserByUserIds({
  485. userIds: ids.join(",")
  486. }).then(res => {
  487. const {
  488. data
  489. } = res;
  490. this.clueOperations.userInfos = data;
  491. })
  492. } else {
  493. this.clueOperations.userInfos = [];
  494. }
  495. },
  496. clueOwnerSeletchang(ids, names) {
  497. this.clueOwners.ids = ids;
  498. this.clueOwners.names = ids;
  499. this.value.clueOwnerId = ids[0];
  500. if (ids.length > 0) {
  501. // 暂时只做单向
  502. uni.$u.api.getUserByUserIds({
  503. userIds: ids.join(",")
  504. }).then(res => {
  505. const {
  506. data
  507. } = res;
  508. this.clueOwners.userInfos = data;
  509. })
  510. } else {
  511. this.clueOwners.userInfos = [];
  512. }
  513. },
  514. handleShowclueOperation() {
  515. this.$refs.clueOperation._show();
  516. },
  517. handleShowclueOwner() {
  518. this.$refs.clueOwner._show();
  519. },
  520. handleInitTag() {
  521. uni.$u.api.selectAllDeptList({
  522. isDept: 2
  523. }).then(({
  524. data
  525. }) => {
  526. this.deptList = handleTree(data, 'deptId');
  527. });
  528. // 获取人员
  529. uni.$u.api.getDeptOwner({ excludeDeptIds : [100,369,378,356] }).then(res => {
  530. this.clueOwnerListData = filterCustomerManager(res.data);
  531. });
  532. // 获取人员
  533. uni.$u.api.getDeptCustomerByOrg({ deptId : 369 }).then(res => {
  534. this.clueOperationListData = filterCustomerManager(res.data);
  535. });
  536. // 获取所有线索标签
  537. uni.$u.api.getClueTagGroupVoList({ tagGroupApplication : '1' }).then(({
  538. data
  539. }) => {
  540. this.clueTagGroupVoList = data.reduce((acc, cur) => {
  541. return acc.concat(cur.clueTagDataList);
  542. }, []);
  543. });
  544. // 来源
  545. uni.$u.api.getDictCascadeData().then(({
  546. data
  547. }) => {
  548. this.dictCascadeData = handleTree(data, 'id');
  549. });
  550. },
  551. handleClose() {
  552. this.showFilter = false;
  553. },
  554. handleClickTag(item, attr) {
  555. if (item.isCheck) {
  556. const index = this.value[attr].findIndex(v => v == item.dictValue);
  557. this.value[attr].splice(index, 1);
  558. } else {
  559. this.value[attr].push(item.dictValue);
  560. }
  561. },
  562. handleReset() {
  563. this.value.clueStateList = [];
  564. this.value.followStatusList = [];
  565. this.value.handleStateList = [];
  566. this.value.clueEntranceType = [];
  567. this.value.manualProvince = undefined;
  568. this.value.manualCity = undefined;
  569. this.value.manualArea = undefined;
  570. this.value.autoProvince = undefined;
  571. this.value.autoCity = undefined;
  572. this.value.autoArea = undefined;
  573. this.value.clueOperationId = undefined;
  574. this.value.clueOwnerId = undefined;
  575. this.value.allTagList = [];
  576. this.value.telephone = undefined;
  577. this.value.deptId = undefined;
  578. this.value.deptName = undefined;
  579. this.value.appNames = [];
  580. this.value.appNameLabel = undefined;
  581. this.value.isRepetitionOperWeixinName = '';
  582. this.value.isRepetitionOperationName = '';
  583. this.value.isVideoIdIsNull = '';
  584. this.value.advName = "";
  585. this.value.promotionName = "";
  586. this.value.advId = "";
  587. this.value.promotionId = "";
  588. this.value.titleId = "";
  589. this.value.videoId = "";
  590. this.clueOwners = {
  591. ids: [],
  592. names: [],
  593. userInfos: [],
  594. };
  595. this.clueOperations = {
  596. ids: [],
  597. names: [],
  598. userInfos: [],
  599. };
  600. },
  601. handleEnter() {
  602. if (this.value.titleId && isNaN(this.value.titleId)) {
  603. this.$u.toast("标题ID必须为纯数值");
  604. return;
  605. }
  606. if (this.value.videoId && isNaN(this.value.videoId)) {
  607. this.$u.toast("视频ID必须为纯数值");
  608. return;
  609. }
  610. if (this.value.promotionId && isNaN(this.value.promotionId)) {
  611. this.$u.toast("广告ID必须为纯数值");
  612. return;
  613. }
  614. if (this.value.advId && isNaN(this.value.advId)) {
  615. this.$u.toast("广告主ID必须为纯数值");
  616. return;
  617. }
  618. this.$emit("getList");
  619. this.showFilter = false;
  620. },
  621. handleChangeSort(sort) {
  622. this.value.sort = sort;
  623. },
  624. handleChangeSortField(value) {
  625. this.value.sortField = value;
  626. },
  627. show() {
  628. this.showFilter = true;
  629. }
  630. },
  631. }
  632. </script>
  633. <style lang="scss" scoped>
  634. .filterQuery {
  635. padding: 20px;
  636. box-sizing: border-box;
  637. overflow: scroll;
  638. .dept_wrap {
  639. border: 2px solid #ddd;
  640. display: flex;
  641. padding: 10rpx 20rpx;
  642. border-radius: 6rpx;
  643. margin-bottom: 20rpx;
  644. }
  645. .pick_regions_wrap {}
  646. .person_wrap {
  647. display: flex;
  648. flex-wrap: wrap;
  649. align-items: center;
  650. margin-bottom: 15px;
  651. .person_item {
  652. width: 10%;
  653. display: flex;
  654. flex-direction: column;
  655. align-items: center;
  656. margin-bottom: 10px;
  657. .person_top {
  658. width: 40px;
  659. height: 40px;
  660. display: flex;
  661. align-items: center;
  662. justify-content: center;
  663. }
  664. .person_bottom {
  665. margin-top: 5px;
  666. font-size: 12px;
  667. color: #202020;
  668. }
  669. }
  670. .more_item {
  671. .more {
  672. width: 28px;
  673. height: 28px;
  674. }
  675. .person_bottom {
  676. color: #4c8afe;
  677. font-size: 12px;
  678. margin-top: 0px;
  679. }
  680. }
  681. }
  682. .search_input {
  683. border: 1px solid #ddd;
  684. border-radius: 4px;
  685. overflow: hidden;
  686. margin-bottom: 15px;
  687. }
  688. .query_wrap {
  689. .title {
  690. font-size: 18px;
  691. color: #202020;
  692. margin-bottom: 10px;
  693. }
  694. .option_list {
  695. display: flex;
  696. flex-wrap: wrap;
  697. margin-bottom: 15px;
  698. .option_item {
  699. width: calc(33.33% - 10px);
  700. margin-right: 10px;
  701. margin-bottom: 10px;
  702. ::v-deep .u-tag__text {
  703. margin: auto;
  704. font-size: 14px;
  705. }
  706. &:nth-child(6n) {
  707. margin-right: 0px;
  708. }
  709. }
  710. }
  711. .follow_option_list {
  712. .option_item {
  713. ::v-deep .u-tag__text {
  714. font-size: 12px;
  715. }
  716. }
  717. }
  718. }
  719. }
  720. .case_tabbar {
  721. .uTabbarItem {
  722. ::v-deep .u-tabbar-item__text {
  723. font-size: 18px;
  724. }
  725. }
  726. .close_btn {
  727. ::v-deep .u-tabbar-item__text {
  728. font-size: 18px;
  729. color: #606060 !important;
  730. }
  731. }
  732. }
  733. </style>