文档工具-虚拟清单-虚拟清单详情-列宽可拖拽
This commit is contained in:
@@ -5,10 +5,10 @@
|
|||||||
:visible="visible"
|
:visible="visible"
|
||||||
:confirm-loading="confirmLoading"
|
:confirm-loading="confirmLoading"
|
||||||
:maskClosable="false"
|
:maskClosable="false"
|
||||||
@cancel="visible = false"
|
@cancel="visible = false;$emit('visible')"
|
||||||
>
|
>
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button key="back" @click="visible = false">
|
<a-button key="back" @click="visible = false;$emit('visible')">
|
||||||
{{$t('cancel')}}
|
{{$t('cancel')}}
|
||||||
</a-button>
|
</a-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -62,6 +62,7 @@
|
|||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
<a-table
|
<a-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
|
:components="drag(columns,'columns')"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:scroll="{x: 1200}"
|
:scroll="{x: 1200}"
|
||||||
:data-source="dataList"
|
:data-source="dataList"
|
||||||
@@ -96,6 +97,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getAction, postAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'addModel',
|
name: 'addModel',
|
||||||
@@ -108,6 +110,7 @@
|
|||||||
default: {}
|
default: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mixins:[ResizeHeader, ResizeColumnProvide],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
toggleSearchStatus: false,
|
toggleSearchStatus: false,
|
||||||
@@ -120,19 +123,22 @@
|
|||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
dataIndex: 'serial_number',
|
dataIndex: 'serial_number',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true
|
ellipsis: true,
|
||||||
|
width: 228
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('title'),
|
title: this.$t('title'),
|
||||||
dataIndex: 'title',
|
dataIndex: 'title',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true
|
ellipsis: true,
|
||||||
|
width: 228
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('zoneOfApplication'),
|
title: this.$t('zoneOfApplication'),
|
||||||
dataIndex: 'region',
|
dataIndex: 'region',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true
|
ellipsis: true,
|
||||||
|
width: 228
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: this.$t('status'),
|
// title: this.$t('status'),
|
||||||
@@ -150,13 +156,15 @@
|
|||||||
title: this.$t('ImplementationDate'),
|
title: this.$t('ImplementationDate'),
|
||||||
dataIndex: 'xin1_che1_xing2_shi2_shi1_ri4_qi1',
|
dataIndex: 'xin1_che1_xing2_shi2_shi1_ri4_qi1',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true
|
ellipsis: true,
|
||||||
|
width: 228
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('vehicleInProductionDate'),
|
title: this.$t('vehicleInProductionDate'),
|
||||||
dataIndex: 'implement_time',
|
dataIndex: 'implement_time',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true
|
ellipsis: true,
|
||||||
|
width: 228
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
// title: this.$t('correspondingStandard'),
|
// title: this.$t('correspondingStandard'),
|
||||||
@@ -250,6 +258,7 @@
|
|||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.$emit('visible')
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
|
|||||||
@@ -737,6 +737,7 @@
|
|||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.$emit('visible')
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
{{$t('BatchDelete')}}
|
{{$t('BatchDelete')}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%">
|
<div style="width: 100%" v-if="istable">
|
||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
class="ant-table tableList"
|
class="ant-table tableList"
|
||||||
@@ -159,6 +159,7 @@
|
|||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: '100%',y:'calc(100vh - 356px)'}"
|
:scroll="{x: '100%',y:'calc(100vh - 356px)'}"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
|
:components="drag(columns,'columnsAll')"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
@change="tableOnChange"
|
@change="tableOnChange"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
@@ -227,10 +228,10 @@
|
|||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
|
<addModel :url="url" ref="addModelRef" @addModelList="addModelList" @visible='sVisible'/>
|
||||||
<editModel :url="url" ref="editModelRef" @editModelList="editModelList"/>
|
<editModel :url="url" ref="editModelRef" @editModelList="editModelList" @visible='sVisible'/>
|
||||||
<UpdateLog :url="url" ref="UpdateLogRef"/>
|
<UpdateLog :url="url" ref="UpdateLogRef" @visible='sVisible'/>
|
||||||
<transferList :url="url" @transferListForm="transferListForm" ref="transferListRef"/>
|
<transferList :url="url" @transferListForm="transferListForm" ref="transferListRef" @visible='sVisible'/>
|
||||||
<transferListvirtal :url="url" @transferListFormHomo="transferListFormHomo" ref="transferListvirtalRef"/>
|
<transferListvirtal :url="url" @transferListFormHomo="transferListFormHomo" ref="transferListvirtalRef"/>
|
||||||
<batSetting :url="url" ref="batSettingRef" @batSettingList="batSettingList"/>
|
<batSetting :url="url" ref="batSettingRef" @batSettingList="batSettingList"/>
|
||||||
<a-modal
|
<a-modal
|
||||||
@@ -280,6 +281,7 @@
|
|||||||
import { getAction, postAction, downloadFile } from '@/api/manage'
|
import { getAction, postAction, downloadFile } from '@/api/manage'
|
||||||
import { Base64 } from 'js-base64'
|
import { Base64 } from 'js-base64'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'virtualListDetails',
|
name: 'virtualListDetails',
|
||||||
@@ -293,6 +295,7 @@
|
|||||||
batSetting,
|
batSetting,
|
||||||
globalAdvancedQuery
|
globalAdvancedQuery
|
||||||
},
|
},
|
||||||
|
mixins:[ResizeHeader, ResizeColumnProvide],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: '维护虚拟清单',
|
title: '维护虚拟清单',
|
||||||
@@ -301,6 +304,7 @@
|
|||||||
visibleFile: false,
|
visibleFile: false,
|
||||||
transferList: false,
|
transferList: false,
|
||||||
orderBy: '1',
|
orderBy: '1',
|
||||||
|
istable: true,
|
||||||
orderByField: '',
|
orderByField: '',
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
@@ -672,11 +676,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.isTruee = false
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.isTruee = true
|
||||||
|
})
|
||||||
return columnResult
|
return columnResult
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
|
sVisible(){
|
||||||
|
this.getDataAdmin()
|
||||||
|
},
|
||||||
handleSuperQuery(params, matchType) {
|
handleSuperQuery(params, matchType) {
|
||||||
let sqp = {}
|
let sqp = {}
|
||||||
if (!params || (params && params.length == 0)) {
|
if (!params || (params && params.length == 0)) {
|
||||||
@@ -710,6 +721,12 @@
|
|||||||
transferClick() {
|
transferClick() {
|
||||||
this.$refs.transferListRef.transferModel()
|
this.$refs.transferListRef.transferModel()
|
||||||
},
|
},
|
||||||
|
getDataAdmin(){
|
||||||
|
this.isTrue = false
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.isTrue = true
|
||||||
|
},100)
|
||||||
|
},
|
||||||
//导出
|
//导出
|
||||||
handleExport() {
|
handleExport() {
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
@@ -962,7 +979,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@assets/less/common.less';
|
@import'~@assets/less/common.less';
|
||||||
|
|
||||||
.doc-detail {
|
.doc-detail {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@@ -1130,12 +1147,12 @@
|
|||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ant-table-body {
|
//::v-deep .ant-table-body {
|
||||||
padding-bottom: 7px;
|
// padding-bottom: 7px;
|
||||||
}
|
//}
|
||||||
|
|
||||||
::v-deep .ant-table-body-inner {
|
::v-deep .ant-table-body-inner {
|
||||||
padding-bottom: 16px;
|
padding-bottom: 9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ant-table-scroll .ant-table-header::-webkit-scrollbar {
|
::v-deep .ant-table-scroll .ant-table-header::-webkit-scrollbar {
|
||||||
|
|||||||
Reference in New Issue
Block a user