数据云图的荣誉情况弹框跳转修改

des
吕天方 6 months ago
parent eae427a1f2
commit ba2d328f6f

@ -5,7 +5,7 @@ VUE_APP_TITLE = 金鸡湖现代服务业品牌管理系统
ENV = 'development'
# 金鸡湖现代服务业品牌管理系统/开发环境
VUE_APP_BASE_API = 'http://192.168.0.106:9040'
VUE_APP_BASE_API = 'http://192.168.0.108:9040'
# VUE_APP_BASE_API = 'http://39.101.188.84:9040'
# VUE_APP_BASE_API = 'https://idp.sipac.gov.cn/api'

@ -1,6 +1,6 @@
{
"name": "ruoyi",
"version": "1.0.202407181334",
"version": "1.0.202407191025",
"description": "金鸡湖现代服务业品牌管理系统",
"author": "若依",
"license": "MIT",

@ -77,22 +77,47 @@ export default {
},
//
bigNumber(row){
if(row.count1 == 0) {
return;
} else {
this.$router.push({
name: 'Project',
params: { projectBigType: row.projectBigType }
})
}
},
//
middleNumber(row){
if(row.count2 == 0) {
return;
} else {
this.$router.push({
name: 'Project',
params: { projectBigType: row.projectBigType, projectMiddleType: row.projectMiddleType }
})
}
},
//
smallNumber(row){
if(row.count3 == 0) {
return;
} else {
this.$router.push({
name: 'Project',
params: {projectBigType: row.projectBigType, projectMiddleType: row.projectMiddleType, projectSmallType: row.projectSmallType }
})
}
},
// 2024
YrarNumber(row){
this.$router.push({
name: 'Project',
params: { projectYear: 2024, projectBigType: row.projectBigType, projectMiddleType: row.projectMiddleType, projectSmallType: row.projectSmallType }
})
if(row.currentYearAdd == 0) {
return;
} else {
this.$router.push({
name: 'Project',
params: { projectYear: 2024, projectBigType: row.projectBigType, projectMiddleType: row.projectMiddleType, projectSmallType: row.projectSmallType }
})
}
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
if (row.mergeCell.includes(column.property)) {

@ -0,0 +1,333 @@
<template>
<div class="workbench-box">
<main class="home-main">
<el-row class="main-row">
<el-col :span="8" class="work-main-left">
<div class="main-left">
<div class="left-header">
<div class="left-header-title">服务业数据概览</div>
</div>
</div>
</el-col>
<el-col :span="8" class="work-main-left">
<div class="main-left">
<div class="left-header">
<div class="left-header-title">智能提醒</div>
</div>
<div class="left-main">
<el-card shadow="never" v-for="(item,index) in remindList" :key="index" :class="item.isRead == 1 ? 'el-card-border' : ''">
<div class="warn-main">
<div class="warn-main-left" v-if="item.alertManner == 2">
<div class="warn-main-img"><img src="@/assets/images/warn-green.png" alt=""></div>
<div class="warn-main-content">
<div class="content-title">{{ item.declarationName }}预计{{ item.daysAdvance }}天后{{ item.alertRecipients == 1 ? "填报结束" : item.alertRecipients == 2 ? "建设完成" : "" }}</div>
<div class="content-middle">{{ item.alertContent }}</div>
<div class="content-time">{{ item.alertTime }}</div>
</div>
</div>
<div class="warn-main-left" v-else-if="item.alertManner == 1 && item.qymc && item.alertRecipients == 2">
<div class="warn-main-img"><img src="@/assets/images/warn-orange.png" alt=""></div>
<div class="warn-main-content">
<div class="content-title" style="display: flex;">{{ item.qymc }}<dict-tag :options="dict.type.project_small_type" :value="item.declarationName"/></div>
<div class="content-middle">{{ item.alertContent }}</div>
<div class="content-time">{{ item.alertTime }}</div>
</div>
</div>
<div class="warn-main-left" v-else-if="item.alertManner == 1 && item.projectId">
<div class="warn-main-img"><img src="@/assets/images/warn-orange.png" alt=""></div>
<div class="warn-main-content">
<div class="content-title">{{ item.declarationName }}</div>
<div class="content-middle">{{ item.alertContent }}</div>
<div class="content-time">{{ item.alertTime }}</div>
</div>
</div>
<div class="warn-main-left different-left" v-else-if="item.alertManner == 1 && !item.projectId">
<div class="warn-main-img"><img src="@/assets/images/warn-blue.png" alt=""></div>
<div class="warn-main-content">
<div class="content-title">{{ item.alertContent }}</div>
<div class="content-time">{{ item.alertTime }}</div>
</div>
</div>
<div class="warn-main-right">
<div class="warn-main-right-chakan" @click="putMemo(item)">
查看
</div>
<div class="warn-main-right-status" :class="item.isRead == 1 ? 'status-unread' : ''">
{{ item.isRead == 1 ? '未读' : '已读' }}
</div>
</div>
</div>
</el-card>
</div>
</div>
</el-col>
<el-col :span="8" class="work-main-right">
<div class="main-right">
<div class="right-header">
<div class="right-header-title">待办提醒</div>
<el-button @click="MoreRecords('all')" type="text" v-if="backlogArray.length > 0">>> 更多记录</el-button>
</div>
<div class="right-main" v-if="backlogArray.length > 0" v-loading="loading">
<div class="main-items" v-for="(item,index) in backlogArray" :key="index" :class="index % 2 == 0 ? '':'main-item'">
<div>{{ item.enterpriseDirectory}}</div>
<!-- <div>{{ item.enterpriseName }}</div> -->
<div>{{ (item.status == 0 ? "待填报" : item.status == 8 ? "初审不通过" : item.status == 10 ? "初审退回修改" : item.status == 7 ? "复审不通过" : item.status == 9 ? "终审不通过" : item.status == 5 ? "终审通过" : "") }}</div>
<!-- <div>审批知识产权材料</div> -->
<div @click="MoreRecords('id',item.status)" class="last_child_item" :class="item.status == 0 ? 'tab-red' : item.status == 10 ? 'tab-red' : 'last_child_item'">{{ item.status == 0 ? "去填报" : item.status == 10 ? "去修改" : "去查看"}}</div>
</div>
</div>
<div class="right-main" v-else>
<el-divider content-position="center">暂无</el-divider>
</div>
</div>
</el-col>
</el-row>
</main>
<el-dialog title="详情" :visible.sync="open" width="400px" append-to-body :close-on-click-modal="false">
<div class="team-main">
<div>提醒时间:</div>
<div>{{ info.alertTime }}</div>
</div>
<div class="team-main">
<div>提醒内容:</div>
<div>{{ info.alertContent }}</div>
</div>
</el-dialog>
</div>
</template>
<script>
import { approvalList, approvalEdit, uploadFile } from "@/api/onlineDeclartion/pendingReview"
import { listRecords } from "@/api/onlineDeclartion/records"
import { selectAll, workSearch } from "@/api/jin_ji_hu/home"
import { chiefAll, enterpriseAll, changeIsRead } from "@/api/jin_ji_hu/intelligentReminder"
export default {
dicts: ["project_small_type"],
data() {
return {
// 01 02
userType: this.$store.state.user.userType,
search:"",
backlogArray:[],
pagination: {
pageNum:1,
pageSize:10,
approvalStatusStr: 0,
},
queryParams: {
pageNum: 1,
pageSize: 10,
creditCode: this.$store.state.user.name,
statusStr: [0, 5, 7, 8, 9, 10],
},
//
open: false,
//
form: {
approvalOpinions: ''
},
//
rules: {
approvalStatus: [
{ required: true, message: "请选择审批状态", trigger: "blur" }
],
approvalOpinions: [
{ required: true, message: "名录维护方式不能为空", trigger: "blur" }
],
},
fileList: [],
uploadList: [],
tabs: [
{
value:"查企业"
},{
value:"查项目"
},{
value:"查荣誉"
},
],
checked: 0,
loading:false,
remindList: [],
info:{},
}
},
mounted(){
if(this.userType == "02") {
this.getList();
this.govRemind();
} else if(this.userType == "01") {
this.getListTwo();
this.entRemind();
}
},
methods:{
//
getList(){
this.loading = true;
approvalList(this.pagination).then(res=>{
// console.log(res);
this.backlogArray = res.rows
this.loading = false;
})
},
//
getListTwo(){
this.loading = true;
listRecords(this.queryParams).then(response => {
this.backlogArray = response.rows
this.loading = false;
});
},
//
entRemind(){
enterpriseAll().then(res=>{
this.remindList = res.data;
})
},
//
govRemind(){
chiefAll().then(res=>{
this.remindList = res.data;
})
},
//
putMemo(item){
if(item.isRead == 1) {
changeIsRead({id:item.id}).then(res=>{
if(this.userType == "02") {
this.govRemind();
} else if(this.userType == "01") {
this.entRemind();
}
})
}
if(item.projectId) {
this.$router.push({
name: 'projectInfo',
query: { userId: Number(item.projectId) }
})
} else if(item.alertRecipients == 1 && item.alertManner == 2) {
this.$router.push({
name: 'Records',
params: { statusChange: "0" }
})
} else if(item.alertManner == 1) {
this.open = true;
this.info = item;
}
},
//
MoreRecords(type,status){
if(type == 'all') {
this.$router.push({
name: 'Records',
params: { statusChange: "" }
})
} else {
if(status == 0 || status == 10) {
this.$router.push({
name: 'Records',
params: { statusChange: "0" }
})
} else {
this.$router.push({
name: 'Records',
params: { statusChange: "1" }
})
}
}
},
// tab
changeTab(index){
this.checked = index;
this.search = "";
//
this.$refs.autocomplete.suggestions = [];
this.$refs.autocomplete.highlightedIndex = -1;
},
querySearch(queryString, cb) {
let results = []
if(this.checked == 0) {
workSearch({enterpriseInfo: queryString}).then(res => {
res.data.forEach(item => {
results.push({
value: item.qymc,
id: item.id,
tyshxydm: item.tyshxydm
})
})
})
} else if(this.checked == 1) {
selectAll({ name: queryString }).then(res => {
res.data.forEach(item => {
results.push({
value: item.declareUnit,
id: item.id
})
})
})
} else if(this.checked == 2) {
selectAll({ name: queryString, status: 5}).then(res => {
res.data.forEach(item => {
results.push({
value: item.declareUnit,
id: item.id
})
})
})
}
// queryString
/**
* 通过queryString 调用接口参数搜索到的数据数据处理成所需的列表 对象带value 使用callback返回列表数据
*/
// var restaurants = this.restaurants;
// var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
// callback
cb(results);
},
//
handleSelect(item) {
if(this.checked == 0) {
this.$router.push({
name: 'enterpriselibraryInfo',
query: { userId: item.id, creditCode: item.tyshxydm }
})
} else if(this.checked == 1) {
this.$router.push({
name: 'projectInfo',
query: { userId: Number(item.id) }
})
} else if(this.checked == 2) {
this.$router.push({
name: 'projectInfo',
query: { userId: Number(item.id) }
})
}
},
searchBtn(){
// console.log(this.search);
if(this.checked == 0) {
this.$router.push({
name: 'Enterpriselibrary',
params: { enterpriseName: this.search }
})
} else if(this.checked == 1) {
// this.$router.push({
// name: 'Project',
// params: { projectName: this.search }
// })
this.$router.push({
name: 'Project',
params: { declareUnit: this.search }
})
} else if(this.checked == 2) {
}
},
},
}
</script>
<style lang="scss" scoped>
</style>

@ -192,7 +192,7 @@ export default {
data() {
let validateTime = (rule, value, callback) => {
if (new Date(value) < new Date()) {
callback(new Error('选择结束时间需大于当前时间'))
callback(new Error('选择时间需大于当前时间'))
} else {
callback()
}

@ -347,18 +347,18 @@ export default {
this.formInline.projectClassify = this.$route.params.projectId + '';
this.pagination = { ...this.pagination,...this.formInline };
}
if(this.$route.params.projectYear && this.$route.params.projectBigType && this.$route.params.projectMiddleType && this.$route.params.projectSmallType) {
if(this.$route.params.projectYear || (this.$route.params.projectBigType || this.$route.params.projectMiddleType || this.$route.params.projectSmallType)) {
let arr = [];
arr.push(this.$route.params.projectBigType + '')
arr.push(this.$route.params.projectMiddleType + '')
arr.push(this.$route.params.projectSmallType + '')
this.$route.params.projectMiddleType ? arr.push(this.$route.params.projectMiddleType + '') : null;
this.$route.params.projectSmallType ? arr.push(this.$route.params.projectSmallType + '') : null;
this.echoCascader(arr)
this.formInline.projectYear = this.$route.params.projectYear + '';
this.formInline.projectBigType = arr[0]
this.formInline.projectMiddleType = arr[1]
this.formInline.projectSmallType = arr[2]
this.formInline.projectYear = this.$route.params.projectYear ? this.$route.params.projectYear + '' : '';
this.formInline.projectBigType = arr[0];
this.formInline.projectMiddleType = arr[1] ? arr[1] : null;
this.formInline.projectSmallType = arr[2] ? arr[2] : null;
this.pagination = { ...this.pagination,...this.formInline };
this.formInline.projectClassify = arr
this.formInline.projectClassify = arr;
} else {
this.getDataList();
}
@ -393,15 +393,26 @@ export default {
obj.value = item.dictValue;
obj.label = item.dictLabel;
obj.dict = item.remark;
obj.children = [];
if(!arr[1]) {
this.options.push(obj);
return;
} else {
obj.children = [];
}
getAllList({dictType: item.remark}).then(resTwo=>{
resTwo.data.map((itemTwo)=>{
if(arr[1] == itemTwo.dictValue) {
objTwo.value = itemTwo.dictValue;
objTwo.label = itemTwo.dictLabel;
objTwo.dict = itemTwo.remark;
objTwo.children = [];
obj.children.push(objTwo)
if(!arr[2]) {
obj.children.push(objTwo)
this.options.push(obj);
return;
} else {
objTwo.children = [];
obj.children.push(objTwo)
}
getAllList({dictType: itemTwo.remark}).then(resThree => {
resThree.data.map((itemThree)=>{
if(arr[2] == itemThree.dictValue) {
@ -479,6 +490,7 @@ export default {
}
clearKey(this.formInline)
this.getList();
this.getDataList();
},
//
importBtn(){

@ -875,10 +875,11 @@ export default {
position: absolute;
right: 0;
top: 0;
height: 100%;
padding-top: 3px;
.field-box {
position: relative;
height: calc(100vh - 42px);
height: calc(100% - 42px);
box-sizing: border-box;
overflow: hidden;
}

@ -552,21 +552,21 @@ $lighterBlue: #409EFF;
position: absolute;
left: 0;
top: 0;
height: 100vh;
height: 100%;
}
.left-scrollbar{
height: calc(100vh - 42px);
height: calc(100% - 42px);
overflow: hidden;
}
.center-scrollbar {
height: calc(100vh - 42px);
height: calc(100% - 42px);
overflow: hidden;
border-left: 1px solid #f1e8e8;
border-right: 1px solid #f1e8e8;
box-sizing: border-box;
}
.center-board {
height: 100vh;
height: 100%;
width: auto;
margin: 0 350px 0 260px;
box-sizing: border-box;
@ -630,7 +630,7 @@ $lighterBlue: #409EFF;
box-sizing: border-box;
& > .el-form {
// 69 = 12+15+42
height: calc(100vh - 69px);
height: calc(100% - 69px);
}
}
.drawing-board {

Loading…
Cancel
Save