list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. <template>
  2. <view>
  3. <view v-if="datalist.length>0">
  4. <block v-if="zhtype==2">
  5. <view class="shlist" v-for="(ite,idx) in datalist" :key="idx">
  6. <view class="tittop flexc mb6">
  7. <view class="f17 fw co16 flex1">{{ite.userName}}</view>
  8. <view class="tsbtn co1" v-if="ite.isPass==1">待审核</view>
  9. <view class="tsbtn co2" v-if="ite.isPass==2">已通过</view>
  10. <view class="tsbtn co3" v-if="ite.isPass==3">已拒绝</view>
  11. </view>
  12. <view class="plr12">
  13. <view class="list flext ptb4">
  14. <view class="f15 co16 flex0 fw5">学校:</view>
  15. <view class="f15 co6 flex1">{{ite.schoolName}}</view>
  16. </view>
  17. <view class="list flext ptb4">
  18. <view class="f15 co16 flex0 fw5">班级:</view>
  19. <view class="f15 co6 flex1">
  20. <block v-for="(mite,midx) in ite.registerTeacherClassList" :key="midx">{{mite.className}};
  21. </block>
  22. </view>
  23. </view>
  24. <view class="list flexc">
  25. <view class="ptb4 flext flex1">
  26. <view class="f15 co16 flex0 fw5">学科:</view>
  27. <view class="f15 co6 flex1">
  28. <block v-for="(mite,midx) in ite.registerTeacherClassList" :key="midx">{{mite.discipline}};
  29. </block>
  30. </view>
  31. </view>
  32. <block v-if="!ite.opinion">
  33. <view class="btn btn1" @click="getPass(ite.id)" v-if="ite.isPass==1&&checkPermi(['audit:shyj:add'])">通过</view>
  34. <view class="btn btn2" @click="getSefuse(ite.id)" v-if="ite.isPass==1&&checkPermi(['audit:shyj:add'])">拒绝</view>
  35. <view class="btn btn3" @click="getDel(ite.id)" v-if="checkPermi(['register:teacher:remove'])">删除</view>
  36. </block>
  37. </view>
  38. <view class="list flexc" v-if="ite.opinion">
  39. <view class="ptb4 flext flex1">
  40. <view class="f15 co16 flex0 fw5">审核意见:</view>
  41. <view class="f15 co6 flex1">
  42. {{ite.opinion}}
  43. </view>
  44. </view>
  45. <view class="btn btn1" @click="getPass(ite.id)" v-if="ite.isPass==1&&checkPermi(['audit:shyj:add'])">通过</view>
  46. <view class="btn btn2" @click="getSefuse(ite.id)" v-if="ite.isPass==1&&checkPermi(['audit:shyj:add'])">拒绝</view>
  47. <view class="btn btn3" @click="getDel(ite.id)" v-if="checkPermi(['register:teacher:remove'])">删除</view>
  48. </view>
  49. </view>
  50. </view>
  51. </block>
  52. <!-- 家长 -->
  53. <block v-if="zhtype==3" >
  54. <view class="shlist" v-for="(ite,idx) in datalist" :key="idx">
  55. <view class="tittop flexc mb6">
  56. <view class="f17 fw co16 flex1">{{ite.parentsName}}<text class="ml6">{{ite.parentsPhone}}</text></view>
  57. <view class="tsbtn co1" v-if="ite.isPass==1">待审核</view>
  58. <view class="tsbtn co2" v-if="ite.isPass==2">已通过</view>
  59. <view class="tsbtn co3" v-if="ite.isPass==3">已拒绝</view>
  60. </view>
  61. <view class="plr12">
  62. <view class="list flext ptb4">
  63. <view class="f15 co16 flex0 fw5">学校:</view>
  64. <view class="f15 co6 flex1">{{ite.schoolName}}</view>
  65. </view>
  66. <view class="list flext ptb4">
  67. <view class="f15 co16 flex0 fw5">班级:</view>
  68. <view class="f15 co6 flex1">{{ite.className}}</view>
  69. </view>
  70. <view class="list flext ptb4" v-if="ite.studentName">
  71. <view class="f15 co16 flex0 fw5">学生姓名:</view>
  72. <view class="f15 co6 flex1">{{ite.studentName}}</view>
  73. </view>
  74. <view class="list flext ptb4" v-if="ite.studentNumber">
  75. <view class="f15 co16 flex0 fw5">身份证号:</view>
  76. <view class="f15 co6 flex1">{{ite.studentNumber}}</view>
  77. </view>
  78. <view class="list flexc">
  79. <view class="ptb4 flext flex1"></view>
  80. <view class="btn btn1" @click="getPass(ite.id)" v-if="ite.isPass==1&&checkPermi(['audit:shyj:add'])">通过</view>
  81. <view class="btn btn2" @click="getSefuse(ite.id)" v-if="ite.isPass==1&&checkPermi(['audit:shyj:add'])">拒绝</view>
  82. <view class="btn btn3" @click="getDel(ite.id)" v-if="checkPermi(['register:student:remove'])">删除</view>
  83. </view>
  84. </view>
  85. </view>
  86. </block>
  87. <!-- 调课 -->
  88. <block v-if="zhtype==4">
  89. <view class="shlist" v-for="(ite,idx) in datalist" :key="idx">
  90. <view class="tittop flexc mb6">
  91. <view class="f17 fw co16 flex1">{{ite.applyName}}</view>
  92. <view class="tsbtn co1" v-if="ite.isPass==1">待审核</view>
  93. <view class="tsbtn co2" v-if="ite.isPass==2">已通过</view>
  94. <view class="tsbtn co3" v-if="ite.isPass==3">已拒绝</view>
  95. <!-- <view class="tsbtn co2">已通过</view>
  96. <view class="tsbtn co3">已拒绝</view> -->
  97. </view>
  98. <view class="plr12">
  99. <!-- <view class="list flext ptb4">
  100. <view class="f15 co16 flex0 fw5">申请时间:</view>
  101. <view class="f15 co6 flex1">{{ite.applyTime}}</view>
  102. </view> -->
  103. <view class="list flext ptb4">
  104. <view class="f15 co16 flex0 fw5">调课班级:</view>
  105. <view class="f15 co6 flex1">{{ite.subjectClass}}</view>
  106. </view>
  107. <view class="list flext ptb4">
  108. <view class="f15 co16 flex0 fw5">调课科目:</view>
  109. <view class="f15 co6 flex1">{{ite.subject}}/{{ite.subjectTime}}/{{kaType(ite.subjectWeek,week)}}</view>
  110. </view>
  111. <view class="list flext ptb4">
  112. <view class="f15 co16 flex0 fw5">被调科目:</view>
  113. <view class="f15 co6 flex1">{{ite.beSubject}}/{{ite.beSubjectTime}}/{{kaType(ite.week,week)}}</view>
  114. </view>
  115. <!-- <view class="list flext ptb4">
  116. <view class="f15 co16 flex0 fw5">时间(星期):</view>
  117. <view class="f15 co6 flex1">{{kaType(ite.week,week)}}</view>
  118. </view> -->
  119. <view class="list flext ptb4" v-if='ite.content'>
  120. <view class="f15 co16 flex0 fw5">调课内容:</view>
  121. <view class="f15 co6 flex1">{{ite.content}}</view>
  122. </view>
  123. <view class="list flexc">
  124. <view class="flex1"><block v-if="ite.opinion">拒绝理由:{{ite.opinion||''}}</block></view>
  125. <view class="btn btn1" @click="getPass(ite)" v-if="ite.isPass==1&&checkPermi(['course:change:reply'])">通过</view>
  126. <view class="btn btn2" @click="getSefuse(ite)" v-if="ite.isPass==1&&checkPermi(['course:change:reply'])">拒绝</view>
  127. <view class="btn btn3" @click="getDel(ite)" v-if="checkPermi(['course:change:remove'])&&ite.applyId==userId">删除</view>
  128. <!-- <view class="btn btn1" @click="getUpdate(ite.id)" v-if="checkPermi(['course:change:edit'])&&ite.isPass!=2&&ite.applyId==userId">修改</view> -->
  129. </view>
  130. </view>
  131. </view>
  132. </block>
  133. <!-- 调课通知 -->
  134. <block v-if="zhtype==5">
  135. <view class="shlist" v-for="(ite,idx) in datalist" :key="idx">
  136. <view class="tittop flexc mb8">
  137. <view class="f17 f5 co47 flex1">{{ite.subject}} </view>
  138. <!-- <span style="margin-left: 20rpx;">{{ite.applyName}}</span> -->
  139. <view class="f14 f5 co47 flex0">{{ite.subjectTime}}/{{kaType(ite.week,week)}}</view>
  140. </view>
  141. <view class="plr12">
  142. <view class="list flext ptb4">
  143. <view class="f15 co16 flex0 fw5">调课班级:</view>
  144. <view class="f15 co6 flex1">{{ite.subjectClass}}</view>
  145. </view>
  146. <view class="list flext ptb4">
  147. <view class="f15 co16 flex0 fw5">被调课班级:</view>
  148. <view class="f15 co6 flex1">{{ite.beSubject}}/{{ite.beSubjectTime}}/{{kaType(ite.week,week)}}</view>
  149. </view>
  150. <view class="list flext ptb4" v-if='ite.content'>
  151. <view class="f15 co16 flex0 fw5">调课内容:</view>
  152. <view class="f15 co6 flex1">{{ite.content}}</view>
  153. </view>
  154. </view>
  155. </view>
  156. </block>
  157. <!-- 动态 -->
  158. <block v-if="zhtype==6">
  159. <view class="dtlist" v-for="(ite,idx) in datalist" :key="idx" @click="getDetail(ite.noticeId)">
  160. <view class="flext">
  161. <image v-if='ite.avatar' :src="baseUrl+ite.avatar" class="listl"></image>
  162. <image v-else :src="avatar" class="listl"></image>
  163. <view class="listr">
  164. <view class="top">
  165. <view class="f17 co16 fw5 flex0" v-if="ite.senderName">{{ite.senderName}}</view>
  166. <view class="f14 co6 flex1 ml6 txr" v-if="ite.schoolName">{{ite.schoolName}}</view>
  167. </view>
  168. <view>
  169. <view class="f15 co16 mb8" v-if="ite.noticeContent">{{ite.noticeContent}}</view>
  170. <view class="imgs" v-if="ite.photo">
  171. <image :src="baseUrl+pit" :class="ite.photo.length==0?'img1':''" v-for="(pit,pid) in ite.photo" :key="pid" @click.stop="getPreview(ite.photo,pit)"></image>
  172. </view>
  173. </view>
  174. <view class="flexcj">
  175. <view class="f13 coa">{{ite.createTime}}</view>
  176. <view class="trsta flexc">
  177. <view class="trstal">
  178. <image :src="tricong"></image>
  179. <!-- <view class="cir">2</view> -->
  180. </view>
  181. <view class="trstal">
  182. <image :src="triconb"></image>
  183. <!-- <view class="cir">2</view> -->
  184. </view>
  185. <view class="trstal">
  186. <image :src="triconc"></image>
  187. </view>
  188. <view class="trstal">
  189. <image :src="tricond"></image>
  190. </view>
  191. </view>
  192. <!-- 暂放end -->
  193. <!-- <view class="delbox">
  194. <image :src="tddelimg"></image>
  195. <view>删除</view>
  196. </view> -->
  197. </view>
  198. <!-- <view class="f14 coa"></view> -->
  199. </view>
  200. </view>
  201. <!-- 评论 -->
  202. <view class="trcom mt15" style="display: none;">
  203. <view class="trcomz flext">
  204. <view class="trcoml">
  205. <image :src="triconc"></image>
  206. </view>
  207. <view class="trcomr">
  208. <image :src="avatar"></image>
  209. </view>
  210. </view>
  211. <view class="trcomp flext">
  212. <view class="trcoml">
  213. <image :src="triconb"></image>
  214. </view>
  215. <view class="flex1">
  216. <view class="trcompr flext">
  217. <image v-if='ite.avatar' :src="baseUrl+ite.avatar" class="listl"></image>
  218. <image v-else :src="avatar" class="listl"></image>
  219. <view>
  220. <view class="flexcj mb5">
  221. <view class="f13 fw c37 lh20">王运营</view>
  222. <view class="f13 co6">6月23日 14:15</view>
  223. </view>
  224. <view class="f13 co16 fw5 lh20">好的,收到!我们家长一定会督促孩子完成英语作 业,保质保量的完成!</view>
  225. </view>
  226. </view>
  227. </view>
  228. </view>
  229. </view>
  230. </view>
  231. </block>
  232. <!-- 查询注册结果 -->
  233. <block v-if="zhtype==7">
  234. <view class="shlist" v-for="(ite,idx) in datalist" :key="idx">
  235. <view class="tittop flexc mb6">
  236. <view class="f17 fw co16 flex1">
  237. <block v-if="ite.zctype=='school'">学校管理员</block>
  238. <block v-if="ite.zctype=='teacher'">老师</block>
  239. <block v-if="ite.zctype=='parents'">家长</block>
  240. <!-- {{ite.zctype}} -->
  241. </view>
  242. <view class="tsbtn co1" v-if="ite.isPass==1">待审核</view>
  243. <view class="tsbtn co2" v-if="ite.isPass==2">已通过</view>
  244. <view class="tsbtn co3" v-if="ite.isPass==3">已拒绝</view>
  245. </view>
  246. <!-- 学校 -->
  247. <view class="plr12" v-if="ite.zctype=='school'">
  248. <view class="list flext ptb4">
  249. <view class="f15 co16 flex0 fw5">学校:</view>
  250. <view class="f15 co6 flex1">{{ite.schoolName}}</view>
  251. </view>
  252. <view class="list flext ptb4">
  253. <view class="f15 co16 flex0 fw5">负责人:</view>
  254. <view class="f15 co6 flex1">{{ite.userName}}</view>
  255. </view>
  256. <view class="list flexc">
  257. <view class="ptb4 flext flex1">
  258. <view class="f15 co16 flex0 fw5">联系方式:</view>
  259. <view class="f15 co6 flex1">{{ite.userPhone}}</view>
  260. </view>
  261. <view class="btn btn3" v-if="!ite.opinion&&ite.isPass!='2'&&!ite.registerSchoolFileList" @click="getUpdate(ite)" >修改</view>
  262. </view>
  263. <view class="list flex" v-if="ite.registerSchoolFileList&&ite.registerSchoolFileList.length">
  264. <view class="ptb4 flext flex1">
  265. <view class="f15 co16 flex0 fw5">资质:</view>
  266. <view class="cldelistbf flexc" v-for="(fite,fidx) in ite.registerSchoolFileList" :key='fite.id'>
  267. <view class="flext f15 co16 flex1" @click="getDown(fite.url)">
  268. <view class="imgl"><image :src="wimg" ></image></view>
  269. <view class="tit">{{fite.name}}</view>
  270. </view>
  271. </view>
  272. </view>
  273. <view class="btn btn3 " style="margin-top: 6rpx;" v-if="!ite.opinion&&ite.isPass!='2'" @click="getUpdate(ite)" >修改</view>
  274. </view>
  275. <view class="list flexc" v-if="ite.opinion">
  276. <view class="ptb4 flext flex1">
  277. <view class="f15 co16 flex0 fw5">审核意见:</view>
  278. <view class="f15 co6 flex1">
  279. {{ite.opinion}}
  280. </view>
  281. </view>
  282. <view class="btn btn3" @click="getUpdate(ite)" v-if="ite.isPass!='2'">修改</view>
  283. </view>
  284. </view>
  285. <view class="plr12" v-if="ite.zctype=='teacher'">
  286. <view class="list flext ptb4">
  287. <view class="f15 co16 flex0 fw5">学校:</view>
  288. <view class="f15 co6 flex1">{{ite.schoolName}}</view>
  289. </view>
  290. <view class="list flext ptb4">
  291. <view class="f15 co16 flex0 fw5">姓名:</view>
  292. <view class="f15 co6 flex1">{{ite.userName}}</view>
  293. </view>
  294. <view class="list flext ptb4">
  295. <view class="f15 co16 flex0 fw5">联系方式:</view>
  296. <view class="f15 co6 flex1">{{ite.userPhone}}</view>
  297. </view>
  298. <view class="list flext ptb4">
  299. <view class="f15 co16 flex0 fw5">班级:</view>
  300. <view class="f15 co6 flex1">
  301. <block v-for="(mite,midx) in ite.registerTeacherClassList" :key="midx">{{mite.className}};
  302. </block>
  303. </view>
  304. </view>
  305. <view class="list flexc">
  306. <view class="ptb4 flext flex1">
  307. <view class="f15 co16 flex0 fw5">学科:</view>
  308. <view class="f15 co6 flex1">
  309. <block v-for="(mite,midx) in ite.registerTeacherClassList" :key="midx">{{mite.discipline}};</block>
  310. </view>
  311. </view>
  312. <view class="btn btn3" v-if="!ite.opinion&&ite.isPass!='2'" @click="getUpdate(ite)">修改</view>
  313. </view>
  314. <view class="list flexc" v-if="ite.opinion">
  315. <view class="ptb4 flext flex1">
  316. <view class="f15 co16 flex0 fw5">审核意见:</view>
  317. <view class="f15 co6 flex1">
  318. {{ite.opinion}}
  319. </view>
  320. </view>
  321. <view class="btn btn3" @click="getUpdate(ite)" v-if="ite.isPass!=='2'">修改</view>
  322. </view>
  323. </view>
  324. <block v-if="ite.zctype=='parents'">
  325. <view class="plr12">
  326. <view class="list flext ptb4">
  327. <view class="f15 co16 flex0 fw5">学校:</view>
  328. <view class="f15 co6 flex1">{{ite.schoolName}}</view>
  329. </view>
  330. <view class="list flext ptb4">
  331. <view class="f15 co16 flex0 fw5">班级:</view>
  332. <view class="f15 co6 flex1">{{ite.className}}</view>
  333. </view>
  334. <view class="list flexc">
  335. <view class="ptb4 flext flex1">
  336. <view class="f15 co16 flex0 fw5">学生姓名:</view>
  337. <view class="f15 co6 flex1">{{ite.studentName}}</view>
  338. </view>
  339. <view class="btn btn3" v-if="!ite.opinion&&ite.isPass!=='2'" @click="getUpdate(ite)">修改</view>
  340. </view>
  341. <view class="list flexc" v-if="ite.opinion">
  342. <view class="ptb4 flext flex1">
  343. <view class="f15 co16 flex0 fw5">审核意见:</view>
  344. <view class="f15 co6 flex1">
  345. {{ite.opinion}}
  346. </view>
  347. </view>
  348. <view class="btn btn3" @click="getUpdate(ite)" v-if="ite.isPass!=='2'">修改</view>
  349. </view>
  350. </view>
  351. </block>
  352. </view>
  353. </block>
  354. <!-- 家长添加学生 -->
  355. <block v-if="zhtype==8">
  356. <view class="shlist" v-for="(ite,idx) in datalist" :key="idx">
  357. <view class="tittop flexc mb6">
  358. <view class="f17 fw co16 flex1">{{ite.studentName}}</view>
  359. <view class="tsbtn co1" v-if="ite.isPass==1">待审核</view>
  360. <view class="tsbtn co2" v-if="ite.isPass==2">已通过</view>
  361. <view class="tsbtn co3" v-if="ite.isPass==3">已拒绝</view>
  362. </view>
  363. <view class="plr12">
  364. <view class="list flext ptb4">
  365. <view class="f15 co16 flex0 fw5">学校:</view>
  366. <view class="f15 co6 flex1">{{ite.schoolName}}</view>
  367. </view>
  368. <view class="list flext ptb4">
  369. <view class="f15 co16 flex0 fw5">班级:</view>
  370. <view class="f15 co6 flex1">{{ite.className}}</view>
  371. <view class="btn btn3" v-if="!ite.opinion&&ite.isPass!=='2'" @click="getUpdate(ite)">修改</view>
  372. <view class="btn btn3" @click="getDel(ite)" v-if="ite.isPass=='2'">删除</view>
  373. </view>
  374. <view class="list flexc" v-if="ite.opinion">
  375. <view class="ptb4 flext flex1">
  376. <view class="f15 co16 flex0 fw5">审核意见:</view>
  377. <view class="f15 co6 flex1">
  378. {{ite.opinion}}
  379. </view>
  380. </view>
  381. <!-- checkPermi(['register:student:remove'])&& -->
  382. <view class="btn btn3" @click="getUpdate(ite)" v-if="ite.isPass!=='2'">修改</view>
  383. <view class="btn btn3" @click="getDel(ite)" v-if="ite.isPass=='2'">删除</view>
  384. </view>
  385. </view>
  386. </view>
  387. </block>
  388. <view class="shax" v-if="wtdt">{{wtdt}}</view>
  389. </view>
  390. <block v-else>
  391. <no-data ></no-data>
  392. </block>
  393. </view>
  394. </template>
  395. <script>
  396. import config from '@/config'
  397. const baseUrl = config.baseUrl
  398. import noData from "@/components/nodata/nodata.vue"
  399. import { selectDictValue } from '@/utils/common.js';
  400. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  401. export default {
  402. props:{
  403. datalist: {
  404. type: Array,
  405. default () {
  406. return []
  407. }
  408. },
  409. subject: {
  410. type: Array,
  411. default () {
  412. return []
  413. }
  414. },
  415. week: {
  416. type: Array,
  417. default () {
  418. return []
  419. }
  420. },
  421. zhtype:{
  422. typeof:[Number,String],
  423. default () {
  424. return 0
  425. }
  426. },
  427. userId:{
  428. typeof:[Number,String],
  429. default () {
  430. return 0
  431. }
  432. },
  433. avatar:{
  434. type: String,
  435. default () {
  436. return ''
  437. }
  438. },
  439. wtdt:{
  440. type: String,
  441. default () {
  442. return ''
  443. }
  444. },
  445. type:{
  446. type: String,
  447. default () {
  448. return ''
  449. }
  450. },
  451. froms:{
  452. type: String,
  453. default () {
  454. return ''
  455. }
  456. }
  457. },
  458. components:{
  459. noData
  460. },
  461. data(){
  462. return{
  463. sucimg:require("@/mine/static/mine/success.png"),
  464. delimg:require("@/static/images/tcdel.png"),
  465. tddelimg:require("@/static/images/tdel.png"),
  466. tricona:require("@/static/images/tricoa.png"),
  467. triconb:require("@/static/images/tricob.png"),
  468. triconc:require("@/static/images/tricoc.png"),
  469. tricond:require("@/static/images/tricod.png"),
  470. tricong:require("@/static/images/tricog.png"),
  471. wimg:require('@/static/images/read.png'),
  472. baseUrl:''
  473. }
  474. },
  475. methods:{
  476. checkPermi,checkRole,
  477. kaType(data, list) {
  478. return selectDictValue(list, data);
  479. },
  480. getPass(data){
  481. this.$modal.confirm('确定通过审核?').then(() => {
  482. this.$emit('getPass',data)
  483. })
  484. },
  485. getDel(data){
  486. this.$modal.confirm('确定删除该条信息?').then(() => {
  487. this.$emit('getDel',data)
  488. })
  489. },
  490. getDetail(id){
  491. this.$emit('getDetail',id)
  492. },
  493. getSefuse(data){
  494. this.$emit('getSefuse',data)
  495. },
  496. getUpdate(data){
  497. this.$emit('getUpdate',data)
  498. },
  499. getDown(e){
  500. uni.showLoading({
  501. title: '加载中'
  502. });
  503. var url=this.baseUrl+e;
  504. uni.downloadFile({
  505. url: url,//文件的下载路径
  506. success(result) {
  507. uni.hideLoading()
  508. var filePath = result.tempFilePath;
  509. uni.openDocument({
  510. filePath: filePath,
  511. showMenu: true,
  512. success: function (res) {
  513. }
  514. });
  515. },
  516. fail(res) {uni.hideLoading()}
  517. })
  518. },
  519. // 查看照片
  520. getPreview(iurl,idx) {
  521. var newArr=[];
  522. iurl.forEach(ite=>{
  523. var ds=this.baseUrl+ite
  524. newArr.push(ds)
  525. })
  526. uni.previewImage({
  527. urls: newArr,
  528. current:idx,
  529. success: function(data) {
  530. },
  531. fail: function(err) {
  532. console.log(err.errMsg);
  533. }
  534. });
  535. },
  536. },
  537. mounted() {
  538. this.baseUrl=baseUrl
  539. },
  540. onLoad: function() {
  541. }
  542. }
  543. </script>
  544. <style lang="scss" scoped>
  545. .shlist{width: 100%;background: #FFFFFF;border-radius: 14rpx;padding: 0 24rpx 24rpx;margin-bottom: 24rpx;
  546. .tittop{padding:20rpx 24rpx;border-bottom: 2rpx solid #E6E6E6;
  547. .tsbtn{min-width: 90rpx;height: 36rpx;border-radius: 4rpx;padding: 0 12rpx;box-sizing: border-box;font-size: 24rpx;line-height: 36rpx;
  548. &.co1{background: #FFEDDF;color: #E19301;}
  549. &.co2{background: #D3F7E5;color: #24D725;}
  550. &.co3{background: #FDE2E3;color: #EC1134;}
  551. }
  552. }
  553. .list{
  554. .btn{min-width: 106rpx;height: 46rpx;border-radius: 14rpx;display: flex;align-items: center;justify-content: center;box-sizing: border-box;font-size: 26rpx;margin-left: 20rpx;
  555. &.btn1{background: #1f57e6;color: #FFFFFF;}
  556. &.btn2{border: 1px solid #4775EA;color: #4775EA;}
  557. &.btn3{border: 1px solid red;color: red;}
  558. }
  559. }
  560. }
  561. // 附件
  562. .cldelistbf {
  563. padding: 0rpx 24rpx;flex: 1;
  564. image{flex: 0 0 auto;}
  565. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 24rpx;
  566. image{width: 40rpx;height: 34rpx;}
  567. }
  568. .imgr{width: 30rpx;height: 30rpx;margin-left: 24rpx;}
  569. .tit{line-height: 40rpx;font-size: 32rpx;color: #161616;flex: 1;word-break: break-all;}
  570. }
  571. .infolist_b{color: #aaaaaa;font-size: 26rpx;padding:0 24rpx;margin-top:10rpx;
  572. text{word-break: break-all;margin: 0 4rpx;color: #ff0000;}
  573. }
  574. // 动态
  575. .dtlist{width: 100%;margin-top: 24rpx;background: #FFFFFF;border-radius: 8rpx;padding: 28rpx 30rpx;box-sizing: border-box;
  576. .listl{width: 60rpx;height: 60rpx;margin-right: 20rpx;flex: 0 0 auto;border-radius:50%;}
  577. .listr{flex: 1;
  578. .top{min-height: 60rpx;display: flex;align-items: center;margin-bottom: 10rpx;
  579. }
  580. .imgs{display: flex;flex-wrap: wrap;padding-bottom: 16rpx;
  581. image{width: 180rpx;height: 180rpx;margin-bottom: 24rpx;margin-right: 10rpx;
  582. &:nth-of-type(3n){margin-right: 0;}
  583. &.img1{width: 100%;height: 290rpx;}
  584. }
  585. }
  586. .trsta{
  587. .trstal{width:40rpx ;height: 32rpx;display: flex;align-items: center;justify-content: center;position: relative;margin-left: 20rpx;
  588. .cir{min-width: 20rpx;height: 24rpx;line-height: 24rpx;font-size: 20rpx;color: #FFFFFF;
  589. background: #DF1616;
  590. border: 2rpx solid #FFFFFF;
  591. border-radius: 6rpx;position: absolute;right: -50%;top: -50%;text-align: center;padding: 0 4rpx;box-sizing: border-box;}
  592. }
  593. image{width: 26rpx;height: 26rpx;}
  594. }
  595. }
  596. .delbox{display: flex;align-items: center;font-size: 26rpx;color: #718DD4;
  597. image{width: 24rpx;height: 25rpx ;margin-right: 12rpx;}
  598. }
  599. .trcom{width: 100%;background: #ECECEC;
  600. .trcomz{padding: 24rpx 8rpx 8rpx 24rpx;border-bottom: 2rpx solid #DADADA;
  601. .trcomr{display: flex;align-items: center;flex-wrap: wrap;
  602. image{width: 40rpx;height: 40rpx;margin: 0 16rpx 16rpx 0;border-radius: 50%;}
  603. }
  604. }
  605. .trcomp{padding: 24rpx 0 0 24rpx;
  606. .trcompr{padding: 0 24rpx 12rpx 0;border-bottom: 2rpx solid #DADADA;margin-bottom: 12rpx;
  607. &:last-of-type{border-bottom: none;}
  608. .listl{width: 40rpx;height: 40rpx;margin-right:12rpx;border-radius: 50%;flex: 0 0 auto;}
  609. }
  610. }
  611. .trcoml{flex: 0 0 auto;margin-right: 12rpx;width: 40rpx;height: 40rpx;display: flex;align-items: center;
  612. image{width: 26rpx;height: 26rpx;}
  613. }
  614. }
  615. }
  616. </style>