修改UAT提出的问题
This commit is contained in:
@@ -1833,4 +1833,5 @@ module.exports = {
|
||||
masterProject:'Master Project',
|
||||
deliveryTime:'Delivery Time',
|
||||
expectedDeliveryTime:'Expected Delivery Time',
|
||||
changeAuthor:'Change Author',
|
||||
}
|
||||
@@ -1934,4 +1934,5 @@ module.exports = {
|
||||
masterProject:'主项目',
|
||||
deliveryTime:'交付时间',
|
||||
expectedDeliveryTime:'预计交付时间',
|
||||
changeAuthor:'更改作者',
|
||||
}
|
||||
+72
-11
@@ -12,9 +12,9 @@
|
||||
<div style="padding-top: 68px;background: #fff">
|
||||
<div class="detail-content" style="padding: 30px">
|
||||
<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-col :span="10">
|
||||
<a-col :span="6">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text" :title="$t('searchContent')">
|
||||
<span>{{$t('searchContent')}}</span>
|
||||
@@ -23,7 +23,7 @@
|
||||
v-model="queryParam.searchStr"></a-input>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="10">
|
||||
<a-col :span="6">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text" :title="$t('releaseStatus')">
|
||||
<span>{{$t('releaseStatus')}}</span>
|
||||
@@ -40,10 +40,29 @@
|
||||
</a-select>
|
||||
</div>
|
||||
</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">
|
||||
<a-button class="box-button" @click="ResetSearch">{{$t('reset')}}
|
||||
</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>
|
||||
</a-row>
|
||||
</a-form>
|
||||
@@ -75,6 +94,8 @@
|
||||
{{item.createBy}}
|
||||
</div>
|
||||
<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)"
|
||||
v-if="userInfoQuery.username == item.createBy || administrators">{{$t('edit')}}</a>
|
||||
<a @click="deleteData(item)"
|
||||
@@ -103,15 +124,21 @@
|
||||
</div>
|
||||
<JLoading :loading="loading">{{$t('dataLoading')}}</JLoading>
|
||||
</div>
|
||||
<SelectedBy ref="SelectedByRef" :isSingleChoice="true"
|
||||
:title="$t('changeAuthor')" @SelectedByForm="SelectedByForm"></SelectedBy>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAction, postAction, putAction, deleteAction } from '@/api/manage'
|
||||
import SelectedBy from '@/components/SelectedBy/index'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'problemKnowledgeBaseRelease',
|
||||
components: {
|
||||
SelectedBy
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
checkboxText: [],
|
||||
@@ -129,14 +156,26 @@
|
||||
value: 'Have released'
|
||||
}
|
||||
],
|
||||
projectNameList: [
|
||||
{
|
||||
value: 'Open',
|
||||
name: this.$t('OpenOne')
|
||||
},
|
||||
{
|
||||
value: 'Privacy',
|
||||
name: this.$t('Privacy')
|
||||
}
|
||||
],
|
||||
loading: false,
|
||||
administrators: false,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
pageNo: 1,
|
||||
userInfoQuery: {},
|
||||
formInline: {},
|
||||
url: {
|
||||
getInfoList: '/problemKnowledgeBase/problemKnowledgeBaseEO/page',
|
||||
deleteBatch: '/problemKnowledgeBase/problemKnowledgeBaseEO/deleteBatch'
|
||||
deleteBatch: '/problemKnowledgeBase/problemKnowledgeBaseEO/deleteBatch',
|
||||
edit: '/problemKnowledgeBase/problemKnowledgeBaseEO/edit'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -155,6 +194,28 @@
|
||||
},
|
||||
methods: {
|
||||
...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) {
|
||||
this.pageNo = page
|
||||
this.getList()
|
||||
@@ -252,7 +313,7 @@
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
@import'~@assets/less/common.less';
|
||||
@import '~@assets/less/common.less';
|
||||
|
||||
.doc-detail {
|
||||
background: #fff;
|
||||
@@ -328,7 +389,7 @@
|
||||
|
||||
.text-text-right {
|
||||
padding: 19px 19px;
|
||||
width: calc(100% - 540px);
|
||||
width: calc(100% - 570px);
|
||||
box-sizing: border-box;
|
||||
/*margin-left: 38px;*/
|
||||
}
|
||||
@@ -338,7 +399,7 @@
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
right: 300px;
|
||||
right: 330px;
|
||||
top: 50%;
|
||||
transform: translate-Y(-50%);
|
||||
}
|
||||
@@ -348,7 +409,7 @@
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
right: 420px;
|
||||
right: 450px;
|
||||
top: 50%;
|
||||
transform: translate-Y(-50%);
|
||||
}
|
||||
@@ -358,13 +419,13 @@
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
right: 180px;
|
||||
right: 210px;
|
||||
top: 50%;
|
||||
transform: translate-Y(-50%);
|
||||
}
|
||||
|
||||
.text-text-right-text {
|
||||
width: 180px;
|
||||
width: 210px;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="monthlyReportRegulations-box">
|
||||
<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">
|
||||
More
|
||||
<img src="../../../assets/gengduo.png" alt="">
|
||||
|
||||
Reference in New Issue
Block a user