上报库管理-导出历史对接接口
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
</div>
|
||||
<!-- 导出历史模板-->
|
||||
<a-modal class="show-drawer" :title="titleTag" width="900px" v-model="drawerVisible" :footer="null">
|
||||
<export-history v-if='drawerVisible' @areaVisible='drawerVisible = false'></export-history>
|
||||
<export-history v-if='drawerVisible' @areaVisible='drawerVisible = false' :paramsManifestId='paramsManifestId'></export-history>
|
||||
</a-modal>
|
||||
</a-card>
|
||||
</template>
|
||||
@@ -91,6 +91,7 @@
|
||||
loading: false,
|
||||
toggleSearchStatus: false,
|
||||
selectedRowKeys: [],
|
||||
paramsManifestId:'',
|
||||
selectedRowKeysArray: '',
|
||||
formInline: {},
|
||||
rules: {
|
||||
@@ -173,9 +174,10 @@
|
||||
this.selectedRowKeys = value
|
||||
this.selectedRowKeysArray = this.selectedRowKeys.join(',')
|
||||
},
|
||||
// 复制
|
||||
handlecody() {
|
||||
// 导出历史
|
||||
handlecody(e) {
|
||||
this.drawerVisible = true
|
||||
this.paramsManifestId = e.id
|
||||
},
|
||||
hideModal() {
|
||||
this.visible = false
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="title-text" :title="$t('certificationCategory')">
|
||||
<span>{{$t('certificationCategory')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="certificationCategory">
|
||||
<a-form-model-item class="itemModel" prop="certCategory">
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.certCategory"
|
||||
:placeholder="$t('PleaseSelect')+$t('certificationCategory')"
|
||||
:type="'select'"
|
||||
@@ -37,7 +37,7 @@
|
||||
<div class="title-text" :title="$t('configure')">
|
||||
<span>{{$t('configure')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="configure">
|
||||
<a-form-model-item class="itemModel" prop="configIds">
|
||||
<j-multi-select-tag class="box-input" v-model="formInline.configIds"
|
||||
:options="dictOptions"
|
||||
:placeholder="$t('PleaseSelect')+$t('configure')"
|
||||
@@ -75,9 +75,10 @@
|
||||
<span class="title-text-text"
|
||||
:title="$t('MergeSeparator')">{{$t('MergeSeparator')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'description'">
|
||||
<a-form-model-item class="itemModel" :prop="this.disabled == true?'separator':''">
|
||||
<!-- :disabled="disabled"-->
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
|
||||
v-model="formInline.separator"
|
||||
:placeholder="$t('PleaseEnter')+$t('MergeSeparator')"/>
|
||||
</a-form-model-item>
|
||||
@@ -117,10 +118,23 @@ export default {
|
||||
dictOptions:[],
|
||||
visible: false,
|
||||
required:false,
|
||||
disabled:false,
|
||||
rules: {
|
||||
MergeSeparator:[
|
||||
separator:[
|
||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('MergeSeparator'), trigger: 'change' },
|
||||
{ min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('MergeSeparator'), trigger: 'blur' },
|
||||
// { min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('MergeSeparator'), trigger: 'blur' },
|
||||
],
|
||||
certCategory:[
|
||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('certificationCategory'), trigger: 'change' },
|
||||
// { min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('MergeSeparator'), trigger: 'blur' },
|
||||
],
|
||||
combineFlag:[
|
||||
{ required: true, message: this.$t('PleaseSelect')+this.$t('WhetherMergeParameters'), trigger: 'change' },
|
||||
// { min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('MergeSeparator'), trigger: 'blur' },
|
||||
],
|
||||
configIds:[
|
||||
{ required: true, message: this.$t('PleaseSelect')+this.$t('configure'), trigger: 'change' },
|
||||
// { min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('MergeSeparator'), trigger: 'blur' },
|
||||
],
|
||||
description:[
|
||||
{ min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
|
||||
@@ -132,7 +146,6 @@ export default {
|
||||
{ required: true, message: this.$t('PleaseSelect')+this.$t('attachmentTemplate'), trigger: 'change' },
|
||||
],
|
||||
},
|
||||
disabled: false,
|
||||
projectNameList: [],
|
||||
title: ''
|
||||
}
|
||||
@@ -167,10 +180,10 @@ export default {
|
||||
console.log(value.target.value)
|
||||
if(value.target.value == 2){
|
||||
this.required = true
|
||||
this.description = true
|
||||
this.disabled = true
|
||||
}else{
|
||||
this.required = false
|
||||
this.description = false
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
getNameList() {
|
||||
@@ -215,6 +228,7 @@ export default {
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
this.$refs.ruleForm.resetFields()
|
||||
},
|
||||
certCategoryName(value){
|
||||
getAction('sys/dict/getDictItems/cert_category', { }).then((res) => {
|
||||
|
||||
@@ -46,9 +46,13 @@
|
||||
<div class="title-text" :title="$t('completedBy')">
|
||||
<span>{{$t('completedBy')}}</span>
|
||||
</div>
|
||||
<a-input class="box-input" :placeholder="$t('PleaseSelect')+$t('completedBy')"
|
||||
@input="getcompleteby($event)"
|
||||
v-model="formInline.completedBy"></a-input>
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'completedBy',db_field_txt:$t('completedBy')}"
|
||||
:isInput="true"
|
||||
class="box-input"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.dre"/>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="8">
|
||||
@@ -56,9 +60,13 @@
|
||||
<div class="title-text" :title="$t('engineeringInterfacePerson')">
|
||||
<span>{{$t('engineeringInterfacePerson')}}</span>
|
||||
</div>
|
||||
<a-input class="box-input" :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
|
||||
@input="getcompleteby($event)"
|
||||
v-model="formInline.completedBy"></a-input>
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('engineeringInterfacePerson')}"
|
||||
:isInput="true"
|
||||
class="box-input"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.sdt"/>
|
||||
</div>
|
||||
</a-col>
|
||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||
@@ -125,12 +133,14 @@ import axios from 'axios'
|
||||
import conventionalModel from './commponts/conventionalmodle'
|
||||
import customelModel from './commponts/customexportmodle'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||
import Vue from 'vue'
|
||||
export default {
|
||||
name: 'managementdetails',
|
||||
components: {
|
||||
conventionalModel,
|
||||
customelModel
|
||||
customelModel,
|
||||
PersonnelSelection
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
@@ -259,6 +269,10 @@ export default {
|
||||
getcompleteby(e){
|
||||
console.log(e)
|
||||
},
|
||||
PersonnelSelectionChange(value, id) {
|
||||
this.formInline[value] = id
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
getTableList() {
|
||||
// console.log('this.searchParmestable',this.searchParmes)
|
||||
let pageNo = JSON.parse(JSON.stringify(this.pageNo))
|
||||
|
||||
Reference in New Issue
Block a user