managementList.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. <template>
  2. <view>
  3. <u-navbar title="授权管理" title-color="#101010">
  4. <view slot="right" @click="deleteShow=!deleteShow">
  5. <img src="@/assets/img/riLine-list-settings-line.svg" alt="" />
  6. </view>
  7. </u-navbar>
  8. <view class="search-box">
  9. <u-search placeholder="搜索授权用户" bg-color="#f2f4f6" height="80" :show-action="true" v-model="keyword">
  10. </u-search>
  11. </view>
  12. <!-- 列表 -->
  13. <view class="member-list">
  14. <view class="item" v-for="item in 5" >
  15. <view class="photo">
  16. <img src="@/assets/img/PEokWS2@3x.png" alt="" />
  17. </view>
  18. <view class="infos">
  19. <view class="name">
  20. 杨静云
  21. </view>
  22. <view class="tel">
  23. 19729922849
  24. </view>
  25. </view>
  26. <view class="button" @click="show=true" v-if="!deleteShow">
  27. 权限管理
  28. </view>
  29. <!-- 单选框 -->
  30. <view class="radio-box" v-if="deleteShow">
  31. <label class="radio">
  32. <radio value="" /><text></text>
  33. </label>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="bottom">
  38. <view class="button qr-code">
  39. <img src="@/assets/img/riLine-qr-code-line 1.svg" alt="" /> 授权二维码
  40. </view>
  41. <view class="button list-button">
  42. <img src="@/assets/img/riLine-contacts-line.svg" alt="" /> 申请人列表
  43. <view class="bot">
  44. 8
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 删除 -->
  49. <view class="delete" v-if="deleteShow" @click="deletePopup=true">
  50. <view class="icon">
  51. <img src="@/assets/img/riLine-delete-bin-7-line 1.svg" alt="" />
  52. </view>
  53. <view class="text">
  54. 删除
  55. </view>
  56. </view>
  57. <!-- 删除确认弹框 -->
  58. <u-popup v-model="deletePopup" mode="bottom" border-radius="12">
  59. <view class="popup">
  60. <view class="headline">
  61. 删除定时
  62. </view>
  63. <view class="hint">
  64. 要删除选中的定时吗?
  65. </view>
  66. <view class="btn-box">
  67. <view class="cancel" @click="deletePopup=false">
  68. 取消
  69. </view>
  70. <view class="confirm" >
  71. 确认删除
  72. </view>
  73. </view>
  74. </view>
  75. </u-popup>
  76. <!-- 人员权限管理 -->
  77. <view>
  78. <u-popup v-model="show" mode="bottom">
  79. <view class="popup2" >
  80. <view class="title">
  81. 杨静云-权限管理
  82. </view>
  83. <view class="content">
  84. <view class="item" v-for="item in 3" >
  85. <view class="item-title">
  86. 荆鹏A栋9楼总电表
  87. </view>
  88. <view class="item-radio">
  89. <label class="radio">
  90. <radio value="" /><text></text>
  91. </label>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="popup-bottom">
  96. <view class="button cancel">
  97. 取消
  98. </view>
  99. <view class="button save">
  100. 保存
  101. </view>
  102. </view>
  103. </view>
  104. </u-popup>
  105. </view>
  106. </view>
  107. </template>
  108. <script>
  109. export default {
  110. data() {
  111. return {
  112. keyword:"",
  113. deleteShow:false,
  114. deletePopup:false,
  115. show:false,
  116. }
  117. },
  118. methods: {
  119. }
  120. }
  121. </script>
  122. <style>
  123. page{
  124. padding-bottom: 100px;
  125. }
  126. </style>
  127. <style lang="scss" scoped>
  128. /deep/.u-slot-right {
  129. padding-right: 32rpx;
  130. padding-left: 16rpx;
  131. line-height: 30px;
  132. background-color: #fff;
  133. img {
  134. width: 48rpx;
  135. height: 48rpx;
  136. vertical-align: middle;
  137. }
  138. }
  139. .search-box {
  140. padding: 16rpx 32rpx;
  141. position: sticky;
  142. top: 88rpx;
  143. z-index: 999;
  144. background-color: rgba(255,255,255,1);
  145. /deep/.u-content {
  146. border-radius: 8px !important;
  147. }
  148. ;
  149. /deep/.u-search {
  150. position: relative
  151. }
  152. ;
  153. /deep/.u-action {
  154. width: 96rpx;
  155. line-height: 56rpx;
  156. border-radius: 4px;
  157. background-color: rgba(22, 119, 255, 1);
  158. color: rgba(255, 255, 255, 1);
  159. text-align: center;
  160. z-index: 9999;
  161. position: absolute;
  162. right: 12rpx;
  163. }
  164. }
  165. // 列表
  166. .member-list{
  167. background: #fff;
  168. .item{
  169. padding: 32rpx 0;
  170. margin: 0 32rpx;
  171. display: flex;
  172. align-items: center;
  173. border-bottom: 1px solid rgba(244,244,244,1);;
  174. }
  175. .photo{
  176. img{
  177. width: 80rpx;
  178. height: 80rpx;
  179. border-radius: 50px;
  180. }
  181. }
  182. .infos{
  183. margin-left: 16rpx;
  184. .name{
  185. color: rgba(51,51,51,1);
  186. font-size: 32rpx;
  187. }
  188. .tel{
  189. color: rgba(119,119,119,1);
  190. font-size: 24rpx;
  191. margin-top: 4rpx;
  192. }
  193. }
  194. .button{
  195. width: 144rpx;
  196. height: 56rpx;
  197. line-height: 56rpx;
  198. border-radius: 50px;
  199. background-color: rgba(22,119,255,1);
  200. color: rgba(255,255,255,1);
  201. text-align: center;
  202. margin-left: auto;
  203. }
  204. .radio-box{
  205. margin-left: auto;
  206. }
  207. }
  208. .bottom{
  209. position: fixed;
  210. left: 0;
  211. right: 0;
  212. bottom: 0;
  213. background-color: #fff;
  214. padding: 20rpx 32rpx;
  215. display: flex;
  216. justify-content: space-between;
  217. img{
  218. width: 40rpx;
  219. height: 40rpx;
  220. margin-right: 8rpx;
  221. }
  222. .button{
  223. width: 328rpx;
  224. height: 80rpx;
  225. line-height: 80rpx;
  226. border-radius: 4px;
  227. font-size: 32rpx;
  228. text-align: center;
  229. display: flex;
  230. align-items: center;
  231. justify-content: center;
  232. }
  233. .qr-code{
  234. background-color: rgba(22,119,255,1);
  235. color: rgba(255,255,255,1);
  236. }
  237. .list-button{
  238. background-color: rgba(222,225,228,1);
  239. color: rgba(51,51,51,1);
  240. position: relative;
  241. }
  242. .bot{
  243. width: 40rpx;
  244. height: 40rpx;
  245. line-height: 40rpx;
  246. border-radius: 10px;
  247. background-color: rgba(244,60,50,1);
  248. color: rgba(255,255,255,1);
  249. font-size: 24rpx;
  250. text-align: center;
  251. position: absolute;
  252. top: -10rpx;
  253. right:-10rpx;
  254. }
  255. }
  256. // 删除
  257. .delete {
  258. position: fixed;
  259. left: 0;
  260. right: 0;
  261. bottom: 0;
  262. background-color: #fff;
  263. display: flex;
  264. flex-direction: column;
  265. align-items: center;
  266. justify-content: center;
  267. height: 120rpx;
  268. img {
  269. width: 48rpx;
  270. height: 48rpx;
  271. }
  272. .text {
  273. color: rgba(51, 51, 51, 1);
  274. font-size: 20rpx;
  275. }
  276. }
  277. .popup {
  278. padding: 32rpx;
  279. text-align: center;
  280. .headline {
  281. color: rgba(16, 16, 16, 1);
  282. font-size: 36rpx;
  283. font-weight: bold;
  284. }
  285. .hint {
  286. color: rgba(16, 16, 16, 1);
  287. font-size: 32rpx;
  288. margin-top: 40rpx;
  289. }
  290. .btn-box {
  291. margin-top: 82rpx;
  292. display: flex;
  293. justify-content: space-between;
  294. .cancel {
  295. width: 328rpx;
  296. line-height: 80rpx;
  297. border-radius: 4px;
  298. background-color: rgba(222, 225, 228, 1);
  299. color: rgba(51, 51, 51, 1);
  300. font-size: 32rpx;
  301. }
  302. .confirm {
  303. width: 328rpx;
  304. line-height: 80rpx;
  305. border-radius: 4px;
  306. background-color: rgba(255, 68, 68, 1);
  307. color: rgba(255, 255, 255, 1);
  308. font-size: 32rpx;
  309. }
  310. }
  311. }
  312. // 人员权限管理
  313. .popup2{
  314. padding: 32rpx 0;
  315. .title{
  316. color: rgba(16,16,16,1);
  317. font-size: 36rpx;
  318. font-weight: bold;
  319. text-align: center;
  320. }
  321. .content{
  322. margin-bottom: 24rpx;
  323. .item{
  324. display: flex;
  325. align-items: center;
  326. justify-content: space-between;
  327. padding: 28rpx 30rpx;
  328. border-bottom: 1px solid rgba(245,245,245,1);
  329. }
  330. }
  331. .popup-bottom{
  332. display: flex;
  333. justify-content: space-between;
  334. padding: 0 32rpx;
  335. .button{
  336. width: 328rpx;
  337. height: 80rpx;
  338. line-height: 80rpx;
  339. border-radius: 4px;
  340. font-size: 32rpx;
  341. text-align: center;
  342. }
  343. .cancel{
  344. background-color: rgba(222,225,228,1);
  345. color: rgba(51,51,51,1);
  346. }
  347. .save{
  348. background-color: rgba(22,119,255,1);
  349. color: rgba(255,255,255,1);
  350. }
  351. }
  352. }
  353. </style>