修改bug

This commit is contained in:
zyx.net
2022-08-10 14:16:18 +08:00
parent 09951ea739
commit ecb25c4825
7 changed files with 52 additions and 19 deletions
@@ -40,7 +40,7 @@
:dataSource='areaTable' :dataSource='areaTable'
:pagination='false' :pagination='false'
:loading='loading' :loading='loading'
:scroll="{x: '100%',y:'calc(100vh - 130px)'}" :scroll="{x: '100%',y:600}"
:rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}' :rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}'
@change='handleTableChange'> @change='handleTableChange'>
@@ -52,6 +52,7 @@
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear allowClear
:disabled="isParentId" :disabled="isParentId"
style='z-index: 99'
v-model="formInline.parentId"> v-model="formInline.parentId">
<a-select-option v-for="(item, key) in ParentList" <a-select-option v-for="(item, key) in ParentList"
:key="item.id" :key="item.id"
@@ -78,7 +78,7 @@
size="middle" size="middle"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: '100%'}" :scroll="{x: '100%',y:'calc(100vh - 140px)'}"
rowKey="id" rowKey="id"
:data-source="dataSource" :data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -100,6 +100,9 @@
v-if="record.createBy == userInfoQuery.username && record.releaseCondition == 'draft'" v-if="record.createBy == userInfoQuery.username && record.releaseCondition == 'draft'"
@click="deleteData(record)">{{$t('delete')}}</a> @click="deleteData(record)">{{$t('delete')}}</a>
</span> </span>
<span slot="title" slot-scope="text,record" :title="text">
{{ text && text.length > 15 ? text.slice(0, 14) + '...' : text }}
</span>
<span slot="translationLanguage" slot-scope="text,record" <span slot="translationLanguage" slot-scope="text,record"
:title="record.sourceLanguage_dictText +' -- '+record.targetLanguage_dictText"> :title="record.sourceLanguage_dictText +' -- '+record.targetLanguage_dictText">
<span class="translationLanguageText" style="margin-top: -2px">{{record.sourceLanguage_dictText}}</span> <span class="translationLanguageText" style="margin-top: -2px">{{record.sourceLanguage_dictText}}</span>
@@ -160,13 +163,15 @@
title: this.$t('standard'), title: this.$t('standard'),
align: 'center', align: 'center',
dataIndex: 'serialNumber', dataIndex: 'serialNumber',
width: 170 width: 170,
scopedSlots: { customRender: 'title' }
}, },
{ {
title: this.$t('title'), title: this.$t('title'),
align: 'center', align: 'center',
dataIndex: 'title', dataIndex: 'title',
width: 170 width: 170,
scopedSlots: { customRender: 'title' }
}, },
{ {
title: this.$t('TextStatus'), title: this.$t('TextStatus'),
+13 -9
View File
@@ -40,13 +40,12 @@
<span v-else :title="title"> <span v-else :title="title">
{{title && title.length > 18?title.slice(0,17)+'...':title}} {{title && title.length > 18?title.slice(0,17)+'...':title}}
</span> </span>
<template #overlay> <template #overlay >
<a-menu v-has="'externalReports:folder'" <a-menu @click="({ key: menuKey }) => onContextMenuClick(treeKey, menuKey, record)">
@click="({ key: menuKey }) => onContextMenuClick(treeKey, menuKey, record)"> <a-menu-item key="1" @click="orgAdd" v-has="'externalReports:folder'">{{$t('Addingfolder')}}</a-menu-item>
<a-menu-item key="1" @click="orgAdd" >{{$t('Addingfolder')}}</a-menu-item> <a-menu-item key="4" @click="orgAdds" v-has="'externalReports:folder'" v-if="deleteNode">{{$t('Addingsubfolders')}}</a-menu-item>
<a-menu-item key="4" @click="orgAdds" v-if="deleteNode">{{$t('Addingsubfolders')}}</a-menu-item> <a-menu-item key="2" @click="orgEdit" v-has="'externalReports:folder'">{{$t('Editfolder')}}</a-menu-item>
<a-menu-item key="2" @click="orgEdit">{{$t('Editfolder')}}</a-menu-item> <a-menu-item key="3" @click="orgDelete" v-has="'externalReports:folder'">{{$t('Deletefolders')}}</a-menu-item>
<a-menu-item key="3" @click="orgDelete" >{{$t('Deletefolders')}}</a-menu-item>
</a-menu> </a-menu>
</template> </template>
@@ -127,7 +126,7 @@
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
rowKey="id" rowKey="id"
:scroll="{x: 10,y:'calc(100vh - 130px)'}" :scroll="{x: '100%',y:'calc(100vh - 180px)'}"
:data-source="dataSource" :data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns" :columns="columns"
@@ -135,6 +134,10 @@
<span slot="projectName" slot-scope="text,record" :title="text"> <span slot="projectName" slot-scope="text,record" :title="text">
{{ text && text.length > 15 ? text.slice(0, 14) + '...' : text }} {{ text && text.length > 15 ? text.slice(0, 14) + '...' : text }}
</span> </span>
<span slot="fileName" slot-scope="text,record" :title="text">
{{ text && text.length > 15 ? text.slice(0, 14) + '...' : text }}
</span>
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<!-- <a class="text-operation" @click="handlelist(record)">{{$t('view')}}</a>--> <!-- <a class="text-operation" @click="handlelist(record)">{{$t('view')}}</a>-->
<a class="text-operation" @click="download(record)">{{$t('download')}}</a> <a class="text-operation" @click="download(record)">{{$t('download')}}</a>
@@ -353,6 +356,7 @@ export default {
title: this.$t('fileName'), title: this.$t('fileName'),
align: 'center', align: 'center',
dataIndex: 'fileName', dataIndex: 'fileName',
scopedSlots: { customRender: 'fileName' },
width: 200 width: 200
}, },
{ {
@@ -733,7 +737,7 @@ export default {
} }
}, },
pageOnChange(page, pageSize) { pageOnChange(page, pageSize) {
this.pageNo = page this.queryParams.pageNo = page
this.loadData() this.loadData()
}, },
addModelList() { addModelList() {
@@ -739,6 +739,8 @@ export default {
if(this.formInline.controlType == 11){ if(this.formInline.controlType == 11){
query.certCategoryParamsInfoEOList = [] query.certCategoryParamsInfoEOList = []
query.certCategory = '' query.certCategory = ''
}else{
query.titleDefaultValue = ''
} }
this.confirmLoading = true this.confirmLoading = true
Action(url, query).then((res) => { Action(url, query).then((res) => {
@@ -1,12 +1,11 @@
<template> <template>
<div> <div>
<a-modal <a-drawer
:title="$t('ListOfRelevantPersonnel')" :title="$t('ListOfRelevantPersonnel')"
:width="1000" :width="1000"
:visible="visible" :visible="visible"
:maskClosable="false" :maskClosable="false"
@ok="visible = false" @close="handleCancel"
@cancel="visible = false"
> >
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
@@ -104,7 +103,7 @@
rowKey="id" rowKey="id"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:pagination="false" :pagination="false"
:scroll="{x:800,y: 400}" :scroll="{x:800,y: 500}"
:data-source="dataSource" :data-source="dataSource"
:loading="loading" :loading="loading"
> >
@@ -136,7 +135,11 @@
<!-- @showSizeChange="SizeChange"--> <!-- @showSizeChange="SizeChange"-->
<!-- />--> <!-- />-->
<!-- </div>--> <!-- </div>-->
</a-modal> <div class="drawer-bootom-button">
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>
</div>
</a-drawer>
<a-modal <a-modal
:title="$t('ListOfRelevantPersonnel')" :title="$t('ListOfRelevantPersonnel')"
:width="600" :width="600"
@@ -414,6 +417,12 @@
this.selectedRowKeys = [] this.selectedRowKeys = []
this.getList() this.getList()
}, },
handleCancel(){
this.visible = false
},
handleSubmit(){
this.visible = false
},
batSettingClick() { batSettingClick() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
@@ -633,4 +642,16 @@
height: 38px; height: 38px;
/*margin-top: 2px;*/ /*margin-top: 2px;*/
} }
.drawer-bootom-button {
position: absolute;
bottom: 0;
width: 100%;
z-index:100;
border-top: 1px solid #e8e8e8;
padding: 10px 16px;
text-align: right;
left: 0;
background: #fff;
border-radius: 0 0 2px 2px;
}
</style> </style>
@@ -29,7 +29,7 @@
size="middle" size="middle"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: '100%'}" :scroll="{x: '100%',y:'calc(100vh - 180px)'}"
rowKey="id" rowKey="id"
:data-source="dataSource" :data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"