问题管理修改

This commit is contained in:
zyx.net
2023-09-22 10:59:04 +08:00
parent c43e3fd729
commit a8e4c88614
4 changed files with 46 additions and 4 deletions
+3
View File
@@ -1970,4 +1970,7 @@ module.exports = {
Chinesecharacters:'The role code cannot enter Chinese characters', Chinesecharacters:'The role code cannot enter Chinese characters',
alreadyexistssystem:'The role encoding already exists', alreadyexistssystem:'The role encoding already exists',
releaseType:'releaseType', releaseType:'releaseType',
by:'By',
Changeto:'Change to',
emptyc:'empty',
} }
+3
View File
@@ -3926,4 +3926,7 @@ module.exports = {
Addresslink:'地址链接', Addresslink:'地址链接',
Problemanagement:'问题管理', Problemanagement:'问题管理',
releaseType:'发布类型', releaseType:'发布类型',
by:'由',
Changeto:'改为了',
emptyc:'空',
} }
@@ -152,6 +152,7 @@
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
showSearch showSearch
optionFilterProp="label" optionFilterProp="label"
@change='change'
:autoClearSearchValue="false" :autoClearSearchValue="false"
:placeholder="$t('PleaseSelect')+$t('Problemstate')"> :placeholder="$t('PleaseSelect')+$t('Problemstate')">
<a-select-option v-for="(item, key) in ProblemstateList" <a-select-option v-for="(item, key) in ProblemstateList"
@@ -244,11 +245,11 @@
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<!-- <span class="Required">*</span>--> <span class="Required" v-if="this.formInline.problemState == this.$t('green')">*</span>
<span class="title-text-text" <span class="title-text-text"
:title="$t('conculsion')">{{$t('conculsion')}}</span> :title="$t('conculsion')">{{$t('conculsion')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="conclusion"> <a-form-model-item class="itemModel" :prop="this.formInline.problemState == this.$t('green') ? 'conclusion' : ''">
<a-input class="box-input" <a-input class="box-input"
v-model='formInline.conclusion' v-model='formInline.conclusion'
:disabled="disabled" :disabled="disabled"
@@ -372,6 +373,13 @@ export default {
trigger: 'change' trigger: 'change'
} }
], ],
conclusion: [
{
required: true,
message: this.$t('conculsion') + this.$t('cannotEmpty'),
trigger: 'change'
}
],
}, },
visible: false, visible: false,
visibletrack: false, visibletrack: false,
@@ -421,6 +429,7 @@ export default {
} }
], ],
index:'', index:'',
problemState:'',
url: { url: {
add: '/project/problemManagementEO/add', add: '/project/problemManagementEO/add',
edit: '/project/problemManagementEO/edit', edit: '/project/problemManagementEO/edit',
@@ -456,6 +465,13 @@ export default {
} }
}) })
}, },
change(value){
if(value != this.problemState && this.title == this.$t('edit') && this.problemState){
let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
let text = this.userInfo().username + ' ' + time + ' ' + this.$t('Problemstate')+this.$t('by')+ '\'' + this.problemState + '\'' +this.$t('Changeto') + '\'' + value + '\''
this.formInline.progressTrackingList.push({progressTracking:text})
}
},
StandardselectionChange(value, id) { StandardselectionChange(value, id) {
this.formInline.lawsId = id this.formInline.lawsId = id
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
@@ -510,6 +526,7 @@ export default {
this.getNameList() this.getNameList()
this.getFirstLevelDutyTerritory() this.getFirstLevelDutyTerritory()
this.title = this.$t('edit') this.title = this.$t('edit')
this.problemState = row.problemState
this.formInline = row this.formInline = row
if(this.formInline.dutyTerritory != null){ if(this.formInline.dutyTerritory != null){
this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',') this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',')
@@ -153,6 +153,7 @@
showSearch showSearch
optionFilterProp="label" optionFilterProp="label"
:autoClearSearchValue="false" :autoClearSearchValue="false"
@change='change'
:placeholder="$t('PleaseSelect')+$t('Problemstate')"> :placeholder="$t('PleaseSelect')+$t('Problemstate')">
<a-select-option v-for="(item, key) in ProblemstateList" <a-select-option v-for="(item, key) in ProblemstateList"
:label='item' :label='item'
@@ -244,11 +245,11 @@
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<!-- <span class="Required">*</span>--> <span class="Required" v-if="this.formInline.problemState == this.$t('green')">*</span>
<span class="title-text-text" <span class="title-text-text"
:title="$t('conculsion')">{{$t('conculsion')}}</span> :title="$t('conculsion')">{{$t('conculsion')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="conclusion"> <a-form-model-item class="itemModel" :prop="this.formInline.problemState == this.$t('green') ? 'conclusion' : ''">
<a-input class="box-input" <a-input class="box-input"
v-model='formInline.conclusion' v-model='formInline.conclusion'
:disabled="disabled" :disabled="disabled"
@@ -372,6 +373,13 @@ export default {
trigger: 'change' trigger: 'change'
} }
], ],
conclusion: [
{
required: true,
message: this.$t('conculsion') + this.$t('cannotEmpty'),
trigger: 'change'
}
],
}, },
visible: false, visible: false,
visibletrack: false, visibletrack: false,
@@ -392,6 +400,7 @@ export default {
projectId:undefined, projectId:undefined,
problemState:undefined, problemState:undefined,
}, },
data:{},
formInlinetracking:{}, formInlinetracking:{},
confirmLoading: false, confirmLoading: false,
title: '', title: '',
@@ -421,6 +430,7 @@ export default {
} }
], ],
index:'', index:'',
problemState:'',
url: { url: {
add: '/project/problemManagementEO/add', add: '/project/problemManagementEO/add',
edit: '/project/problemManagementEO/edit', edit: '/project/problemManagementEO/edit',
@@ -460,6 +470,14 @@ export default {
this.formInline.lawsId = id this.formInline.lawsId = id
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
}, },
change(value){
if(value != this.problemState && this.title == this.$t('edit') && this.problemState){
console.log(this.formInline.progressTrackingList)
let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
let text = this.userInfo().username + ' ' + time + ' ' + this.$t('Problemstate')+this.$t('by')+ '\'' + this.problemState + '\'' +this.$t('Changeto') + '\'' + value + '\''
this.formInline.progressTrackingList.push({progressTracking:text})
}
},
Standardselectioninput(val){ Standardselectioninput(val){
this.formInline.lawsName = val this.formInline.lawsName = val
}, },
@@ -510,6 +528,7 @@ export default {
this.getNameList() this.getNameList()
this.getFirstLevelDutyTerritory() this.getFirstLevelDutyTerritory()
this.title = this.$t('edit') this.title = this.$t('edit')
this.problemState = row.problemState
this.formInline = row this.formInline = row
if(this.formInline.dutyTerritory != null){ if(this.formInline.dutyTerritory != null){
this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',') this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',')