Compare commits

..

No commits in common. "82718e3d02189597ec886b00ca12fa8a1d1910b6" and "ccebe3d09c655e8412178c37476479842ac699f5" have entirely different histories.

6 changed files with 92 additions and 109 deletions

View File

@ -1,7 +1,6 @@
<template> <template>
<div> <div>
<el-input v-model="showDeptName" :placeholder="placeholder" @focus="deptDialog" readonly <el-input v-model="showDeptName" :placeholder="placeholder" @focus="deptDialog">
@paste.native.capture.prevent="handlePaste">
<el-button slot="append" icon="el-icon-search" @click="deptDialog"></el-button> <el-button slot="append" icon="el-icon-search" @click="deptDialog"></el-button>
</el-input> </el-input>
<el-input :value="value" style="display: none"></el-input> <el-input :value="value" style="display: none"></el-input>
@ -64,9 +63,6 @@ export default {
} }
}, },
methods: { methods: {
handlePaste() {
return false
},
deptDialog() { deptDialog() {
this.expandedKeys = null this.expandedKeys = null
if (this.$refs.tree) { if (this.$refs.tree) {

View File

@ -41,8 +41,7 @@
</el-menu-item> --> </el-menu-item> -->
</el-menu> </el-menu>
<el-menu class="aui-navbar__menu" mode="horizontal"> <el-menu class="aui-navbar__menu" mode="horizontal">
<!-- 暂时隐藏切换语言--勿删 --> <el-menu-item index="1">
<!-- <el-menu-item index="1">
<el-dropdown placement="bottom" :show-timeout="0"> <el-dropdown placement="bottom" :show-timeout="0">
<el-button size="mini">{{ $t("_lang") }}</el-button> <el-button size="mini">{{ $t("_lang") }}</el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
@ -54,14 +53,14 @@
> >
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</el-menu-item> --> </el-menu-item>
<!-- <el-menu-item index="2"> <el-menu-item index="2">
<a href="//115.28.200.119:9091" target="_blank"> <a href="//115.28.200.119:9091" target="_blank">
<svg class="icon-svg aui-navbar__icon-menu" aria-hidden="true"> <svg class="icon-svg aui-navbar__icon-menu" aria-hidden="true">
<use xlink:href="#icon-earth"></use> <use xlink:href="#icon-earth"></use>
</svg> </svg>
</a> </a>
</el-menu-item> --> </el-menu-item>
<el-menu-item index="3" v-if="$hasPermission('sys:notice:all')"> <el-menu-item index="3" v-if="$hasPermission('sys:notice:all')">
<el-badge :is-dot="messageTip"> <el-badge :is-dot="messageTip">
<a href="#" @click="myNoticeRouter()" <a href="#" @click="myNoticeRouter()"

View File

@ -8,11 +8,11 @@
--> -->
<template> <template>
<div class="aui-theme-tools" :class="{ 'aui-theme-tools--open': isOpen }"> <div class="aui-theme-tools" :class="{ 'aui-theme-tools--open': isOpen }">
<!-- <div class="aui-theme-tools__toggle" @click="isOpen = !isOpen"> <div class="aui-theme-tools__toggle" @click="isOpen = !isOpen">
<svg class="icon-svg" aria-hidden="true"> <svg class="icon-svg" aria-hidden="true">
<use xlink:href="#icon-setting"></use> <use xlink:href="#icon-setting"></use>
</svg> </svg>
</div> --> </div>
<div class="aui-theme-tools__content"> <div class="aui-theme-tools__content">
<div class="aui-theme-tools__item"> <div class="aui-theme-tools__item">
<h3>Navbar</h3> <h3>Navbar</h3>

View File

@ -45,27 +45,28 @@
<el-form-item> <el-form-item>
<span v-if="this.departmentId === 1 || this.departmentId === 3">上架部门</span> <span v-if="this.departmentId === 1 || this.departmentId === 3">上架部门</span>
<span v-else>申请部门</span> <span v-else>申请部门</span>
<el-select v-model="abilityDepartment" placeholder="请选择部门" filterable clearable> <el-select
v-model="abilityDepartment"
placeholder="请选择部门"
filterable
clearable
>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option v-for="item in departmentSelects" :key="item.label" :label="item.label" :value="item.value" <el-option v-for="item in departmentSelects" :key="item.label" :label="item.label" :value="item.value" v-bind="item"></el-option>
v-bind="item"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!--类型--> <!--类型-->
<el-form-item> <el-form-item>
<span>类型</span> <span>类型</span>
<el-select v-if="this.departmentId === 2 || this.departmentId === 4" v-model="abilityType" placeholder="请选择类型" <el-select v-if="this.departmentId === 2 || this.departmentId === 4" v-model="abilityType" placeholder="请选择类型" clearable>
clearable>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option v-for="(item, i) in typeOptions" :key="`${item.name}${i}`" :label="item.name" :value="item.name" <el-option v-for="(item, i) in typeOptions" :key="`${item.name}${i}`" :label="item.name" :value="item.name" v-bind="item">
v-bind="item">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-else v-model="abilityType" placeholder="请选择类型" clearable> <el-select v-else v-model="abilityType" placeholder="请选择类型" clearable>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option v-for="(item, i) in typeOptions1" :key="`${item.name}${i}`" :label="item.name" :value="item.name" <el-option v-for="(item, i) in typeOptions1" :key="`${item.name}${i}`" :label="item.name" :value="item.name" v-bind="item">
v-bind="item">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -77,12 +78,11 @@
<!--操作按钮重置--> <!--操作按钮重置-->
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetDataList()">{{ <el-button type="primary" @click="resetDataList()">{{
$t('reset') $t('reset')
}}</el-button> }}</el-button>
</el-form-item> </el-form-item>
<!-- 导出 --> <!-- 导出 -->
<a class='export' <a class='export' :href="exportExcel+exportExcelType+'?'+exportExcelCondition+'&token='+token">导出全部</a>
:href="exportExcel + exportExcelType + '?' + exportExcelCondition + '&token=' + token">导出全部</a>
</el-form> </el-form>
<el-card shadow="never" class="aui-card--fill" v-if="homeIsShow"> <el-card shadow="never" class="aui-card--fill" v-if="homeIsShow">
<div class="mod-demand__bsdemand"> <div class="mod-demand__bsdemand">
@ -117,8 +117,7 @@
能力使用明细 能力使用明细
</span> --> </span> -->
<template v-if="detailFlag"> <template v-if="detailFlag">
<el-checkbox v-model="checked" @change='chagneCheckbox' <el-checkbox v-model="checked" @change='chagneCheckbox' style="position: absolute;right: 150px;margin-top: -15px;">隐藏空数据</el-checkbox>
style="position: absolute;right: 150px;margin-top: -15px;">隐藏空数据</el-checkbox>
<span class="detail-button" @click="goToDetail()"> <span class="detail-button" @click="goToDetail()">
明细 明细
</span> </span>
@ -169,10 +168,14 @@
</el-table> </el-table>
<!--明细表--> <!--明细表-->
<el-table :data="tableData" :header-cell-style="{ textAlign: 'center', height: '96px' }" <el-table
:cell-style="{ textAlign: 'center' }" style="width: 100%" :data="tableData"
v-show="this.departmentId === 3 || this.departmentId === 4"> :header-cell-style="{ textAlign: 'center',height:'96px' }"
<el-table-column v-if="this.departmentId === 3" prop="deptName" label="上架部门" min-width="100%"> :cell-style="{ textAlign: 'center' }"
style="width: 100%"
v-show="this.departmentId === 3 || this.departmentId === 4"
>
<el-table-column v-if="this.departmentId === 3" prop="deptName" label="上架部门" min-width="100%">
</el-table-column> </el-table-column>
<el-table-column v-if="this.departmentId === 4" prop="deptName" label="申请部门" min-width="100%"> <el-table-column v-if="this.departmentId === 4" prop="deptName" label="申请部门" min-width="100%">
</el-table-column> </el-table-column>
@ -230,7 +233,7 @@ import Template from '../devtools/template.vue'
// }) // })
export default { export default {
components: { componentServices, applicationResources, ComponentUsed, AbilityDetail, Template }, components: { componentServices, applicationResources, ComponentUsed, AbilityDetail, Template },
data() { data () {
return { return {
checked: false, checked: false,
departmentSelects: [], departmentSelects: [],
@ -363,7 +366,7 @@ export default {
endDate: '' // endDate: '' //
} }
}, },
created() { created () {
this.$http.get('/sys/dept/all').then(res => { this.$http.get('/sys/dept/all').then(res => {
// console.log('=========>', res) // console.log('=========>', res)
this.departmentSelects = [] this.departmentSelects = []
@ -384,7 +387,7 @@ export default {
// const date2 = new Date(year2, month2, day2, 7) // const date2 = new Date(year2, month2, day2, 7)
// this.value1.unshift(date2) // this.value1.unshift(date2)
}, },
mounted() { mounted () {
// this.getFirstTree() // this.getFirstTree()
console.log('this.$route.query.Id;', this.$route.query.type) console.log('this.$route.query.Id;', this.$route.query.type)
if (this.$route.query.type === 'use') { if (this.$route.query.type === 'use') {
@ -404,7 +407,7 @@ export default {
// ...mapState(['departmentSelects']) // ...mapState(['departmentSelects'])
}, },
methods: { methods: {
chagneCheckbox() { chagneCheckbox () {
if (this.checked) { if (this.checked) {
this.tableData = this.tableDataClone.filter(val => val.count !== 0) this.tableData = this.tableDataClone.filter(val => val.count !== 0)
this.total = this.tableData.length this.total = this.tableData.length
@ -413,10 +416,10 @@ export default {
this.total = this.tableData.length this.total = this.tableData.length
} }
}, },
closeModal() { closeModal () {
this.detailsVisible = false this.detailsVisible = false
}, },
handleCurrentChange(val) { handleCurrentChange (val) {
console.log('val------------>', val) console.log('val------------>', val)
this.currentPage = val this.currentPage = val
// todo // todo
@ -433,7 +436,7 @@ export default {
// this.getReleaseTree(val) // this.getReleaseTree(val)
// } // }
}, },
getTreeName(data) { getTreeName (data) {
this.$http this.$http
.get('/census/center/v3/treeList/', { .get('/census/center/v3/treeList/', {
params: { params: {
@ -463,7 +466,7 @@ export default {
// }, // },
// -- // --
getFirstTree(page) { getFirstTree (page) {
if (this.examineStatus == '-1') { if (this.examineStatus == '-1') {
this.status = '' this.status = ''
} else if (this.examineStatus == '0') { } else if (this.examineStatus == '0') {
@ -529,7 +532,7 @@ export default {
}) })
}, },
// 使-使 // 使-使
getSecondTree(page) { getSecondTree (page) {
if (this.examineStatus == '-1') { if (this.examineStatus == '-1') {
this.status = '' this.status = ''
} else if (this.examineStatus == '0') { } else if (this.examineStatus == '0') {
@ -595,7 +598,7 @@ export default {
}) })
}, },
// //
detailClick(row) { detailClick (row) {
this.detailParamss = {} this.detailParamss = {}
const applyNumber = row.applyNumber const applyNumber = row.applyNumber
if (this.departmentId == 3) { // if (this.departmentId == 3) { //
@ -637,7 +640,7 @@ export default {
} }
}, },
// //
getOneDetail(page) { getOneDetail (page) {
var passAndReview = '' // "" var passAndReview = '' // ""
if (this.examineStatus == '-1') { if (this.examineStatus == '-1') {
this.status = '' this.status = ''
@ -676,7 +679,7 @@ export default {
}) })
}, },
// 使 使 // 使 使
getTwoDetail(page) { getTwoDetail (page) {
var passAndReview = '' // "" var passAndReview = '' // ""
if (this.examineStatus == '-1') { if (this.examineStatus == '-1') {
this.status = '' this.status = ''
@ -713,7 +716,7 @@ export default {
}) })
}) })
}, },
getReleaseTree(page) { getReleaseTree (page) {
this.$http this.$http
.get('/census/center/selectApplyDeptDetailTypeCountList/', { .get('/census/center/selectApplyDeptDetailTypeCountList/', {
params: { params: {
@ -760,7 +763,7 @@ export default {
}) })
}, },
// 使 // 使
getUsedTree() { getUsedTree () {
this.$http this.$http
.get('/census/center/v3/resourceReleaseDetails/', { .get('/census/center/v3/resourceReleaseDetails/', {
params: { params: {
@ -774,7 +777,7 @@ export default {
this.tableData = res.data.data.list this.tableData = res.data.data.list
}) })
}, },
handleClick(row) { handleClick (row) {
if (this.choseId === 0) { if (this.choseId === 0) {
if (this.departmentId === 1) { if (this.departmentId === 1) {
this.homeIsShow = false this.homeIsShow = false
@ -795,7 +798,7 @@ export default {
} }
}, },
// //
choseBtn(index) { choseBtn (index) {
this.choseId = index this.choseId = index
this.handleChose(1) this.handleChose(1)
}, },
@ -811,7 +814,7 @@ export default {
// } // }
// }, // },
// or使 // or使
handleChose(index) { handleChose (index) {
this.checked = false this.checked = false
this.departmentId = index this.departmentId = index
this.currentPage=1 this.currentPage=1
@ -855,20 +858,20 @@ export default {
} }
}, },
// //
handleSizeChange(val) { handleSizeChange (val) {
console.log(`每页 ${val}`) console.log(`每页 ${val}`)
}, },
closeChild() { closeChild () {
this.homeIsShow = true this.homeIsShow = true
this.servicesIsShow = false this.servicesIsShow = false
this.handleCurrentChange(1) this.handleCurrentChange(1)
}, },
closeChild2() { closeChild2 () {
this.homeIsShow = true this.homeIsShow = true
this.UsedIsShow = false this.UsedIsShow = false
this.handleCurrentChange(1) this.handleCurrentChange(1)
}, },
closeApplication() { closeApplication () {
this.homeIsShow = true this.homeIsShow = true
this.resourcesIsShow = false this.resourcesIsShow = false
this.handleCurrentChange(1) this.handleCurrentChange(1)
@ -888,7 +891,7 @@ export default {
} }
}, },
// //
goToBack() { goToBack () {
this.checked = false this.checked = false
this.currentPage=1, this.currentPage=1,
this.pageSize=10, this.pageSize=10,
@ -904,7 +907,7 @@ export default {
} }
}, },
// //
getDataList() { getDataList () {
if (this.value1 && this.value1.length > 0) { if (this.value1 && this.value1.length > 0) {
this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd') this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd')
this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd') this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd')
@ -935,7 +938,7 @@ export default {
} }
}, },
// //
resetDataList() { resetDataList () {
this.value1 = [] this.value1 = []
this.startDate = '' this.startDate = ''
this.endDate = '' this.endDate = ''
@ -973,7 +976,7 @@ export default {
} }
}, },
// //
handleTime(time, format) { handleTime (time, format) {
if (time == null || time == undefined || time == '') { if (time == null || time == undefined || time == '') {
return '' return ''
} }
@ -1167,16 +1170,24 @@ input::placeholder {
background: #fff; background: #fff;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
color: #000; color: #000;
color: #FFF;
background-color: #0058e1;
border-color: #0058e1;
text-decoration: none;
} }
.export:hover { .export:hover {
background: #65a5f9; border-color: #c5ddfd;
border-color: #65a5f9; background-color: #ecf4fe;
color: #FFF; color: #0058e1;
text-decoration: none;
} }
.export:active {
border-color: #c5ddfd;
background-color: #ecf4fe;
color: #0058e1;
text-decoration: none;
}
.export:visited {
color: #fff;
text-decoration: none;
}
</style> </style>

View File

@ -15,47 +15,37 @@
<el-button type="danger" @click="deleteHandle()">{{ $t('deleteBatch') }}</el-button> <el-button type="danger" @click="deleteHandle()">{{ $t('deleteBatch') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" <el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;">
style="width: 100%;">
<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
<el-table-column prop="title" :label="$t('notice.title')" header-align="center" align="center" width="180"> <el-table-column prop="title" :label="$t('notice.title')" header-align="center" align="center"></el-table-column>
</el-table-column>
<!-- 内容 prop="content"-->
<el-table-column :label="$t('news.content')" header-align="center" align="center">
<template slot-scope="scope">
<el-tooltip effect="dark" :content="scope.row.content" placement="top">
<span class="text-ellipsis">{{ scope.row.content }}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="type" :label="$t('notice.type')" header-align="center" align="center" width="150"> <el-table-column prop="type" :label="$t('notice.type')" header-align="center" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
{{ $getDictLabel("notice_type", scope.row.type) }} {{ $getDictLabel("notice_type", scope.row.type) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="senderName" :label="$t('notice.senderName')" header-align="center" align="center" <el-table-column prop="senderName" :label="$t('notice.senderName')" header-align="center" align="center" width="150"></el-table-column>
width="150"></el-table-column> <el-table-column prop="senderDate" :label="$t('notice.senderDate')" header-align="center" align="center" width="170"></el-table-column>
<el-table-column prop="senderDate" :label="$t('notice.senderDate')" header-align="center" align="center"
width="170"></el-table-column>
<el-table-column prop="status" :label="$t('notice.status')" header-align="center" align="center" width="130"> <el-table-column prop="status" :label="$t('notice.status')" header-align="center" align="center" width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.status === 0" size="small" type="danger">{{ $t('notice.status0') }}</el-tag> <el-tag v-if="scope.row.status === 0" size="small" type="danger">{{ $t('notice.status0') }}</el-tag>
<el-tag v-else size="small" type="success">{{ $t('notice.status1') }}</el-tag> <el-tag v-else size="small" type="success">{{ $t('notice.status1') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.status === 0" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)"> <el-button v-if="scope.row.status === 0" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button>
{{ $t('update') }}</el-button> <el-button v-if="scope.row.status === 1" type="text" size="small" @click="viewHandle(scope.row)">{{ $t('notice.view') }}</el-button>
<el-button v-if="scope.row.status === 1" type="text" size="small" @click="viewHandle(scope.row)">{{
$t('notice.view')
}}</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination :current-page="page" :page-sizes="[10, 20, 50, 100]" :page-size="limit" :total="total" <el-pagination
layout="total, sizes, prev, pager, next, jumper" @size-change="pageSizeChangeHandle" :current-page="page"
:page-sizes="[10, 20, 50, 100]"
:page-size="limit"
:total="total"
layout="total, sizes, prev, pager, next, jumper"
@size-change="pageSizeChangeHandle"
@current-change="pageCurrentChangeHandle"> @current-change="pageCurrentChangeHandle">
</el-pagination> </el-pagination>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
@ -70,7 +60,7 @@ import AddOrUpdate from './notice-add-or-update'
import { addDynamicRoute } from '@/router' import { addDynamicRoute } from '@/router'
export default { export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
data() { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/sys/notice/page', getDataListURL: '/sys/notice/page',
@ -87,7 +77,7 @@ export default {
AddOrUpdate AddOrUpdate
}, },
methods: { methods: {
viewHandle(row) { viewHandle (row) {
// //
const routeParams = { const routeParams = {
routeName: `${this.$route.name}__${row.id}`, routeName: `${this.$route.name}__${row.id}`,
@ -103,13 +93,3 @@ export default {
} }
} }
</script> </script>
<style scoped>
.text-ellipsis {
/*1. 先强制一行内显示文本*/
white-space: nowrap;
/*2. 超出的部分隐藏*/
overflow: hidden;
/*3. 文字用省略号替代超出的部分*/
text-overflow: ellipsis;
}
</style>

View File

@ -208,7 +208,6 @@
onBeforeUnmount, onBeforeUnmount,
h, h,
defineProps, defineProps,
nextTick,
} from 'vue' } from 'vue'
import { import {
getMyProcessInstancePage, getMyProcessInstancePage,
@ -253,19 +252,16 @@
typeList.value.push('设备申请') typeList.value.push('设备申请')
} }
const typeStrObj = { const typeStrObj = {
'能力上架': 'resourcemountapply', 能力上架: 'resourcemountapply',
'能力下架': 'resourcundercarriageapply', 能力下架: 'resourcundercarriageapply',
'能力需求': 'abilitydemandapply', 能力需求: 'abilitydemandapply',
'需求评论': 'comment_review', 需求评论: 'comment_review',
} }
let tabList = ref(['全部', '审核中', '审核完成']) let tabList = ref(['全部', '审核中', '审核完成'])
const contentList = reactive({ data: [] }) const contentList = reactive({ data: [] })
let tabIndex = ref(0) let tabIndex = ref(0)
let typeIndex = ref(0) let typeIndex = ref(0)
let typeName = ref(typeList.value[0]) let typeName = ref(typeList.value[0])
if(router.currentRoute.value.query.tabTypeName) {
typeName.value = router.currentRoute.value.query.tabTypeName
}
const videoVisible = ref(false) const videoVisible = ref(false)
const numFlag = ref(true) const numFlag = ref(true)
const columns = ref([ const columns = ref([
@ -310,7 +306,7 @@
ended.value = '' ended.value = ''
page.value = 1 page.value = 1
typeIndex.value = index typeIndex.value = index
typeName.value = item; typeName.value = item
getApplyList() getApplyList()
} }
@ -569,6 +565,7 @@
params.processDefinitionKey = processDefinitionKey.value params.processDefinitionKey = processDefinitionKey.value
getMyProcessInstancePage(params).then((res) => { getMyProcessInstancePage(params).then((res) => {
contentList.data = [] contentList.data = []
// initNum(name.value)
console.log(res.data.data.list) console.log(res.data.data.list)
contentList.data = res.data.data.list contentList.data = res.data.data.list
total.value = res.data.data.total total.value = res.data.data.total