|
@@ -1,38 +1,54 @@
|
|
|
<template>
|
|
|
<div id="home">
|
|
|
- <!-- 第一行 -->
|
|
|
+ <!-- 我的 OA工作台 日历 -->
|
|
|
<a-row :gutter="24" class="topCard">
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="24" :style="{ marginBottom: '10px' }">
|
|
|
- <a-row :gutter="20">
|
|
|
- <!-- 我的 -->
|
|
|
- <a-col :xs="24" :sm="12" :md="12" :lg="7" :style="{ marginBottom: '10px' }">
|
|
|
- <a-card title="我的" :bordered="false" class="clearfix topColItem">
|
|
|
- <div class="userImg fl" style="marginLeft:50px;">
|
|
|
- <img src="../../assets/user.jpg" alt="" width="50px" />
|
|
|
- </div>
|
|
|
- <div class="userInfo fl">
|
|
|
- <span class="department">{{ userInfo.realname }}</span>
|
|
|
- <span>账号:{{ userInfo.username }}</span>
|
|
|
- <span class="telphone">Tel:{{ userInfo.telphone }}</span>
|
|
|
- </div>
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :style="{ marginBottom: '8px' }">
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <!-- 大 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="12" :style="{ marginBottom: '8px' }">
|
|
|
+ <a-card title="我的" style="width: 100%;height:200px;" :style="{ marginBottom: '8px' }" class="clearfix">
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <!-- -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="12" style="">
|
|
|
+ <div class="userImg fl">
|
|
|
+ <img src="../../assets/user.jpg" width="50px" />
|
|
|
+ </div>
|
|
|
+ <div class="userInfo ">
|
|
|
+ <span class="department">{{ userInfo.realname }}</span>
|
|
|
+ <span>账号:{{ userInfo.username }}</span>
|
|
|
+ <span class="telphone">Tel:{{ userInfo.telphone }}</span>
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ <!-- -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="12" class="msgBox clearfix">
|
|
|
+ <div >
|
|
|
+ <em class="fl" >
|
|
|
+ <span> {{ todoList.length }}</span>
|
|
|
+ <p>我的待办</p>
|
|
|
+ </em>
|
|
|
+ <em class="fl">
|
|
|
+ <span>{{ msgTotal }}</span>
|
|
|
+ <p>系统消息</p></em>
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+
|
|
|
+ <!-- <a-divider type="vertical" style="height:110px;width:1px;margin:0 20px;" class="fl" /> -->
|
|
|
</a-card>
|
|
|
- </a-col>
|
|
|
- <!-- 消息 -->
|
|
|
- <a-col :xs="24" :sm="12" :md="12" :lg="7" :style="{ marginBottom: '10px' }">
|
|
|
- <a-card title="消息" :bordered="false" class="msgBox clearfix topColItem">
|
|
|
- <div class="fl" style="marginLeft:50px;">
|
|
|
- <span> {{ todoList.length }}</span>
|
|
|
- <p>我的待办</p>
|
|
|
- </div>
|
|
|
- <div class="fl" style="marginLeft:50px;">
|
|
|
- <span>{{ msgTotal }}</span>
|
|
|
- <p>系统消息</p>
|
|
|
+
|
|
|
+ <!-- 下 -->
|
|
|
+ <a-card title="OA工作台" style="width:100%;height:172px;">
|
|
|
+ <div v-for="(item, index) in activeKeyAll" :key="index">
|
|
|
+ <a @click.prevent="aClick(item)" class="oaIcon">
|
|
|
+ <a-avatar shape="square" :size="30" :src="item.iconAddress" />
|
|
|
+ <h4>{{ item.name }}</h4>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
|
|
|
|
<!-- 日历 -->
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="10">
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="12" style="paddingLeft:0;">
|
|
|
<a-card title="日历" :bordered="false" class="fullCard">
|
|
|
<template #extra>
|
|
|
<a href="javascript:void(0);" @click="openCalTab">更多</a>
|
|
@@ -46,59 +62,31 @@
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
|
|
|
- <!-- OA 工作台 -->
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :sm="24" :md="24" :xl="24" :style="{ marginBottom: '20px' }">
|
|
|
- <a-card title="OA工作台" :bordered="false">
|
|
|
- <a-row :gutter="24">
|
|
|
- <!-- 按钮图标 -->
|
|
|
- <a-col :sm="24" :md="12" :xl="2" v-for="(item, index) in activeKeyAll" :key="index">
|
|
|
- <a-card size="small" :bordered="false">
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :sm="24" :md="24" :xl="24" style="margin-bottom:24px;text-align:center">
|
|
|
- <a @click.prevent="aClick(item)">
|
|
|
- <a-avatar shape="square" :size="64" :src="item.iconAddress" />
|
|
|
- </a>
|
|
|
- </a-col>
|
|
|
-
|
|
|
- <!-- 按钮文字 -->
|
|
|
- <a-col :sm="24" :md="24" :xl="24" style="margin-bottom:24px;text-align:center">
|
|
|
- <h4>{{ item.name }}</h4>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-card>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-card>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
-
|
|
|
- <!-- 公告类 -->
|
|
|
+ <!-- 公告 计划 友情链接 -->
|
|
|
<a-row :gutter="24" class="news">
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" :style="{ marginBottom: '10px' }">
|
|
|
- <a-row :gutter="20">
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="10" :style="{ marginBottom: '10px' }">
|
|
|
- <a-card title="企业公告" :bordered="false" class="notice newsColItem">
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" :style="{ marginBottom: '8px' }">
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <!-- 企业公告 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="8" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
+ <a-card title="企业公告" :bordered="false" class="notice" style=" height: 400px;">
|
|
|
<template #extra>
|
|
|
<a href="javascript:void(0);" @click="openEnterAnn">更多</a>
|
|
|
</template>
|
|
|
|
|
|
- <!-- DataV 轮播表-->
|
|
|
<div class="dataV">
|
|
|
<dv-scroll-board
|
|
|
class="board"
|
|
|
- :rowNum="10"
|
|
|
:config="config"
|
|
|
style="width:100%;height:300px;color:#333;paddinLeft:40px;"
|
|
|
@click="getMethod"
|
|
|
/>
|
|
|
</div>
|
|
|
- <!-- DataV -->
|
|
|
</a-card>
|
|
|
</a-col>
|
|
|
- <!-- 我的计划 -->
|
|
|
- <a-col :xs="24" :sm="14" :md="12" :lg="12" :xl="7" :style="{ marginBottom: '10px' }">
|
|
|
- <a-card title="我的计划" :bordered="false" class="plan newsColItem">
|
|
|
+
|
|
|
+ <!-- 我的计划 友情链接 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="6" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
+ <a-card title="我的计划" style="width:100%;height:196px;marginBottom:8px">
|
|
|
<div class="total clearfix">
|
|
|
<div class="left fl">
|
|
|
<span>上月我的计划:<strong>0</strong>份</span>
|
|
@@ -110,112 +98,28 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
- </a-col>
|
|
|
|
|
|
- <!-- 友情链接 -->
|
|
|
- <a-col :xs="24" :sm="10" :md="12" :lg="12" :xl="7">
|
|
|
- <a-card title="友情链接" :bordered="false" class="link newsColItem">
|
|
|
+ <a-card title="友情链接" style="width:100%;height:196px;" class="links">
|
|
|
<template #extra><a href="javascript:void(0);" @click="openMyLinks">更多</a></template>
|
|
|
-
|
|
|
- <div class="linkBtn">
|
|
|
- <button><a href="https://www.yonyou.com/" target="_blank">用友</a></button>
|
|
|
- <button><a href="http://www.dakabg.com/" target="_blank">哒咔办公</a></button>
|
|
|
- <button>
|
|
|
- <a href="https://www.dingtalk.com/" target="_blank">钉钉</a>
|
|
|
- </button>
|
|
|
- <button><a href="https://www.11467.com" target="_blank">品医</a></button>
|
|
|
- <button><a href="https://www.antgroup.com/" target="_blank">蚂蚁集团</a></button>
|
|
|
- </div>
|
|
|
+ <button><a href="https://www.yonyou.com/" target="_blank">用友</a></button>
|
|
|
+ <button><a href="http://www.dakabg.com/" target="_blank">哒咔办公</a></button>
|
|
|
+ <button>
|
|
|
+ <a href="https://www.dingtalk.com/" target="_blank">钉钉</a>
|
|
|
+ </button>
|
|
|
+ <button><a href="https://www.11467.com" target="_blank">品医</a></button>
|
|
|
+ <button><a href="https://www.antgroup.com/" target="_blank">蚂蚁集团</a></button>
|
|
|
+ <button><a href="https://www.yonyou.com/" target="_blank">用友</a></button>
|
|
|
+ <button>
|
|
|
+ <a href="https://www.dingtalk.com/" target="_blank">钉钉</a>
|
|
|
+ </button>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
|
- </a-row>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
|
|
|
- <!-- 我的待办-->
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :sm="24" :md="24" :xl="24" :style="{ marginBottom: '20px' }">
|
|
|
- <a-card title="我的待办" :bordered="false">
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :sm="24" :md="24" :xl="24" :style="{ marginBottom: '10px' }">
|
|
|
- <a-table
|
|
|
- :scroll="scroll"
|
|
|
- bordered
|
|
|
- :loading="loading"
|
|
|
- rowKey="id"
|
|
|
- :dataSource="todoList"
|
|
|
- :pagination="ipagination"
|
|
|
- @change="handleTableChange"
|
|
|
- ref="table"
|
|
|
- size="small"
|
|
|
- >
|
|
|
- <a-table-column title="序号" :width="50" align="center">
|
|
|
- <template slot-scope="t, r, i">
|
|
|
- <span>{{ i + 1 }}</span>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column title="任务名称" data-index="name" :width="150" align="center">
|
|
|
- <template slot-scope="t">
|
|
|
- <span>{{ t }}</span>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column title="所属流程" data-index="processName" :width="150" align="center">
|
|
|
- <template slot-scope="t">
|
|
|
- <span>{{ t }}</span>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column title="委托代办人" data-index="owner" align="center" :width="150">
|
|
|
- <template slot-scope="t">
|
|
|
- <span>{{ t }}</span>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column title="流程发起人" data-index="applyer" :width="150" align="center">
|
|
|
- <template slot-scope="t">
|
|
|
- <span>{{ t }}</span>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column
|
|
|
- title="优先级"
|
|
|
- data-index="priority"
|
|
|
- :width="110"
|
|
|
- align="center"
|
|
|
- key="so"
|
|
|
- :sorter="(a, b) => a.priority - b.priority"
|
|
|
- >
|
|
|
- <template slot-scope="t">
|
|
|
- <span v-if="t == 0" style="color: green;">普通</span>
|
|
|
- <span v-else-if="t == 1" style="color: orange;">重要</span>
|
|
|
- <span v-else-if="t == 2" style="color: red;">紧急</span>
|
|
|
- <span v-else style="color: #999;">无</span>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column
|
|
|
- title="状态"
|
|
|
- data-index="isSuspended"
|
|
|
- :width="100"
|
|
|
- align="center"
|
|
|
- key="z"
|
|
|
- :sorter="(a, b) => (Boolean(a.isSuspended) ? 0 : 1 - Boolean(b.isSuspended) ? 0 : 1)"
|
|
|
- >
|
|
|
- <template slot-scope="t">
|
|
|
- <span v-if="!Boolean(t)" style="color: green;">已激活</span>
|
|
|
- <span v-if="Boolean(t)" style="color: orange;">已挂起</span>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column title="创建时间" data-index="createTime" :width="200" align="center">
|
|
|
- <template slot-scope="t">
|
|
|
- <span>{{ t }}</span>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column title="操作" data-index align="center" :width="100">
|
|
|
- <template slot-scope="t, r, i">
|
|
|
- <a href="javascript:void(0);" @click="toDealWith()" style="color: blue">去处理</a>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- </a-table>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-card>
|
|
|
+ <!-- 我的事项 待办 已办 申请 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="10" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
+ <MyoaTabs />
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
|
|
@@ -233,12 +137,13 @@
|
|
|
</component>
|
|
|
</a-modal>
|
|
|
|
|
|
- <!-- 公告详情 弹框 组件-->
|
|
|
+ <!-- 企业公告详情 弹框-->
|
|
|
<detAnn-modal ref="DetAnnModal" @ok="modalFormOk" :fatherData="annDetail"></detAnn-modal>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import MyoaTabs from '@views/dashboard/MyoaTabs.vue'
|
|
|
import DetAnnModal from '@views/oa/enter-ann/add/detAnnModal.vue'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { getAction } from '@/api/manage'
|
|
@@ -255,11 +160,12 @@ import '@fullcalendar/daygrid/main.css'
|
|
|
import JEditor from '../../components/jeecg/JEditor.vue'
|
|
|
import '@/assets/less/dataVTable.less' // 修改首页 DataV 轮播图样式
|
|
|
export default {
|
|
|
- name: 'Home',
|
|
|
+ name: 'Mytodo',
|
|
|
components: {
|
|
|
FullCalendar, //日历
|
|
|
JEditor, //富文本
|
|
|
- DetAnnModal //公告详情弹框
|
|
|
+ DetAnnModal, //公告详情弹框
|
|
|
+ MyoaTabs //我的待办、已办、申请 tabs
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -415,7 +321,7 @@ export default {
|
|
|
this.config = {
|
|
|
oddRowBGC: 'white',
|
|
|
evenRowBGC: 'white',
|
|
|
- columnWidth: [10, 100, 460, 200, 300],
|
|
|
+ columnWidth: [10, 100, 460, 200, 400],
|
|
|
align: ['center'],
|
|
|
rowNum: 6,
|
|
|
waitTime: 2000,
|
|
@@ -424,10 +330,11 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
//轮播图 点击事件
|
|
|
getMethod(item) {
|
|
|
- // =the data presentation is a bit sluggish
|
|
|
- // this.$refs.DetAnnModal.annVisible = true
|
|
|
+ // =the data presentation is a bit sluggish
|
|
|
+ this.$refs.DetAnnModal.annVisible = true
|
|
|
// console.log('轮播自带的数据', item)
|
|
|
this.$nextTick(() => {
|
|
|
enterpriseEQueryById({ id: item.row[0] }).then(res => {
|
|
@@ -439,6 +346,7 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
//查询日程数据
|
|
|
getScheduleData() {
|
|
|
this.$nextTick(() => {
|