修改参数上报库清单

This commit is contained in:
范强强
2024-01-04 16:05:22 +08:00
parent 09526a8686
commit 8cb0fbf940
@@ -43,34 +43,34 @@
</div> </div>
</a-col> </a-col>
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('dre')"> <div class="title-text" :title="$t('dre')">
<span>{{$t('dre')}}</span> <span>{{$t('dre')}}</span>
</div>
<PersonnelSelection
:query="{db_field_name:'dre',db_field_txt:$t('dre')}"
:isInput="true"
class="box-input"
:personneQuery="formInline"
@change="PersonnelSelectionChange"
v-model="formInline.dreName"/>
</div> </div>
<PersonnelSelection </a-col>
:query="{db_field_name:'dre',db_field_txt:$t('dre')}" <a-col :md="6" :sm="8">
:isInput="true" <div class="box-title-text">
class="box-input" <div class="title-text" :title="$t('sdt')">
:personneQuery="formInline" <span>{{$t('sdt')}}</span>
@change="PersonnelSelectionChange" </div>
v-model="formInline.dreName"/> <PersonnelSelection
</div> :query="{db_field_name:'sdt',db_field_txt:$t('sdt')}"
</a-col> :isInput="true"
<a-col :md="6" :sm="8"> class="box-input"
<div class="box-title-text"> :personneQuery="formInline"
<div class="title-text" :title="$t('sdt')"> @change="PersonnelSelectionChange"
<span>{{$t('sdt')}}</span> v-model="formInline.sdtName"/>
</div> </div>
<PersonnelSelection </a-col>
:query="{db_field_name:'sdt',db_field_txt:$t('sdt')}"
:isInput="true"
class="box-input"
:personneQuery="formInline"
@change="PersonnelSelectionChange"
v-model="formInline.sdtName"/>
</div>
</a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('NareaOfResponsibility')"> <div class="title-text" :title="$t('NareaOfResponsibility')">
@@ -87,13 +87,14 @@
<div class="title-text" :title="$t('Required')"> <div class="title-text" :title="$t('Required')">
<span>{{$t('Required')}}</span> <span>{{$t('Required')}}</span>
</div> </div>
<!-- <j-multi-select-tag class="box-input" v-model="formInline.isMust"--> <!-- <j-multi-select-tag class="box-input" v-model="formInline.isMust"-->
<!-- :placeholder="$t('PleaseSelect')+$t('Required')"--> <!-- :placeholder="$t('PleaseSelect')+$t('Required')"-->
<!-- :type="'select'"--> <!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>--> <!-- :triggerChange="false" :dictCode="'duty_territory'"/>-->
<!-- <a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('Required')"--> <!-- <a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('Required')"-->
<!-- v-model="formInline.isMust"></a-input>--> <!-- v-model="formInline.isMust"></a-input>-->
<a-select class="box-input" v-model="formInline.isMust" :placeholder="$t('PleaseSelect')+$t('Required')"> <a-select class="box-input" v-model="formInline.isMust"
:placeholder="$t('PleaseSelect')+$t('Required')">
<a-select-option :value="'1'"> <a-select-option :value="'1'">
{{$t('yes')}} {{$t('yes')}}
</a-select-option> </a-select-option>
@@ -145,9 +146,9 @@
{{$t('CustomExport')}} {{$t('CustomExport')}}
</div> </div>
<!-- 列表设置--> <!-- 列表设置-->
<!-- v-if="!this.$route.query.it"--> <!-- v-if="!this.$route.query.it"-->
<a-popconfirm :visible="customizevisible" overlayClassName="popconfirmClassName" <a-popconfirm :visible="customizevisible" overlayClassName="managePopconfirmClassName"
placement="bottomRight" > placement="bottomRight">
<template slot="title" id="popconfirmmize"> <template slot="title" id="popconfirmmize">
<div style="max-height:360px;overflow:scroll;overflow-x: auto;width: 211px"> <div style="max-height:360px;overflow:scroll;overflow-x: auto;width: 211px">
<a-checkbox <a-checkbox
@@ -334,19 +335,19 @@
</template> </template>
<script> <script>
import { deleteAction, downloadFile, getAction, postAction } from '../../../api/manage' import { deleteAction, downloadFile, getAction, postAction } from '../../../api/manage'
import axios from 'axios' import axios from 'axios'
import TableCollection from '@/components/tableCollection/index1' import TableCollection from '@/components/tableCollection/index1'
import conventionalModel from './commponts/conventionalmodle' import conventionalModel from './commponts/conventionalmodle'
import customelModel from './commponts/customexportmodle' import customelModel from './commponts/customexportmodle'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import PersonnelSelection from '@/components/PersonnelSelection/index' import PersonnelSelection from '@/components/PersonnelSelection/index'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header' import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
import Vue from 'vue' import Vue from 'vue'
export default { export default {
name: 'managementdetails', name: 'managementdetails',
mixins:[ResizeHeader, ResizeColumnProvide], mixins: [ResizeHeader, ResizeColumnProvide],
components: { components: {
conventionalModel, conventionalModel,
customelModel, customelModel,
@@ -370,7 +371,7 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
title: this.$t('status'), title: this.$t('status'),
align: 'left', align: 'left',
dataIndex: 'stateText', dataIndex: 'stateText',
width: 120, width: 120
}, },
{ {
title: this.$t('Exporttime'), title: this.$t('Exporttime'),
@@ -386,10 +387,10 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
scopedSlots: { customRender: 'operation' } scopedSlots: { customRender: 'operation' }
} }
], ],
dataSourceexport:[], dataSourceexport: [],
exportvisible: false, exportvisible: false,
confirmLoading:false, confirmLoading: false,
ExportFailed:false, ExportFailed: false,
dataExportFailed: false, // 数据失败的弹框 dataExportFailed: false, // 数据失败的弹框
dataExportformInline: {}, dataExportformInline: {},
dataExportrules: { dataExportrules: {
@@ -461,14 +462,14 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
NotSelectedRowKeysValue: [], NotSelectedRowKeysValue: [],
NoEngineer: 1, // 下发收集的权限,0为没有接口人 1为由接口人 默认有 NoEngineer: 1, // 下发收集的权限,0为没有接口人 1为由接口人 默认有
NotSelectedNoEngineerValue: [], NotSelectedNoEngineerValue: [],
statuList:[], statuList: [],
paramsManifest: {}, paramsManifest: {},
customizevisible: false, customizevisible: false,
indeterminate: false, indeterminate: false,
checkAll: false, checkAll: false,
selectedValue: [], selectedValue: [],
checkedList: ['nio_number', 'params_name', 'operation'], checkedList: ['nio_number', 'params_name', 'operation'],
customizeList:[], customizeList: []
// customizeList: [ // customizeList: [
// { // {
// sort: '1', // sort: '1',
@@ -579,15 +580,15 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
}, },
methods: { methods: {
// 导出列表 // 导出列表
Derivedlist(){ Derivedlist() {
this.pageNohistory = 1 this.pageNohistory = 1
this.exportvisible = true this.exportvisible = true
this.expoteList() this.expoteList()
}, },
exportdata(item){ exportdata(item) {
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.fileId }) downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.fileId })
}, },
exportdelete(item){ exportdelete(item) {
this.$confirm({ this.$confirm({
title: this.$t('confirmDeletion'), title: this.$t('confirmDeletion'),
content: '', content: '',
@@ -636,10 +637,10 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
} }
}) })
}, },
exportok(){ exportok() {
this.exportvisible = false this.exportvisible = false
}, },
exportvisiblecancel(){ exportvisiblecancel() {
this.exportvisible = false this.exportvisible = false
}, },
onCheckAllChange(e) { onCheckAllChange(e) {
@@ -648,7 +649,7 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
this.selectedValue = this.checkedList this.selectedValue = this.checkedList
this.indeterminate = false this.indeterminate = false
}, },
getcustomizeList(item){ getcustomizeList(item) {
let params = { let params = {
paramsManifestId: this.$route.query.id, paramsManifestId: this.$route.query.id,
flag: '8' flag: '8'
@@ -657,17 +658,17 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
if (res.success) { if (res.success) {
let List = [] let List = []
let sList = [] let sList = []
res.result.forEach((item,index) => { res.result.forEach((item, index) => {
if(!item.type){ if (!item.type) {
if(item.headFieldCn == '操作'){ if (item.headFieldCn == '操作') {
item.field = 'operation' item.field = 'operation'
item.disabled = true item.disabled = true
}else if(item.headFieldCn == 'NIO编号' || item.headFieldCn == '参数名称'){ } else if (item.headFieldCn == 'NIO编号' || item.headFieldCn == '参数名称') {
item.disabled = true item.disabled = true
} }
List.push(item) List.push(item)
} }
if(item.type) { if (item.type) {
sList.push(item) sList.push(item)
} }
}) })
@@ -675,7 +676,7 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
this.statuList = sList this.statuList = sList
} }
}) })
if(item){ if (item) {
console.log(item) console.log(item)
this.checkedList = item this.checkedList = item
} }
@@ -824,7 +825,7 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
for (let i = 0; i < selectedRowKeysValue.length; i++) { for (let i = 0; i < selectedRowKeysValue.length; i++) {
configDataList.push({ configDataList.push({
id: selectedRowKeysValue[i].id, id: selectedRowKeysValue[i].id,
remarks:selectedRowKeysValue[i].remarks remarks: selectedRowKeysValue[i].remarks
}) })
if (selectedRowKeysValue[i].configIds && selectedRowKeysValue[i].configIds.length > 0) { if (selectedRowKeysValue[i].configIds && selectedRowKeysValue[i].configIds.length > 0) {
for (let j = 0; j < selectedRowKeysValue[i].configIds.length; j++) { for (let j = 0; j < selectedRowKeysValue[i].configIds.length; j++) {
@@ -947,10 +948,10 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
paramsManifestId: this.$route.query.id, paramsManifestId: this.$route.query.id,
cut: this.cut, cut: this.cut,
// userTypes: this.currentPersonRole, // userTypes: this.currentPersonRole,
ids:this.selectedRowKeys.join(','), ids: this.selectedRowKeys.join(','),
...this.formInline, ...this.formInline,
exportOption: this.dataExportformInline.exportOption, exportOption: this.dataExportformInline.exportOption,
exportName: this.$route.query.projectName + '(' + this.$route.query.title + ')' +'-'+ this.$route.query.version, exportName: this.$route.query.projectName + '(' + this.$route.query.title + ')' + '-' + this.$route.query.version
} }
// let name = this.$route.query.projectName + '(' + this.$route.query.title + ')' + '.zip' // let name = this.$route.query.projectName + '(' + this.$route.query.title + ')' + '.zip'
// downloadFile('/report/detail/exportGeneral', name, query, this.selectClear) // downloadFile('/report/detail/exportGeneral', name, query, this.selectClear)
@@ -965,10 +966,10 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
} }
}) })
}, },
exportsubmit(){ exportsubmit() {
this.ExportFailed = false this.ExportFailed = false
}, },
exportcancel(){ exportcancel() {
this.ExportFailed = false this.ExportFailed = false
}, },
handleCancel() { handleCancel() {
@@ -1137,6 +1138,7 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
text-align: right; text-align: right;
margin-top: 20px; margin-top: 20px;
} }
.customize-text { .customize-text {
/*height: 1533px;*/ /*height: 1533px;*/
display: flex; display: flex;
@@ -1151,6 +1153,7 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
color: #040B29; color: #040B29;
margin-bottom: 22px; margin-bottom: 22px;
} }
.drawer-bootom-button { .drawer-bootom-button {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@@ -1163,6 +1166,7 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
background: #fff; background: #fff;
border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px;
} }
.ant-table-placeholder { .ant-table-placeholder {
padding: 0; padding: 0;
border-top: none; border-top: none;
@@ -1171,9 +1175,11 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
.itemModelComment .ant-form-item-control-wrapper { .itemModelComment .ant-form-item-control-wrapper {
width: 100% !important; width: 100% !important;
} }
.second { .second {
padding: 0 !important; padding: 0 !important;
} }
.operator-text-left { .operator-text-left {
font-size: 14px; font-size: 14px;
margin-right: 20px; margin-right: 20px;
@@ -1228,48 +1234,52 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
} }
</style> </style>
<style lang="less" scoped> <style lang="less" scoped>
/deep/.popconfirmClassName {
z-index: 999;
width: 264px
}
.popconfirmClassName .ant-popover-buttons { ::v-deep .ant-table-fixed-header .ant-table-body-inner {
display: none !important; overflow: visible;
} }
.popconfirmClassName .anticon-exclamation-circle { .popconfirmmize {
display: none !important; z-index: 999;
} }
::v-deep .ant-table-fixed-header .ant-table-body-inner {
overflow: visible;
}
popconfirmmize {
z-index: 999;
}
::v-deep .popconfirmmize .ant-popover-buttons { ::v-deep .popconfirmmize .ant-popover-buttons {
display: none !important; display: none !important;
} }
.popconfirmmize .anticon-exclamation-circle { .popconfirmmize .anticon-exclamation-circle {
display: none !important; display: none !important;
} }
.popconfirmmize .ant-popover-message { .popconfirmmize .ant-popover-message {
padding: 4px 0 36px !important; padding: 4px 0 36px !important;
} }
::v-deep .ant-popover-buttons {
display: none !important;
}
.itemModel { ::v-deep .ant-popover-buttons {
width: 100%; display: none !important;
display: inline-block; }
margin-top: 2px;
} .itemModel {
width: 100%;
display: inline-block;
margin-top: 2px;
}
</style> </style>
<style lang='less'> <style lang='less'>
.popconfirmClassName .ant-popover-message-title { .managePopconfirmClassName .ant-popover-message-title {
margin-bottom: 50px; margin-bottom: 50px;
} }
.managePopconfirmClassName {
z-index: 999;
width: 264px
}
.managePopconfirmClassName .ant-popover-buttons {
display: none !important;
}
.managePopconfirmClassName .anticon-exclamation-circle {
display: none !important;
}
</style> </style>