dangerous.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  1. <template>
  2. <!-- 危险作业工程 -->
  3. <view>
  4. <view class="background">
  5. <view class="uni-list">
  6. <view class="container">
  7. <view>
  8. 工程名称
  9. </view>
  10. <view v-if="this.isEmpty(this.projectObj.enginName)" style="margin-top: 10;"
  11. @click="pickerShow('name')">
  12. <span style="color: darkgray;">请选择工程</span>
  13. <image src="../../static/images/icon_right.png"
  14. style=" position: absolute; width: 15px;height: 15px;"></image>
  15. </view>
  16. <view v-else style="margin-top: 10;" @click="pickerShow('name')">
  17. <span style="color: black;">{{projectObj.enginName}}</span>
  18. <image src="../../static/images/icon_right.png"
  19. style=" position: absolute; width: 15px;height: 15px;"></image>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="uni-list">
  24. <view class="container">
  25. <view>
  26. 工程地点
  27. </view>
  28. <view style="margin-top: 10;">
  29. <span style="color: black;">{{projectObj.enginAddre}}</span>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="uni-list">
  34. <view class="container">
  35. <view>
  36. 作业基本信息
  37. </view>
  38. <view style="margin-top: 10;">
  39. <span style="color: black;">{{projectObj.basicInformation}}</span>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="background">
  45. <view class="uni-list">
  46. <view class="container">
  47. <view>
  48. 工程时间
  49. </view>
  50. <view v-if="isEmpty(this.projectTime)" @click="openDatetimePicker">
  51. <span style="color: darkgray;">请选择工程时间</span>
  52. <image src="../../static/images/icon_right.png"
  53. style=" position: absolute; width: 15px;height: 15px;"></image>
  54. </view>
  55. <view v-else @click="openDatetimePicker">
  56. <span style="color: black;">{{projectTime}}</span>
  57. <image src="../../static/images/icon_right.png"
  58. style=" position: absolute; width: 15px;height: 15px;"></image>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="uni-list">
  63. <view class="container">
  64. <text>管径</text>
  65. <input class="uni-input" type="digit" v-model="projectObj.pipeDiameter" placeholder="请输入管径"
  66. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  67. </view>
  68. </view>
  69. <view class="uni-list">
  70. <view class="container">
  71. <text>管材</text>
  72. <input class="uni-input" type="text" v-model="projectObj.tubularProduct" placeholder="请输入管材"
  73. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  74. </view>
  75. </view>
  76. <view class="uni-list">
  77. <view class="container">
  78. <text>是否存在套管</text>
  79. <view>
  80. <span style="color: black;">{{bushingText}}</span>
  81. <switch v-if="isBushing" checked style="transform: scale(0.6,0.6);"
  82. @change="switchChangePipe" />
  83. <switch v-else style="transform: scale(0.6,0.6);" @change="switchChangePipe" />
  84. </view>
  85. </view>
  86. </view>
  87. <view class="uni-list">
  88. <view class="container">
  89. <text>管道压力</text>
  90. <input class="uni-input" type="digit" v-model="projectObj.pipePressure" placeholder="请输入管道压力"
  91. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  92. </view>
  93. </view>
  94. <view class="uni-list">
  95. <view class="container">
  96. <text>气源方向</text>
  97. <input class="uni-input" type="text" v-model="projectObj.gasSourceDirection" placeholder="请输入气源方向"
  98. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  99. </view>
  100. </view>
  101. <view class="uni-list">
  102. <view class="container">
  103. <text>作业位置</text>
  104. <input class="uni-input" type="text" v-model="projectObj.taskPosition" placeholder="请输入作业位置"
  105. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  106. </view>
  107. </view>
  108. <view class="uni-list">
  109. <view class="container">
  110. <text>作业相关阀门位置</text>
  111. <input class="uni-input" type="text" v-model="projectObj.valvePosition" placeholder="请输入作业相关阀门位置"
  112. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  113. </view>
  114. </view>
  115. <view class="uni-list">
  116. <view class="container">
  117. <text>压力报告</text>
  118. <input class="uni-input" type="text" v-model="projectObj.stressReport" placeholder="请输入压力报告"
  119. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  120. </view>
  121. </view>
  122. <view class="uni-list">
  123. <view class="container">
  124. <text>监理旁站记录</text>
  125. <input class="uni-input" type="text" v-model="projectObj.supervisionRecord" placeholder="请输入监理旁站记录"
  126. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  127. </view>
  128. </view>
  129. <view class="uni-list">
  130. <view class="container">
  131. <text>工作联系单</text>
  132. <input class="uni-input" type="text" v-model="projectObj.workContactForm" placeholder="请输入工作联系单"
  133. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  134. </view>
  135. </view>
  136. <view class="uni-list">
  137. <view class="container">
  138. <text>巡线确认单</text>
  139. <input class="uni-input" type="text" v-model="projectObj.linePatrolConfirmationForm"
  140. placeholder="请输入巡线确认单" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  141. </view>
  142. </view>
  143. <view class="uni-list">
  144. <view class="container">
  145. <text>危险作业坑大小(长,宽,深)</text>
  146. <input class="uni-input" type="digit" v-model="projectObj.hazardousWorkPitsLong" placeholder="请输入长"
  147. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  148. <input class="uni-input" type="digit" v-model="projectObj.hazardousWorkPitsWide" placeholder="请输入宽"
  149. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  150. <input class="uni-input" type="digit" v-model="projectObj.hazardousWorkPitsDeep" placeholder="请输入深"
  151. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  152. </view>
  153. </view>
  154. <view class="uni-list">
  155. <view class="container">
  156. <text>是否需要支护</text>
  157. <view>
  158. <span style="color: black;">{{needSupportText}}</span>
  159. <switch v-if="isNeedSupport" checked style="transform: scale(0.6,0.6);"
  160. @change="switchChangeSupport" />
  161. <switch v-else style="transform: scale(0.6,0.6);" @change="switchChangeSupport" />
  162. </view>
  163. </view>
  164. </view>
  165. <view class="uni-list">
  166. <view class="container">
  167. <text>作业坑内其他管道情况</text>
  168. <input class="uni-input" type="text" v-model="projectObj.otherPipelineConditionsWorkPit"
  169. placeholder="请输入作业坑内其他管道情况" maxlength="100"
  170. style="margin-left: 10px;text-align: right;"></input>
  171. </view>
  172. </view>
  173. <view class="uni-list">
  174. <view class="container">
  175. <text>现场负责人</text>
  176. <input class="uni-input" type="text" v-model="projectObj.siteHead" placeholder="请输入现场负责人"
  177. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  178. </view>
  179. </view>
  180. <view class="uni-list">
  181. <view class="container">
  182. <text>现场负责人联系方式</text>
  183. <input class="uni-input" type="number" v-model="projectObj.siteHeadPhone" placeholder="请输入现场负责人联系方式"
  184. maxlength="11" style="margin-left: 10px;text-align: right;"></input>
  185. </view>
  186. </view>
  187. <view class="uni-list">
  188. <view class="container">
  189. <text>作业人员信息</text>
  190. <input class="uni-input" type="text" v-model="projectObj.operatorInformation"
  191. placeholder="请输入作业人员信息" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  192. </view>
  193. </view>
  194. <view class="uni-list">
  195. <view class="container">
  196. <text>检口</text>
  197. <input class="uni-input" type="text" v-model="projectObj.inspectionPort" placeholder="请输入检口"
  198. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  199. </view>
  200. </view>
  201. <view class="uni-list">
  202. <view class="container">
  203. <text>管道刷油</text>
  204. <input class="uni-input" type="text" v-model="projectObj.pipelinePainting" placeholder="请输入管道刷油"
  205. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  206. </view>
  207. </view>
  208. <view class="uni-list">
  209. <view class="container">
  210. <text>管道防腐</text>
  211. <input class="uni-input" type="text" v-model="projectObj.pipelineCorrosionProtection"
  212. placeholder="请输入管道防腐" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  213. </view>
  214. </view>
  215. <view class="uni-list">
  216. <view class="container">
  217. <text>管道支护</text>
  218. <input class="uni-input" type="text" v-model="projectObj.pipelineSupport" placeholder="请输入管道支护"
  219. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  220. </view>
  221. </view>
  222. <view class="uni-list">
  223. <view class="container">
  224. <text>砌筑阀门井</text>
  225. <input class="uni-input" type="text" v-model="projectObj.masonryValveWell" placeholder="请输入砌筑阀门井"
  226. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  227. </view>
  228. </view>
  229. <view class="uni-list">
  230. <view class="container">
  231. <text>保护井</text>
  232. <input class="uni-input" type="text" v-model="projectObj.protectionWell" placeholder="请输入保护井"
  233. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  234. </view>
  235. </view>
  236. <view class="uni-list">
  237. <view class="container">
  238. <text>管件保护井砌筑</text>
  239. <input class="uni-input" type="text" v-model="projectObj.pipeProtectionWelMasonry"
  240. placeholder="请输入管件保护井砌筑" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  241. </view>
  242. </view>
  243. <view class="uni-list">
  244. <view class="container">
  245. <text>回填</text>
  246. <input class="uni-input" type="text" v-model="projectObj.backfill" placeholder="请输入回填"
  247. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  248. </view>
  249. </view>
  250. <view class="uni-list">
  251. <view class="container">
  252. <text>夯实</text>
  253. <input class="uni-input" type="text" v-model="projectObj.tamp" placeholder="请输入夯实" maxlength="100"
  254. style="margin-left: 10px;text-align: right;"></input>
  255. </view>
  256. </view>
  257. <view class="uni-list">
  258. <view class="container">
  259. <text>平整场地</text>
  260. <input class="uni-input" type="text" v-model="projectObj.levelingTheSite" placeholder="请输入平整场地"
  261. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  262. </view>
  263. </view>
  264. <view class="uni-list">
  265. <view class="container">
  266. <text>备注</text>
  267. <input class="uni-input" type="text" v-model="projectObj.remark" placeholder="请输入备注" maxlength="100"
  268. style="margin-left: 10px;text-align: right;"></input>
  269. </view>
  270. </view>
  271. <view class="uni-list">
  272. <view class="align-items" style="margin-bottom: 20px;">
  273. <view class="container" style="color: gainsboro;">*请上传文件</view>
  274. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  275. <image src="/static/images/chooseimg.png" mode=""
  276. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="chooseFile()"></image>
  277. <view v-for="(item,index) in fileArr" :key="index" style="position: relative;">
  278. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  279. {{item.fileName}}
  280. <image :src="item.picUrl" mode=""
  281. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  282. </image>
  283. </view>
  284. <view @click="removeFile(index)"
  285. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  286. <image src="../../../static/images/icon_close.png"
  287. style=" width: 15px; height: 15px;"></image>
  288. </view>
  289. </view>
  290. </view>
  291. </view>
  292. </view>
  293. <view class="action-btn">
  294. <button @click="submit" class="btn cu-btn block bg-blue lg round">提交</button>
  295. </view>
  296. <SelectPicker :list="rows" @change="projectListSelect" v-if="open" @close="close" titleKey="name"
  297. subtitleKey="id" v-model="name"></SelectPicker>
  298. <yt-dateTimePicker ref="myPicker" @submit="handleSubmit" :start-year="2024" :end-year="2099"
  299. :time-hide="[true, true, true, true, true, true]" :time-label="['年', '月', '日', '时', '分', '秒']" />
  300. </view>
  301. </view>
  302. </template>
  303. <script>
  304. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  305. import {
  306. getToken
  307. } from '../../utils/auth';
  308. import {
  309. getDangerousWorkProjectList,
  310. getDangerousWorkProjectDetails,
  311. updateDangerousWorkProject
  312. } from '@/api/common'
  313. export default {
  314. components: {
  315. SelectPicker
  316. },
  317. data() {
  318. return {
  319. headers: {
  320. Authorization: "Bearer " + getToken()
  321. },
  322. projectValue: {},
  323. projectId: "",
  324. projectName: "",
  325. projectPosition: "",
  326. projectInfoContent: "",
  327. projectTime: "",
  328. pipeSize: "",
  329. pipeMaterial: "",
  330. isBushing: false,
  331. bushingText: "否",
  332. pipePressure: "",
  333. direction: "",
  334. workPosition: "",
  335. valvePosition: "",
  336. stressReport: "",
  337. supervisionSiteRecord: "",
  338. workContactForm: "",
  339. linePatrolForm: "",
  340. workHoleLong: "",
  341. workHoleWide: "",
  342. workHoleHeight: "",
  343. isNeedSupport: false,
  344. needSupportText: "否",
  345. otherPipelineCondition: "",
  346. siteLeaderName: "",
  347. siteLeaderPhone: "",
  348. workPersonInfo: "",
  349. inspectionPort: "",
  350. pipelineOil: "", //管道刷油
  351. pipelineCorrosion: "", //管道腐蚀
  352. masonryValveWell: "", //砌筑阀门井
  353. protectionWell: "", //保护井
  354. pipeProtectionwellMasonry: "", //管件保护井砌筑
  355. backfill: "", //回填
  356. tamp: "", //夯实
  357. levelSite: "", //平整场地
  358. file: [], // 附件
  359. pics: [], // 附件返回
  360. rows: [],
  361. open: false,
  362. projectObj: {},
  363. currentTime: "",
  364. fileArr: [],
  365. }
  366. },
  367. created() {
  368. this.currentTime = this.traversalTime(new Date().getTime()); //在data里定义变量-nowTime
  369. },
  370. methods: {
  371. isEmpty(str) {
  372. return (!str || 0 === str.length);
  373. },
  374. pickerShow(e) {
  375. if (e == 'name') {
  376. this.open = true;
  377. let param = {};
  378. getDangerousWorkProjectList(param).then(res => {
  379. this.rows = res.data;
  380. })
  381. }
  382. },
  383. changeSelect(e) {
  384. },
  385. close() {
  386. this.open = false;
  387. },
  388. projectListSelect(item, index) {
  389. this.open = false;
  390. getDangerousWorkProjectDetails(item.id).then(res => {
  391. this.projectObj = res.data;
  392. this.projectTime = this.projectObj.enginTime;
  393. // if (this.isEmpty(this.projectTime)) {
  394. // this.projectTime = this.currentTime;
  395. // this.projectObj.enginTime = this.currentTime;
  396. // }
  397. this.isNeedSupport = this.projectObj.needSupport == "1";
  398. if (this.isNeedSupport) {
  399. this.needSupportText = "是";
  400. } else {
  401. this.needSupportText = "否";
  402. }
  403. this.isBushing = this.projectObj.casingPresent == "1";
  404. if (this.isBushing) {
  405. this.bushingText = "是";
  406. } else {
  407. this.bushingText = "否";
  408. }
  409. this.fileArr = this.projectObj.pics;
  410. })
  411. },
  412. switchChangePipe(e) {
  413. this.isBushing = e.detail.value;
  414. if (this.isBushing) {
  415. this.projectObj.casingPresent = "1";
  416. this.bushingText = "是";
  417. } else {
  418. this.projectObj.casingPresent = "0";
  419. this.bushingText = "否";
  420. }
  421. console.log("bush:" + this.isBushing + this.bushingText)
  422. },
  423. switchChangeSupport(e) {
  424. this.isNeedSupport = e.detail.value;
  425. if (this.isNeedSupport) {
  426. this.projectObj.needSupport = '1';
  427. this.needSupportText = "是";
  428. } else {
  429. this.projectObj.needSupport = '0';
  430. this.needSupportText = "否";
  431. }
  432. console.log("bush:" + this.isNeedSupport + this.needSupportText)
  433. },
  434. chooseFile() {
  435. let _this = this;
  436. console.log('文件' + _this.headers);
  437. uni.chooseMessageFile({
  438. // sizeType: ['album', 'camera'],
  439. type: 'all',
  440. extension: ['dwg', 'dwt', 'doc', 'docx', 'xls', 'xlsx', 'jpg', 'png', 'jpeg', 'mp4'],
  441. success(resp) {
  442. resp.tempFiles.forEach((item, index) => {
  443. const task = uni.uploadFile({
  444. url: _this.$HTTP + `/obs`,
  445. filePath: item.path,
  446. name: 'file',
  447. formData: {},
  448. header: _this.headers,
  449. success: res => {
  450. // 判断是否json字符串,将其转为json格式
  451. // console.log("结果", res)
  452. let data = JSON.parse(res.data);
  453. if (![200].includes(data.code)) {
  454. _this.$modal.msg(data.msg)
  455. } else {
  456. if (_this.progress === 100) {
  457. console.log('_this.progress', _this.progress)
  458. console.log('res--', res)
  459. _this.fileArr.push({
  460. 'fileName': item.name,
  461. 'picUrl': data.data.url,
  462. })
  463. debugger
  464. console.log("xxx_" + data.data.url);
  465. _this.$modal.msg('上传成功!')
  466. }
  467. }
  468. },
  469. fail: e => {
  470. console.log(e)
  471. _this.$modal.msg('上传失败!')
  472. //_this.uploadError(index, e);
  473. },
  474. complete: res => {
  475. uni.hideLoading();
  476. _this.uploading = false;
  477. }
  478. });
  479. task.onProgressUpdate(res => {
  480. _this.progress = res.progress;
  481. console.log('onProgressUpdate', res)
  482. console.log('task.onProgressUpdate', _this.progress)
  483. uni.showLoading({
  484. title: '上传中'
  485. })
  486. if (_this.progress != 100) {
  487. _this.loading = false
  488. console.log('_this.loading false', _this.loading)
  489. } else {
  490. _this.loading = true
  491. console.log('_this.loading true', _this.loading)
  492. }
  493. });
  494. })
  495. },
  496. })
  497. },
  498. removeFile(index) {
  499. uni.showModal({
  500. title: '提示',
  501. content: '是否删除该文件?',
  502. success: (res) => {
  503. if (res.confirm) {
  504. this.fileArr.splice(index, 1)
  505. console.log('this.fileArr', this.fileArr)
  506. }
  507. }
  508. })
  509. },
  510. submit() {
  511. if (this.fileArr.length <= 0) {
  512. this.$modal.msg('请选择附件')
  513. return;
  514. }
  515. this.projectObj.enginTime = this.projectTime;
  516. this.projectObj.pics = this.fileArr;
  517. updateDangerousWorkProject(this.projectObj).then(res => {
  518. this.$modal.msg(res.msg);
  519. uni.navigateBack();
  520. })
  521. },
  522. handleSubmit(e) {
  523. this.projectTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  524. this.projectObj.enginTime = this.projectTime;
  525. },
  526. // 打开picker
  527. openDatetimePicker() {
  528. if (this.isEmpty(this.projectObj.id)) {
  529. this.$modal.msg('请选择工程')
  530. } else {
  531. this.$refs.myPicker.show();
  532. }
  533. },
  534. addTimes(m) {
  535. return m < 10 ? '0' + m : m
  536. },
  537. //获取当前时间
  538. traversalTime(timestamp) {
  539. //timestamp(时间戳)是整数,否则要parseInt转换
  540. let time = new Date(timestamp);
  541. let y = time.getFullYear();
  542. let m = time.getMonth() + 1;
  543. let d = time.getDate();
  544. let h = time.getHours();
  545. let mm = time.getMinutes();
  546. let s = time.getSeconds();
  547. return y + '-' + this.addTimes(m) + '-' + this.addTimes(d) + ' ' + this.addTimes(h) + ':' + this.addTimes(
  548. mm) + ':' + this.addTimes(s);
  549. },
  550. }
  551. }
  552. </script>
  553. <style>
  554. .container {
  555. display: flex;
  556. margin-left: 10px;
  557. margin-top: 10px;
  558. margin-right: 10px;
  559. align-items: flex-start;
  560. justify-content: space-between;
  561. }
  562. .marginLeft5 {
  563. margin-left: 5px;
  564. }
  565. .title-txt {
  566. font-size: 15px;
  567. font-weight: bold;
  568. color: black;
  569. }
  570. .content-txt {
  571. font-size: 10px;
  572. font-weight: bold;
  573. color: black;
  574. }
  575. .background {
  576. margin: 8px;
  577. padding: 10px;
  578. background-color: #fff;
  579. border-radius: 5px;
  580. padding-left: 5px;
  581. padding-right: 10px;
  582. }
  583. .uni-list-cell {
  584. position: relative;
  585. display: flex;
  586. flex-direction: row;
  587. justify-content: space-between;
  588. align-items: center;
  589. }
  590. .uni-list-cell-left {
  591. white-space: nowrap;
  592. font-size: 28rpx;
  593. }
  594. .centered {
  595. text-align: center;
  596. background-color: #e2f4ff;
  597. }
  598. .text {
  599. background-color: #e2f4ff;
  600. height: 20rpx;
  601. }
  602. .view_bg_build {
  603. background-color: #e2f4ff;
  604. padding: 10rpx;
  605. margin: 20rpx;
  606. }
  607. .grid-text {
  608. font-size: 14px;
  609. color: #000000;
  610. text-align: center;
  611. padding-left: 30rpx;
  612. padding-right: 30rpx;
  613. padding-top: 20rpx;
  614. padding-bottom: 20rpx;
  615. }
  616. .name {
  617. flex: 0;
  618. font-size: 14px;
  619. color: #000000;
  620. overflow: hidden;
  621. text-overflow: ellipsis;
  622. white-space: nowrap;
  623. }
  624. .table-item {
  625. overflow: hidden;
  626. text-overflow: ellipsis;
  627. white-space: nowrap;
  628. }
  629. .block-iv {
  630. width: 10px;
  631. height: 10px;
  632. }
  633. .btn {
  634. margin-top: 40px;
  635. margin-right: 20px;
  636. margin-bottom: 120px;
  637. margin-left: 20px;
  638. height: 45px;
  639. }
  640. .number {
  641. display: flex;
  642. /* 水平居中显示子元素 */
  643. align-items: flex-start;
  644. /* 垂直居中显示子元素 */
  645. justify-content: space-between;
  646. /* 左右间距等于间距大小 */
  647. padding: 10px;
  648. /* 设置padding以提高视觉效果 */
  649. }
  650. .textarea {
  651. margin-top: 10upx;
  652. width: 100%;
  653. border: 1rpx solid red;
  654. min-height: 100upx;
  655. line-height: 20px;
  656. }
  657. .text {
  658. font-size: 16px;
  659. color: #333;
  660. }
  661. input {
  662. flex-grow: 1;
  663. font-size: 28rpx;
  664. color: #808080;
  665. }
  666. </style>