综合办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

deviceLog.vue 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926
  1. <!--
  2. * @Author: ysh
  3. * @Date: 2025-06-10 09:34:55
  4. * @LastEditors: Please set LastEditors
  5. * @LastEditTime: 2025-06-11 16:29:46
  6. -->
  7. <template>
  8. <view>
  9. <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltoupper="upper" @scrolltolower="lower"
  10. @scroll="scroll" :refresher-enabled="true" :refresher-triggered="isRefreshing" @refresherrefresh="onRefresh"
  11. :lower-threshold="50" :upper-threshold="50">
  12. <view class="content-wrapper">
  13. <!-- 搜索栏 -->
  14. <view class="search-bar">
  15. <view class="search-input-wrapper">
  16. <uni-icons type="search" size="16" color="#999"></uni-icons>
  17. <input class="search-input" v-model="queryParams.projectNumber" placeholder="请输入项目编号搜索"
  18. @confirm="handleSearch" />
  19. <uni-icons v-if="queryParams.projectNumber" type="clear" size="16" color="#999"
  20. @click="clearSearch"></uni-icons>
  21. </view>
  22. </view>
  23. <template v-if="logList.length > 0">
  24. <view class="project-card" v-for="(item, index) in logList" :key="index">
  25. <view class="project-card-item">
  26. <view class="project-card-item-header">
  27. <view class="project-info">
  28. <text class="project-number">{{ item.project ? item.project.projectNumber : '无项目' }}</text>
  29. <text class="project-name">{{ item.project ? item.project.projectName : '无项目' }}</text>
  30. </view>
  31. <view class="action-buttons">
  32. <button class="action-btn edit" v-if="isOwnRecord(item)" @click="handleEdit(item)">
  33. <uni-icons type="compose" size="16" color="#007AFF"></uni-icons>
  34. </button>
  35. <button class="action-btn delete" v-if="isOwnRecord(item)" @click="handleDelete(item)">
  36. <uni-icons type="trash" size="16" color="#FF3B30"></uni-icons>
  37. </button>
  38. </view>
  39. </view>
  40. <view class="project-card-item-content">
  41. <view class="info-row">
  42. <text class="info-label">设备名称:</text>
  43. <text class="info-value" v-if="item.deviceId">{{ item.device ? item.device.name : '' }}-{{ item.device
  44. ? item.device.brand : '' }}({{
  45. item.device ? item.device.code : '' }})</text>
  46. <text class="info-value" v-else>暂无设备</text>
  47. </view>
  48. <view class="info-row">
  49. <text class="info-label">设备类型:</text>
  50. <text class="info-value">{{ item.usageType }}</text>
  51. </view>
  52. <view class="info-row">
  53. <text class="info-label">使用日期:</text>
  54. <text class="info-value">{{ item.useDate }}</text>
  55. </view>
  56. <view class="info-row">
  57. <text class="info-label">记录员:</text>
  58. <text class="info-value">{{ item.user.nickName }}</text>
  59. </view>
  60. <view class="info-row">
  61. <text class="info-label">点号:</text>
  62. <text class="info-value">{{ item.position }}</text>
  63. </view>
  64. <view class="info-row">
  65. <text class="info-label">高值类型:</text>
  66. <text class="info-value">{{ item.heightType }}</text>
  67. </view>
  68. <view class="info-row">
  69. <text class="info-label">高值:</text>
  70. <text class="info-value">{{ item.height }}m</text>
  71. </view>
  72. <view class="info-row">
  73. <text class="info-label">天气:</text>
  74. <text class="info-value">{{ item.weather }}</text>
  75. </view>
  76. <view class="info-row">
  77. <text class="info-label">干温:</text>
  78. <text class="info-value">{{ item.dryTemperature }}°C</text>
  79. </view>
  80. <view class="info-row">
  81. <text class="info-label">湿温:</text>
  82. <text class="info-value">{{ item.wetTemperature }}°C</text>
  83. </view>
  84. <view class="info-row">
  85. <text class="info-label">气压:</text>
  86. <text class="info-value">{{ item.airPressure }}hPa</text>
  87. </view>
  88. <view class="info-row">
  89. <text class="info-label">开机时间:</text>
  90. <text class="info-value">{{ formatDateTime(item.powerOn) }}</text>
  91. </view>
  92. <view class="info-row">
  93. <text class="info-label">关机时间:</text>
  94. <text class="info-value">{{ formatDateTime(item.powerOff) }}</text>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="loading-more" v-if="hasMore">
  100. <text class="loading-text">加载中...</text>
  101. </view>
  102. <view class="no-more" v-else>
  103. <text class="no-more-text">没有更多数据了</text>
  104. </view>
  105. </template>
  106. <view v-else class="empty-state">
  107. <image src="/static/images/empty.png" mode="aspectFit" class="empty-image"></image>
  108. <text class="empty-text">暂无数据</text>
  109. </view>
  110. </view>
  111. </scroll-view>
  112. <!-- 悬浮按钮 -->
  113. <view class="fab-button" @click="handleAdd">
  114. <uni-icons type="plusempty" size="24" color="#fff"></uni-icons>
  115. </view>
  116. <!-- 新增记录弹窗 -->
  117. <uni-popup ref="addPopup" type="center">
  118. <view class="popup-content">
  119. <view class="popup-header">
  120. <text class="title">{{ isEdit ? '修改记录' : '新增记录' }}</text>
  121. <uni-icons type="close" size="20" @click="closePopup"></uni-icons>
  122. </view>
  123. <view class="popup-body">
  124. <view class="form-item">
  125. <text class="label">项目选择</text>
  126. <view class="project-picker" @click="showProjectPicker">
  127. <text v-if="selectedProject">{{ selectedProject.projectName }}</text>
  128. <text v-else class="placeholder">请选择项目</text>
  129. </view>
  130. </view>
  131. <view class="form-item">
  132. <text class="label">设备选择</text>
  133. <view class="project-picker" @click="showDevicePicker">
  134. <text v-if="selectDevice && selectDevice.code">{{ selectDevice.name }}-{{ selectDevice.brand }}({{
  135. selectDevice.code
  136. }})</text>
  137. <text v-else class="placeholder">请选择设备</text>
  138. </view>
  139. </view>
  140. <view class="form-item">
  141. <text class="label">设备类型</text>
  142. <uni-data-select v-model="formData.usageType" :localdata="useTypeOptions" placeholder="请选择设备类型"
  143. class="weather-select" @change="handleUseTypeChange" />
  144. </view>
  145. <view class="form-item">
  146. <text class="label">使用日期</text>
  147. <!-- <uni-datetime-picker v-model="formData.useDate" type="date" /> -->
  148. <uv-calendar ref="calendar" mode="single" @confirm="confirmUseDate"></uv-calendar>
  149. <view class="project-picker" @click="$refs.calendar.open()">
  150. <text v-if="formData.useDate">{{ formData.useDate }}</text>
  151. <text v-else class="placeholder">请选择日期</text>
  152. </view>
  153. </view>
  154. <view class="form-item">
  155. <text class="label">点号</text>
  156. <input v-model="formData.position" placeholder="请输入点号" />
  157. </view>
  158. <view class="form-item">
  159. <text class="label">高值类型</text>
  160. <uni-data-select v-model="formData.heightType" :localdata="highTypeOptions" placeholder="请选择高值类型"
  161. class="weather-select" @change="handleHighTypeChange" />
  162. </view>
  163. <view class="form-item">
  164. <text class="label">高值(m)</text>
  165. <input v-model="formData.height" type="number" placeholder="请输入高值" />
  166. </view>
  167. <view class="form-item">
  168. <text class="label">天气</text>
  169. <uni-data-select v-model="formData.weather" :localdata="weatherOptions" placeholder="请选择天气"
  170. class="weather-select" />
  171. </view>
  172. <view class="form-item">
  173. <text class="label">干温 (°C)</text>
  174. <input v-model="formData.dryTemperature" type="number" placeholder="请输入干温" />
  175. </view>
  176. <view class="form-item">
  177. <text class="label">湿温 (°C)</text>
  178. <input v-model="formData.wetTemperature" type="number" placeholder="请输入湿温" />
  179. </view>
  180. <view class="form-item">
  181. <text class="label">气压 (hPa)</text>
  182. <input v-model="formData.airPressure" type="number" placeholder="请输入气压" />
  183. </view>
  184. <view class="form-item" v-if="formData.usageType !== '全站仪'">
  185. <text class="label">开机时间</text>
  186. <view class="datetime-picker" @click="openPowerOnPicker">
  187. <text v-if="formData.powerOn">{{ formatDateTime(formData.powerOn) }}</text>
  188. <text v-else class="placeholder">请选择开机时间</text>
  189. </view>
  190. </view>
  191. <view class="form-item" v-if="formData.usageType !== '全站仪'">
  192. <text class="label">关机时间</text>
  193. <view class="datetime-picker" @click="openPowerOffPicker">
  194. <text v-if="formData.powerOff">{{ formatDateTime(formData.powerOff) }}</text>
  195. <text v-else class="placeholder">请选择关机时间</text>
  196. </view>
  197. </view>
  198. </view>
  199. <view class="popup-footer">
  200. <button class="btn cancel" @click="closePopup">取消</button>
  201. <button class="btn confirm" @click="submitForm">确定</button>
  202. </view>
  203. </view>
  204. </uni-popup>
  205. <!-- 项目选择器 -->
  206. <project-picker :visible.sync="showPicker" :selected.sync="selectedProject" @confirm="handleProjectSelect" />
  207. <!-- 设备选择器 -->
  208. <device-picker :visible.sync="openDevice" :selected.sync="selectDevice" :multiple="false"
  209. @confirm="handleDeviceSelect"></device-picker>
  210. <!-- 时间选择器 -->
  211. <uv-datetime-picker ref="powerOnPicker" v-model="formData.powerOn" mode="datetime"
  212. @confirm="handlePowerOnConfirm"></uv-datetime-picker>
  213. <uv-datetime-picker ref="powerOffPicker" v-model="formData.powerOff" mode="datetime"
  214. @confirm="handlePowerOffConfirm"></uv-datetime-picker>
  215. </view>
  216. </template>
  217. <script>
  218. import { listDeviceLog, getDeviceLog, addDeviceLog, updateDeviceLog, delDeviceLog } from '@/api/oa/device/deviceLog';
  219. import { listProject } from '@/api/oa/project/project';
  220. import ProjectPicker from '@/pages/components/ProjectPicker.vue';
  221. import DevicePicker from '@/pages/components/DevicePicker.vue';
  222. import { parseTime } from '@/utils/common';
  223. export default {
  224. components: {
  225. ProjectPicker,
  226. DevicePicker
  227. },
  228. data() {
  229. return {
  230. logList: [],
  231. scrollTop: 0,
  232. queryParams: {
  233. pageNum: 1,
  234. pageSize: 10,
  235. userId: null,
  236. projectNumber: ''
  237. },
  238. showPicker: false,
  239. selectedProject: null,
  240. openDevice: false,
  241. selectDevice: {},
  242. weatherOptions: [
  243. { text: '晴', value: '晴' },
  244. { text: '阴', value: '阴' },
  245. { text: '多云', value: '多云' },
  246. { text: '雨', value: '雨' },
  247. { text: '雪', value: '雪' }
  248. ],
  249. highTypeOptions: [],
  250. useTypeOptions: [
  251. { text: '全站仪', value: '全站仪' },
  252. { text: 'GNSS基站', value: 'GNSS基站' },
  253. { text: 'GNSS静态', value: 'GNSS静态' }
  254. ],
  255. formData: {
  256. useDate: '',
  257. weather: '',
  258. position: '',
  259. dryTemperature: '',
  260. wetTemperature: '',
  261. airPressure: '',
  262. heightType: '',
  263. height: '',
  264. powerOn: '',
  265. powerOff: '',
  266. usageType: ''
  267. },
  268. isEdit: false,
  269. currentLogId: null,
  270. hasMore: true,
  271. loading: false,
  272. isRefreshing: false
  273. }
  274. },
  275. created() {
  276. this.getList()
  277. },
  278. methods: {
  279. async getList() {
  280. if (this.loading) return
  281. this.loading = true
  282. try {
  283. if (this.$store.getters.roles.includes('leader') || this.$store.getters.roles.includes('dept')) {
  284. this.queryParams.userId = null
  285. } else {
  286. this.queryParams.userId = this.$store.getters.userId
  287. }
  288. const res = await listDeviceLog(this.queryParams)
  289. if (this.queryParams.pageNum === 1) {
  290. this.logList = res.rows
  291. } else {
  292. this.logList = [...this.logList, ...res.rows]
  293. }
  294. this.hasMore = res.rows.length === this.queryParams.pageSize
  295. } catch (error) {
  296. uni.showToast({
  297. title: '加载失败',
  298. icon: 'error'
  299. })
  300. } finally {
  301. this.loading = false
  302. }
  303. },
  304. async onRefresh() {
  305. this.isRefreshing = true
  306. this.queryParams.pageNum = 1
  307. this.hasMore = true
  308. await this.getList()
  309. this.isRefreshing = false
  310. },
  311. upper() {
  312. // 下拉刷新
  313. this.onRefresh()
  314. },
  315. lower() {
  316. // 上拉加载更多
  317. if (this.hasMore && !this.loading) {
  318. this.queryParams.pageNum++
  319. this.getList()
  320. }
  321. },
  322. scroll(e) {
  323. // 可以在这里添加滚动相关的逻辑
  324. },
  325. handleAdd() {
  326. this.formData.useDate = parseTime(new Date(), '{y}-{m}-{d}');
  327. this.$refs.addPopup.open()
  328. },
  329. closePopup() {
  330. this.$refs.addPopup.close()
  331. this.resetForm()
  332. },
  333. showProjectPicker() {
  334. this.showPicker = true
  335. },
  336. showDevicePicker() {
  337. this.openDevice = true
  338. },
  339. handleProjectSelect(project) {
  340. this.selectedProject = project
  341. },
  342. handleDeviceSelect(device) {
  343. this.selectDevice = device
  344. },
  345. openPowerOnPicker() {
  346. this.$refs.powerOnPicker.open()
  347. },
  348. openPowerOffPicker() {
  349. this.$refs.powerOffPicker.open()
  350. },
  351. handlePowerOnConfirm(e) {
  352. this.formData.powerOn = e.value
  353. },
  354. handlePowerOffConfirm(e) {
  355. this.formData.powerOff = e.value
  356. },
  357. confirmUseDate(e) {
  358. this.formData.useDate = parseTime(e[0], '{y}-{m}-{d}')
  359. },
  360. formatDateTime(timestamp) {
  361. if (!timestamp) return ''
  362. const date = new Date(timestamp)
  363. const year = date.getFullYear()
  364. const month = String(date.getMonth() + 1).padStart(2, '0')
  365. const day = String(date.getDate()).padStart(2, '0')
  366. const hours = String(date.getHours()).padStart(2, '0')
  367. const minutes = String(date.getMinutes()).padStart(2, '0')
  368. return `${year}-${month}-${day} ${hours}:${minutes}`
  369. },
  370. resetForm() {
  371. this.isEdit = false
  372. this.currentLogId = null
  373. this.selectedProject = null
  374. this.formData = {
  375. useDate: '',
  376. weather: '',
  377. position: '',
  378. dryTemperature: '',
  379. wetTemperature: '',
  380. airPressure: '',
  381. heightType: '',
  382. height: '',
  383. powerOn: '',
  384. powerOff: '',
  385. usageType: ''
  386. }
  387. },
  388. async submitForm() {
  389. if (!this.selectDevice) {
  390. uni.showToast({
  391. title: '请选择设备',
  392. icon: 'none'
  393. })
  394. return
  395. }
  396. const params = {
  397. ...this.formData,
  398. projectId: this.selectedProject ? this.selectedProject.projectId : null,
  399. deviceId: this.selectDevice.deviceId,
  400. userId: this.$store.getters.userId,
  401. powerOn: Number(this.formData.powerOn),
  402. powerOff: Number(this.formData.powerOff)
  403. }
  404. try {
  405. if (this.isEdit) {
  406. await updateDeviceLog({
  407. ...params,
  408. logId: this.currentLogId
  409. })
  410. uni.showToast({
  411. title: '修改成功',
  412. icon: 'success'
  413. })
  414. } else {
  415. await addDeviceLog(params)
  416. uni.showToast({
  417. title: '添加成功',
  418. icon: 'success'
  419. })
  420. }
  421. this.closePopup()
  422. this.getList()
  423. } catch (error) {
  424. uni.showToast({
  425. title: this.isEdit ? '修改失败' : '添加失败',
  426. icon: 'error'
  427. })
  428. }
  429. },
  430. handleEdit(item) {
  431. this.isEdit = true
  432. this.currentLogId = item.logId
  433. this.selectedProject = item.project
  434. this.selectDevice = item.device
  435. this.formData = {
  436. useDate: item.useDate,
  437. weather: item.weather,
  438. position: item.position,
  439. dryTemperature: item.dryTemperature,
  440. wetTemperature: item.wetTemperature,
  441. airPressure: item.airPressure,
  442. heightType: item.heightType,
  443. height: item.height,
  444. powerOn: item.powerOn,
  445. powerOff: item.powerOff,
  446. usageType: item.usageType
  447. }
  448. if (item.usageType === '全站仪') {
  449. this.highTypeOptions = [
  450. { text: '仪器高', value: '仪器高' },
  451. { text: '棱镜高', value: '棱镜高' }
  452. ]
  453. } else if (item.usageType === 'GNSS基站' || item.usageType === 'GNSS静态') {
  454. this.highTypeOptions = [
  455. { text: '斜高', value: '斜高' },
  456. { text: '直高', value: '直高' },
  457. { text: '杆高', value: '杆高' },
  458. { text: '天线高', value: '天线高' }
  459. ]
  460. }
  461. this.$refs.addPopup.open()
  462. },
  463. async handleDelete(item) {
  464. try {
  465. const [err, res] = await uni.showModal({
  466. title: '确认删除',
  467. content: '确定要删除这条记录吗?',
  468. confirmColor: '#FF3B30'
  469. })
  470. if (err || !res.confirm) {
  471. return
  472. }
  473. await delDeviceLog(item.logId)
  474. uni.showToast({
  475. title: '删除成功',
  476. icon: 'success'
  477. })
  478. this.getList()
  479. } catch (error) {
  480. uni.showToast({
  481. title: '删除失败',
  482. icon: 'error'
  483. })
  484. }
  485. },
  486. handleHighTypeChange(value) {
  487. this.formData.heightType = value
  488. },
  489. handleUseTypeChange(value) {
  490. this.formData.usageType = value
  491. if (value === '全站仪') {
  492. this.highTypeOptions = [
  493. { text: '仪器高', value: '仪器高' },
  494. { text: '棱镜高', value: '棱镜高' }
  495. ]
  496. } else if (value === 'GNSS基站' || value === 'GNSS静态') {
  497. this.highTypeOptions = [
  498. { text: '斜高', value: '斜高' },
  499. { text: '直高', value: '直高' },
  500. { text: '杆高', value: '杆高' },
  501. { text: '天线高', value: '天线高' }
  502. ]
  503. }
  504. this.formData.heightType = ''
  505. },
  506. async handleSearch() {
  507. this.queryParams.pageNum = 1
  508. const res = await listProject({
  509. pageNum: 1,
  510. pageSize: 10,
  511. projectNumber: this.queryParams.projectNumber
  512. })
  513. let projectList = res.rows;
  514. if (projectList.length == 1) {
  515. this.queryParams.projectId = projectList[0].projectId
  516. } else {
  517. this.queryParams.projectId = null
  518. }
  519. this.getList()
  520. },
  521. clearSearch() {
  522. this.queryParams.projectNumber = ''
  523. this.queryParams.projectId = null
  524. this.getList()
  525. },
  526. isOwnRecord(item) {
  527. return item.user.userId === this.$store.getters.userId
  528. }
  529. }
  530. }
  531. </script>
  532. <style lang="scss" scoped>
  533. .scroll-Y {
  534. height: 100vh;
  535. background: #f8f8f8;
  536. box-sizing: border-box;
  537. position: relative;
  538. padding-bottom: 120rpx;
  539. }
  540. .content-wrapper {
  541. padding: 20rpx;
  542. min-height: 100%;
  543. }
  544. .fab-button {
  545. position: fixed;
  546. right: 30rpx;
  547. bottom: 50rpx;
  548. width: 100rpx;
  549. height: 100rpx;
  550. background: #007AFF;
  551. border-radius: 50%;
  552. display: flex;
  553. align-items: center;
  554. justify-content: center;
  555. box-shadow: 0 4rpx 16rpx rgba(0, 122, 255, 0.3);
  556. z-index: 99;
  557. transition: all 0.3s;
  558. &:active {
  559. transform: scale(0.95);
  560. background: #0062cc;
  561. }
  562. }
  563. .project-card {
  564. margin-bottom: 20rpx;
  565. background: #fff;
  566. border-radius: 12rpx;
  567. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
  568. &:last-child {
  569. margin-bottom: 0;
  570. }
  571. &-item {
  572. padding: 20rpx;
  573. &-header {
  574. display: flex;
  575. justify-content: space-between;
  576. align-items: center;
  577. margin-bottom: 20rpx;
  578. padding-bottom: 20rpx;
  579. border-bottom: 2rpx solid #f5f5f5;
  580. .project-info {
  581. display: flex;
  582. align-items: center;
  583. gap: 20rpx;
  584. .project-number {
  585. font-size: 28rpx;
  586. color: #666;
  587. background: #f5f5f5;
  588. padding: 4rpx 16rpx;
  589. border-radius: 8rpx;
  590. }
  591. .project-name {
  592. font-size: 32rpx;
  593. color: #333;
  594. font-weight: bold;
  595. }
  596. }
  597. .action-buttons {
  598. display: flex;
  599. gap: 16rpx;
  600. .action-btn {
  601. width: 64rpx;
  602. height: 64rpx;
  603. display: flex;
  604. align-items: center;
  605. justify-content: center;
  606. background: #f8f8f8;
  607. border: none;
  608. border-radius: 8rpx;
  609. padding: 0;
  610. transition: all 0.3s;
  611. &:active {
  612. transform: scale(0.95);
  613. }
  614. &.edit {
  615. &:active {
  616. background: #e6f2ff;
  617. }
  618. }
  619. &.delete {
  620. &:active {
  621. background: #ffe6e6;
  622. }
  623. }
  624. }
  625. }
  626. }
  627. &-content {
  628. display: flex;
  629. flex-direction: column;
  630. gap: 12rpx;
  631. .info-row {
  632. display: flex;
  633. align-items: center;
  634. font-size: 26rpx;
  635. line-height: 1.5;
  636. .info-label {
  637. color: #666;
  638. width: 140rpx;
  639. flex-shrink: 0;
  640. }
  641. .info-value {
  642. color: #333;
  643. flex: 1;
  644. }
  645. }
  646. }
  647. }
  648. }
  649. .empty-state {
  650. display: flex;
  651. flex-direction: column;
  652. align-items: center;
  653. justify-content: center;
  654. padding: 120rpx 0;
  655. .empty-image {
  656. width: 240rpx;
  657. height: 240rpx;
  658. margin-bottom: 20rpx;
  659. }
  660. .empty-text {
  661. font-size: 28rpx;
  662. color: #999;
  663. }
  664. }
  665. .popup-content {
  666. background: #fff;
  667. border-radius: 24rpx;
  668. width: 680rpx;
  669. max-height: 75vh;
  670. .popup-header {
  671. display: flex;
  672. justify-content: space-between;
  673. align-items: center;
  674. padding: 30rpx;
  675. background: #f8f8f8;
  676. .title {
  677. font-size: 34rpx;
  678. font-weight: 600;
  679. color: #333;
  680. }
  681. }
  682. .popup-body {
  683. padding: 30rpx;
  684. max-height: 60vh;
  685. overflow-y: auto;
  686. .form-item {
  687. margin-bottom: 30rpx;
  688. .label {
  689. display: block;
  690. font-size: 28rpx;
  691. color: #333;
  692. margin-bottom: 16rpx;
  693. font-weight: 500;
  694. }
  695. input {
  696. width: 100%;
  697. height: 88rpx;
  698. background: #f8f8f8;
  699. border: 2rpx solid #eee;
  700. border-radius: 12rpx;
  701. padding: 0 24rpx;
  702. font-size: 28rpx;
  703. color: #333;
  704. transition: all 0.3s;
  705. &:focus {
  706. border-color: #007AFF;
  707. background: #fff;
  708. }
  709. &::placeholder {
  710. color: #999;
  711. }
  712. }
  713. .project-picker {
  714. width: 100%;
  715. height: 88rpx;
  716. background: #f8f8f8;
  717. border: 2rpx solid #eee;
  718. border-radius: 12rpx;
  719. padding: 0 24rpx;
  720. display: flex;
  721. align-items: center;
  722. transition: all 0.3s;
  723. &:active {
  724. background: #f0f0f0;
  725. }
  726. .placeholder {
  727. color: #999;
  728. font-size: 28rpx;
  729. }
  730. }
  731. .datetime-picker {
  732. width: 100%;
  733. height: 88rpx;
  734. background: #f8f8f8;
  735. border: 2rpx solid #eee;
  736. border-radius: 12rpx;
  737. padding: 0 24rpx;
  738. display: flex;
  739. align-items: center;
  740. transition: all 0.3s;
  741. &:active {
  742. background: #f0f0f0;
  743. }
  744. .placeholder {
  745. color: #999;
  746. font-size: 28rpx;
  747. }
  748. }
  749. }
  750. }
  751. .popup-footer {
  752. display: flex;
  753. gap: 24rpx;
  754. padding: 30rpx;
  755. background: #f8f8f8;
  756. border-top: 2rpx solid #eee;
  757. .btn {
  758. flex: 1;
  759. height: 88rpx;
  760. line-height: 88rpx;
  761. text-align: center;
  762. border-radius: 12rpx;
  763. font-size: 30rpx;
  764. font-weight: 500;
  765. transition: all 0.3s;
  766. &.cancel {
  767. background: #f0f0f0;
  768. color: #666;
  769. &:active {
  770. background: #e0e0e0;
  771. }
  772. }
  773. &.confirm {
  774. background: #007AFF;
  775. color: #fff;
  776. &:active {
  777. background: #0062cc;
  778. }
  779. }
  780. }
  781. }
  782. }
  783. .weather-select {
  784. :deep(.uni-data-select) {
  785. .uni-select {
  786. height: 88rpx;
  787. background: #f8f8f8;
  788. border: 2rpx solid #eee;
  789. border-radius: 12rpx;
  790. .uni-select__input-box {
  791. height: 88rpx;
  792. line-height: 88rpx;
  793. padding: 0 24rpx;
  794. }
  795. .uni-select__input-text {
  796. font-size: 28rpx;
  797. color: #333;
  798. }
  799. .uni-select__input-placeholder {
  800. color: #999;
  801. }
  802. }
  803. }
  804. }
  805. :deep(.uni-date) {
  806. .uni-date__icon-clear {
  807. display: none;
  808. }
  809. .uni-date-editor {
  810. height: 88rpx;
  811. background: #f8f8f8;
  812. border: 2rpx solid #eee;
  813. border-radius: 12rpx;
  814. .uni-date__input {
  815. height: 88rpx;
  816. line-height: 88rpx;
  817. font-size: 28rpx;
  818. color: #333;
  819. }
  820. }
  821. }
  822. .loading-more,
  823. .no-more {
  824. text-align: center;
  825. padding: 20rpx 0;
  826. margin-bottom: 120rpx;
  827. .loading-text,
  828. .no-more-text {
  829. font-size: 24rpx;
  830. color: #999;
  831. }
  832. }
  833. .search-bar {
  834. padding: 20rpx;
  835. background: #fff;
  836. margin-bottom: 20rpx;
  837. border-radius: 12rpx;
  838. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
  839. .search-input-wrapper {
  840. display: flex;
  841. align-items: center;
  842. background: #f8f8f8;
  843. border-radius: 8rpx;
  844. padding: 0 20rpx;
  845. height: 72rpx;
  846. .search-input {
  847. flex: 1;
  848. height: 72rpx;
  849. margin: 0 20rpx;
  850. font-size: 28rpx;
  851. color: #333;
  852. &::placeholder {
  853. color: #999;
  854. }
  855. }
  856. }
  857. }
  858. </style>