xlTask.vue 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. <template>
  2. <view class="container">
  3. <!-- 搜索+筛选栏 -->
  4. <view class="top-box">
  5. <view class="input-item">
  6. <image class="icon search-icon" src="@/static/image/search.png" mode="widthFix"></image>
  7. <input placeholder="请输入客户姓名/机构名称" placeholder-class="placeholder" />
  8. </view>
  9. <view class="filter-item" @click="showFilter = true">
  10. <image class="filter-icon" src="@/static/image/icon_select.png" mode="widthFix"></image>
  11. <text>筛选</text>
  12. </view>
  13. </view>
  14. <!-- 顶部选项卡:任务列表/审核列表 -->
  15. <view class="top-tabs">
  16. <view class="top-tab-item" :class="{ active: currentTopTab === 'task' }" @click="switchTopTab('task')">
  17. 任务列表
  18. </view>
  19. <view class="top-tab-item" :class="{ active: currentTopTab === 'audit' }" @click="switchTopTab('audit')">
  20. 审核列表
  21. </view>
  22. </view>
  23. <!-- 动态子标签 -->
  24. <view class="sub-tabs">
  25. <view class="sub-tab-item" :class="{ active: currentSubTab === item.value }"
  26. @click="selectSubTab(item.value)" v-for="(item, index) in currentSubTabsList" :key="index">
  27. {{ item.label }}
  28. </view>
  29. </view>
  30. <!-- 列表内容 -->
  31. <scroll-view class="content" scroll-y>
  32. <view class="task-card" v-for="(item, index) in currentList" :key="index" @click="goDetails(item)">
  33. <!-- 任务/审核标题+状态 -->
  34. <view class="card-top">
  35. <text class="card-task-title">{{ item.taskTitle }}</text>
  36. <view class="status-tag" :class="item.statusClass">{{ item.statusText }}</view>
  37. </view>
  38. <view class="card-content">
  39. <!-- 讲者信息 -->
  40. <view class="speaker-info">
  41. <text class="speaker-name">{{ item.doctorName||'未命名' }}</text>
  42. <view class="level-tag" v-if="item.level">{{ item.level }}</view>
  43. </view>
  44. <!-- 医院+科室 -->
  45. <view class="org-info">
  46. <image class="org-icon" src="@/static/image/icon_hospital.png" mode="widthFix"></image>
  47. <text>{{ item.hospital ||'-' }}</text>
  48. <view class="line"></view>
  49. <text>{{ item.department||'-' }}</text>
  50. </view>
  51. <!-- 标签组 -->
  52. <view class="card-tags">
  53. <view class="tag-left-group">
  54. <view class="tag-item video-tag" v-if="item.videoType">
  55. <image class="video-tag-icon" src="@/static/image/icon_longvideo.png" mode="widthFix">
  56. </image>
  57. <text>{{ item.videoType ||'-'}}</text>
  58. </view>
  59. <view class="tag-item category-tag" v-if="item.category">
  60. {{ item.category }}
  61. </view>
  62. </view>
  63. <view class="tag-right-group">
  64. <view class="tag-item points-tag">{{ item.points||'0' }}积分</view>
  65. <view class="tag-item count-tag">{{ item.count ||'0' }}个</view>
  66. <view class="tag-item count-tag">院内</view>
  67. </view>
  68. </view>
  69. <!-- 时间信息 -->
  70. <view class="time-info">
  71. <view class="time-item">
  72. <text>申请时间:</text>
  73. <text>{{ item.applyTime ||'-'}}</text>
  74. </view>
  75. <view class="time-item" v-if="currentTopTab === 'task'">
  76. <text>完成时间:</text>
  77. <text>{{ item.updateTime || '-' }}</text>
  78. </view>
  79. <view class="time-item" v-if="currentTopTab === 'task'">
  80. <text>完成审核:</text>
  81. <text>{{ item.auditStatus || '-' }}</text>
  82. </view>
  83. </view>
  84. <!-- 操作按钮 -->
  85. <view class="operate-btn-group" v-if="currentTopTab === 'task'">
  86. <view class="share-btn" @click="handleShare(item)">
  87. <image class="share-icon" src="/static/image/icon_share.png" mode="widthFix"></image>
  88. <text>分享</text>
  89. </view>
  90. <view class="btn-group">
  91. <view class="btn" v-if="item.showDelete" @click.stop="handleTaskDelete(item, index)">删除</view>
  92. <view class="btn" @click.stop="handleCopy(item)">复制创建</view>
  93. </view>
  94. </view>
  95. <view class="operate-btn-group flex-end" v-else>
  96. <view class="btn-group">
  97. <view class="btn" v-if="item.showDelete" @click.stop="handleAuditDelete(item, index)">删除</view>
  98. <view class="btn" v-if="item.showEdit" @click.stop="handleEdit(item)">编辑</view>
  99. </view>
  100. </view>
  101. <!-- 状态印章 -->
  102. <image class="status-seal" :src="item.sealImg" mode="widthFix" v-if="currentTopTab === 'task'">
  103. </image>
  104. </view>
  105. </view>
  106. </scroll-view>
  107. <view class="side">
  108. <view class="side-item" >
  109. <image class="icon" @click="goCreate" src="/static/image/btn_add.png"></image>
  110. </view>
  111. <view class="side-item" >
  112. <image class="icon" @click="goData" src="/static/image/btn_data.png"></image>
  113. </view>
  114. </view>
  115. <!-- 筛选弹窗 -->
  116. <view class="filter-popup" v-if="showFilter" @click="closeFilter">
  117. <view class="filter-content" @click.stop>
  118. <view class="filter-header">
  119. <view class="filter-title">筛选</view>
  120. <image class="filter-close-btn" src="@/static/image/icon_close.png" @click="closeFilter"
  121. mode="widthFix"></image>
  122. </view>
  123. <view class="filter-form">
  124. <!-- 任务申请时间 -->
  125. <view class="filter-section">
  126. <view class="section-label">任务申请时间</view>
  127. <view class="time-range">
  128. <view class="time-input" @click="openDatePicker('applyTimeStart')">{{ filters.applyTimeStart || '开始时间' }}</view>
  129. <view class="time-separator">-</view>
  130. <view class="time-input" @click="openDatePicker('applyTimeEnd')">{{ filters.applyTimeEnd || '结束时间' }}</view>
  131. </view>
  132. </view>
  133. <!-- 任务完成时间 -->
  134. <view class="filter-section" v-if="currentTopTab === 'audit'">
  135. <view class="section-label">任务完成时间</view>
  136. <view class="time-range">
  137. <view class="time-input" @click="openDatePicker('finishTimeStart')">{{ filters.finishTimeStart || '开始时间' }}</view>
  138. <view class="time-separator">-</view>
  139. <view class="time-input" @click="openDatePicker('finishTimeEnd')">{{ filters.finishTimeEnd || '结束时间' }}</view>
  140. </view>
  141. </view>
  142. <!-- 完成审核时间 -->
  143. <view class="filter-section" v-if="currentTopTab === 'audit'">
  144. <view class="section-label">完成审核时间</view>
  145. <view class="time-range">
  146. <view class="time-input" @click="openDatePicker('auditTimeStart')">{{ filters.auditTimeStart || '开始时间' }}</view>
  147. <view class="time-separator">-</view>
  148. <view class="time-input" @click="openDatePicker('auditTimeEnd')">{{ filters.auditTimeEnd || '结束时间' }}</view>
  149. </view>
  150. </view>
  151. <!-- 任务归属 -->
  152. <view class="filter-section">
  153. <view class="section-label">任务归属</view>
  154. <view class="btn-group">
  155. <view class="filter-btn" :class="{ active: filters.taskBelong === 'my' }"
  156. @click="filters.taskBelong = 'my'">我的任务</view>
  157. <view class="filter-btn" :class="{ active: filters.taskBelong === 'dept' }"
  158. @click="filters.taskBelong = 'dept'">部门任务</view>
  159. </view>
  160. </view>
  161. <!-- 完结状态 -->
  162. <view class="filter-section" v-if="currentTopTab === 'audit'">
  163. <view class="section-label">完结状态</view>
  164. <view class="btn-group">
  165. <view class="filter-btn" :class="{ active: filters.finishStatus === 'unfinished' }"
  166. @click="filters.finishStatus = 'unfinished'">未完结</view>
  167. <view class="filter-btn" :class="{ active: filters.finishStatus === 'finished' }"
  168. @click="filters.finishStatus = 'finished'">已完结</view>
  169. </view>
  170. </view>
  171. <!-- 归属类型 -->
  172. <view class="filter-section">
  173. <view class="section-label">归属类型</view>
  174. <view class="btn-group">
  175. <view class="filter-btn" :class="{ active: filters.belongType === 'inner' }"
  176. @click="filters.belongType = 'inner'">院内</view>
  177. <view class="filter-btn" :class="{ active: filters.belongType === 'outer' }"
  178. @click="filters.belongType = 'outer'">院外</view>
  179. </view>
  180. </view>
  181. </view>
  182. <view class="filter-actions">
  183. <view class="reset-btn" @click="resetFilters">重置</view>
  184. <view class="confirm-btn" @click="confirmFilters">确定</view>
  185. </view>
  186. </view>
  187. </view>
  188. <!-- 日期选择器 -->
  189. <u-datetime-picker
  190. :show="showDatePicker"
  191. :value="datePickerValue"
  192. mode="date"
  193. @confirm="datePickerConfirm"
  194. @cancel="datePickerCancel"
  195. ></u-datetime-picker>
  196. </view>
  197. </template>
  198. <script>
  199. import { dicts } from '@/api/common.js';
  200. import { utils} from '@/utils/common.js';
  201. import { list, deleted, company } from '@/api/task.js';
  202. export default {
  203. data() {
  204. return {
  205. showFilter: false,
  206. showDatePicker: false,
  207. currentDateField: '',
  208. datePickerValue: new Date().getTime(),
  209. filters: {
  210. applyTimeStart: '',
  211. applyTimeEnd: '',
  212. finishTimeStart: '',
  213. finishTimeEnd: '',
  214. auditTimeStart: '',
  215. auditTimeEnd: '',
  216. taskBelong: 'my',
  217. finishStatus: '',
  218. belongType: ''
  219. },
  220. currentTopTab: 'task',
  221. currentSubTab: '',
  222. taskSubTabs: [
  223. { label: '全部任务', value: '' }
  224. ],
  225. auditSubTabs: [{
  226. label: '全部',
  227. value: 'all'
  228. },
  229. {
  230. label: '创建待审批',
  231. value: 'createPending'
  232. },
  233. {
  234. label: '完成待审批',
  235. value: 'finishPending'
  236. },
  237. {
  238. label: '驳回',
  239. value: 'rejected'
  240. }
  241. ],
  242. taskList: [],
  243. auditList: [{
  244. }],
  245. userInfo: {
  246. companyId: ''
  247. },taskStatus:{
  248. },
  249. taskBelong: []
  250. }
  251. },
  252. onLoad: async function(options) {
  253. try {
  254. this.taskBelong = await utils.getDicts("task_belong_type");//任务归属
  255. console.log('任务归属字典:',this.taskBelong)
  256. } catch (e) {
  257. console.log('获取字典数据失败:', e)
  258. }
  259. this.dicts();
  260. // 获取用户信息
  261. this.userInfo = JSON.parse(uni.getStorageSync('userInfo') || '{}')
  262. },
  263. computed: {
  264. currentSubTabsList() {
  265. return this.currentTopTab === 'task' ? this.taskSubTabs : this.auditSubTabs;
  266. },
  267. currentList() {
  268. return this.currentTopTab === 'task' ? this.taskList : this.auditList;
  269. }
  270. },
  271. mounted() {
  272. this.loadData();
  273. },
  274. methods: {
  275. dicts() {
  276. dicts('task_status').then(res => {
  277. if (res.code === 200 ) {
  278. console.log(res.data)
  279. this.taskStatus = res.data;
  280. this.taskSubTabs = [
  281. { label: '全部任务', value: '' }
  282. ];
  283. res.data.forEach(item => {
  284. this.taskSubTabs.push({
  285. label: item.dictLabel,
  286. value: item.dictValue
  287. });
  288. });
  289. console.log('更新后的taskSubTabs:', this.taskSubTabs);
  290. }
  291. });
  292. },
  293. loadData() {
  294. // 加载任务列表数据
  295. this.getTaskList();
  296. // 加载公司项目设置
  297. this.getCompanySettings();
  298. },
  299. getTaskList() {
  300. // 构建请求参数
  301. const params = {
  302. ...this.filters,
  303. type: this.currentTopTab,
  304. taskStatus: this.currentSubTab
  305. };
  306. uni.showLoading({
  307. title: '加载中...'
  308. });
  309. list(params).then(res => {
  310. uni.hideLoading();
  311. if (res.code === 200 && res.rows) {
  312. // 处理任务列表数据
  313. if (this.currentTopTab === 'task') {
  314. this.taskList = res.rows.map(item => ({
  315. id: item.id,
  316. doctorName: item.doctorName,
  317. taskTitle: item.taskName,
  318. statusText: this.getStatusText(item.taskStatus),
  319. statusClass: this.getStatusClass(item.taskStatus),
  320. speaker: item.doctorName,
  321. level: '', // 接口返回数据中没有level字段
  322. hospital: item.deptName, // 使用deptName作为hospital
  323. department: item.deptName, // 使用deptName作为department
  324. videoType: item.taskTypeName, // 使用taskTypeName作为videoType
  325. category: item.taskTypeName, // 使用taskTypeName作为category
  326. points: item.taskIntegral,
  327. count: item.taskCount,
  328. applyTime: item.createTime,
  329. finishTime: item.finishAuditTime || '-',
  330. auditStatus: this.getAuditStatusText(item.finishAuditStatus),
  331. showDelete: true,
  332. sealImg: item.taskStatus === 1 ? '/static/image/img_finish.png' : '/static/image/img_unfinish.png'
  333. }));
  334. } else {
  335. this.auditList = res.rows.map(item => ({
  336. id: item.id,
  337. taskTitle: item.taskName,
  338. statusText: this.getAuditStatusText(item.createAuditStatus),
  339. statusClass: this.getAuditStatusClass(item.createAuditStatus),
  340. speaker: item.doctorName,
  341. level: '', // 接口返回数据中没有level字段
  342. hospital: item.deptName, // 使用deptName作为hospital
  343. department: item.deptName, // 使用deptName作为department
  344. videoType: item.taskTypeName, // 使用taskTypeName作为videoType
  345. category: item.taskTypeName, // 使用taskTypeName作为category
  346. points: item.taskIntegral,
  347. count: item.taskCount,
  348. applyTime: item.createTime,
  349. showDelete: true,
  350. showEdit: item.createAuditStatus === 2 || item.finishAuditStatus === 2 // 2表示驳回
  351. }));
  352. }
  353. } else {
  354. uni.showToast({
  355. title: '获取数据失败',
  356. icon: 'none'
  357. });
  358. }
  359. }).catch(err => {
  360. uni.hideLoading();
  361. uni.showToast({
  362. title: '网络错误',
  363. icon: 'none'
  364. });
  365. });
  366. },
  367. getCompanySettings() {
  368. // 获取公司项目设置
  369. if (this.userInfo.companyId) {
  370. company(this.userInfo.companyId).then(res => {
  371. if (res.code === 200) {
  372. console.log('公司项目设置:', res.data);
  373. // 处理公司项目设置数据
  374. }
  375. }).catch(err => {
  376. console.error('获取公司项目设置失败:', err);
  377. });
  378. }
  379. },
  380. getStatusText(status) {
  381. // 根据状态获取状态文本
  382. const statusMap = {
  383. 0: '未完成',
  384. 1: '已完成'
  385. };
  386. return statusMap[status] || '未知状态';
  387. },
  388. getStatusClass(status) {
  389. // 根据状态获取状态样式类
  390. const statusMap = {
  391. 0: 'status-wait',
  392. 1: 'status-finish'
  393. };
  394. return statusMap[status] || 'status-wait';
  395. },
  396. getAuditStatusText(status) {
  397. // 根据审核状态获取状态文本
  398. const statusMap = {
  399. 0: '待审核',
  400. 1: '已通过',
  401. 2: '已驳回'
  402. };
  403. return statusMap[status] || '-';
  404. },
  405. getAuditStatusClass(status) {
  406. // 根据审核状态获取状态样式类
  407. const statusMap = {
  408. 0: 'status-wait',
  409. 1: 'status-finish',
  410. 2: 'status-rejected'
  411. };
  412. return statusMap[status] || 'status-wait';
  413. },
  414. goCreate(){
  415. console.log('创建任务');
  416. uni.navigateTo({
  417. url: '/pages_task/createTask'
  418. })
  419. },
  420. goData(){
  421. console.log("跳转到数据页");
  422. uni.navigateTo({
  423. url: '/pages_task/statistics'
  424. })
  425. },
  426. goDetails(item) {
  427. console.log("跳转到任务详情页",item);
  428. // 直接跳转到任务详情页,传递id作为taskId参数
  429. uni.navigateTo({
  430. url: `/pages_task/taskDetail?taskId=${item.id}`
  431. });
  432. },
  433. selectSubTab(value) {
  434. this.currentSubTab = value;
  435. this.loadData();
  436. },
  437. switchTopTab(type) {
  438. this.currentTopTab = type;
  439. this.currentSubTab = '';
  440. this.loadData();
  441. },
  442. closeFilter() {
  443. this.showFilter = false
  444. },
  445. resetFilters() {
  446. this.filters = {
  447. applyTimeStart: '',
  448. applyTimeEnd: '',
  449. finishTimeStart: '',
  450. finishTimeEnd: '',
  451. auditTimeStart: '',
  452. auditTimeEnd: '',
  453. taskBelong: 'my',
  454. finishStatus: '',
  455. belongType: ''
  456. }
  457. },
  458. confirmFilters() {
  459. this.showFilter = false
  460. // 根据筛选条件重新加载数据
  461. this.loadData();
  462. },
  463. // 打开日期选择器
  464. openDatePicker(field) {
  465. console.log('openDatePicker called with field:', field);
  466. this.currentDateField = field;
  467. const currentValue = this.filters[field];
  468. if (currentValue) {
  469. this.datePickerValue = new Date(currentValue).getTime();
  470. } else {
  471. this.datePickerValue = new Date().getTime();
  472. }
  473. this.showDatePicker = true;
  474. },
  475. // 日期选择器确认
  476. datePickerConfirm(e) {
  477. console.log('datePickerConfirm:', e);
  478. const date = new Date(e.value);
  479. const year = date.getFullYear();
  480. const month = String(date.getMonth() + 1).padStart(2, '0');
  481. const day = String(date.getDate()).padStart(2, '0');
  482. const formattedDate = `${year}-${month}-${day}`;
  483. this.filters[this.currentDateField] = formattedDate;
  484. this.showDatePicker = false;
  485. },
  486. // 日期选择器取消
  487. datePickerCancel() {
  488. this.showDatePicker = false;
  489. },
  490. handleShare(item) {
  491. uni.showToast({
  492. title: '分享功能待实现',
  493. icon: 'none'
  494. })
  495. },
  496. handleTaskDelete(item, index) {
  497. uni.showModal({
  498. title: '提示',
  499. content: '确定要删除这条任务吗?',
  500. cancelText: '取消',
  501. confirmText: '删除',
  502. confirmColor: '#FF0000',
  503. success: (res) => {
  504. if (res.confirm) {
  505. uni.showLoading({
  506. title: '删除中...'
  507. });
  508. deleted(item.id).then(res => {
  509. uni.hideLoading();
  510. if (res.code === 200) {
  511. this.taskList.splice(index, 1);
  512. uni.showToast({
  513. title: '任务已删除',
  514. icon: 'success',
  515. duration: 1500
  516. });
  517. } else {
  518. uni.showToast({
  519. title: '删除失败',
  520. icon: 'none'
  521. });
  522. }
  523. }).catch(err => {
  524. uni.hideLoading();
  525. uni.showToast({
  526. title: '网络错误',
  527. icon: 'none'
  528. });
  529. });
  530. }
  531. }
  532. });
  533. },
  534. handleCopy(item) {
  535. uni.navigateTo({
  536. url: `/pages_task/createTask?id=${item.id}&copy=true`
  537. })
  538. },
  539. handleAuditDelete(item, index) {
  540. uni.showModal({
  541. title: '提示',
  542. content: '确定要删除这条审核项吗?',
  543. cancelText: '取消',
  544. confirmText: '删除',
  545. confirmColor: '#FF0000',
  546. success: (res) => {
  547. if (res.confirm) {
  548. uni.showLoading({
  549. title: '删除中...'
  550. });
  551. deleted(item.id).then(res => {
  552. uni.hideLoading();
  553. if (res.code === 200) {
  554. this.auditList.splice(index, 1);
  555. uni.showToast({
  556. title: '审核项已删除',
  557. icon: 'success',
  558. duration: 1500
  559. });
  560. } else {
  561. uni.showToast({
  562. title: '删除失败',
  563. icon: 'none'
  564. });
  565. }
  566. }).catch(err => {
  567. uni.hideLoading();
  568. uni.showToast({
  569. title: '网络错误',
  570. icon: 'none'
  571. });
  572. });
  573. }
  574. }
  575. });
  576. },
  577. handleEdit(item) {
  578. uni.navigateTo({
  579. url: `/pages_task/createTask?id=${item.id}&edit=true`
  580. })
  581. }
  582. }
  583. }
  584. </script>
  585. <style lang="scss" scoped>
  586. .container {
  587. min-height: 100vh;
  588. background: #f5f5f5;
  589. .top-box {
  590. padding: 20rpx 32rpx;
  591. display: flex;
  592. align-items: center;
  593. background: #fff;
  594. .input-item {
  595. display: flex;
  596. align-items: center;
  597. flex: 1;
  598. height: 72rpx;
  599. background: #F7F8FA;
  600. border-radius: 38rpx;
  601. .search-icon {
  602. width: 26rpx;
  603. height: 26rpx;
  604. margin: 0 10rpx 0 28rpx;
  605. }
  606. input {
  607. flex: 1;
  608. font-size: 28rpx;
  609. color: #333;
  610. }
  611. }
  612. .filter-item {
  613. margin-left: 24rpx;
  614. display: flex;
  615. align-items: center;
  616. font-size: 28rpx;
  617. color: #999;
  618. .filter-icon {
  619. width: 28rpx;
  620. height: 28rpx;
  621. margin-right: 10rpx;
  622. }
  623. }
  624. }
  625. .top-tabs {
  626. display: flex;
  627. background: #fff;
  628. .top-tab-item {
  629. flex: 1;
  630. text-align: center;
  631. padding: 24rpx 0;
  632. font-size: 28rpx;
  633. color: #999;
  634. transition: all 0.2s;
  635. &.active {
  636. color: #333;
  637. font-weight: 500;
  638. position: relative;
  639. &::after {
  640. content: '';
  641. position: absolute;
  642. bottom: 0;
  643. left: 50%;
  644. transform: translateX(-50%);
  645. border-radius: 3rpx;
  646. width: 80rpx;
  647. height: 6rpx;
  648. background: #388BFF;
  649. }
  650. }
  651. }
  652. }
  653. .sub-tabs {
  654. display: flex;
  655. justify-content: space-between;
  656. background: #fff;
  657. padding: 16rpx 32rpx;
  658. gap: 24rpx;
  659. .sub-tab-item {
  660. padding: 12rpx 24rpx;
  661. border-radius: 30rpx;
  662. font-size: 28rpx;
  663. color: #666;
  664. transition: all 0.2s;
  665. &.active {
  666. background: #EBF3FF;
  667. color: #388BFF;
  668. }
  669. }
  670. }
  671. .content {
  672. padding: 24rpx;
  673. box-sizing: border-box;
  674. min-height: calc(100vh - 300rpx);
  675. .task-card {
  676. background: #fff;
  677. border-radius: 24rpx;
  678. margin-bottom: 20rpx;
  679. border: 2rpx solid #E9F2FF;
  680. position: relative;
  681. padding-bottom: 24rpx;
  682. .card-top {
  683. display: flex;
  684. justify-content: space-between;
  685. align-items: center;
  686. background: linear-gradient(90deg, #E8F1FF 0%, #FFFFFF 100%);
  687. border-radius: 24rpx 24rpx 0 0;
  688. padding: 26rpx 24rpx;
  689. margin-bottom: 16rpx;
  690. .card-task-title {
  691. font-size: 32rpx;
  692. font-weight: 600;
  693. color: #333;
  694. }
  695. .status-tag {
  696. padding: 8rpx 16rpx;
  697. border-radius: 20rpx;
  698. font-size: 24rpx;
  699. &.status-wait {
  700. background: #E3F2FD;
  701. color: #2196F3;
  702. }
  703. &.status-finish {
  704. background: #E6FAEF;
  705. color: #07C160;
  706. }
  707. &.status-rejected {
  708. background: #FFF4F5;
  709. color: #CF3546;
  710. }
  711. &.status-createPending {
  712. background: #FFF8E6;
  713. color: #FF9500;
  714. }
  715. }
  716. }
  717. .card-content {
  718. padding: 0 24rpx;
  719. .speaker-info {
  720. display: flex;
  721. align-items: center;
  722. margin-bottom: 16rpx;
  723. .speaker-name {
  724. font-weight: 600;
  725. font-size: 32rpx;
  726. color: #333;
  727. }
  728. .level-tag {
  729. margin-left: 16rpx;
  730. padding: 2rpx 12rpx;
  731. font-size: 22rpx;
  732. color: #C89743;
  733. background: #FFF6E5;
  734. border-radius: 8rpx;
  735. }
  736. }
  737. .org-info {
  738. display: flex;
  739. align-items: center;
  740. margin-bottom: 16rpx;
  741. font-size: 28rpx;
  742. color: #666;
  743. .org-icon {
  744. width: 32rpx;
  745. height: 32rpx;
  746. margin-right: 16rpx;
  747. }
  748. .line {
  749. width: 2rpx;
  750. height: 28rpx;
  751. background: #EAEBEE;
  752. margin: 0 24rpx;
  753. }
  754. }
  755. .card-tags {
  756. display: flex;
  757. align-items: center;
  758. flex-wrap: wrap;
  759. gap: 12rpx;
  760. margin-bottom: 16rpx;
  761. .tag-left-group {
  762. display: flex;
  763. gap: 0;
  764. .video-tag {
  765. background: linear-gradient(90deg, #FFE9C7 0%, #F3D091 100%);
  766. border-radius: 8rpx 0 0 8rpx;
  767. color: #5D410F;
  768. display: flex;
  769. align-items: center;
  770. padding: 8rpx;
  771. font-size: 24rpx;
  772. .video-tag-icon {
  773. width: 28rpx;
  774. height: 28rpx;
  775. margin-right: 10rpx;
  776. }
  777. }
  778. .category-tag {
  779. border-radius: 0 8rpx 8rpx 0;
  780. border: 2rpx solid #F3D191;
  781. background: #FFFAF4;
  782. color: #5D410F;
  783. padding: 8rpx;
  784. font-size: 24rpx;
  785. }
  786. }
  787. .tag-right-group {
  788. display: flex;
  789. gap: 12rpx;
  790. .points-tag {
  791. border: 1rpx solid #388BFF;
  792. color: #388BFF;
  793. background: transparent;
  794. border-radius: 8rpx;
  795. padding: 8rpx;
  796. font-size: 24rpx;
  797. }
  798. .count-tag {
  799. border: 2rpx solid #E8E8E8;
  800. border-radius: 8rpx;
  801. padding: 8rpx;
  802. font-size: 24rpx;
  803. color: #666;
  804. }
  805. }
  806. }
  807. .time-info {
  808. font-size: 28rpx;
  809. color: #666;
  810. display: flex;
  811. flex-direction: column;
  812. gap: 8rpx;
  813. margin-bottom: 24rpx;
  814. .time-item {
  815. display: flex;
  816. &:first-child {
  817. color: #333;
  818. }
  819. }
  820. }
  821. .operate-btn-group {
  822. display: flex;
  823. align-items: center;
  824. justify-content: space-between;
  825. &.flex-end {
  826. justify-content: flex-end;
  827. }
  828. .share-btn {
  829. display: flex;
  830. align-items: center;
  831. font-size: 28rpx;
  832. color: #666;
  833. .share-icon {
  834. width: 36rpx;
  835. height: 36rpx;
  836. margin-right: 8rpx;
  837. }
  838. }
  839. .btn-group {
  840. display: flex;
  841. align-items: center;
  842. .btn {
  843. padding: 12rpx 32rpx;
  844. font-size: 28rpx;
  845. color: #388BFF;
  846. border: 2rpx solid #388BFF;
  847. margin-left: 16rpx;
  848. border-radius: 34rpx;
  849. transition: all 0.2s;
  850. &:active {
  851. background: #EBF3FF;
  852. }
  853. }
  854. }
  855. }
  856. .status-seal {
  857. position: absolute;
  858. right: 24rpx;
  859. bottom: 156rpx;
  860. width: 152rpx;
  861. height: 142rpx;
  862. opacity: 0.8;
  863. }
  864. }
  865. }
  866. }
  867. .side {
  868. position: fixed;
  869. top: 60%;
  870. right: 36rpx;
  871. display: flex;
  872. flex-direction: column;
  873. align-items: center;
  874. z-index: 9;
  875. .side-item {
  876. width: 96rpx;
  877. height: 96rpx;
  878. margin-bottom: 28rpx;
  879. .icon {
  880. width: 100%;
  881. height: 100%;
  882. }
  883. &:active {
  884. opacity: 0.6;
  885. }
  886. }
  887. }
  888. .filter-popup {
  889. position: fixed;
  890. top: 0;
  891. left: 0;
  892. right: 0;
  893. bottom: 0;
  894. background: rgba(0, 0, 0, 0.5);
  895. z-index: 999;
  896. display: flex;
  897. align-items: flex-end;
  898. .filter-content {
  899. width: 100%;
  900. background: #fff;
  901. border-radius: 24rpx 24rpx 0 0;
  902. padding: 32rpx;
  903. .filter-header {
  904. display: flex;
  905. align-items: center;
  906. justify-content: center;
  907. margin-bottom: 32rpx;
  908. position: relative;
  909. .filter-title {
  910. font-size: 32rpx;
  911. font-weight: bold;
  912. color: #333;
  913. }
  914. .filter-close-btn {
  915. position: absolute;
  916. right: 0;
  917. width: 44rpx;
  918. height: 44rpx;
  919. }
  920. }
  921. .filter-form {
  922. padding: 0 0 24rpx 0;
  923. .filter-section {
  924. margin-bottom: 32rpx;
  925. .section-label {
  926. font-weight: 500;
  927. font-size: 28rpx;
  928. color: #333;
  929. margin-bottom: 24rpx;
  930. }
  931. .time-range {
  932. display: flex;
  933. align-items: center;
  934. gap: 16rpx;
  935. .time-input {
  936. flex: 1;
  937. height: 72rpx;
  938. text-align: center;
  939. background: #F7F8FA;
  940. border-radius: 8rpx;
  941. padding: 0 16rpx;
  942. font-size: 26rpx;
  943. color: #333;
  944. }
  945. .time-separator {
  946. font-size: 24rpx;
  947. color: #999;
  948. }
  949. }
  950. .btn-group {
  951. display: flex;
  952. gap: 16rpx;
  953. .filter-btn {
  954. width: 214rpx;
  955. height: 72rpx;
  956. background: #F7F8FA;
  957. border-radius: 70rpx 70rpx 70rpx 70rpx;
  958. line-height: 72rpx;
  959. text-align: center;
  960. font-size: 28rpx;
  961. transition: all 0.2s;
  962. color: #333333;
  963. &.active {
  964. background: rgba(56, 139, 255, 0.15);
  965. color: #388BFF;
  966. }
  967. }
  968. }
  969. }
  970. }
  971. .filter-actions {
  972. display: flex;
  973. gap: 24rpx;
  974. margin-top: 40rpx;
  975. .reset-btn,
  976. .confirm-btn {
  977. flex: 1;
  978. height: 80rpx;
  979. line-height: 80rpx;
  980. text-align: center;
  981. border-radius: 200rpx;
  982. font-size: 28rpx;
  983. transition: all 0.2s;
  984. }
  985. .reset-btn {
  986. background: #fff;
  987. color: #388BFF;
  988. border: 2rpx solid #388BFF;
  989. &:active {
  990. background: #EBF3FF;
  991. }
  992. }
  993. .confirm-btn {
  994. background: #388BFF;
  995. color: #fff;
  996. &:active {
  997. background: #2A78E5;
  998. }
  999. }
  1000. }
  1001. }
  1002. }
  1003. }
  1004. </style>