123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357 |
- <template>
- <div class='zhsx-box'>
- <div class='zhsx-top'>
- <div>
- <el-tabs v-model='activeName' @tab-click='handleClick'>
- <el-tab-pane v-for='(item,index) in everySystem' :key='index' :label='`${item.label}`' :name='`${item.type}`'>
- <div v-if='item.type==1'>
- <div class='tab-top'>
- <el-date-picker
- v-model='value1'
- type='daterange'
- size='small'
- style='margin-right:12px;width:216px'
- range-separator='-'
- start-placeholder='开始日期'
- end-placeholder='结束日期'
- ></el-date-picker>
- <Select
- width='180'
- tipPlace='top'
- caption='政府部门'
- size='small'
- style='margin-right:12px'
- :selectdata='dataSelect2'
- :placeholder='"请选择"'
- ></Select>
- <el-input placeholder='请按照记录事项搜索' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
- </div>
- <el-table :data='tableData' style='width: 100%;margin-top:12px'>
- <el-table-column label='序号' type='index' width='50'></el-table-column>
- <el-table-column prop='name' sortable label='日期'></el-table-column>
- <el-table-column prop='type' label='政府部门'></el-table-column>
- <el-table-column prop='thing' label='记录事项' :show-overflow-tooltip='true'></el-table-column>
- <el-table-column prop='name' label='工作要求'></el-table-column>
- <el-table-column prop='type' label='整改要求'></el-table-column>
- <el-table-column prop='name' label='附件'></el-table-column>
- </el-table>
- </div>
- <div v-if='item.type==2'>
- <div class='tab-top'>
- <Select
- width='146'
- tipPlace='top'
- caption='状态'
- size='small'
- style='margin-right:12px'
- :selectdata='dataSelect2'
- :placeholder='"请选择"'
- ></Select>
- <Select
- width='146'
- tipPlace='top'
- caption='部门'
- size='small'
- style='margin-right:12px'
- :selectdata='dataSelect2'
- :placeholder='"请选择"'
- ></Select>
- <el-input placeholder='请按照任务名称搜索' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
- </div>
- <el-table :data='tableData' style='width: 100%;margin-top:12px'>
- <el-table-column label='序号' type='index' width='50'></el-table-column>
- <el-table-column prop='name' sortable label='任务名称'></el-table-column>
- <el-table-column prop='type' label='状态'></el-table-column>
- <el-table-column prop='thing' label='部门' :show-overflow-tooltip='true'></el-table-column>
- <el-table-column prop='name' label='检测结论'></el-table-column>
- </el-table>
- </div>
- </el-tab-pane>
- </el-tabs>
- </div>
- <div class='zhsx-img' @click='zhsxLog'>
- <img src='../../assets/imgs/zy1.png' alt />
- </div>
- </div>
- <!-- <div class='zhsx-top'> -->
- <!-- 第一版 暂时不要动 -->
- <!-- <div class='zhsx-top-left'>
- <span></span>
- <span>综合事项记录</span>
- <img src='../../assets/imgs/zy.svg' alt @click='zhsxLog()' />
- </div>
- <div class='zhsx-top-right'>
- <el-date-picker
- v-model='value1'
- type='daterange'
- size='small'
- style='margin-right:12px'
- range-separator='至'
- start-placeholder='开始日期'
- end-placeholder='结束日期'
- ></el-date-picker>
- <Select
- width='224'
- tipPlace='top'
- caption='政府部门'
- size='small'
- style='margin-right:12px'
- :selectdata='dataSelect2'
- :placeholder='"请选择"'
- ></Select>
- <el-input placeholder='请按照记录事项搜索' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
- </div>-->
- <!-- </div> -->
- <!-- <div class='zhsx-bottom'>
- <el-table :data='tableData' style='width: 100%'>
- <el-table-column label='序号' type='index' width='50'></el-table-column>
- <el-table-column prop='date' sortable label='日期' width='130'></el-table-column>
- <el-table-column prop='address1' label='政府部门' :show-overflow-tooltip='true'></el-table-column>
- <el-table-column prop='address1' label='记录事项' :show-overflow-tooltip='true'></el-table-column>
- <el-table-column prop='address2' label='工作要求'></el-table-column>
- <el-table-column prop='address2' label='整改要求'></el-table-column>
- <el-table-column prop='address2' label='附件'></el-table-column>
- </el-table>
- <div class='footer'>
- <el-pagination background layout='prev, pager, next' :total='100'></el-pagination>
- </div>
- </div>-->
- <zhsx-dialog ref='Dialog'></zhsx-dialog>
- </div>
- </template>
- <script>
- import Select from '@/components/Select/Select.vue'
- import ZhsxDialog from './zhsxDialog'
- export default {
- data() {
- return {
- activeName: '1',
- input: '',
- tableData: [
- {
- date: '2016-05-01',
- name: '王小虎',
- address: '上海市普陀区金沙江路 1519 弄',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- },
- {
- date: '2016-05-03',
- name: '王小虎',
- address: '上海市普陀区金沙江路 1516 弄',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- },
- {
- date: '2016-05-02',
- name: '王小虎',
- address: '应急管理',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- },
- {
- date: '2016-05-04',
- name: '王小虎',
- address: '三明市梅列生态环境局',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- },
- {
- date: '2016-05-01',
- name: '王小虎',
- address: '上海市普陀区金沙江路 1519 弄',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- },
- {
- date: '2016-05-03',
- name: '王小虎',
- address: '上海市普陀区金沙江路 1516 弄',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- },
- {
- date: '2016-05-02',
- name: '王小虎',
- address: '应急管理',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- },
- {
- date: '2016-05-04',
- name: '王小虎',
- address: '三明市梅列生态环境局',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- },
- {
- date: '2016-05-01',
- name: '王小虎',
- address: '上海市普陀区金沙江路 1519 弄',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- },
- {
- date: '2016-05-03',
- name: '王小虎',
- address: '上海市普陀区金沙江路 1516 弄',
- address1: 'BI超市消防联动测试故障,要求2.5前完,再复查',
- address2: '陈卫国'
- }
- ],
- value1: '',
- dataSelect2: [
- { id: 'test1', name: '选择项' },
- { id: 'test2', name: '单平米' },
- { id: 'test3', name: '下级分项' },
- { id: 'test4', name: '滑动平均滑动平均' }
- ]
- }
- },
- props: ['everySystem'],
- components: { ZhsxDialog, Select },
- methods: {
- zhsxLog() {
- this.$refs.Dialog.open()
- },
- handleClick(tab) {
- // this.param = tab.name
- console.log(tab)
- }
- },
- mounted() {
- console.log(this.everySystem)
- }
- }
- </script>
- <style lang="less" scoped>
- .zhsx-box {
- height: 100%;
- padding: 66px 50px 38px 50px;
- .zhsx-top {
- position: relative;
- // display: flex;
- // justify-content: space-between;
- // align-items: center;
- // border: 1px solid greenyellow;
- // .zhsx-top-left {
- // display: flex;
- // align-items: center;
- // padding: 5px 0;
- // background: linear-gradient(270deg, rgba(199, 217, 234, 0) 0%, rgba(199, 217, 234, 1) 100%);
- // box-shadow: -6px 2px 8px 0px rgba(31, 36, 41, 0.1);
- // span:nth-of-type(1) {
- // display: inline-block;
- // width: 2px;
- // height: 16px;
- // background: rgba(2, 91, 170, 1);
- // margin-right: 8px;
- // }
- // span:nth-of-type(2) {
- // display: inline-block;
- // width: 107px;
- // height: 22px;
- // font-size: 16px;
- // font-family: MicrosoftYaHeiSemibold;
- // color: rgba(2, 91, 170, 1);
- // line-height: 21px;
- // font-weight: bold;
- // }
- // img {
- // width: 16px;
- // height: 16px;
- // margin-right: 10px;
- // cursor: pointer;
- // }
- // }
- // .zhsx-top-right {
- // display: flex;
- // }
- .zhsx-img {
- position: absolute;
- width: 16px;
- height: 16px;
- left: 274px;
- top: 3px;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .tab-top {
- display: flex;
- align-items: center;
- }
- }
- .zhsx-bottom {
- margin-top: 12px;
- background: #ffffff;
- position: relative;
- padding-bottom: 73px;
- .footer {
- position: absolute;
- height: 32px;
- right: 28px;
- bottom: 24px;
- }
- }
- }
- </style>
- <style lang="less">
- .zhsx-box {
- .el-dialog__header {
- padding: 16px 24px;
- }
- .el-dialog__title {
- font-size: 16px;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: rgba(0, 0, 0, 0.85);
- line-height: 24px;
- }
- .el-dialog__body {
- padding: 0 24px;
- height: 90%;
- }
- .el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),
- .el-tabs--bottom .el-tabs__item.is-top:nth-child(2),
- .el-tabs--top .el-tabs__item.is-bottom:nth-child(2),
- .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
- padding-left: 16px;
- }
- .el-tabs--bottom .el-tabs__item.is-bottom:last-child,
- .el-tabs--bottom .el-tabs__item.is-top:last-child,
- .el-tabs--top .el-tabs__item.is-bottom:last-child,
- .el-tabs--top .el-tabs__item.is-top:last-child {
- padding-right: 16px;
- }
- .el-tabs__nav-wrap::after {
- height: 0;
- }
- .el-tabs__item {
- padding: 5px 16px;
- height: 30px;
- line-height: 22px;
- font-size: 14px;
- font-family: MicrosoftYaHei;
- color: rgba(31, 36, 41, 1);
- border: 1px solid rgba(195, 199, 203, 1);
- border-radius: 4px;
- }
- .el-tabs,
- .el-tabs__content {
- height: 94%;
- }
- .el-tabs__active-bar {
- background-color: transparent !important;
- }
- .is-active {
- color: #025baa;
- border-color: #025baa;
- border-radius: 4px;
- }
- .el-tabs__header {
- margin: 0 0 12px;
- }
- }
- </style>
|