修改禅道已知bug

This commit is contained in:
qq787203167
2022-06-30 15:36:28 +08:00
parent 93033faac8
commit 6aa0c8870e
3 changed files with 67 additions and 52 deletions
@@ -1220,10 +1220,10 @@
this.getList() this.getList()
}, },
searchReset() { searchReset() {
this.queryParam = {}
this.$refs.globalAdvancedQueryRef.resetLine() this.$refs.globalAdvancedQueryRef.resetLine()
this.$refs.globalAdvancedQueryRef.emitCallback() this.$refs.globalAdvancedQueryRef.emitCallback()
this.queryParam = {} // this.getList()
this.getList()
}, },
addModelList() { addModelList() {
this.getList() this.getList()
@@ -1258,8 +1258,8 @@
roleCode: roleCode roleCode: roleCode
} }
this.loading = true this.loading = true
this.getRoleByUserId()
getAction(this.url.list, query).then((res) => { getAction(this.url.list, query).then((res) => {
this.getRoleByUserId()
if (res.success) { if (res.success) {
this.dataSource = res.result this.dataSource = res.result
this.loading = false this.loading = false
@@ -107,10 +107,10 @@
<a-icon type="plus"/> <a-icon type="plus"/>
{{$t('newlyAdded')}} {{$t('newlyAdded')}}
</div> </div>
<div @click="handleDel" class="operator-text" v-has="'projectLibraryBase:deleteBatch'"> <!-- <div @click="handleDel" class="operator-text" v-has="'projectLibraryBase:deleteBatch'">-->
<a-icon type="delete"/> <!-- <a-icon type="delete"/>-->
{{$t('BatchDelete')}} <!-- {{$t('BatchDelete')}}-->
</div> <!-- </div>-->
</div> </div>
<div> <div>
<a-table <a-table
@@ -129,7 +129,10 @@
</span> </span>
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<!-- <a class="text-operation" @click="edit(record)">{{$t('edit')}}</a>--> <!-- <a class="text-operation" @click="edit(record)">{{$t('edit')}}</a>-->
<a class="text-operation" v-has="'projectLibraryBase:delete'" @click="deleteLib(record)">{{$t('deleteLib')}}</a> <a class="text-operation"
v-has="'projectLibraryBase:delete'"
v-if="record.createBy == userInfoQuery.username"
@click="deleteLib(record)">{{$t('deleteLib')}}</a>
<!-- <a class="text-operation" @click="entryNameClick(record)">{{$t('see')}}</a>--> <!-- <a class="text-operation" @click="entryNameClick(record)">{{$t('see')}}</a>-->
</span> </span>
</a-table> </a-table>
@@ -153,6 +156,7 @@
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage' import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
import addModel from '../components/addModel' import addModel from '../components/addModel'
import PersonnelSelection from '@/components/PersonnelSelection/index' import PersonnelSelection from '@/components/PersonnelSelection/index'
import { mapGetters } from 'vuex'
export default { export default {
name: 'index', name: 'index',
@@ -240,13 +244,16 @@
scopedSlots: { customRender: 'operation' } scopedSlots: { customRender: 'operation' }
} }
], ],
userInfoQuery: {},
queryParam: {} queryParam: {}
} }
}, },
mounted() { mounted() {
this.getList() this.getList()
this.userInfoQuery = this.userInfo()
}, },
methods: { methods: {
...mapGetters(['userInfo']),
handleToggleSearch() { handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus this.toggleSearchStatus = !this.toggleSearchStatus
}, },
@@ -71,11 +71,11 @@
<div class="process-content-right-xian"></div> <div class="process-content-right-xian"></div>
<div class="process-content-content" :style="val.left" <div class="process-content-content" :style="val.left"
v-for="(val,indexOne) in item.data[0]" :key="indexOne"> v-for="(val,indexOne) in item.data[0]" :key="indexOne">
<div class="process-content-right-top" :title="val.name">{{val.name}}</div>
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft">
<template slot="title"> <template slot="title">
<span>{{val.time.slice(0,11)}}</span> <span>{{val.time.slice(0,11)}}</span>
</template> </template>
<div class="process-content-right-top">{{val.name}}</div>
<img v-if="val.status == 1" src="../../../assets/done.svg" class="process-content-left" <img v-if="val.status == 1" src="../../../assets/done.svg" class="process-content-left"
alt=""> alt="">
<img v-else-if="val.status == 2" src="../../../assets/open.svg" <img v-else-if="val.status == 2" src="../../../assets/open.svg"
@@ -242,6 +242,7 @@
this.handlingTime = moment(new Date()).format('YYYY-MM-DD') this.handlingTime = moment(new Date()).format('YYYY-MM-DD')
}, },
methods: { methods: {
getTimeline() { getTimeline() {
let query = { let query = {
startTime: this.startTime, startTime: this.startTime,
@@ -506,7 +507,7 @@
} }
.box-top-content-left { .box-top-content-left {
width: 160px; width: 140px;
float: left; float: left;
padding-top: 100px; padding-top: 100px;
margin-right: 20px; margin-right: 20px;
@@ -515,8 +516,8 @@
.box-top-content-left-text { .box-top-content-left-text {
color: #191E29; color: #191E29;
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 12px;
height: 104px; height: 84px;
letter-spacing: 0px; letter-spacing: 0px;
text-align: left; text-align: left;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -525,7 +526,7 @@
} }
.box-top-content-right { .box-top-content-right {
width: calc(100% - 180px); width: calc(100% - 160px);
float: left; float: left;
} }
@@ -544,7 +545,7 @@
padding-left: 10px; padding-left: 10px;
color: #54565A; color: #54565A;
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 13px;
line-height: 36px; line-height: 36px;
letter-spacing: 0px; letter-spacing: 0px;
text-align: center; text-align: center;
@@ -561,7 +562,7 @@
.process-content { .process-content {
position: relative; position: relative;
height: 104px; height: 84px;
.process-content-content { .process-content-content {
background: #fff; background: #fff;
@@ -582,15 +583,22 @@
} }
.process-content-right-top { .process-content-right-top {
font-size: 14px; font-size: 12px;
color: #040B29; color: #040B29;
max-width: 155px; width: 50px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden; overflow: hidden;
position: absolute; position: absolute;
top: -8px; top: -14px;
left: 50%; left: 50%;
line-height: 1.2;
display: -webkit-box;
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }