修改禅道已知bug

This commit is contained in:
sunFlower
2022-10-13 11:54:49 +08:00
parent eff5668044
commit 00e513b32a
3 changed files with 74 additions and 21 deletions
@@ -179,7 +179,10 @@
</a-row> </a-row>
</a-form-model> </a-form-model>
<div class="submit-button"> <div class="submit-button">
<a-button class="box-button" type="primary" @click="submit">{{$t('submit')}}</a-button> <a-button class="box-button" type="primary" @click="submit('Draft')">
{{$t('tempSave')}}
</a-button>
<a-button class="box-button" type="primary" @click="submit('Have released')">{{$t('release')}}</a-button>
</div> </div>
</div> </div>
</div> </div>
@@ -601,7 +604,10 @@
this.formInline[this.uploadName] = attIdList.join(',') this.formInline[this.uploadName] = attIdList.join(',')
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
}, },
submit() { tempSaveClick(){
},
submit(releaseStatus) {
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
let formInline = JSON.parse(JSON.stringify(this.formInline)) let formInline = JSON.parse(JSON.stringify(this.formInline))
@@ -633,6 +639,7 @@
}) })
}) })
} }
formInline.releaseStatus = releaseStatus
Action(url, formInline).then((res) => { Action(url, formInline).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
@@ -784,6 +791,7 @@
.box-button { .box-button {
height: 38px; height: 38px;
margin-top: 4px; margin-top: 4px;
margin-left: 10px;
} }
.box-button-index { .box-button-index {
@@ -344,7 +344,8 @@
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
searchStr: this.searchStr, searchStr: this.searchStr,
problemTypes: selectedTags.join(',') problemTypes: selectedTags.join(','),
releaseStatus:'Have released'
} }
this.loading = true this.loading = true
getAction(this.url.getInfoList, query).then((res) => { getAction(this.url.getInfoList, query).then((res) => {
@@ -12,16 +12,40 @@
<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" @keyup.enter.native="onSearch"> <a-form layout="inline" style="width: 1200px;margin: 0 auto" @keyup.enter.native="onSearch">
<div class="box-title-text"> <a-row :gutter="24">
<div class="title-text" :title="$t('searchContent')"> <a-col :span="10">
<span>{{$t('searchContent')}}</span> <div class="box-title-text">
<div class="title-text" :title="$t('searchContent')">
<span>{{$t('searchContent')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('searchContent')"
v-model="queryParam.searchStr"></a-input>
</div>
</a-col>
<a-col :span="10">
<div class="box-title-text">
<div class="title-text" :title="$t('releaseStatus')">
<span>{{$t('releaseStatus')}}</span>
</div>
<a-select :placeholder="$t('PleaseSelect')+$t('releaseStatus')"
v-model="queryParam.releaseStatus">
<a-select-option v-for="(item, key) in releaseStatusList"
: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" type="primary" @click="onSearch">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="ResetSearch">{{$t('reset')}}
</a-button>
</div> </div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('searchContent')" </a-row>
v-model="searchStr"></a-input>
<a-button class="box-button" type="primary" @click="onSearch">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="ResetSearch">{{$t('reset')}}</a-button>
</div>
</a-form> </a-form>
</div> </div>
<div v-if="conList.length > 0" style="height: calc(100vh - 240px);overflow:auto;"> <div v-if="conList.length > 0" style="height: calc(100vh - 240px);overflow:auto;">
@@ -41,6 +65,9 @@
<div class="text-content"> <div class="text-content">
{{item.contentOne}} {{item.contentOne}}
</div> </div>
<div class="text-text-right-text-One">
{{item.releaseStatus == 'Draft'?$t('draft'):$t('HaveReleased')}}
</div>
<div class="text-text-right-text"> <div class="text-text-right-text">
<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>
@@ -85,7 +112,17 @@
conList: [], conList: [],
total: 0, total: 0,
pageSize: 10, pageSize: 10,
searchStr: '', queryParam: {},
releaseStatusList: [
{
name: this.$t('draft'),
value: 'Draft'
},
{
name: this.$t('HaveReleased'),
value: 'Have released'
}
],
loading: false, loading: false,
administrators: false, administrators: false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download', downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
@@ -126,7 +163,7 @@
this.getList() this.getList()
}, },
ResetSearch() { ResetSearch() {
this.searchStr = '' this.queryParam = {}
this.pageNo = 1 this.pageNo = 1
this.getList() this.getList()
}, },
@@ -140,7 +177,7 @@
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
createBy: this.userInfo().username, createBy: this.userInfo().username,
searchStr: this.searchStr ...this.queryParam
} }
this.loading = true this.loading = true
getAction(this.url.getInfoList, query).then((res) => { getAction(this.url.getInfoList, query).then((res) => {
@@ -285,11 +322,21 @@
.text-text-right { .text-text-right {
padding: 19px 19px; padding: 19px 19px;
width: calc(100% - 180px); width: calc(100% - 300px);
box-sizing: border-box; box-sizing: border-box;
/*margin-left: 38px;*/ /*margin-left: 38px;*/
} }
.text-text-right-text-One {
width: 120px;
height: 100%;
text-align: center;
position: absolute;
right: 180px;
top: 50%;
transform: translate-Y(-50%);
}
.text-text-right-text { .text-text-right-text {
width: 180px; width: 180px;
height: 100%; height: 100%;
@@ -365,16 +412,13 @@
.search-detail-wrap { .search-detail-wrap {
width: 100%; width: 100%;
margin: 0 auto; margin-bottom: 16px;
} }
.box-title-text { .box-title-text {
line-height: 1.4; line-height: 1.4;
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 10px;
text-align: center;
justify-content: center;
} }
.title-text { .title-text {
@@ -394,7 +438,7 @@
.box-input { .box-input {
/*min-width: 200px;*/ /*min-width: 200px;*/
display: inline-block; display: inline-block;
width: 50%; width: 100%;
height: 38px; height: 38px;
margin-top: 2px; margin-top: 2px;
margin-right: 16px; margin-right: 16px;