修改UAT提出的问题

This commit is contained in:
范强强
2023-05-12 16:29:39 +08:00
parent f6fb1e6e94
commit 567b4fbb2e
4 changed files with 75 additions and 12 deletions
+1
View File
@@ -1833,4 +1833,5 @@ module.exports = {
masterProject:'Master Project', masterProject:'Master Project',
deliveryTime:'Delivery Time', deliveryTime:'Delivery Time',
expectedDeliveryTime:'Expected Delivery Time', expectedDeliveryTime:'Expected Delivery Time',
changeAuthor:'Change Author',
} }
+1
View File
@@ -1934,4 +1934,5 @@ module.exports = {
masterProject:'主项目', masterProject:'主项目',
deliveryTime:'交付时间', deliveryTime:'交付时间',
expectedDeliveryTime:'预计交付时间', expectedDeliveryTime:'预计交付时间',
changeAuthor:'更改作者',
} }
@@ -12,9 +12,9 @@
<div style="padding-top: 68px;background: #fff"> <div style="padding-top: 68px;background: #fff">
<div class="detail-content" style="padding: 30px"> <div class="detail-content" style="padding: 30px">
<div class="search-detail-wrap"> <div class="search-detail-wrap">
<a-form layout="inline" style="width: 1200px;margin: 0 auto" @keyup.enter.native="onSearch"> <a-form layout="inline" @keyup.enter.native="onSearch">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="10"> <a-col :span="6">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('searchContent')"> <div class="title-text" :title="$t('searchContent')">
<span>{{$t('searchContent')}}</span> <span>{{$t('searchContent')}}</span>
@@ -23,7 +23,7 @@
v-model="queryParam.searchStr"></a-input> v-model="queryParam.searchStr"></a-input>
</div> </div>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="6">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('releaseStatus')"> <div class="title-text" :title="$t('releaseStatus')">
<span>{{$t('releaseStatus')}}</span> <span>{{$t('releaseStatus')}}</span>
@@ -40,10 +40,29 @@
</a-select> </a-select>
</div> </div>
</a-col> </a-col>
<a-col :span="6">
<div class="box-title-text">
<div class="title-text" :title="$t('displayPermission')">
<span>{{$t('displayPermission')}}</span>
</div>
<a-select :placeholder="$t('PleaseSelect')+$t('displayPermission')"
v-model="queryParam.showPermissions">
<a-select-option v-for="(item, key) in projectNameList"
:key="key"
:value="item.value">
<span class="selectText" :title=" item.name ">
{{ item.name}}
</span>
</a-select-option>
</a-select>
</div>
</a-col>
<div style="text-align: right"> <div style="text-align: right">
<a-button class="box-button" @click="ResetSearch">{{$t('reset')}} <a-button class="box-button" @click="ResetSearch">{{$t('reset')}}
</a-button> </a-button>
<a-button class="box-button" style="margin-left: 8px" type="primary" @click="onSearch">{{$t('query')}}</a-button> <a-button class="box-button" style="margin-left: 8px" type="primary" @click="onSearch">
{{$t('query')}}
</a-button>
</div> </div>
</a-row> </a-row>
</a-form> </a-form>
@@ -75,6 +94,8 @@
{{item.createBy}} {{item.createBy}}
</div> </div>
<div class="text-text-right-text"> <div class="text-text-right-text">
<a style="margin-right: 10px" @click="changeAuthorClick(item)"
v-if="administrators">{{$t('changeAuthor')}}</a>
<a style="margin-right: 10px" @click="edit(item)" <a style="margin-right: 10px" @click="edit(item)"
v-if="userInfoQuery.username == item.createBy || administrators">{{$t('edit')}}</a> v-if="userInfoQuery.username == item.createBy || administrators">{{$t('edit')}}</a>
<a @click="deleteData(item)" <a @click="deleteData(item)"
@@ -103,15 +124,21 @@
</div> </div>
<JLoading :loading="loading">{{$t('dataLoading')}}</JLoading> <JLoading :loading="loading">{{$t('dataLoading')}}</JLoading>
</div> </div>
<SelectedBy ref="SelectedByRef" :isSingleChoice="true"
:title="$t('changeAuthor')" @SelectedByForm="SelectedByForm"></SelectedBy>
</div> </div>
</template> </template>
<script> <script>
import { getAction, postAction, putAction, deleteAction } from '@/api/manage' import { getAction, postAction, putAction, deleteAction } from '@/api/manage'
import SelectedBy from '@/components/SelectedBy/index'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
name: 'problemKnowledgeBaseRelease', name: 'problemKnowledgeBaseRelease',
components: {
SelectedBy
},
data() { data() {
return { return {
checkboxText: [], checkboxText: [],
@@ -129,14 +156,26 @@
value: 'Have released' value: 'Have released'
} }
], ],
projectNameList: [
{
value: 'Open',
name: this.$t('OpenOne')
},
{
value: 'Privacy',
name: this.$t('Privacy')
}
],
loading: false, loading: false,
administrators: false, administrators: false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download', downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
pageNo: 1, pageNo: 1,
userInfoQuery: {}, userInfoQuery: {},
formInline: {},
url: { url: {
getInfoList: '/problemKnowledgeBase/problemKnowledgeBaseEO/page', getInfoList: '/problemKnowledgeBase/problemKnowledgeBaseEO/page',
deleteBatch: '/problemKnowledgeBase/problemKnowledgeBaseEO/deleteBatch' deleteBatch: '/problemKnowledgeBase/problemKnowledgeBaseEO/deleteBatch',
edit: '/problemKnowledgeBase/problemKnowledgeBaseEO/edit'
} }
} }
}, },
@@ -155,6 +194,28 @@
}, },
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
changeAuthorClick(item) {
this.formInline = item
this.$refs.SelectedByRef.getPush()
},
//转办接口
SelectedByForm(userIds, name) {
let query = {
createBy: name,
id: this.formInline.id
}
putAction(this.url.edit, query).then((res) => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$refs.SelectedByRef.visible = false
this.$refs.SelectedByRef.submitLoading = false
this.getList()
} else {
this.$refs.SelectedByRef.submitLoading = false
this.$message.warning(this.$t('operationFailed'))
}
})
},
pageOnChange(page, pageSize) { pageOnChange(page, pageSize) {
this.pageNo = page this.pageNo = page
this.getList() this.getList()
@@ -252,7 +313,7 @@
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
@import'~@assets/less/common.less'; @import '~@assets/less/common.less';
.doc-detail { .doc-detail {
background: #fff; background: #fff;
@@ -328,7 +389,7 @@
.text-text-right { .text-text-right {
padding: 19px 19px; padding: 19px 19px;
width: calc(100% - 540px); width: calc(100% - 570px);
box-sizing: border-box; box-sizing: border-box;
/*margin-left: 38px;*/ /*margin-left: 38px;*/
} }
@@ -338,7 +399,7 @@
height: 100%; height: 100%;
text-align: center; text-align: center;
position: absolute; position: absolute;
right: 300px; right: 330px;
top: 50%; top: 50%;
transform: translate-Y(-50%); transform: translate-Y(-50%);
} }
@@ -348,7 +409,7 @@
height: 100%; height: 100%;
text-align: center; text-align: center;
position: absolute; position: absolute;
right: 420px; right: 450px;
top: 50%; top: 50%;
transform: translate-Y(-50%); transform: translate-Y(-50%);
} }
@@ -358,13 +419,13 @@
height: 100%; height: 100%;
text-align: center; text-align: center;
position: absolute; position: absolute;
right: 180px; right: 210px;
top: 50%; top: 50%;
transform: translate-Y(-50%); transform: translate-Y(-50%);
} }
.text-text-right-text { .text-text-right-text {
width: 180px; width: 210px;
height: 100%; height: 100%;
text-align: center; text-align: center;
position: absolute; position: absolute;
@@ -1,7 +1,7 @@
<template> <template>
<div class="monthlyReportRegulations-box"> <div class="monthlyReportRegulations-box">
<div class="header-text"> <div class="header-text">
<div class="header-text-left">{{this.$t('monthlyReportRegulations')}}</div> <div class="header-text-left">{{this.$t('problemKnowledgeBase')}}</div>
<div class="header-text-right" @click="moreClick"> <div class="header-text-right" @click="moreClick">
More More
<img src="../../../assets/gengduo.png" alt=""> <img src="../../../assets/gengduo.png" alt="">