|
@@ -1,7 +1,37 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container home">
|
|
<div class="app-container home">
|
|
|
|
+ <el-row :gutter="25">
|
|
|
|
+ <el-col :sm="24" :lg="6">
|
|
|
|
+ <div style="background-color: #fff; margin-bottom: 30px; display: flex;flex-direction: column;margin-top: 10px; padding: 20px; border-radius: 10px;">
|
|
|
|
+ <p style="display: flex; align-items: center;"><img src="../assets/images/weyr.png" alt="" style="width: 50px;height: 50px; margin-right: 20px;"><span style="font-size: 14px; color: #76838f;">今日发文</span></p>
|
|
|
|
+ <p style="display: flex; justify-content: center; align-items: center;"><img style="width: 10px; height: 6px;" src="../assets/images/shang.png" alt=""><span style="font-size: 20px; margin-left: 10px; color: #76838f;">{{seiq.toDaySend}}</span></p>
|
|
|
|
+ <p style="font-size: 14px; color: #a3afb7; text-align: center;margin-top: 10px;">发文个数</p>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :sm="24" :lg="6">
|
|
|
|
+ <div style="background-color: #fff; margin-bottom: 30px; display: flex;flex-direction: column;margin-top: 10px; padding: 20px; border-radius: 10px;">
|
|
|
|
+ <p style="display: flex; align-items: center;"><img src="../assets/images/ying.png" alt="" style="width: 50px;height: 50px; margin-right: 20px;"><span style="font-size: 14px; color: #76838f;">未读</span></p>
|
|
|
|
+ <p style="display: flex; justify-content: center; align-items: center;"><img style="width: 10px; height: 6px;" src="../assets/images/xia.png" alt=""><span style="font-size: 20px; margin-left: 10px; color: #76838f;">{{seiq.unread}}</span></p>
|
|
|
|
+ <p style="font-size: 14px; color: #a3afb7; text-align: center;margin-top: 10px;">未读个数</p>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :sm="24" :lg="6">
|
|
|
|
+ <div style="background-color: #fff; margin-bottom: 30px; display: flex;flex-direction: column;margin-top: 10px; padding: 20px; border-radius: 10px;">
|
|
|
|
+ <p style="display: flex; align-items: center;"><img src="../assets/images/shou.png" alt="" style="width: 50px;height: 50px; margin-right: 20px;"><span style="font-size: 14px; color: #76838f;">已读</span></p>
|
|
|
|
+ <p style="display: flex; justify-content: center; align-items: center;"><img style="width: 10px; height: 6px;" src="../assets/images/shang.png" alt=""><span style="font-size: 20px; margin-left: 10px; color: #76838f;">{{seiq.read}}</span></p>
|
|
|
|
+ <p style="font-size: 14px; color: #a3afb7; text-align: center;margin-top: 10px;">已读个数</p>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :sm="24" :lg="6">
|
|
|
|
+ <div style="background-color: #fff; margin-bottom: 30px; display: flex;flex-direction: column;margin-top: 10px; padding: 20px; border-radius: 10px;">
|
|
|
|
+ <p style="display: flex; align-items: center;"><img src="../assets/images/xinh.png" alt="" style="width: 50px;height: 50px; margin-right: 20px;"><span style="font-size: 14px; color: #76838f;">今日收文</span></p>
|
|
|
|
+ <p style="display: flex; justify-content: center; align-items: center;"><img style="width: 10px; height: 6px;" src="../assets/images/shang.png" alt=""><span style="font-size: 20px; margin-left: 10px; color: #76838f;">{{seiq.todayReceipt}}</span></p>
|
|
|
|
+ <p style="font-size: 14px; color: #a3afb7; text-align: center;margin-top: 10px;">收文个数</p>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
<el-row :gutter="5">
|
|
<el-row :gutter="5">
|
|
- <el-col :sm="24" :lg="17" >
|
|
|
|
|
|
+ <el-col :sm="24" :lg="24" >
|
|
<div class="index_heade">
|
|
<div class="index_heade">
|
|
<img src="../assets/images/icon_more.png" alt="" class="index_headerImg">
|
|
<img src="../assets/images/icon_more.png" alt="" class="index_headerImg">
|
|
<p class="index_headetab">
|
|
<p class="index_headetab">
|
|
@@ -11,8 +41,8 @@
|
|
<ul class="index_headerUl">
|
|
<ul class="index_headerUl">
|
|
<li v-for="(item,index) in configList" :key="index" @click="headerCld(item)">
|
|
<li v-for="(item,index) in configList" :key="index" @click="headerCld(item)">
|
|
<img src="../assets/images/icon_list_sj.png" alt="">
|
|
<img src="../assets/images/icon_list_sj.png" alt="">
|
|
- <p>{{item.notice_title}}</p>
|
|
|
|
- <span>{{item.create_time}}</span>
|
|
|
|
|
|
+ <p>{{item.receive_dept_name}}</p>
|
|
|
|
+ <span>{{item.send_message_time}}</span>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
<div class="index_haderPagin">
|
|
<div class="index_haderPagin">
|
|
@@ -29,78 +59,6 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <!-- 列表 -->
|
|
|
|
- <!-- <el-col :sm="24" :lg="24" style="margin-top: 20px;" >
|
|
|
|
- <div class="index_heade index_headeNav" v-show="true">
|
|
|
|
- <img src="../assets/images/icon_more.png" alt="" class="index_headerImg">
|
|
|
|
- <p class="index_headetab">
|
|
|
|
- <span :class="[numlist == index ? ' spanto' : '']" v-for="(item,index) in attendance" :key="index" @click="tabList(index)">{{item}} <p class="tab_i">3</p></span></span>
|
|
|
|
- </p>
|
|
|
|
-
|
|
|
|
- <div v-if="num == 0">
|
|
|
|
- <el-table :data="tableDataalid" style="width: 100%;margin-top: 10px;" :stripe="true" >
|
|
|
|
- <el-table-column label="序号" align="center" prop="noticeId" width="60" height="53" max-height="53" />
|
|
|
|
- <el-table-column
|
|
|
|
- label="申请人"
|
|
|
|
- align="center"
|
|
|
|
- prop="name"
|
|
|
|
- :show-overflow-tooltip="true"
|
|
|
|
- width="70"
|
|
|
|
- />
|
|
|
|
- <el-table-column
|
|
|
|
- label="部门"
|
|
|
|
- align="center"
|
|
|
|
- prop="name"
|
|
|
|
-
|
|
|
|
- width="70"
|
|
|
|
- />
|
|
|
|
- <el-table-column
|
|
|
|
- label="请假类型"
|
|
|
|
- align="center"
|
|
|
|
- prop="status"
|
|
|
|
-
|
|
|
|
- width="75"
|
|
|
|
- />
|
|
|
|
- <el-table-column label="请假事由" align="center" prop="createBy" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column label="请假时间" align="center" prop="date" width="150"/>
|
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-button
|
|
|
|
- size="small"
|
|
|
|
- type="success"
|
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
|
- v-hasPermi="['system:notice:edit']"
|
|
|
|
- >详情</el-button>
|
|
|
|
- <el-button
|
|
|
|
- size="small"
|
|
|
|
- type="primary"
|
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
|
- v-hasPermi="['system:notice:remove']"
|
|
|
|
- >同意</el-button>
|
|
|
|
- <el-button
|
|
|
|
- size="small"
|
|
|
|
- type="danger"
|
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
|
- v-hasPermi="['system:notice:remove']"
|
|
|
|
- >驳回</el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- <div class="index_haderPagin">
|
|
|
|
- <el-pagination
|
|
|
|
- @size-change="handleSizeChange"
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
- :current-page.sync="currentPage3"
|
|
|
|
- :page-size="pageSize"
|
|
|
|
- layout="prev, pager, next, jumper"
|
|
|
|
- :total="1000">
|
|
|
|
- </el-pagination>
|
|
|
|
- <span>共 85 条 每页显示 5 条 当前 1/17 页</span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </el-col> -->
|
|
|
|
- <!-- </el-row> -->
|
|
|
|
<!-- 公司概况 -->
|
|
<!-- 公司概况 -->
|
|
<el-col :sm="24" :lg="24">
|
|
<el-col :sm="24" :lg="24">
|
|
<div class="index_heade index_headeProfile">
|
|
<div class="index_heade index_headeProfile">
|
|
@@ -133,139 +91,14 @@
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
- <el-col :sm="24" :lg="7" style="padding-left: 15px">
|
|
|
|
- <div class="index_nav">
|
|
|
|
- <div class="index_navTime">
|
|
|
|
- <p class="index_navTimep" @click="handleAdd">
|
|
|
|
- <span>日程</span>
|
|
|
|
- <span><i class="el-icon-date" ></i>创建日程</span>
|
|
|
|
- </p>
|
|
|
|
- <el-calendar id="calendar">
|
|
|
|
- <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法-->
|
|
|
|
- <template
|
|
|
|
- slot="dateCell"
|
|
|
|
- slot-scope="{date, data}">
|
|
|
|
- <!--自定义内容-->
|
|
|
|
- <div>
|
|
|
|
- <div class="calendar-day" style="text-align: center">
|
|
|
|
- <el-tooltip v-if="brightDate.indexOf(data.day) != -1" class="item" effect="dark" :content="content(data.day)" placement="right">
|
|
|
|
- <span class="everyDay">{{ data.day.split('-').slice(2).join('-') }}</span>
|
|
|
|
- </el-tooltip>
|
|
|
|
- <span v-else>{{ data.day.split('-').slice(2).join('-') }}</span>
|
|
|
|
- <!-- <p :class="data.isSelected ? 'is-selected' : ''">
|
|
|
|
- {{ data.day.split('-').slice(1).join('-') }} {{ data.isSelected ? '✔️' : ''}}
|
|
|
|
- </p> -->
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </el-calendar>
|
|
|
|
- <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <!-- 备忘录 -->
|
|
|
|
- <el-col :sm="24" :lg="24" >
|
|
|
|
- <div class="index_nav index_memoranduNnavTime">
|
|
|
|
- <div class="index_navTime ">
|
|
|
|
- <p class="index_navTimep">
|
|
|
|
- <span>备忘录</span>
|
|
|
|
- <span @click="memoere"><i class="el-icon-date"></i>创建备忘录</span>
|
|
|
|
- </p>
|
|
|
|
- <ul >
|
|
|
|
- <li v-for="(item,index) in getmemorandum" :key="index" >
|
|
|
|
- <p>{{item.memorandum_title}}
|
|
|
|
- </p>
|
|
|
|
- <div class="index_navspande">
|
|
|
|
- <span>
|
|
|
|
- {{item.remind_time}}
|
|
|
|
- </span>
|
|
|
|
- <img src="../assets/images/deletety.png" alt="" v-if="shower" @click="index_deledetfe(item.id)">
|
|
|
|
- </div>
|
|
|
|
- </li>
|
|
|
|
-
|
|
|
|
- </ul>
|
|
|
|
- <img src="../assets/images/icon_more.png" alt="" class="imjud">
|
|
|
|
-<!-- <el-calendar v-model="value">
|
|
|
|
- </el-calendar> -->
|
|
|
|
-
|
|
|
|
- <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </el-col >
|
|
|
|
- <!-- 通讯录 -->
|
|
|
|
- <!-- <el-col :sm="24" :lg="24">
|
|
|
|
- <div class="index_nav index_memoranduMail">
|
|
|
|
- <div class="index_navTime ">
|
|
|
|
- <p class="index_navTimep">
|
|
|
|
- <span>通讯录</span>
|
|
|
|
- <img src="../assets/images/icon_more.png" alt="" class="index_navTimeimgtwo">
|
|
|
|
- </p>
|
|
|
|
- <div class="index_memoranduMailnav">
|
|
|
|
- <div class="tab_tol">
|
|
|
|
- <el-form class="iejgu" :model="queryParamsail" ref="queryForm" :inline="true" >
|
|
|
|
- <dynamic-forms :type="0" :ref="item.columnName" :config="queryParamsail" @inputs="changeFn" :formConfig="item"
|
|
|
|
- v-for="(item,index) in queryDataali.queryList" :key='index' />
|
|
|
|
- <el-form-item style="width: 20%; text-align: right;">
|
|
|
|
- <el-button type="primary" size="mini" @click="handleQuerygty">搜索</el-button>
|
|
|
|
-
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- <el-table stripe v-loading="loading" :data="postList.rows" @selection-change="handleSelectionChange">
|
|
|
|
- <el-table-column :width="item.columnComment == 'id'? '40' : item.columnComment == '姓名'? '60' : '110'" :label="item.columnComment" align="left" :prop="item.columnName" v-for="(item,index) in postList.tableHeadList" :key="index" />
|
|
|
|
- </el-table>
|
|
|
|
- </div>
|
|
|
|
- <div class="index_haderPagin index_haderPaginfoiu">
|
|
|
|
- <el-pagination
|
|
|
|
- @size-change="handleSizeChangeali"
|
|
|
|
- @current-change="handleCurrentChangeali"
|
|
|
|
- :current-page.sync="currentPage3"
|
|
|
|
- :page-size="queryParamsail.pageSize"
|
|
|
|
- :small= "true"
|
|
|
|
- layout="prev, pager, next, jumper"
|
|
|
|
- :total="totalali">
|
|
|
|
- </el-pagination>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </el-col> -->
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- </el-col>
|
|
|
|
</el-row>
|
|
</el-row>
|
|
<!-- <el-divider /> -->
|
|
<!-- <el-divider /> -->
|
|
- <!-- 添加或修改公告对话框 -->
|
|
|
|
- <el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" width="980px" append-to-body>
|
|
|
|
- <el-form ref="form" :model="form" :rules="queryData.rules" label-width="160px" class="from_index">
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="24" >
|
|
|
|
- <dynamic-forms @modelFn="modelFn" :ref="item.columnName" :config="form.fixedData" @inputs = "changeFn" :formConfig="item" v-for="(item,index) in queryData.showData" :key='index' />
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </el-form>
|
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
|
- <el-button type="primary" @click="handleQuery">确 定</el-button>
|
|
|
|
- <el-button @click="cancel">取 消</el-button>
|
|
|
|
- </div>
|
|
|
|
- </el-dialog>
|
|
|
|
- <!-- 通知公告弹窗 -->
|
|
|
|
- <el-dialog class="index_ese" :close-on-click-modal="false" :title="title" :visible.sync="openety" width="980px" append-to-body>
|
|
|
|
- <div class="index_headertan" >
|
|
|
|
- <p v-html="actingk.notice_title == undefined? '暂无数据' : actingk.notice_title"></p>
|
|
|
|
- <p>{{actingk.create_time == undefined? '暂无数据' : actingk.create_time}} 发布人:{{actingk.create_by}}</p>
|
|
|
|
- <pre>
|
|
|
|
- <div v-html="actingk.notice_content"></div>
|
|
|
|
- </pre>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- </el-dialog>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listIndex, getUserProfile, listIndextwo, listIndextherr, listIndexfou, listIndextanl, getConfig, delConfig, addConfig, addConfigindex, updateConfig, clearCache, delIndexnabd,listIndexber, getTableQuery } from "@/api/system/config";
|
|
|
|
|
|
+import { listIndex, getUserProfile, listIndextwo, listIndextherr, listIndexfou, listIndextanl, getConfig, delConfig, addConfig, addConfigindex, updateConfig, clearCache, delIndexnabd,listIndexber, getTableQuery,shoueNuber } from "@/api/system/config";
|
|
import Editor from '@/components/Editor';
|
|
import Editor from '@/components/Editor';
|
|
export default {
|
|
export default {
|
|
name: "index",
|
|
name: "index",
|
|
@@ -292,14 +125,16 @@ export default {
|
|
editableTabsteo:[],
|
|
editableTabsteo:[],
|
|
configList:[],
|
|
configList:[],
|
|
queryParams:{
|
|
queryParams:{
|
|
- table:'sys_notice',
|
|
|
|
|
|
+ table:'boman_message_receive',
|
|
orderBy:'create_time desc',
|
|
orderBy:'create_time desc',
|
|
pageNo:1,
|
|
pageNo:1,
|
|
pageSize:10,
|
|
pageSize:10,
|
|
fixedData:{
|
|
fixedData:{
|
|
condition:{
|
|
condition:{
|
|
- notice_type:1,
|
|
|
|
- status:0
|
|
|
|
|
|
+ visible :'Y',
|
|
|
|
+ receive_user_id:'0'
|
|
|
|
+ // notice_type:1,
|
|
|
|
+ // status:0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -315,13 +150,13 @@ export default {
|
|
},
|
|
},
|
|
// 公司概况
|
|
// 公司概况
|
|
queryParamstabprofile:{
|
|
queryParamstabprofile:{
|
|
- table:'sys_info',
|
|
|
|
|
|
+ table:'boman_news',
|
|
orderBy:'create_time desc',
|
|
orderBy:'create_time desc',
|
|
pageNo:1,
|
|
pageNo:1,
|
|
pageSize:1,
|
|
pageSize:1,
|
|
fixedData:{
|
|
fixedData:{
|
|
condition:{
|
|
condition:{
|
|
- info_type:1
|
|
|
|
|
|
+ status:1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -466,23 +301,25 @@ export default {
|
|
},
|
|
},
|
|
titlees:'通知公告',//通知公告弹框
|
|
titlees:'通知公告',//通知公告弹框
|
|
openety:false,
|
|
openety:false,
|
|
- actingk:{}
|
|
|
|
|
|
+ actingk:{},
|
|
|
|
+ shouewq:1,
|
|
|
|
+ seiq:{}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
// console.log(this.user)
|
|
// console.log(this.user)
|
|
this.unique(this.arr)
|
|
this.unique(this.arr)
|
|
- this.getList()
|
|
|
|
|
|
+ // this.getList()
|
|
this.getListtab()
|
|
this.getListtab()
|
|
this.getLiser()
|
|
this.getLiser()
|
|
this.getLisprofile()
|
|
this.getLisprofile()
|
|
// 用户信息
|
|
// 用户信息
|
|
this.getUser()
|
|
this.getUser()
|
|
// this.getLismemorandum() //备忘录
|
|
// this.getLismemorandum() //备忘录
|
|
- this.getLisail()//通讯录
|
|
|
|
- this.getLisailtwo()
|
|
|
|
- this.init()
|
|
|
|
|
|
+ // this.getLisail()//通讯录
|
|
|
|
+ // this.getLisailtwo()
|
|
|
|
+ // this.init()
|
|
|
|
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -544,10 +381,10 @@ export default {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
this.configList = []
|
|
this.configList = []
|
|
listIndex(this.queryParams).then(response => {
|
|
listIndex(this.queryParams).then(response => {
|
|
- if(response.data.rows !== null){
|
|
|
|
|
|
+ if(response.data.rows !== null && response.data.rows.length !== 0){
|
|
this.configList = response.data.rows;
|
|
this.configList = response.data.rows;
|
|
}else {
|
|
}else {
|
|
- this.configList.push({notice_title: "暂无数据"});
|
|
|
|
|
|
+ this.configList.push({receive_dept_name: "暂无数据"});
|
|
}
|
|
}
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -568,12 +405,19 @@ export default {
|
|
getLisprofile() {
|
|
getLisprofile() {
|
|
// this.loading = true;
|
|
// this.loading = true;
|
|
listIndexber(this.queryParamstabprofile).then(response => {
|
|
listIndexber(this.queryParamstabprofile).then(response => {
|
|
- if(response.data !== undefined){
|
|
|
|
|
|
+ if(response.data !== undefined || response.data.rows.length !==0){
|
|
this.getLisprofileone = response.data.rows;
|
|
this.getLisprofileone = response.data.rows;
|
|
- if(response.data.rows !== null){
|
|
|
|
- this.tieku = this.getLisprofileone[0].info_title
|
|
|
|
- this.comg = this.getLisprofileone[0].info_content
|
|
|
|
|
|
+ if(response.data.rows !== null || response.data.rows.length !==0){
|
|
|
|
+ if(this.numprofile == 0){
|
|
|
|
+ this.tieku = this.getLisprofileone[0].title
|
|
|
|
+ this.comg = this.getLisprofileone[0].content
|
|
|
|
+ }else if(this.numprofile == 1){
|
|
|
|
+ this.tieku = this.getLisprofileone[0].notice_title
|
|
|
|
+ this.comg = this.getLisprofileone[0].notice_content
|
|
|
|
+ }
|
|
|
|
+
|
|
}else {
|
|
}else {
|
|
|
|
+ console.log('暂无数据')
|
|
this.tieku = '暂无数据'
|
|
this.tieku = '暂无数据'
|
|
this.comg = '暂无数据'
|
|
this.comg = '暂无数据'
|
|
}
|
|
}
|
|
@@ -631,7 +475,7 @@ export default {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
listIndextwo(this.dictType).then(response => {
|
|
listIndextwo(this.dictType).then(response => {
|
|
this.editableTabs = response.data;
|
|
this.editableTabs = response.data;
|
|
- this.queryParams.dictType = response.data[1].dictType
|
|
|
|
|
|
+ // this.queryParams.dictType = response.data[1].dictType
|
|
// this.total = response.total;
|
|
// this.total = response.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
}
|
|
}
|
|
@@ -647,55 +491,6 @@ export default {
|
|
}
|
|
}
|
|
)
|
|
)
|
|
},
|
|
},
|
|
- // 通讯录表头
|
|
|
|
- getLisail() {
|
|
|
|
- this.loading = true;
|
|
|
|
- listIndexfou(this.queryParamsail).then(response => {
|
|
|
|
- if(response.data !== undefined){
|
|
|
|
- this.tableDataalid = response.data.tableHeadList;
|
|
|
|
- this.postList = response.data
|
|
|
|
- if(this.postList.rows !== null){
|
|
|
|
- this.postList.rows.filter(route => {
|
|
|
|
- // route.dept_id = route.dept_id.value
|
|
|
|
- for(var item in route){
|
|
|
|
- if(typeof route[item] == 'object'){
|
|
|
|
- route[item]= route[item].value
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- this.totalali = response.data.total;
|
|
|
|
- }
|
|
|
|
- this.loading = false;
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
- },
|
|
|
|
- //日历新增弹框数据
|
|
|
|
- getLisalendaraddd() {
|
|
|
|
- this.loading = true;
|
|
|
|
- this.queryData = []
|
|
|
|
- listIndextanl(this.calendaradd).then(response => {
|
|
|
|
- if(response.data !== undefined){
|
|
|
|
- this.queryData = response.data
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- this.loading = false;
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
- },
|
|
|
|
- //备忘录新增弹框数据
|
|
|
|
- getLisalendaradddmer() {
|
|
|
|
- this.loading = true;
|
|
|
|
- this.queryData = []
|
|
|
|
- listIndextanl(this.calendaraddmer).then(response => {
|
|
|
|
- if(response.data !== undefined){
|
|
|
|
- this.queryData = response.data
|
|
|
|
- }
|
|
|
|
- this.loading = false;
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
- },
|
|
|
|
goTarget(href) {
|
|
goTarget(href) {
|
|
window.open(href, "_blank");
|
|
window.open(href, "_blank");
|
|
},
|
|
},
|
|
@@ -723,8 +518,23 @@ export default {
|
|
},
|
|
},
|
|
// 第一部分tab点击
|
|
// 第一部分tab点击
|
|
tabSbu(index){
|
|
tabSbu(index){
|
|
|
|
+ console.log(index)
|
|
|
|
+ this.shouewq = index
|
|
|
|
+ if(index == 1){
|
|
|
|
+ // 收文
|
|
|
|
+ this.queryParams.fixedData.condition.visible = 'Y'
|
|
|
|
+ }else if(index == 2){
|
|
|
|
+ //已读
|
|
|
|
+ this.queryParams.fixedData.condition.visible = 'Y'
|
|
|
|
+ this.queryParams.fixedData.condition.status = 'Y'
|
|
|
|
+ }else if(index == 3){
|
|
|
|
+ // 未读
|
|
|
|
+ this.queryParams.fixedData.condition.visible = 'Y'
|
|
|
|
+ this.queryParams.fixedData.condition.status = 'N'
|
|
|
|
+ }
|
|
|
|
+ console.log(this.queryParams)
|
|
this.num = index - 1
|
|
this.num = index - 1
|
|
- this.queryParams.fixedData.condition.notice_type = index
|
|
|
|
|
|
+ // this.queryParams.fixedData.condition.notice_type = index
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
// 第二部分tab点击numlist
|
|
// 第二部分tab点击numlist
|
|
@@ -733,8 +543,15 @@ export default {
|
|
},
|
|
},
|
|
// 第三部分tab点击
|
|
// 第三部分tab点击
|
|
tabSbuprofile(index){
|
|
tabSbuprofile(index){
|
|
|
|
+ if(index == 1){
|
|
|
|
+ this.queryParamstabprofile.table = 'boman_news'
|
|
|
|
+ this.queryParamstabprofile.fixedData.condition.status = 1
|
|
|
|
+ }else if(index == 2){
|
|
|
|
+ this.queryParamstabprofile.table = 'sys_notice'
|
|
|
|
+ this.queryParamstabprofile.fixedData.condition.status = 0
|
|
|
|
+ }
|
|
this.numprofile = index - 1
|
|
this.numprofile = index - 1
|
|
- this.queryParamstabprofile.fixedData.condition.info_type = index
|
|
|
|
|
|
+ // this.queryParamstabprofile.fixedData.condition.info_type = index
|
|
this.getLisprofile()
|
|
this.getLisprofile()
|
|
},
|
|
},
|
|
// 表单重置
|
|
// 表单重置
|
|
@@ -780,7 +597,7 @@ export default {
|
|
addConfigindex(this.forme).then(response => {
|
|
addConfigindex(this.forme).then(response => {
|
|
this.msgSuccess("新增成功");
|
|
this.msgSuccess("新增成功");
|
|
// this.open = false;
|
|
// this.open = false;
|
|
- this.getLisalendar()
|
|
|
|
|
|
+ // this.getLisalendar()
|
|
this.cancel();
|
|
this.cancel();
|
|
});
|
|
});
|
|
}else if(this.nummer == 1){
|
|
}else if(this.nummer == 1){
|
|
@@ -788,14 +605,6 @@ export default {
|
|
this.forme.table = 'sys_memorandum'
|
|
this.forme.table = 'sys_memorandum'
|
|
this.forme.objId = -1
|
|
this.forme.objId = -1
|
|
this.forme.fixedData = this.form
|
|
this.forme.fixedData = this.form
|
|
-
|
|
|
|
- //备忘录
|
|
|
|
- addConfigindex(this.forme).then(response => {
|
|
|
|
- this.msgSuccess("新增成功");
|
|
|
|
- // this.open = false;
|
|
|
|
- this.getLismemorandum()
|
|
|
|
- this.cancel();
|
|
|
|
- });
|
|
|
|
}
|
|
}
|
|
// this.getList();
|
|
// this.getList();
|
|
},
|
|
},
|
|
@@ -806,31 +615,6 @@ export default {
|
|
this.form.fixedData[key] = obj[key]
|
|
this.form.fixedData[key] = obj[key]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 新增备忘录
|
|
|
|
- memoere(){
|
|
|
|
- this.nummer = 1
|
|
|
|
- this.open = true;
|
|
|
|
- this.title = "添加备忘录";
|
|
|
|
- this.getLisalendaradddmer()
|
|
|
|
- },
|
|
|
|
- // 备忘录删除
|
|
|
|
- index_deledetfe(id){
|
|
|
|
- var that = this
|
|
|
|
- that.deledlid.idList = []
|
|
|
|
- that.deledlid.idList.push(id)
|
|
|
|
-
|
|
|
|
- this.$confirm('是否确认删除', "警告", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "warning"
|
|
|
|
- }).then(function() {
|
|
|
|
- return delIndexnabd(that.deledlid);
|
|
|
|
- }).then(() => {
|
|
|
|
- this.getLismemorandum();
|
|
|
|
- this.msgSuccess("删除成功");
|
|
|
|
- // this.$router.go(-1)
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
|
|
handleSelectionChange() {
|
|
handleSelectionChange() {
|
|
|
|
|
|
@@ -851,16 +635,13 @@ export default {
|
|
getUser() {
|
|
getUser() {
|
|
getUserProfile().then(response => {
|
|
getUserProfile().then(response => {
|
|
this.user = response.data;
|
|
this.user = response.data;
|
|
- this.getLisalendar()
|
|
|
|
- this.getLismemorandum()
|
|
|
|
|
|
+ this.queryParams.fixedData.condition.receive_user_id = response.data.id
|
|
|
|
+ this.getList()
|
|
|
|
+ this.shouNuber()
|
|
|
|
+ // this.getLisalendar()
|
|
|
|
+ // this.getLismemorandum()
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- // 通知公告弹窗
|
|
|
|
- headerCld(index){
|
|
|
|
- this.title = '通知公告'
|
|
|
|
- this.openety = true,
|
|
|
|
- this.actingk=index
|
|
|
|
- },
|
|
|
|
// 搜索
|
|
// 搜索
|
|
handleQuerygty(){
|
|
handleQuerygty(){
|
|
this.queryParams.pageNo = 1;
|
|
this.queryParams.pageNo = 1;
|
|
@@ -880,15 +661,37 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 搜索重置 通讯录
|
|
|
|
- resetQuery(){
|
|
|
|
- console.log(12436)
|
|
|
|
- this.queryParamsail.fixedData.condition = {}
|
|
|
|
- this.queryParamsail.pageNo = 1
|
|
|
|
- // this.resetForm("queryParamsail");
|
|
|
|
- console.log(this.queryParamsail)
|
|
|
|
- this.getLisail()
|
|
|
|
|
|
+ headerCld(index){
|
|
|
|
+ if(this.shouewq == 1){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/business/issue',
|
|
|
|
+ query: {
|
|
|
|
+ id:index.id,
|
|
|
|
+ tables:'boman_message_receive'
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/system/pdf',
|
|
|
|
+ query: {
|
|
|
|
+ id:index.id,
|
|
|
|
+ tables:'boman_message_receive'
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ // 获取收文个数
|
|
|
|
+ shouNuber(){
|
|
|
|
+ this.loading = true;
|
|
|
|
+ shoueNuber(this.user.id).then(response => {
|
|
|
|
+ // this.total = response.data.total;
|
|
|
|
+ this.seiq = response.data
|
|
|
|
+ this.loading = false;
|
|
|
|
+ }
|
|
|
|
+ );
|
|
}
|
|
}
|
|
|
|
+
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|