提交代码

dev_xds
姜玉琦 2023-10-27 00:43:22 +08:00
parent 26d2d694b7
commit 26bd6af26d
3 changed files with 82 additions and 8 deletions

View File

@ -9,6 +9,15 @@ export function listWorkUser(query) {
})
}
// 统计文件访问用户列表
export function queryCount(query) {
return request({
url: '/work/workUser/queryCount',
method: 'get',
params: query
})
}
// 查询文件访问用户详细
export function getWorkUser(id) {
return request({

View File

@ -3,7 +3,7 @@
<el-drawer
v-if="isOpen"
:visible.sync="isOpen"
direction="rtl"
direction="ltr"
size="50%"
>
<template slot="title">
@ -14,12 +14,12 @@
style="margin-left: 20px; margin-right: 20px"
@tab-click="getList"
>
<el-tab-pane label="全部" name="-1" key="-1" ></el-tab-pane>
<el-tab-pane label="发展集团" name="1" key="1" ></el-tab-pane>
<el-tab-pane label="子公司" name="11" key="11" ></el-tab-pane>
<el-tab-pane label="监理单位" name="4" key="4" ></el-tab-pane>
<el-tab-pane label="总包公司" name="2" key="2" ></el-tab-pane>
<el-tab-pane label="分包公司" name="3" key="3" ></el-tab-pane>
<el-tab-pane :label="tag.all" name="-1" key="-1" ></el-tab-pane>
<el-tab-pane :label="tag.fzjt" name="1" key="1" ></el-tab-pane>
<el-tab-pane :label="tag.zgs" name="11" key="11" ></el-tab-pane>
<el-tab-pane :label="tag.jldw" name="4" key="4" ></el-tab-pane>
<el-tab-pane :label="tag.zbgs" name="2" key="2" ></el-tab-pane>
<el-tab-pane :label="tag.fbgs" name="3" key="3" ></el-tab-pane>
</el-tabs>
<el-table
@ -85,7 +85,7 @@
</template>
<script>
import { listWorkUser, delWorkUser } from "@/api/work/workUser";
import { listWorkUser, delWorkUser, queryCount } from "@/api/work/workUser";
export default {
name: "workFileUser",
@ -108,6 +108,14 @@
},
isOpen: false,
activeName:"-1",
tag: {
all:"全部0",
fzjt:"集团公司0",
zgs:"子公司0",
jldw:"监理单位0",
zbgs:"总包公司0",
fbgs:"分包公司0"
}
};
},
created() {},
@ -126,12 +134,50 @@
}else{
this.queryParams.deptType=this.activeName;
}
this.queryCount();
listWorkUser(this.queryParams).then((response) => {
this.dataList = response.rows;
this.total = response.total;
this.loading = false;
});
},
queryCount(){
queryCount(this.queryParams).then((response) => {
let tag = {
all:"全部0",
fzjt:"集团公司0",
zgs:"子公司0",
jldw:"监理单位0",
zbgs:"总包公司0",
fbgs:"分包公司0"
};
let sum=0;
response.data.forEach(datum => {
if(datum.deptType=="1"){
sum+=datum.total;
tag.fzjt="集团公司("+datum.total+"";
}
if(datum.deptType=="11"){
sum+=datum.total;
tag.zgs="子公司("+datum.total+"";
}
if(datum.deptType=="4"){
sum+=datum.total;
tag.jldw="监理单位("+datum.total+"";
}
if(datum.deptType=="2"){
sum+=datum.total;
tag.zbgs="总包公司("+datum.total+"";
}
if(datum.deptType=="3"){
sum+=datum.total;
tag.fbgs="分包公司("+datum.total+"";
}
tag.all="全部("+sum+"";
});
this.tag = tag;
});
},
getDeptName(ancestors){
if(ancestors.indexOf(111)>-1){
return "产发城投";

View File

@ -0,0 +1,19 @@
package com.yanzhu.jh.message;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
public class MessageSendService {
@Autowired
private RedisCache redisCache;
public void send(String key){
Object obj=redisCache.getCacheObject(key);
if(obj!=null){
//return AjaxResult.success(obj);
}
}
}