平台件项目详情-问题管理-删除,出现资源未找到

This commit is contained in:
zyx.net
2023-09-27 09:50:25 +08:00
parent 6dc31466c6
commit cdd5a096b3
3 changed files with 40 additions and 11 deletions
@@ -2002,6 +2002,7 @@
status = '2' status = '2'
} }
} }
console.log(status)
if(status == '1'){ if(status == '1'){
this.$refs.associatedplatRef.transferModel(flag,type,this.selectedRowKeys.join(',')) this.$refs.associatedplatRef.transferModel(flag,type,this.selectedRowKeys.join(','))
}else{ }else{
@@ -84,24 +84,25 @@
<div class="title-text"> <div class="title-text">
<!-- <span class="Required">*</span>--> <!-- <span class="Required">*</span>-->
<span class="title-text-text" <span class="title-text-text"
:title="$t('Problemstate')">{{$t('Problemstate')}}</span> :title="$t('RelatedItems')">{{$t('RelatedItems')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="contentTemplate"> <a-form-model-item class="itemModel" prop="contentTemplate">
<a-select allowClear <a-select allowClear
class="box-input" class="box-input"
v-model="formInline.problemState" v-model="formInline.projectId"
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
showSearch showSearch
mode="multiple"
optionFilterProp="label" optionFilterProp="label"
:autoClearSearchValue="false" :autoClearSearchValue="false"
:placeholder="$t('PleaseSelect')+$t('Problemstate')"> :placeholder="$t('PleaseSelect')+$t('RelatedItems')">
<a-select-option v-for="(item, key) in ProblemstateList" <a-select-option v-for="(item, key) in projectNameList"
:label='item'
:key="key" :key="key"
:value="item"> :label="item.projectName"
<span style="display: inline-block;width: 100%" :title=" item"> :value="item.id">
{{ item }} <span style="display: inline-block;width: 100%" :title=" item.projectName ">
</span> {{ item.projectName}}
</span>
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
@@ -137,7 +138,34 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<!-- <span class="Required">*</span>-->
<span class="title-text-text"
:title="$t('Problemstate')">{{$t('Problemstate')}}</span>
</div>
<a-form-model-item class="itemModel" prop="contentTemplate">
<a-select allowClear
class="box-input"
v-model="formInline.problemState"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
showSearch
optionFilterProp="label"
:autoClearSearchValue="false"
:placeholder="$t('PleaseSelect')+$t('Problemstate')">
<a-select-option v-for="(item, key) in ProblemstateList"
:label='item'
:key="key"
:value="item">
<span style="display: inline-block;width: 100%" :title=" item">
{{ item }}
</span>
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
</a-row> </a-row>
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="24"> <a-col :span="24">
@@ -451,7 +451,7 @@ export default {
this.$confirm({ this.$confirm({
content: _this.$t('ConfirmDelete'), content: _this.$t('ConfirmDelete'),
onOk() { onOk() {
deleteAction('/platform/problemManagementEO/deleteBatch', { ids: record.uuid }).then((res) => { deleteAction('/project/problemManagementEO/deleteBatch', { ids: record.uuid }).then((res) => {
if (res.success) { if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
_this.getList() _this.getList()