dangerous.vue 21 KB

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