修改bug

This commit is contained in:
zyx.net
2022-08-09 17:53:08 +08:00
parent 3f3806104a
commit e3887b28d6
9 changed files with 84 additions and 83 deletions
+25 -26
View File
@@ -41,19 +41,12 @@
{{title && title.length > 18?title.slice(0,17)+'...':title}}
</span>
<template #overlay>
<a-menu
<a-menu v-has="'externalReports:folder'"
@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="4" @click="orgAdds" v-if="deleteNode"
v-has="'externalReports:folder'">{{$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="3" @click="orgDelete"
v-has="'externalReports:folder'">{{$t('Deletefolders')}}
</a-menu-item>
<a-menu-item key="1" @click="orgAdd" >{{$t('Addingfolder')}}</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">{{$t('Editfolder')}}</a-menu-item>
<a-menu-item key="3" @click="orgDelete" >{{$t('Deletefolders')}}</a-menu-item>
</a-menu>
</template>
@@ -72,7 +65,7 @@
<div class="title-text" :title="$t('fileName')">
<span>{{ $t('fileName') }}</span>
</div>
<a-input class="box-input" style='width: 264px' :placeholder="$t('PleaseEnter')+$t('fileName')"
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('fileName')"
v-model="queryParams.fileName"></a-input>
</div>
</a-col>
@@ -81,7 +74,7 @@
<div class="title-text" :title="$t('uploadedBy')">
<span>{{$t('uploadedBy')}}</span>
</div>
<a-input class="box-input" style='width: 264px' :placeholder="$t('PleaseEnter')+$t('uploadedBy')"
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('uploadedBy')"
v-model="queryParams.createBy"></a-input>
</div>
</a-col>
@@ -93,7 +86,6 @@
<!-- :placeholder="$t('PleaseSelect')+$t('uploadTime')"-->
<a-range-picker
style='width: 264px'
@change="onChange"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
@@ -127,20 +119,21 @@
</div>
</div>
<div>
<!-- :scroll="{x: 10,y:'calc(100vh - 130px)'}"-->
<a-table
ref="table"
size="middle"
:loading="loading"
:pagination="false"
:scroll="{x: '100%',y:'calc(100vh - 130px)'}"
rowKey="id"
:scroll="{x: 10}"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns"
>
<span slot="projectName" slot-scope="text,record" :title="text">
{{ text && text.length > 15 ? text.slice(0, 14) + '...' : text }}
</a>
</span>
<span slot="operation" slot-scope="text,record">
<!-- <a class="text-operation" @click="handlelist(record)">{{$t('view')}}</a>-->
@@ -193,8 +186,8 @@
<span class="title-text-text"
:title="$t('Foldername')">{{$t('Foldername')}}</span>
</div>
<a-form-model-item prop="folderName">
<a-input class="box-input add-input" style='width: 239%' v-model.trim="form.folderName" :placeholder="$t('PleaseEnter')+$t('Foldername')"/>
<a-form-model-item prop="folderName" style='width: 72%'>
<a-input v-model="form.folderName" :min="1" :max="100" style='width: 130%' class="box-input add-input" :placeholder="$t('PleaseEnter')+$t('Foldername')" />
</a-form-model-item>
</div>
</a-col>
@@ -325,7 +318,7 @@ export default {
rules: {
folderName: [
{ required: true, message: this.$t('PleaseEnter') + this.$t('Foldername'), trigger: 'blur' },
{ min: 1, max: 50, message: this.$t('cantExeed') + '50' + this.$t('characters'), trigger: 'blur' }
{ min: 1, max: 100, message: this.$t('cantExeed') + '100' + this.$t('characters'), trigger: 'blur' }
],
// authManageIdsName: [
// { required: true, message: this.$t('PleaseSelect') + this.$t('Administrativeprivileges'), trigger: 'change' },
@@ -360,17 +353,20 @@ export default {
title: this.$t('fileName'),
align: 'center',
dataIndex: 'fileName',
width: 200
},
{
title: this.$t('fileDeclaration'),
align: 'center',
dataIndex: 'fileDescription',
scopedSlots: { customRender: 'projectName' }
scopedSlots: { customRender: 'projectName' },
width: 150
},
{
title: this.$t('uploadedBy'),
align: 'center',
dataIndex: 'createBy',
width: 150
},
// {
// title: this.$t('category'),
@@ -640,7 +636,7 @@ export default {
//树形删除
orgDelete() {
this.$confirm({
content: this.$t('deleteNodes'),
content: this.$t('deleteNode'),
onOk:
async () => {
deleteAction(`extRepo/extRepoFolder/delete`, { id: this.nodeItem.key }).then(res => {
@@ -1072,7 +1068,9 @@ export default {
display: flex;
/*align-items: center;*/
}
/deep/.ant-table td{
white-space: nowrap;
}
.title-text {
width: 114px;
text-align: right;
@@ -1227,14 +1225,15 @@ export default {
}
}
/deep/ .ant-table-body {
overflow: hidden !important;
}
///deep/ .ant-table-body {
// overflow: hidden !important; ?????
//}
</style>
<style lang="less">
.split-item {
.ant-form-item-label {
min-width: 100px;
}
}