index.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <!-- 训练登记本领导 -->
  2. <template>
  3. <div class="arr_conten">
  4. <ul>
  5. <li v-for="(item, i) in lieList" :key="i">
  6. <div class="names">{{ item.deptName }}</div>
  7. <div class="btn">
  8. <el-button size="btJS" @click="chaKan(item.deptId)">查看</el-button>
  9. </div>
  10. </li>
  11. </ul>
  12. <!-- 查看 -->
  13. <el-dialog
  14. :visible.sync="menuRoleVisible"
  15. :title="title"
  16. append-to-body
  17. id="chakan"
  18. :close-on-click-modal="false"
  19. >
  20. <bdglequip
  21. v-if="menuRoleVisible"
  22. ref="menuRole"
  23. :message="wordInfo"
  24. ></bdglequip>
  25. </el-dialog>
  26. </div>
  27. </template>
  28. <script>
  29. import bdglequip from "@/components/look_word/bdglequip.vue";
  30. import { equipList, equipuntits } from "@/api/grassrootsregistration/bdglequip";
  31. export default {
  32. data() {
  33. return {
  34. lieList: [],
  35. //查看页面
  36. menuRoleVisible: false,
  37. wordInfo: [],
  38. title: null,
  39. };
  40. },
  41. created() {
  42. equipList().then((res) => {
  43. // console.log(res);
  44. this.lieList = res.rows;
  45. });
  46. },
  47. methods: {
  48. chaKan(row) {
  49. const unitId = row;
  50. equipuntits(unitId).then((response) => {
  51. // console.log(response);
  52. this.wordInfo = response.data;
  53. this.title = "查看训练器材/教材登记薄";
  54. this.menuRoleVisible = true;
  55. });
  56. },
  57. },
  58. components: {
  59. bdglequip,
  60. },
  61. computed: {},
  62. mounted() {},
  63. watch: {},
  64. };
  65. </script>
  66. <style scoped>
  67. ::v-deep .el-dialog {
  68. width: 1060px !important;
  69. }
  70. ::v-deep .el-dialog__body {
  71. margin: 10px 30px 20px 44px;
  72. padding-top: 20px !important;
  73. box-sizing: border-box;
  74. }
  75. ::v-deep .el-dialog__header {
  76. border-bottom: 1px solid #718a9d;
  77. }
  78. .arr_conten {
  79. padding-top: 20px;
  80. }
  81. ul {
  82. display: flex;
  83. justify-content: space-between;
  84. padding: 0 22px;
  85. flex-wrap: wrap;
  86. }
  87. li {
  88. list-style: none;
  89. background: url("../../../assets/images/book.png") no-repeat;
  90. height: 140px;
  91. width: 222px;
  92. /* margin: 20px 0; */
  93. margin-bottom: 20px;
  94. background-size: 100% 100%;
  95. flex: 0 0 15%;
  96. }
  97. .names {
  98. color: #fff;
  99. font-size: 14px;
  100. text-align: center;
  101. padding: 26px 26px 38px 26px;
  102. letter-spacing: 1px;
  103. }
  104. .btn {
  105. text-align: center;
  106. }
  107. </style>
  108. /* 对话框背景颜色 */
  109. ::v-deep .el-dialog {
  110. background: #004d86 !important;
  111. }
  112. ::v-deep .el-textarea__inner {
  113. width: 920px;
  114. height: 104px;
  115. }
  116. ::v-deep .el-dialog__header {
  117. border-bottom: 1px solid #718a9d;
  118. }
  119. ::v-deep .el-dialog__title {
  120. color: #fff;
  121. font: 18px;
  122. }
  123. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  124. color: #fff;
  125. }
  126. ::v-deep .el-form-item__label {
  127. font: 16px;
  128. color: #fff;
  129. width: 100px !important;
  130. }
  131. ::v-deep .el-input__inner {
  132. /* width: 200px !important;
  133. height: 36px; */
  134. background: transparent;
  135. color: #fff;
  136. border: 1px solid white !important;
  137. border-color: #fff !important;
  138. }
  139. /* 单位框背景颜色 */
  140. ::v-deep .vue-treeselect__control {
  141. background: #004d86 !important;
  142. }
  143. /* 基本信息背景 */
  144. .jiben {
  145. width: 920px;
  146. height: 32px;
  147. background-image: url(../../../images/小标题底.png);
  148. margin-bottom: 25px;
  149. color: #fff;
  150. padding-left: 16px;
  151. line-height: 32px;
  152. }
  153. /*调整表单间距 */
  154. ::v-deep .el-form-item__content {
  155. width: 200px;
  156. }
  157. ::v-deep .el-input__inner {
  158. cursor: pointer !important;
  159. }
  160. /* 底部确定取消按钮 */
  161. ::v-deep .el-dialog__footer {
  162. padding: 30px 50px;
  163. }
  164. ::v-deep .el-dialog__body {
  165. margin: 10px 35px 20px 44px;
  166. padding-top: 20px !important;
  167. box-sizing: border-box;
  168. }
  169. .contents {
  170. padding: 0px 40px !important;
  171. }
  172. /* 下拉菜单 */
  173. .el-dropdown-link {
  174. cursor: pointer;
  175. color: #409eff;
  176. }
  177. .el-icon-arrow-down {
  178. font-size: 12px;
  179. }
  180. /* 刷新图标 */
  181. /* .el-icon-refresh {
  182. width: 76px;
  183. height: 36px;
  184. color: #fff;
  185. background-color: #1d96ff !important;
  186. border-radius: 4px;
  187. border: none;
  188. margin-left: 20px;
  189. font-size: 14px;
  190. } */
  191. /* 下拉菜单字体/背景颜色 */
  192. .el-select-dropdown__item.hover,
  193. .el-select-dropdown__item:hover {
  194. background-color: #004d86;
  195. color: #fff;
  196. }
  197. .el-select-dropdown__item {
  198. color: #fff;
  199. }
  200. /* 时间选择 */
  201. ::v-deep .el-input--small .el-input__inner {
  202. width: 200px;
  203. height: 36px;
  204. line-height: 36px;
  205. }
  206. .el-date-editor.el-input {
  207. width: 200px;
  208. height: 36px;
  209. line-height: 36px;
  210. }
  211. ::v-deep .el-date-editor.el-input .el-input__inner {
  212. height: 36px;
  213. line-height: 36px;
  214. }
  215. /* 单位框背景颜色 */
  216. ::v-deep .vue-treeselect__control {
  217. background: #004d86 !important;
  218. color: #fff;
  219. }
  220. /* 单位下拉菜单选中字体颜色 */
  221. ::v-deep .vue-treeselect__single-value {
  222. color: #fff !important;
  223. }
  224. /* 分页按钮 */
  225. ::v-deep .el-pagination.is-background .el-pager li {
  226. background-color: #004d86;
  227. color: #fff;
  228. }
  229. ::v-deep .el-pagination.is-background .btn-next {
  230. background-color: #004d86;
  231. color: #fff;
  232. }
  233. /* 计数器按钮 */
  234. ::v-deep .el-input-number__increase {
  235. background-color: transparent !important;
  236. border: none;
  237. color: #cccccc;
  238. border-bottom: none !important;
  239. }
  240. ::v-deep .el-input-number__decrease {
  241. background-color: transparent !important;
  242. border: none !important;
  243. color: #cccccc;
  244. }
  245. /* 底部确定取消按钮 */
  246. ::v-deep .el-dialog__footer {
  247. padding: 18px 42px 30px 0px;
  248. margin-right: 30px;
  249. }
  250. /* 增加按钮弹框 */
  251. ::v-deep .el-dialog {
  252. width: 1060px !important;
  253. }
  254. ::v-deep .el-dialog__body {
  255. padding: none !important;
  256. }
  257. ::v-deep .box4 .el-textarea__inner {
  258. min-height: 120px !important;
  259. }
  260. /* 调整输入框提示文字颜色 */
  261. ::v-deep .vue-treeselect__placeholder {
  262. color: #bdbdbd4f !important;
  263. }
  264. ::v-deep input::-webkit-input-placeholder {
  265. color: #bdbdbd4f !important;
  266. }
  267. ::v-deep input:-moz-placeholder {
  268. color: #bdbdbd4f !important;
  269. }
  270. /* 文本域提示文字颜色 */
  271. ::v-deep ::-webkit-input-placeholder {
  272. color: #bdbdbd4f !important;
  273. }
  274. #chakan /deep/ .el-dialog__body {
  275. padding: 30px 0px 30px 23px;
  276. }
  277. </style>