zhsxOther.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <template>
  2. <div class='zhsx-box'>
  3. <div class='zhsx-top'>
  4. <div>
  5. <el-tabs v-model='activeName' @tab-click='handleClick'>
  6. <el-tab-pane v-for='(item,index) in everySystem' :key='index' :label='`${item.label}`' :name='`${item.type}`'>
  7. <div v-if='item.type==1'>
  8. <div class='tab-top'>
  9. <el-date-picker
  10. v-model='value1'
  11. type='daterange'
  12. size='small'
  13. style='margin-right:12px;width:216px'
  14. range-separator='-'
  15. start-placeholder='开始日期'
  16. end-placeholder='结束日期'
  17. ></el-date-picker>
  18. <Select
  19. width='180'
  20. tipPlace='top'
  21. caption='政府部门'
  22. size='small'
  23. style='margin-right:12px'
  24. :selectdata='dataSelect2'
  25. :placeholder='"请选择"'
  26. ></Select>
  27. <el-input placeholder='请按照记录事项搜索' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
  28. </div>
  29. <el-table :data='tableData' style='width: 100%;margin-top:12px'>
  30. <el-table-column label='序号' type='index' width='50'></el-table-column>
  31. <el-table-column prop='name' sortable label='日期'></el-table-column>
  32. <el-table-column prop='type' label='政府部门'></el-table-column>
  33. <el-table-column prop='thing' label='记录事项' :show-overflow-tooltip='true'></el-table-column>
  34. <el-table-column prop='name' label='工作要求'></el-table-column>
  35. <el-table-column prop='type' label='整改要求'></el-table-column>
  36. <el-table-column prop='name' label='附件'></el-table-column>
  37. </el-table>
  38. </div>
  39. <div v-if='item.type==2'>
  40. <div class='tab-top'>
  41. <Select
  42. width='146'
  43. tipPlace='top'
  44. caption='状态'
  45. size='small'
  46. style='margin-right:12px'
  47. :selectdata='dataSelect2'
  48. :placeholder='"请选择"'
  49. ></Select>
  50. <Select
  51. width='146'
  52. tipPlace='top'
  53. caption='部门'
  54. size='small'
  55. style='margin-right:12px'
  56. :selectdata='dataSelect2'
  57. :placeholder='"请选择"'
  58. ></Select>
  59. <el-input placeholder='请按照任务名称搜索' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
  60. </div>
  61. <el-table :data='tableData' style='width: 100%;margin-top:12px'>
  62. <el-table-column label='序号' type='index' width='50'></el-table-column>
  63. <el-table-column prop='name' sortable label='任务名称'></el-table-column>
  64. <el-table-column prop='type' label='状态'></el-table-column>
  65. <el-table-column prop='thing' label='部门' :show-overflow-tooltip='true'></el-table-column>
  66. <el-table-column prop='name' label='检测结论'></el-table-column>
  67. </el-table>
  68. </div>
  69. </el-tab-pane>
  70. </el-tabs>
  71. </div>
  72. <div class='zhsx-img' @click='zhsxLog'>
  73. <img src='../../assets/imgs/zy1.png' alt />
  74. </div>
  75. </div>
  76. <!-- <div class='zhsx-top'> -->
  77. <!-- 第一版 暂时不要动 -->
  78. <!-- <div class='zhsx-top-left'>
  79. <span></span>
  80. <span>综合事项记录</span>
  81. <img src='../../assets/imgs/zy.svg' alt @click='zhsxLog()' />
  82. </div>
  83. <div class='zhsx-top-right'>
  84. <el-date-picker
  85. v-model='value1'
  86. type='daterange'
  87. size='small'
  88. style='margin-right:12px'
  89. range-separator='至'
  90. start-placeholder='开始日期'
  91. end-placeholder='结束日期'
  92. ></el-date-picker>
  93. <Select
  94. width='224'
  95. tipPlace='top'
  96. caption='政府部门'
  97. size='small'
  98. style='margin-right:12px'
  99. :selectdata='dataSelect2'
  100. :placeholder='"请选择"'
  101. ></Select>
  102. <el-input placeholder='请按照记录事项搜索' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
  103. </div>-->
  104. <!-- </div> -->
  105. <!-- <div class='zhsx-bottom'>
  106. <el-table :data='tableData' style='width: 100%'>
  107. <el-table-column label='序号' type='index' width='50'></el-table-column>
  108. <el-table-column prop='date' sortable label='日期' width='130'></el-table-column>
  109. <el-table-column prop='address1' label='政府部门' :show-overflow-tooltip='true'></el-table-column>
  110. <el-table-column prop='address1' label='记录事项' :show-overflow-tooltip='true'></el-table-column>
  111. <el-table-column prop='address2' label='工作要求'></el-table-column>
  112. <el-table-column prop='address2' label='整改要求'></el-table-column>
  113. <el-table-column prop='address2' label='附件'></el-table-column>
  114. </el-table>
  115. <div class='footer'>
  116. <el-pagination background layout='prev, pager, next' :total='100'></el-pagination>
  117. </div>
  118. </div>-->
  119. <zhsx-dialog ref='Dialog'></zhsx-dialog>
  120. </div>
  121. </template>
  122. <script>
  123. import Select from '@/components/Select/Select.vue'
  124. import ZhsxDialog from './zhsxDialog'
  125. export default {
  126. data() {
  127. return {
  128. activeName: '1',
  129. input: '',
  130. tableData: [
  131. {
  132. date: '2016-05-01',
  133. name: '王小虎',
  134. address: '上海市普陀区金沙江路 1519 弄',
  135. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  136. address2: '陈卫国'
  137. },
  138. {
  139. date: '2016-05-03',
  140. name: '王小虎',
  141. address: '上海市普陀区金沙江路 1516 弄',
  142. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  143. address2: '陈卫国'
  144. },
  145. {
  146. date: '2016-05-02',
  147. name: '王小虎',
  148. address: '应急管理',
  149. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  150. address2: '陈卫国'
  151. },
  152. {
  153. date: '2016-05-04',
  154. name: '王小虎',
  155. address: '三明市梅列生态环境局',
  156. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  157. address2: '陈卫国'
  158. },
  159. {
  160. date: '2016-05-01',
  161. name: '王小虎',
  162. address: '上海市普陀区金沙江路 1519 弄',
  163. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  164. address2: '陈卫国'
  165. },
  166. {
  167. date: '2016-05-03',
  168. name: '王小虎',
  169. address: '上海市普陀区金沙江路 1516 弄',
  170. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  171. address2: '陈卫国'
  172. },
  173. {
  174. date: '2016-05-02',
  175. name: '王小虎',
  176. address: '应急管理',
  177. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  178. address2: '陈卫国'
  179. },
  180. {
  181. date: '2016-05-04',
  182. name: '王小虎',
  183. address: '三明市梅列生态环境局',
  184. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  185. address2: '陈卫国'
  186. },
  187. {
  188. date: '2016-05-01',
  189. name: '王小虎',
  190. address: '上海市普陀区金沙江路 1519 弄',
  191. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  192. address2: '陈卫国'
  193. },
  194. {
  195. date: '2016-05-03',
  196. name: '王小虎',
  197. address: '上海市普陀区金沙江路 1516 弄',
  198. address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
  199. address2: '陈卫国'
  200. }
  201. ],
  202. value1: '',
  203. dataSelect2: [
  204. { id: 'test1', name: '选择项' },
  205. { id: 'test2', name: '单平米' },
  206. { id: 'test3', name: '下级分项' },
  207. { id: 'test4', name: '滑动平均滑动平均' }
  208. ]
  209. }
  210. },
  211. props: ['everySystem'],
  212. components: { ZhsxDialog, Select },
  213. methods: {
  214. zhsxLog() {
  215. this.$refs.Dialog.open()
  216. },
  217. handleClick(tab) {
  218. // this.param = tab.name
  219. console.log(tab)
  220. }
  221. },
  222. mounted() {
  223. console.log(this.everySystem)
  224. }
  225. }
  226. </script>
  227. <style lang="less" scoped>
  228. .zhsx-box {
  229. height: 100%;
  230. padding: 66px 50px 38px 50px;
  231. .zhsx-top {
  232. position: relative;
  233. // display: flex;
  234. // justify-content: space-between;
  235. // align-items: center;
  236. // border: 1px solid greenyellow;
  237. // .zhsx-top-left {
  238. // display: flex;
  239. // align-items: center;
  240. // padding: 5px 0;
  241. // background: linear-gradient(270deg, rgba(199, 217, 234, 0) 0%, rgba(199, 217, 234, 1) 100%);
  242. // box-shadow: -6px 2px 8px 0px rgba(31, 36, 41, 0.1);
  243. // span:nth-of-type(1) {
  244. // display: inline-block;
  245. // width: 2px;
  246. // height: 16px;
  247. // background: rgba(2, 91, 170, 1);
  248. // margin-right: 8px;
  249. // }
  250. // span:nth-of-type(2) {
  251. // display: inline-block;
  252. // width: 107px;
  253. // height: 22px;
  254. // font-size: 16px;
  255. // font-family: MicrosoftYaHeiSemibold;
  256. // color: rgba(2, 91, 170, 1);
  257. // line-height: 21px;
  258. // font-weight: bold;
  259. // }
  260. // img {
  261. // width: 16px;
  262. // height: 16px;
  263. // margin-right: 10px;
  264. // cursor: pointer;
  265. // }
  266. // }
  267. // .zhsx-top-right {
  268. // display: flex;
  269. // }
  270. .zhsx-img {
  271. position: absolute;
  272. width: 16px;
  273. height: 16px;
  274. left: 274px;
  275. top: 3px;
  276. img {
  277. width: 100%;
  278. height: 100%;
  279. }
  280. }
  281. .tab-top {
  282. display: flex;
  283. align-items: center;
  284. }
  285. }
  286. .zhsx-bottom {
  287. margin-top: 12px;
  288. background: #ffffff;
  289. position: relative;
  290. padding-bottom: 73px;
  291. .footer {
  292. position: absolute;
  293. height: 32px;
  294. right: 28px;
  295. bottom: 24px;
  296. }
  297. }
  298. }
  299. </style>
  300. <style lang="less">
  301. .zhsx-box {
  302. .el-dialog__header {
  303. padding: 16px 24px;
  304. }
  305. .el-dialog__title {
  306. font-size: 16px;
  307. font-family: PingFangSC-Medium, PingFang SC;
  308. font-weight: 500;
  309. color: rgba(0, 0, 0, 0.85);
  310. line-height: 24px;
  311. }
  312. .el-dialog__body {
  313. padding: 0 24px;
  314. height: 90%;
  315. }
  316. .el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),
  317. .el-tabs--bottom .el-tabs__item.is-top:nth-child(2),
  318. .el-tabs--top .el-tabs__item.is-bottom:nth-child(2),
  319. .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
  320. padding-left: 16px;
  321. }
  322. .el-tabs--bottom .el-tabs__item.is-bottom:last-child,
  323. .el-tabs--bottom .el-tabs__item.is-top:last-child,
  324. .el-tabs--top .el-tabs__item.is-bottom:last-child,
  325. .el-tabs--top .el-tabs__item.is-top:last-child {
  326. padding-right: 16px;
  327. }
  328. .el-tabs__nav-wrap::after {
  329. height: 0;
  330. }
  331. .el-tabs__item {
  332. padding: 5px 16px;
  333. height: 30px;
  334. line-height: 22px;
  335. font-size: 14px;
  336. font-family: MicrosoftYaHei;
  337. color: rgba(31, 36, 41, 1);
  338. border: 1px solid rgba(195, 199, 203, 1);
  339. border-radius: 4px;
  340. }
  341. .el-tabs,
  342. .el-tabs__content {
  343. height: 94%;
  344. }
  345. .el-tabs__active-bar {
  346. background-color: transparent !important;
  347. }
  348. .is-active {
  349. color: #025baa;
  350. border-color: #025baa;
  351. border-radius: 4px;
  352. }
  353. .el-tabs__header {
  354. margin: 0 0 12px;
  355. }
  356. }
  357. </style>