对接项目库列表
This commit is contained in:
@@ -652,4 +652,7 @@ module.exports = {
|
|||||||
FileUploadedSuccessfully:'File uploaded successfully',
|
FileUploadedSuccessfully:'File uploaded successfully',
|
||||||
DeletedSuccessfully:'Deleted successfully',
|
DeletedSuccessfully:'Deleted successfully',
|
||||||
confirmCopy:'confirm Copy ?',
|
confirmCopy:'confirm Copy ?',
|
||||||
|
DigitalPlatform:'Digital platform',
|
||||||
|
dehicleDevelopmentPlan:'Vehicle development plan',
|
||||||
|
certificationProgram:'certificationProgram',
|
||||||
}
|
}
|
||||||
@@ -656,4 +656,7 @@ module.exports = {
|
|||||||
FileUploadedSuccessfully:'文件上传成功',
|
FileUploadedSuccessfully:'文件上传成功',
|
||||||
DeletedSuccessfully:'删除成功',
|
DeletedSuccessfully:'删除成功',
|
||||||
confirmCopy: '确定复制?',
|
confirmCopy: '确定复制?',
|
||||||
|
DigitalPlatform:'数字平台',
|
||||||
|
dehicleDevelopmentPlan:'整车开发计划',
|
||||||
|
certificationProgram:'认证计划',
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-drawer
|
<a-drawer
|
||||||
:title="'添加'"
|
:title="title"
|
||||||
:maskClosable="false"
|
:maskClosable="false"
|
||||||
:width="1000"
|
:width="1000"
|
||||||
placement="right"
|
placement="right"
|
||||||
@@ -17,9 +17,9 @@
|
|||||||
<span class="title-text-text" :title="$t('entryName')">{{$t('entryName')}}</span>
|
<span class="title-text-text" :title="$t('entryName')">{{$t('entryName')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="entryName">
|
<a-form-model-item class="itemModel" prop="entryName">
|
||||||
<j-dict-select-tag class="box-input" v-model="formInline.entryName"
|
<j-dict-select-tag class="box-input" v-model="formInline.projectName"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@input="handleInput('entryName')"
|
@input="handleInput('projectName')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('entryName')"
|
:placeholder="$t('PleaseSelect')+$t('entryName')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
@input="handleInput('targetMarket')"
|
@input="handleInput('targetMarket')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('targetMarket')"
|
:placeholder="$t('PleaseSelect')+$t('targetMarket')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
:triggerChange="false" :dictCode="'region'"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -54,35 +54,7 @@
|
|||||||
@input="handleInput('projectStatus')"
|
@input="handleInput('projectStatus')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('projectStatus')"
|
:placeholder="$t('PleaseSelect')+$t('projectStatus')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
:triggerChange="false" :dictCode="'project_status'"/>
|
||||||
</a-form-model-item>
|
|
||||||
</div>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="12">
|
|
||||||
<div class="box-title-text">
|
|
||||||
<div class="title-text">
|
|
||||||
<span class="title-text-text" title="Gate">Gate</span>
|
|
||||||
</div>
|
|
||||||
<a-form-model-item class="itemModel" prop="Gate">
|
|
||||||
<a-input class="box-input"
|
|
||||||
:disabled="disabled"
|
|
||||||
v-model="formInline.Gate"
|
|
||||||
:placeholder="$t('PleaseEnter')+'Gate'"/>
|
|
||||||
</a-form-model-item>
|
|
||||||
</div>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<a-row :gutter="24">
|
|
||||||
<a-col :span="12">
|
|
||||||
<div class="box-title-text">
|
|
||||||
<div class="title-text">
|
|
||||||
<span class="title-text-text" :title="$t('IPDInformation')">{{$t('IPDInformation')}}</span>
|
|
||||||
</div>
|
|
||||||
<a-form-model-item class="itemModel" prop="IPDInformation">
|
|
||||||
<a-input class="box-input"
|
|
||||||
:disabled="disabled"
|
|
||||||
v-model="formInline.IPDInformation"
|
|
||||||
:placeholder="$t('PleaseEnter')+$t('IPDInformation')"/>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -92,11 +64,11 @@
|
|||||||
<span class="title-text-text" :title="$t('StudioEngineer')">{{$t('StudioEngineer')}}</span>
|
<span class="title-text-text" :title="$t('StudioEngineer')">{{$t('StudioEngineer')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" :prop="'StudioEngineer'">
|
<a-form-model-item class="itemModel" :prop="'StudioEngineer'">
|
||||||
<PersonnelSelection :query="{db_field_name:'StudioEngineer',db_field_txt:$t('StudioEngineer')}"
|
<PersonnelSelection :query="{db_field_name:'studioEngineer',db_field_txt:$t('StudioEngineer')}"
|
||||||
:personneQuery="formInline"
|
:personneQuery="formInline"
|
||||||
@change="PersonnelSelectionChange"
|
@change="PersonnelSelectionChange"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="formInline.StudioEngineer"/>
|
v-model="formInline.studioEngineer"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -105,57 +77,89 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text" :title="$t('CertificationTime')">{{$t('CertificationTime')}}</span>
|
<span class="title-text-text" :title="$t('certifiedEngineer')">{{$t('certifiedEngineer')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="CertificationTime">
|
<a-form-model-item class="itemModel" :prop="'certificationEngineer'">
|
||||||
<a-range-picker class="box-input" v-model="formInline.CertificationTime"
|
<PersonnelSelection
|
||||||
:disabled="disabled"
|
:query="{db_field_name:'certificationEngineer',db_field_txt:$t('certifiedEngineer')}"
|
||||||
@change="onChange('CertificationTime')"></a-range-picker>
|
:personneQuery="formInline"
|
||||||
|
@change="PersonnelSelectionChange"
|
||||||
|
:disabled="disabled"
|
||||||
|
v-model="formInline.certificationEngineer"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text" :title="$t('NTplatform')">{{$t('NTplatform')}}</span>
|
<span class="title-text-text" :title="$t('IPDInformation')">{{$t('IPDInformation')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" :prop="'NTplatform'">
|
<a-form-model-item class="itemModel" prop="ipdInfo">
|
||||||
<j-dict-select-tag class="box-input" v-model="formInline.NTplatform"
|
|
||||||
:disabled="disabled"
|
|
||||||
@input="handleInput('NTplatform')"
|
|
||||||
:placeholder="$t('PleaseSelect')+$t('NTplatform')"
|
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
|
||||||
</a-form-model-item>
|
|
||||||
</div>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<a-row :gutter="24">
|
|
||||||
<a-col :span="12">
|
|
||||||
<div class="box-title-text">
|
|
||||||
<div class="title-text">
|
|
||||||
<span class="title-text-text" :title="$t('NPplatform')">{{$t('NPplatform')}}</span>
|
|
||||||
</div>
|
|
||||||
<a-form-model-item class="itemModel" :prop="'NPplatform'">
|
|
||||||
<j-dict-select-tag class="box-input" v-model="formInline.NPplatform"
|
|
||||||
:disabled="disabled"
|
|
||||||
@input="handleInput('NPplatform')"
|
|
||||||
:placeholder="$t('PleaseSelect')+$t('NPplatform')"
|
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
|
||||||
</a-form-model-item>
|
|
||||||
</div>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="12">
|
|
||||||
<div class="box-title-text">
|
|
||||||
<div class="title-text">
|
|
||||||
<span class="title-text-text" :title="$t('certificationProgramInformation')">{{$t('certificationProgramInformation')}}</span>
|
|
||||||
</div>
|
|
||||||
<a-form-model-item class="itemModel" prop="certificationProgramInformation">
|
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="formInline.certificationProgramInformation"
|
v-model="formInline.ipdInfo"
|
||||||
:placeholder="$t('PleaseEnter')+$t('certificationProgramInformation')"/>
|
:placeholder="$t('PleaseEnter')+$t('IPDInformation')"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('ModelPlatform')">{{$t('ModelPlatform')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="vehiclePlatform">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.vehiclePlatform"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('vehiclePlatform')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('ModelPlatform')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'vehicle_platform'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('DigitalPlatform')">{{$t('DigitalPlatform')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'digitalPlatform'">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.digitalPlatform"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('digitalPlatform')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('DigitalPlatform')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'digital_platform'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('dehicleDevelopmentPlan')">{{$t('dehicleDevelopmentPlan')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'vehicleDevelopmentPlan'">
|
||||||
|
<a-input class="box-input"
|
||||||
|
:disabled="disabled"
|
||||||
|
v-model="formInline.vehicleDevelopmentPlan"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('dehicleDevelopmentPlan')"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('certificationProgram')">{{$t('certificationProgram')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="attestationPlan">
|
||||||
|
<a-input class="box-input"
|
||||||
|
:disabled="disabled"
|
||||||
|
v-model="formInline.attestationPlan"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('certificationProgram')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -171,19 +175,22 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
|
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'addModel',
|
name: 'addModel',
|
||||||
components: {
|
components: {
|
||||||
PersonnelSelection
|
PersonnelSelection
|
||||||
},
|
},
|
||||||
|
props: ['url'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formInline: {},
|
formInline: {},
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
visible: false,
|
visible: false,
|
||||||
rules: {},
|
rules: {},
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
title: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -191,13 +198,45 @@
|
|||||||
methods: {
|
methods: {
|
||||||
addModel() {
|
addModel() {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.title = '新增'
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
},
|
},
|
||||||
|
editModel(value) {
|
||||||
|
this.visible = true
|
||||||
|
this.title = '编辑'
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = value
|
||||||
|
})
|
||||||
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
let url = ''
|
||||||
|
let Action
|
||||||
|
if (this.formInline.id) {
|
||||||
|
url = this.url.edit
|
||||||
|
Action = putAction
|
||||||
|
} else {
|
||||||
|
url = this.url.add
|
||||||
|
Action = postAction
|
||||||
|
}
|
||||||
|
this.confirmLoading = true
|
||||||
|
Action(url, this.formInline).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('addModelList')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleInput(value) {
|
handleInput(value) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -320,4 +359,9 @@
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 0 0 2px 2px;
|
border-radius: 0 0 2px 2px;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
|
.ant-input-disabled {
|
||||||
|
color: rgba(0, 0, 0, 0.65) !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
<span>{{$t('entryName')}}</span>
|
<span>{{$t('entryName')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('entryName')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('entryName')"
|
||||||
v-model="queryParam.entryName"></a-input>
|
v-model="queryParam.projectName"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<span>{{$t('StudioEngineer')}}</span>
|
<span>{{$t('StudioEngineer')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('StudioEngineer')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('StudioEngineer')"
|
||||||
v-model="queryParam.StudioEngineer"></a-input>
|
v-model="queryParam.studioEngineer"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</template>
|
</template>
|
||||||
@@ -98,12 +98,12 @@
|
|||||||
@showSizeChange="SizeChange"
|
@showSizeChange="SizeChange"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<addModel ref="addModelRef"/>
|
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, downloadFile } from '@/api/manage'
|
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||||
import addModel from '../components/addModel'
|
import addModel from '../components/addModel'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -122,11 +122,11 @@
|
|||||||
dataSource: [],
|
dataSource: [],
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
url: {
|
url: {
|
||||||
list:'project/projectLibraryBase/list',
|
list: 'project/projectLibraryBase/page',
|
||||||
add:'project/projectLibraryBase/add',
|
add: 'project/projectLibraryBase/add',
|
||||||
edit:'project/projectLibraryBase/edit',
|
edit: 'project/projectLibraryBase/edit',
|
||||||
deleteBatch:'project/projectLibraryBase/delete',
|
deleteBatch: 'project/projectLibraryBase/delete',
|
||||||
deleteAll:'project/projectLibraryBase/deleteBatch',
|
deleteAll: 'project/projectLibraryBase/deleteBatch'
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@@ -142,37 +142,32 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('targetMarket'),
|
title: this.$t('targetMarket'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'targetMarket'
|
dataIndex: 'targetMarket_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('projectStatus'),
|
title: this.$t('projectStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'projectStatus'
|
dataIndex: 'projectStatus_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('StudioEngineer'),
|
title: this.$t('StudioEngineer'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'studioEngineer'
|
dataIndex: 'studioEngineerName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('certifiedEngineer'),
|
title: this.$t('certifiedEngineer'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'certificationEngineer'
|
dataIndex: 'certificationEngineerName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('CertificationTime'),
|
title: this.$t('ModelPlatform'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'createTime'
|
dataIndex: 'vehiclePlatform_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('NTplatform'),
|
title: this.$t('DigitalPlatform'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'NTplatform'
|
dataIndex: 'digitalPlatform_dictText'
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('NPplatform'),
|
|
||||||
align: 'center',
|
|
||||||
dataIndex: 'NPplatform'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
@@ -186,7 +181,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleToggleSearch() {
|
handleToggleSearch() {
|
||||||
@@ -201,56 +196,99 @@
|
|||||||
},
|
},
|
||||||
//批量删除
|
//批量删除
|
||||||
handleDel() {
|
handleDel() {
|
||||||
let newUrl = this.$router.resolve({
|
if (this.selectedRowKeys.length > 0) {
|
||||||
path: '/ProjectDetails',
|
let _this = this
|
||||||
query: {}
|
this.$confirm({
|
||||||
})
|
content: _this.$t('ConfirmBatchDeletion'),
|
||||||
window.open(newUrl.href, '_blank')
|
onOk() {
|
||||||
|
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||||
|
deleteAction(_this.url.deleteAll, { ids: idList.join(',') }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.selectedRowKeys = []
|
||||||
|
_this.getList()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//编辑
|
//编辑
|
||||||
edit(item) {
|
edit(item) {
|
||||||
this.title = '编辑'
|
this.$refs.addModelRef.editModel(JSON.parse(JSON.stringify(item)))
|
||||||
this.formInline = item
|
|
||||||
this.visible = true
|
|
||||||
},
|
|
||||||
//撤回
|
|
||||||
withdraw() {
|
|
||||||
|
|
||||||
},
|
|
||||||
//维护清单
|
|
||||||
maintenanceList() {
|
|
||||||
|
|
||||||
},
|
|
||||||
//订阅
|
|
||||||
subscribe() {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//删除
|
//删除
|
||||||
deleteLib(item) {
|
deleteLib(val) {
|
||||||
|
let _this = this
|
||||||
|
this.$confirm({
|
||||||
|
content: _this.$t('ConfirmDelete'),
|
||||||
|
onOk() {
|
||||||
|
deleteAction(_this.url.deleteBatch, { id: val.id }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.getList()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
//虚拟清单名称事件
|
//虚拟清单名称事件
|
||||||
entryNameClick(item) {
|
entryNameClick(item) {
|
||||||
|
let newUrl = this.$router.resolve({
|
||||||
|
path: '/ProjectDetails',
|
||||||
|
query: item
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
|
this.queryParam = {}
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
pageOnChange(page, pageSize) {
|
pageOnChange(page, pageSize) {
|
||||||
this.pageNo = page
|
this.pageNo = page
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
SizeChange(page, pageSize) {
|
SizeChange(page, pageSize) {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
this.pageSize = pageSize
|
this.pageSize = pageSize
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
handleCancel() {
|
addModelList() {
|
||||||
this.visible = false
|
this.pageNo = 1
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
getList() {
|
||||||
|
let query = {
|
||||||
|
pageNo: this.pageNo,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
...this.queryParam
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
postAction(this.url.list, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.pageNo = res.result.current - 1
|
||||||
|
this.getList()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.dataSource = res.result.records || []
|
||||||
|
this.total = res.result.total
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user