Merge branch 'dev_third_stage'

This commit is contained in:
lixuetao
2022-07-05 19:49:26 +08:00
9 changed files with 139 additions and 122 deletions
@@ -1409,7 +1409,9 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
if (ccDtoAfterDistinct.size() < ccDtoList.size()) { if (ccDtoAfterDistinct.size() < ccDtoList.size()) {
// 取差集 // 取差集
String reduceOne = ccDtoList.stream() String reduceOne = ccDtoList.stream()
.filter(e->!ccDtoAfterDistinct.contains(e)).map(CertCategoryParamsInfoCnImport::getNioNumber).collect(Collectors.joining(",")); .filter(e->!ccDtoAfterDistinct.contains(e))
.map(CertCategoryParamsInfoCnImport::getNioNumber).distinct()
.collect(Collectors.joining(","));
if (StringUtils.isNotBlank(reduceOne)) { if (StringUtils.isNotBlank(reduceOne)) {
if (CutEnum.CN.getValue().equals(cut)) { if (CutEnum.CN.getValue().equals(cut)) {
stringMessage.add("导入数据中NIO编号:" + reduceOne + "下存在重复认证类别;"); stringMessage.add("导入数据中NIO编号:" + reduceOne + "下存在重复认证类别;");
@@ -1428,7 +1430,9 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
if (ccDtoAfterDistinctTwo.size() < certCategoryParamsInfoEOList.size()) { if (ccDtoAfterDistinctTwo.size() < certCategoryParamsInfoEOList.size()) {
// 取差集 // 取差集
String reduceTwo = certCategoryParamsInfoEOList.stream() String reduceTwo = certCategoryParamsInfoEOList.stream()
.filter(e->!ccDtoAfterDistinctTwo.contains(e)).map(CertCategoryParamsInfoCnImport::getNioNumber).collect(Collectors.joining(",")); .filter(e->!ccDtoAfterDistinctTwo.contains(e))
.map(CertCategoryParamsInfoCnImport::getNioNumber).distinct()
.collect(Collectors.joining(","));
if (StringUtils.isNotBlank(reduceTwo)) { if (StringUtils.isNotBlank(reduceTwo)) {
if (CutEnum.CN.getValue().equals(cut)) { if (CutEnum.CN.getValue().equals(cut)) {
stringMessage.add("导入数据中NIO编号:" + reduceTwo + "下存在重复认证编号;"); stringMessage.add("导入数据中NIO编号:" + reduceTwo + "下存在重复认证编号;");
+1
View File
@@ -178,6 +178,7 @@ module.exports = {
ButtonsPermissions: 'Buttons / permissions', ButtonsPermissions: 'Buttons / permissions',
ConventionalExport:'Conventional export', ConventionalExport:'Conventional export',
CustomExport:'Custom export', CustomExport:'Custom export',
CustomTemplateName:'Custom template name',
assembly: 'Assembly', assembly: 'Assembly',
route: 'Route', route: 'Route',
AddSubmenu: 'Add submenu', AddSubmenu: 'Add submenu',
+1
View File
@@ -180,6 +180,7 @@ module.exports = {
ButtonsPermissions: '按钮/权限', ButtonsPermissions: '按钮/权限',
ConventionalExport:'常规导出', ConventionalExport:'常规导出',
CustomExport:'自定义导出', CustomExport:'自定义导出',
CustomTemplateName:'自定义模板名称',
assembly: '组件', assembly: '组件',
route: '路径', route: '路径',
AddSubmenu: '添加子菜单', AddSubmenu: '添加子菜单',
@@ -28,10 +28,8 @@
<a-input class="box-input inputWid" <a-input class="box-input inputWid"
:disabled="item.isLock == '1' ? true: false" :disabled="item.isLock == '1' ? true: false"
:placeholder="$t('pleaseEnter')+$t('chinese')" :placeholder="$t('pleaseEnter')+$t('chinese')"
event.returnValue="false"
ondragenter="return false"
onblur="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
v-model="item.dataValue"/> v-model="item.dataValue"/>
</div> </div>
<!-- 正整数 --> <!-- 正整数 -->
@@ -182,12 +180,10 @@
<div v-else-if="item.controlVerify == '2'"> <div v-else-if="item.controlVerify == '2'">
<a-input class="box-input inputWid" <a-input class="box-input inputWid"
:maxLength="1000" :maxLength="1000"
event.returnValue="false"
:disabled="item.isLock == '1' ? true: false" :disabled="item.isLock == '1' ? true: false"
ondragenter="return false"
:placeholder="$t('pleaseEnter')+$t('chinese')" :placeholder="$t('pleaseEnter')+$t('chinese')"
onblur="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
v-model="item.dataValue"/> v-model="item.dataValue"/>
</div> </div>
<!-- 正整数 --> <!-- 正整数 -->
@@ -280,10 +276,8 @@
<div v-else-if="item.controlVerify == '2'"> <div v-else-if="item.controlVerify == '2'">
<a-input class="box-input inputWid" <a-input class="box-input inputWid"
:maxLength="1000" :maxLength="1000"
event.returnValue="false"
ondragenter="return false"
onblur="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
:disabled="item.isLock == '1' ? true: false" :disabled="item.isLock == '1' ? true: false"
:placeholder="$t('pleaseEnter')+$t('chinese')" :placeholder="$t('pleaseEnter')+$t('chinese')"
v-model="item.dataValue"/> v-model="item.dataValue"/>
@@ -390,12 +384,10 @@
<div v-else-if="item.controlVerify == '2'"> <div v-else-if="item.controlVerify == '2'">
<a-input class="box-input inputWid" <a-input class="box-input inputWid"
:maxLength="1000" :maxLength="1000"
event.returnValue="false"
ondragenter="return false"
:disabled="item.isLock == '1' ? true: false" :disabled="item.isLock == '1' ? true: false"
onblur="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
:placeholder="$t('pleaseEnter')+$t('chinese')"
onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
:placeholder="$t('pleaseEnter')+$t('chinese')"
v-model="item.dataValue"/> v-model="item.dataValue"/>
</div> </div>
<!-- 正整数 --> <!-- 正整数 -->
@@ -556,11 +548,9 @@
<a-input class="box-input inputWid" <a-input class="box-input inputWid"
:disabled="item.isLock == '1' ? true: false" :disabled="item.isLock == '1' ? true: false"
:maxLength="1000" :maxLength="1000"
event.returnValue="false"
ondragenter="return false"
:placeholder="$t('pleaseEnter')+$t('chinese')" :placeholder="$t('pleaseEnter')+$t('chinese')"
onblur="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
v-model="item.dataValue"/> v-model="item.dataValue"/>
</div> </div>
<!-- 正整数 --> <!-- 正整数 -->
@@ -202,7 +202,10 @@ export default {
this.loadData() this.loadData()
}, },
dowloadfile(item){ dowloadfile(item){
downloadFile('/sys/common/downLoadFile', item.exportFileName, {id:item.exportFileId}) let query = {
id: item.exportFileId
}
downloadFile('/sys/common/downLoadFile', item.exportFileName, query, this.Deselect)
}, },
loadData() { loadData() {
let _this = this let _this = this
@@ -101,30 +101,31 @@
<div class="text-field"> <div class="text-field">
<span class="text-field-left" :title="$t('configurationName')">{{$t('configurationName')}}:</span> <span class="text-field-left" :title="$t('configurationName')">{{$t('configurationName')}}:</span>
<span class="text-field-right" <span class="text-field-right"
:title="configDetail.configName"
>{{configDetail.configName}}</span> >{{configDetail.configName}}</span>
</div> </div>
</div> </div>
<div class="content-text"> <div class="content-text">
<div class="text-field"> <div class="text-field">
<span class="text-field-left" :title="$t('Model')">{{$t('Model')}}:</span> <span class="text-field-left" :title="$t('Model')">{{$t('Model')}}:</span>
<span class="text-field-right" <span class="text-field-right" :title="configDetail.carType"
>{{configDetail.carType}}</span> >{{configDetail.carType}}</span>
</div> </div>
<div class="text-field"> <div class="text-field">
<span class="text-field-left" :title="$t('electricMachinery')">{{$t('electricMachinery')}}:</span> <span class="text-field-left" :title="$t('electricMachinery')">{{$t('electricMachinery')}}:</span>
<span class="text-field-right" <span class="text-field-right" :title="configDetail.motor"
>{{configDetail.motor}}</span> >{{configDetail.motor}}</span>
</div> </div>
</div> </div>
<div class="content-text"> <div class="content-text">
<div class="text-field"> <div class="text-field">
<span class="text-field-left" :title="$t('Version')">{{$t('Version')}}:</span> <span class="text-field-left" :title="$t('Version')">{{$t('Version')}}:</span>
<span class="text-field-right" <span class="text-field-right" :title="configDetail.version"
>{{configDetail.version}}</span> >{{configDetail.version}}</span>
</div> </div>
<div class="text-field"> <div class="text-field">
<span class="text-field-left" :title="$t('Battery')">{{$t('Battery')}}:</span> <span class="text-field-left" :title="$t('Battery')">{{$t('Battery')}}:</span>
<span class="text-field-right" <span class="text-field-right" :title="configDetail.battery"
>{{configDetail.battery}}</span> >{{configDetail.battery}}</span>
</div> </div>
</div> </div>
@@ -52,7 +52,7 @@
size="middle" size="middle"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: true}" :scroll="{x: '100%',y:'calc(100vh - 130px)'}"
rowKey="id" rowKey="id"
:data-source="dataSource" :data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -60,7 +60,7 @@
> >
<span slot="projectName" slot-scope="text,record" :title="text"> <span slot="projectName" slot-scope="text,record" :title="text">
<a @click="entryNameClick(record)"> <a @click="entryNameClick(record)">
{{ text && text.length > 30 ? text.slice(0, 29) + '...' : text }} {{ text }}
</a> </a>
</span> </span>
<span slot="titleName" slot-scope="text,record" :title="text"> <span slot="titleName" slot-scope="text,record" :title="text">
@@ -157,31 +157,37 @@ export default {
{ {
title: this.$t('zoneOfApplication'), title: this.$t('zoneOfApplication'),
align: 'center', align: 'center',
width: '10%', width: 160,
ellipsis: true,
dataIndex: 'region_dictText', dataIndex: 'region_dictText',
}, },
{ {
title: this.$t('parameterTemplate'), title: this.$t('parameterTemplate'),
align: 'center', align: 'center',
width: 180,
ellipsis: true,
dataIndex: 'paramsTemplateName', dataIndex: 'paramsTemplateName',
scopedSlots: { customRender: 'projectName' } scopedSlots: { customRender: 'projectName' }
}, },
{ {
title: this.$t('contentDescription'), title: this.$t('contentDescription'),
align: 'center', align: 'center',
ellipsis: true,
dataIndex: 'description', dataIndex: 'description',
scopedSlots: { customRender: 'titleName' } // scopedSlots: { customRender: 'titleName' }
}, },
{ {
title: this.$t('createTime'), title: this.$t('createTime'),
align: 'center', align: 'center',
width: '10%', dataIndex: 'createTime',
dataIndex: 'createTime' width: 160,
ellipsis: true,
}, },
{ {
title: this.$t('updateTime'), title: this.$t('updateTime'),
align: 'center', align: 'center',
width: '10%', width: 160,
ellipsis: true,
dataIndex: 'updateTime' dataIndex: 'updateTime'
}, },
{ {
@@ -1,46 +1,38 @@
<!--常规导出-->
<template> <template>
<div> <div>
<a-drawer <a-modal
:title="title" :title="title"
:maskClosable="false" :maskClosable="false"
:width="1000" :width="750"
placement="right" placement="right"
:closable="true" :closable="true"
@close="handleCancel" @cancel="handleCancel"
:visible="visible" :visible="visible"
style="height: 100%;overflow: auto;padding-bottom: 53px;"> style="height: 100%;overflow: auto;padding-bottom: 53px;">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form> <a-form>
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm"> <a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="12"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text" :title="$t('configure')">
<span class="Required">*</span> <span>{{$t('configure')}}</span>
<span class="title-text-text"
:title="$t('parameterTemplate')">{{$t('parameterTemplate')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="templateName"> <a-form-model-item class="itemModel" prop="configIds">
<a-input class="box-input" <a-select v-model="formInline.configIds" class="code-mode-select" :placeholder="$t('PleaseSelect')+$t('configure')">
:disabled="disabled" <a-select-option
v-model="formInline.templateName" v-for="mode in dictOptions"
:placeholder="$t('PleaseEnter')+$t('templateName')"/> :key="mode.value"
</a-form-model-item> :value="mode.value">
</div> {{ mode.label }}
</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('status')">{{$t('status')}}</span>
</div>
<a-form-model-item class="itemModel" prop="state">
<a-select allowClear :placeholder="$t('PleaseSelect')+$t('status')" v-model='formInline.state'>
<a-select-option :key="'0'" :value="'0'">{{$t('Enable')}}
</a-select-option>
<a-select-option :key="'1'" :value="'1'">{{$t('disable')}}
</a-select-option> </a-select-option>
</a-select> </a-select>
<!-- <j-dict-select-tag class="box-input" v-model="formInline.configIds"-->
<!-- :options="dictOptions"-->
<!-- :placeholder="$t('PleaseSelect')+$t('configure')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'cert_category'"/>-->
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -48,48 +40,29 @@
<a-row :gutter="24"> <a-row :gutter="24">
<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" :title="$t('CustomTemplateName')">
<span>{{$t('CustomTemplateName')}}</span>
</div>
<a-form-model-item class="itemModel" prop="certCategory">
<j-dict-select-tag class="box-input" v-model="formInline.certCategory"
:placeholder="$t('PleaseSelect')+$t('CustomTemplateName')"
:type="'select'"
@input="certCategoryName"
:triggerChange="false" :dictCode="'cert_category'"/>
</a-form-model-item>
<span class="title-text-text"
:title="$t('contentDescription')">{{$t('contentDescription')}}</span>
</div>
<a-form-model-item class="itemModel" prop="description">
<a-input class="box-input add-input"
type="textarea"
:disabled="disabled"
v-model="formInline.description"
:placeholder="$t('PleaseEnter')+$t('contentDescription')"/>
</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="Required">*</span>
<span class="title-text-text"
:title="$t('attachmentTemplate')">{{$t('attachmentTemplate')}}</span>
</div>
<a-form-model-item class="itemModel" prop="fileConnectId">
<a-button type="primary" class="button-text"
v-model='formInline.fileConnectId'
@click="clickButtonToUpload('fileTemplateConnectId')">
{{ (formInline.fileConnectId === 'null' || formInline.fileConnectId === '' ||
formInline.fileConnectId == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
</a-button>
</a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
</a-form> </a-form>
</a-spin> </a-spin>
<div class="drawer-bootom-button"> <div class="drawer-bootom-button">
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button> <a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button> <a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('export')}}</a-button>
</div> </div>
</a-drawer> </a-modal>
<uploadFileChange ref="uploadFile" :accept="'.doc,.doxc,.xls,.xlsx'" @uploadSuccess="uploadSuccess"></uploadFileChange> <uploadFileChange ref="uploadFile" :accept="'.doc,.doxc,.xls,.xlsx'" @uploadSuccess="uploadSuccess"></uploadFileChange>
</div> </div>
</template> </template>
@@ -98,6 +71,7 @@
import PersonnelSelection from '@/components/PersonnelSelection/index' import PersonnelSelection from '@/components/PersonnelSelection/index'
import { getAction, postAction, downloadFile, putAction } from '@/api/manage' import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
import uploadFileChange from '@/components/uploadFileChange/file' import uploadFileChange from '@/components/uploadFileChange/file'
import {initDictOptions, filterDictText} from '@/components/dict/JDictSelectUtil'
export default { export default {
name: 'addModel', name: 'addModel',
@@ -108,13 +82,30 @@ export default {
props: ['url'], props: ['url'],
data() { data() {
return { return {
formInline: {}, formInline: {
},
confirmLoading: false, confirmLoading: false,
description:false,
dictOptions:[],
visible: false, visible: false,
required:false,
disabled:false,
rules: { rules: {
templateName:[ separator:[
{ required: true, message: this.$t('PleaseEnter')+this.$t('parameterTemplate'), trigger: 'change' }, { required: true, message: this.$t('PleaseEnter')+this.$t('MergeSeparator'), trigger: 'change' },
{ min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('characters'), 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:[ description:[
{ min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' }, { min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
@@ -126,7 +117,6 @@ export default {
{ required: true, message: this.$t('PleaseSelect')+this.$t('attachmentTemplate'), trigger: 'change' }, { required: true, message: this.$t('PleaseSelect')+this.$t('attachmentTemplate'), trigger: 'change' },
], ],
}, },
disabled: false,
projectNameList: [], projectNameList: [],
title: '' title: ''
} }
@@ -170,12 +160,27 @@ export default {
this.visible = true this.visible = true
this.title = this.$t('CustomExport') this.title = this.$t('CustomExport')
this.formInline = {} this.formInline = {}
this.formInline.state = '0' this.formInline.separator = ','
this.formInline = {...this.formInline} this.formInline = {...this.formInline}
this.getConfigure()
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['ruleForm'].clearValidate() this.$refs['ruleForm'].clearValidate()
}) })
}, },
getConfigure(){
let pram = {
paramsManifestId: this.$route.query.id
}
getAction('report/detail/getConfigLabelList', pram).then((res) => {
if (res.success) {
console.log(res.result)
this.dictOptions = res.result
} else {
// this.$refs.uploadFile.perentHandleFunc()
}
})
},
editModel(value) { editModel(value) {
this.visible = true this.visible = true
this.title = '编辑' this.title = '编辑'
@@ -185,40 +190,41 @@ export default {
}, },
handleCancel() { handleCancel() {
this.visible = false this.visible = false
this.$refs.ruleForm.resetFields()
},
certCategoryName(value){
getAction('sys/dict/getDictItems/cert_category', { }).then((res) => {
if (res.success) {
let tt = ''
res.result.forEach((item) => {
if(item.value == value){
tt=item.title
}
})
this.contentListStart = tt
console.log(this.contentListStart)
}
})
console.log(value)
}, },
handleSubmit() { handleSubmit() {
if(this.formInline.paramsTemplateName !== undefined) {
this.formInline.paramsTemplateName = this.formInline.paramsTemplateName.trim()
}
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
let url = '' let url = this.url.ConventionalExport
let Action let Action = getAction
if (this.formInline.id) {
url = this.url.edit
Action = postAction
} else {
url = this.url.add
Action = postAction
}
let query = JSON.parse(JSON.stringify(this.formInline)) let query = JSON.parse(JSON.stringify(this.formInline))
Object.keys(query).forEach(res => { Object.keys(query).forEach(res => {
if (query[res] && query[res] instanceof Array) { if (query[res] && query[res] instanceof Array) {
query[res] = query[res].join(',') query[res] = query[res].join(',')
} }
}) })
if(this.contentListStart){
query.certCategoryName = this.contentListStart
}
query.paramsManifestId = this.$route.query.id
this.confirmLoading = true this.confirmLoading = true
Action(url, query).then((res) => { downloadFile('report/detail/exportNormal', this.$t('GeneralExportInformation')+'.zip', query)
if (res.success) { this.confirmLoading = false
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
}
})
} }
}) })
}, },
@@ -72,7 +72,7 @@
size="middle" size="middle"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: '100%'}" :scroll="{x: '100%',y:'calc(100vh - 130px)'}"
rowKey="id" rowKey="id"
:data-source="dataSource" :data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -155,20 +155,23 @@ export default {
{ {
title: this.$t('NiONumber'), title: this.$t('NiONumber'),
align: 'center', align: 'center',
width: 100, width: 130,
dataIndex: 'nioNumber', dataIndex: 'nioNumber',
sorter: true sorter: true,
ellipsis: true,
}, },
{ {
title: this.$t('ParameterName'), title: this.$t('ParameterName'),
align: 'center', align: 'center',
dataIndex: 'paramsName', dataIndex: 'paramsName',
width: 160, width: 160,
ellipsis: true,
}, },
{ {
title: this.$t('ParameterDescription'), title: this.$t('ParameterDescription'),
align: 'center', align: 'center',
dataIndex: 'description', dataIndex: 'description',
ellipsis: true,
// scopedSlots: { customRender: 'titleName' } // scopedSlots: { customRender: 'titleName' }
}, },
{ {
@@ -176,12 +179,14 @@ export default {
align: 'center', align: 'center',
dataIndex: 'dutyTerritory_dictText', dataIndex: 'dutyTerritory_dictText',
width: 150, width: 150,
ellipsis: true,
}, },
{ {
title: this.$t('createTime'), title: this.$t('createTime'),
align: 'center', align: 'center',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 110, width: 180,
ellipsis: true,
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),