Browse Source

需求更新

master
xuhuajiao 5 days ago
parent
commit
5cfd900076
  1. 4
      .env.development
  2. 10
      src/api/system/documentArchives.js
  3. 48
      src/views/archivesMIOD/miodLibrary/index.vue
  4. 2
      src/views/archivesMIOD/miodLibrary/module/detail.vue
  5. 2
      src/views/archivesMIOD/miodSearch/module/resultList.vue
  6. 59
      src/views/home.vue

4
.env.development

@ -3,8 +3,8 @@ ENV = 'development'
# 接口地址 # 接口地址
# 许镇-本地服地址 # 许镇-本地服地址
# VUE_APP_BASE_API = 'http://192.168.99.72:13000'
VUE_APP_BASE_API = 'http://192.168.99.67:13000'
VUE_APP_BASE_API = 'http://192.168.99.72:13000'
# VUE_APP_BASE_API = 'http://192.168.99.67:13000'
VUE_APP_AIDEEPSEEK_API = 'http://192.168.99.86:12123' VUE_APP_AIDEEPSEEK_API = 'http://192.168.99.86:12123'
VUE_APP_PROCESSMODEL_API = 'http://192.168.99.72:11200' VUE_APP_PROCESSMODEL_API = 'http://192.168.99.72:11200'

10
src/api/system/documentArchives.js

@ -210,6 +210,15 @@ export function FetchHomeBorrowLog(params) {
}) })
} }
// 首页办理实现提醒
export function FetchHomeRemindHandle(params) {
return request({
url: 'api/overview/getHomeRemindHandle',
method: 'get',
params
})
}
// 档案检索 // 档案检索
export function FetchDocumentArchivesSearch(params) { export function FetchDocumentArchivesSearch(params) {
return request({ return request({
@ -368,6 +377,7 @@ export default {
FetchInitStatisBase, FetchInitStatisBase,
FetchDocumentByDocDepartment, FetchDocumentByDocDepartment,
FetchHomeBorrowLog, FetchHomeBorrowLog,
FetchHomeRemindHandle,
FetchDocumentArchivesSearch, FetchDocumentArchivesSearch,
FetchSearchHistory, FetchSearchHistory,
FetchSeniorSearch, FetchSeniorSearch,

48
src/views/archivesMIOD/miodLibrary/index.vue

@ -23,10 +23,14 @@
<el-button size="mini" :disabled="crud.selections.length !== 1" @click="handleForm('edit')"><i class="iconfont icon-bianji" />编辑</el-button> <el-button size="mini" :disabled="crud.selections.length !== 1" @click="handleForm('edit')"><i class="iconfont icon-bianji" />编辑</el-button>
<!-- 删除btn 多选 --> <!-- 删除btn 多选 -->
<el-button size="mini" :loading="crud.delAllLoading" :disabled="crud.selections.length === 0" @click="toDelete(crud.selections)"><i class="iconfont icon-shanchu" />删除</el-button> <el-button size="mini" :loading="crud.delAllLoading" :disabled="crud.selections.length === 0" @click="toDelete(crud.selections)"><i class="iconfont icon-shanchu" />删除</el-button>
<el-button :loading="crud.downloadLoading" size="mini" :disabled="crud.selections.length === 0" @click="doExport(crud.selections)">
<el-button :loading="crud.downloadLoading" size="mini" :disabled="crud.selections.length === 0" @click="doExport('0',crud.selections)">
<i class="iconfont icon-daochu" /> <i class="iconfont icon-daochu" />
导出 导出
</el-button> </el-button>
<el-button v-if="selectedDocument.isType===4" :loading="allDownloadLoading" size="mini" :disabled="crud.selections.length !== 0" @click="doExport('1')">
<i class="iconfont icon-daochu" />
批量导出
</el-button>
</template> </template>
<template v-slot:rightButtonGroup> <template v-slot:rightButtonGroup>
<div> <div>
@ -74,7 +78,7 @@
:class="{ :class="{
'row-state row-packing': scope.row.read_type === '未传阅', 'row-state row-packing': scope.row.read_type === '未传阅',
'row-state row-binding state-active': scope.row.read_type === '传阅中', 'row-state row-binding state-active': scope.row.read_type === '传阅中',
'row-state row-physical state-active': scope.row.read_type === '已传阅',
'row-state row-physical state-active': scope.row.read_type === '已完成',
}" }"
> >
{{ scope.row[field.fieldName] }} {{ scope.row[field.fieldName] }}
@ -219,7 +223,8 @@ export default {
archivesType: null, archivesType: null,
search: '', search: '',
parentInfo: null, parentInfo: null,
pageType: null
pageType: null,
allDownloadLoading: false
} }
}, },
computed: { computed: {
@ -452,18 +457,25 @@ export default {
}) })
}, },
// //
doExport(datas) {
this.crud.downloadLoading = true
this.$confirm('此操作将导出所选数据' + '<span>你是否还要继续?</span>', '提示', {
doExport(type, datas) {
if (type === '0') {
this.crud.downloadLoading = true
} else {
this.allDownloadLoading = true
}
const tip = type === '0' ? '此操作将导出所选数据' : '此操作将批量导出所有数据'
this.$confirm(tip + '<span>你是否还要继续?</span>', '提示', {
confirmButtonText: '继续', confirmButtonText: '继续',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
dangerouslyUseHTMLString: true dangerouslyUseHTMLString: true
}).then(() => { }).then(() => {
const ids = [] const ids = []
datas.forEach(val => {
ids.push(val.id)
})
if (type === '0') {
datas.forEach(val => {
ids.push(val.id)
})
}
let documentId let documentId
if (this.selectedDocument.isType === 2) { if (this.selectedDocument.isType === 2) {
documentId = this.selectedDocument.id documentId = this.selectedDocument.id
@ -472,12 +484,22 @@ export default {
} }
const params = { const params = {
'documentId': documentId, 'documentId': documentId,
'ids': ids
'ids': ids,
'docDepartment': type === '1' ? this.selectedDocument.dictionaryName : null,
'archivesYear': type === '1' ? this.selectedDocument.label : null
}
exportFile(this.baseApi + '/api/documentArchives/downloadDocumentArchives?' + qs.stringify(params, { indices: false, allowDots: true, skipNulls: false }))
if (type === '0') {
this.crud.downloadLoading = false
} else {
this.allDownloadLoading = false
} }
exportFile(this.baseApi + '/api/documentArchives/downloadDocumentArchives?' + qs.stringify(params, { indices: false }))
this.crud.downloadLoading = false
}).catch(() => { }).catch(() => {
this.crud.downloadLoading = false
if (type === '0') {
this.crud.downloadLoading = false
} else {
this.allDownloadLoading = false
}
}) })
}, },
doPrint(datas) { doPrint(datas) {

2
src/views/archivesMIOD/miodLibrary/module/detail.vue

@ -364,7 +364,7 @@ export default {
return 'defalut-state' return 'defalut-state'
case '传阅中': case '传阅中':
return 'end-state' return 'end-state'
case '已传阅':
case '已完成':
return 'ing-state' return 'ing-state'
default: default:
return 'defalut-state' return 'defalut-state'

2
src/views/archivesMIOD/miodSearch/module/resultList.vue

@ -66,7 +66,7 @@
<p>来文字号{{ item.doc_no }}</p> <p>来文字号{{ item.doc_no }}</p>
</div> </div>
<div class="item-top-tag"> <div class="item-top-tag">
<div v-if="item.pass_location && item.pass_location !== ''" style="color: #0c0e1e; "><i class="iconfont icon-weizhi" style="color: #0348f3; font-weight: bold;" />所属位置</div>
<div v-if="item.pass_location && item.pass_location !== ''" style="color: #0c0e1e; "><i class="iconfont icon-weizhi" style="color: #0348f3; font-weight: bold;" />{{ item.pass_location }}</div>
<div class="item-top-status" style="padding-left: 10px;"> <div class="item-top-status" style="padding-left: 10px;">
<!-- <span v-if="item.isEntity && item.isEntity === 1">实体</span> <!-- <span v-if="item.isEntity && item.isEntity === 1">实体</span>
<span v-if="item.tid && item.tid !== null">标签</span> <span v-if="item.tid && item.tid !== null">标签</span>

59
src/views/home.vue

@ -50,11 +50,38 @@
<span class="right-top-line" /> <span class="right-top-line" />
<span class="left-bottom-line" /> <span class="left-bottom-line" />
<h3 class="home-item-title"> <h3 class="home-item-title">
服务器监控
办理时限提醒
</h3> </h3>
<!-- <div class="chart-wrapper"> -->
<serverProgress :system-data="systemData" />
<!-- </div> -->
<!-- <serverProgress :system-data="systemData" /> -->
<div class="home-flowable" style="height: calc(100% - 54px); overflow-x: hidden;">
<div class="home-flowable-list" style="height: calc(100% - 45px); overflow-y: auto; overflow-x: hidden;">
<el-table v-if="remindData.length !== 0" height="calc(100%)" :data="remindData" stripe style="width: 100%" :show-header="false">
<el-table-column prop="title" label="标题" min-width="450" show-overflow-tooltip>
<template slot-scope="scope">
<span>[{{ scope.row.reg_no }}] - {{ scope.row.maintitle }}</span>
</template>
</el-table-column>
<el-table-column prop="latest_time" label="申请时间" width="180" align="right">
<template slot-scope="scope">
<div>{{ scope.row.latest_time }}</div>
</template>
</el-table-column>
<!-- <el-table-column prop="status" label="状态" width="100" align="right">
<template slot-scope="scope">
<div>
<span v-if="scope.row.status==='逾期'" class="row-state cancel-state">{{ scope.row.status }}</span>
<span v-if="scope.row.status==='即将到期'" class="row-state soon-state">{{ scope.row.status }}</span>
<span v-if="scope.row.status==='传阅中'" class="row-state end-state">{{ scope.row.status }}</span>
</div>
</template>
</el-table-column> -->
</el-table>
<div v-else class="empty-main" style="height: 100%;">
<svg-icon icon-class="empty" class-name="empty-img" />
<p>暂无数据</p>
</div>
</div>
</div>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
@ -115,8 +142,8 @@ import PanelGroup from './dashboard/PanelGroup'
// import lendAcross from '@/views/components/echarts/lendAcross.vue' // import lendAcross from '@/views/components/echarts/lendAcross.vue'
import catePie from '@/views/components/echarts/catePie.vue' import catePie from '@/views/components/echarts/catePie.vue'
import typePie from '@/views/components/echarts/typePie.vue' import typePie from '@/views/components/echarts/typePie.vue'
import serverProgress from '@/views/components/echarts/serverProgress.vue'
import { FetchInitStatisBase, FetchDocumentTypeByTime, FetchDocumentByDocDepartment, FetchHomeBorrowLog } from '@/api/system/documentArchives'
// import serverProgress from '@/views/components/echarts/serverProgress.vue'
import { FetchInitStatisBase, FetchDocumentTypeByTime, FetchDocumentByDocDepartment, FetchHomeBorrowLog, FetchHomeRemindHandle } from '@/api/system/documentArchives'
import { FetchSystemInfo } from '@/api/home/cpu/index' import { FetchSystemInfo } from '@/api/home/cpu/index'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
@ -126,8 +153,8 @@ export default {
PanelGroup, PanelGroup,
// lendAcross, // lendAcross,
catePie, catePie,
typePie,
serverProgress
typePie
// serverProgress
}, },
data() { data() {
return { return {
@ -158,7 +185,8 @@ export default {
cpuPercentage: 0, cpuPercentage: 0,
memPercentage: 0, memPercentage: 0,
sysFilesPercentage: 0 sysFilesPercentage: 0
}
},
remindData: []
} }
}, },
computed: { computed: {
@ -169,6 +197,7 @@ export default {
created() { created() {
this.getTopData() this.getTopData()
this.getHomeBorrowLog() this.getHomeBorrowLog()
this.getHomeRemindHandle()
this.getSystemInfo() this.getSystemInfo()
this.getDocumentTypeByTime() this.getDocumentTypeByTime()
this.getDocumentByDocDepartment() this.getDocumentByDocDepartment()
@ -208,6 +237,18 @@ export default {
this.miodTableData = res this.miodTableData = res
}) })
}, },
getHomeRemindHandle() {
FetchHomeRemindHandle().then(res => {
console.log('remindData', res)
this.remindData = res.map(item => {
return {
reg_no: item[0],
maintitle: item[1],
latest_time: item[2]
}
})
})
},
getSystemInfo() { getSystemInfo() {
FetchSystemInfo().then(res => { FetchSystemInfo().then(res => {
console.log('res', res) console.log('res', res)

Loading…
Cancel
Save