项目库-可伸缩列

This commit is contained in:
刘彦泽
2023-01-12 16:54:05 +08:00
parent 0d0d474de8
commit 7398accaf1
21 changed files with 190 additions and 71 deletions
+7 -2
View File
@@ -14,9 +14,10 @@
</template> </template>
<a-table <a-table
class="table" class="table"
:components="drag(columns,'columns')"
:columns="columns" :columns="columns"
:pagination="false" :pagination="false"
:scroll="{y: 420}" :scroll="{x:'100%',y: 420}"
:data-source="dataSource" :data-source="dataSource"
:loading="loading" :loading="loading"
> >
@@ -46,9 +47,12 @@
<script> <script>
import { getAction, postAction, } from '@/api/manage' import { getAction, postAction, } from '@/api/manage'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'index', name: 'index',
props:['url'], props:['url'],
mixins:[ResizeHeader, ResizeColumnProvide],
data(){ data(){
return{ return{
visible:false, visible:false,
@@ -65,7 +69,8 @@
dataIndex: 'logContent', dataIndex: 'logContent',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'content' } scopedSlots: { customRender: 'content' },
width: 664
}, },
{ {
title: this.$t('OperationTime'), title: this.$t('OperationTime'),
@@ -14,6 +14,7 @@
</template> </template>
<a-table <a-table
class="table" class="table"
:components="drag(columnsFile,'columnsFile')"
:columns="columnsFile" :columns="columnsFile"
:pagination="false" :pagination="false"
:scroll="{x:500,y: 400}" :scroll="{x:500,y: 400}"
@@ -39,10 +40,11 @@
import { Base64 } from 'js-base64' import { Base64 } from 'js-base64'
import { getAction, postAction, downloadFile, putAction } from '@/api/manage' import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'viewFileModel', name: 'viewFileModel',
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
dataSourceFile: [], dataSourceFile: [],
@@ -216,9 +216,10 @@
> >
<a-table <a-table
class="table" class="table"
:components="drag(columnsRelated,'columnsRelated')"
:columns="columnsRelated" :columns="columnsRelated"
:pagination="false" :pagination="false"
:scroll="{y: 400}" :scroll="{x: '100%',y: 400}"
:data-source="dataSourceRelated" :data-source="dataSourceRelated"
:loading="loading" :loading="loading"
> >
@@ -298,7 +299,8 @@
dataIndex: 'title', dataIndex: 'title',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'operation' } scopedSlots: { customRender: 'operation' },
width: 544
} }
], ],
columnsFile: [ columnsFile: [
@@ -29,6 +29,7 @@
</div> </div>
<a-table <a-table
ref="table" ref="table"
:components="drag(columns,'columnsAll')"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: 1600}" :scroll="{x: 1600}"
@@ -320,6 +321,7 @@
import uploadFile from '@/components/uploadFile/file' import uploadFile from '@/components/uploadFile/file'
import viewFileModel from '@/components/viewFileModel/index' import viewFileModel from '@/components/viewFileModel/index'
import { Base64 } from 'js-base64' import { Base64 } from 'js-base64'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'engineeringConfirmation', name: 'engineeringConfirmation',
@@ -328,6 +330,7 @@
uploadFile, uploadFile,
viewFileModel viewFileModel
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
loading: false, loading: false,
@@ -404,39 +407,45 @@
{ {
title: 'ID', title: 'ID',
dataIndex: 'serialNumber', dataIndex: 'serialNumber',
align: 'left' align: 'left',
width: 235
}, },
{ {
title: this.$t('completedBy'), title: this.$t('completedBy'),
dataIndex: 'createBy', dataIndex: 'createBy',
ellipsis: true, ellipsis: true,
align: 'left' align: 'left',
width: 235
}, },
{ {
title: this.$t('completedTime'), title: this.$t('completedTime'),
dataIndex: 'createTime', dataIndex: 'createTime',
ellipsis: true, ellipsis: true,
align: 'left' align: 'left',
width: 235
}, },
{ {
title: this.$t('feedbackFromTheEngineer'), title: this.$t('feedbackFromTheEngineer'),
dataIndex: 'engineerFeedbackContent', dataIndex: 'engineerFeedbackContent',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'engineerFeedbackContent' } scopedSlots: { customRender: 'engineerFeedbackContent' },
width: 235
}, },
{ {
title: this.$t('Deliverables'), title: this.$t('Deliverables'),
dataIndex: 'fileId', dataIndex: 'fileId',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'Deliverables' } scopedSlots: { customRender: 'Deliverables' },
width: 235
}, },
{ {
title: this.$t('replyFromProjectContactPerson'), title: this.$t('replyFromProjectContactPerson'),
dataIndex: 'engineeringInterfacePersonReply', dataIndex: 'engineeringInterfacePersonReply',
ellipsis: true, ellipsis: true,
align: 'left' align: 'left',
width: 235
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
@@ -8,6 +8,7 @@
<div style="width: 100%"> <div style="width: 100%">
<a-table <a-table
ref="table" ref="table"
:components="drag(columns,'columns')"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: true}" :scroll="{x: true}"
@@ -26,9 +27,11 @@
import { getAction, postAction, downloadFile } from '@/api/manage' import { getAction, postAction, downloadFile } from '@/api/manage'
import moment from 'moment' import moment from 'moment'
import { Base64 } from 'js-base64' import { Base64 } from 'js-base64'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'circulationHistory', name: 'circulationHistory',
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
dataSource: [], dataSource: [],
@@ -45,23 +48,27 @@
{ {
title: this.$t('OperationNode'), title: this.$t('OperationNode'),
dataIndex: 'name', dataIndex: 'name',
align: 'left' align: 'left',
width: 470
}, },
{ {
title: this.$t('Operator'), title: this.$t('Operator'),
dataIndex: 'assignee', dataIndex: 'assignee',
align: 'left' align: 'left',
width: 270
}, },
{ {
title: this.$t('result'), title: this.$t('result'),
dataIndex: 'reviewResult', dataIndex: 'reviewResult',
align: 'left', align: 'left',
scopedSlots: { customRender: 'reviewResult' } scopedSlots: { customRender: 'reviewResult' },
width: 270
}, },
{ {
title: this.$t('opinion'), title: this.$t('opinion'),
dataIndex: 'approvalOpinion', dataIndex: 'approvalOpinion',
align: 'left' align: 'left',
width: 270
}, },
{ {
title: this.$t('operationTime'), title: this.$t('operationTime'),
@@ -45,6 +45,7 @@
ref='table' ref='table'
size='middle' size='middle'
rowKey='id' rowKey='id'
:components="drag(columns,'columns')"
:columns='columns' :columns='columns'
:dataSource='dataSource' :dataSource='dataSource'
:pagination='false' :pagination='false'
@@ -138,6 +139,7 @@
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import eventBUs from '@/common/event' import eventBUs from '@/common/event'
import store from '@/store/' import store from '@/store/'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'TaskParameterCollection', name: 'TaskParameterCollection',
@@ -148,6 +150,7 @@
HistoricalVersion, HistoricalVersion,
ProjectCollectionParameters ProjectCollectionParameters
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
columns: [ columns: [
@@ -17,6 +17,7 @@
</div> </div>
</div> </div>
<a-table <a-table
:components="drag(columns,'columnsAll')"
:columns="columns" :columns="columns"
:scroll="{x: 900}" :scroll="{x: 900}"
:data-source="dataList" :data-source="dataList"
@@ -67,6 +68,7 @@
import { getAction, postAction, deleteAction } from '@/api/manage' import { getAction, postAction, deleteAction } from '@/api/manage'
import certificationDirectoryAdd from './certificationDirectoryAdd' import certificationDirectoryAdd from './certificationDirectoryAdd'
import viewFileModel from '@/components/viewFileModel/index' import viewFileModel from '@/components/viewFileModel/index'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'certificationDirectory', name: 'certificationDirectory',
@@ -75,6 +77,7 @@
viewFileModel viewFileModel
}, },
props: ['isDisplayNum'], props: ['isDisplayNum'],
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
visible: false, visible: false,
@@ -86,45 +89,52 @@
title: this.$t('directoryName'), title: this.$t('directoryName'),
dataIndex: 'directoryName', dataIndex: 'directoryName',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 132
}, },
{ {
title: this.$t('batch'), title: this.$t('batch'),
dataIndex: 'lot', dataIndex: 'lot',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 132
}, },
{ {
title: this.$t('catalogFile'), title: this.$t('catalogFile'),
dataIndex: 'directoryFile', dataIndex: 'directoryFile',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'operationFile' } scopedSlots: { customRender: 'operationFile' },
width: 132
}, },
{ {
title: this.$t('testScheme'), title: this.$t('testScheme'),
dataIndex: 'experimentFile', dataIndex: 'experimentFile',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'operationFile' } scopedSlots: { customRender: 'operationFile' },
width: 132
}, },
{ {
title: this.$t('testReportLocation'), title: this.$t('testReportLocation'),
dataIndex: 'detectionReportLocation', dataIndex: 'detectionReportLocation',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 132
}, },
{ {
title: this.$t('explain'), title: this.$t('explain'),
dataIndex: 'explainInfo', dataIndex: 'explainInfo',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 132
}, },
{ {
title: this.$t('uploadTime'), title: this.$t('uploadTime'),
dataIndex: 'uploadTime', dataIndex: 'uploadTime',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 130
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
@@ -7,6 +7,7 @@
<div id="main-right"> <div id="main-right">
<a-table <a-table
ref="table" ref="table"
:components="drag(columns,'columns')"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: true}" :scroll="{x: true}"
@@ -27,6 +28,7 @@
import * as echarts from 'echarts' import * as echarts from 'echarts'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage' import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import responsibilityList from './responsibilityList' import responsibilityList from './responsibilityList'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'certificationProgress', name: 'certificationProgress',
@@ -39,6 +41,7 @@
default: [] default: []
} }
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
loading: false, loading: false,
@@ -50,28 +53,33 @@
columns: [ columns: [
{ {
title: this.$t('notInvolved'), title: this.$t('notInvolved'),
align: 'center', align: 'left',
dataIndex: 'notInvolved' dataIndex: 'notInvolved',
width: 102
}, },
{ {
title: this.$t('toBeStarted'), title: this.$t('toBeStarted'),
align: 'center', align: 'left',
dataIndex: 'toBeStarted' dataIndex: 'toBeStarted',
width: 102
}, },
{ {
title: this.$t('inProgress'), title: this.$t('inProgress'),
align: 'center', align: 'left',
dataIndex: 'inProgress' dataIndex: 'inProgress',
width: 102
}, },
{ {
title: this.$t('experimentFailed'), title: this.$t('experimentFailed'),
align: 'center', align: 'left',
dataIndex: 'experimentFailed' dataIndex: 'experimentFailed',
width: 122
}, },
{ {
title: this.$t('experimentPassed'), title: this.$t('experimentPassed'),
align: 'center', align: 'left',
dataIndex: 'experimentPassed' dataIndex: 'experimentPassed',
width: 122
} }
] ]
} }
@@ -14,6 +14,7 @@
<div id="main-right"> <div id="main-right">
<a-table <a-table
ref="table" ref="table"
:components="drag(columns,'columns')"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: true}" :scroll="{x: true}"
@@ -34,6 +35,7 @@
import * as echarts from 'echarts' import * as echarts from 'echarts'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage' import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import responsibilityList from './responsibilityList' import responsibilityList from './responsibilityList'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'CurrentStatusOfTheProjectEcharts', name: 'CurrentStatusOfTheProjectEcharts',
@@ -46,6 +48,7 @@
default: [] default: []
} }
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
loading: false, loading: false,
@@ -57,23 +60,27 @@
columns: [ columns: [
{ {
title: this.$t('red'), title: this.$t('red'),
align: 'center', align: 'left',
dataIndex: 'redCount' dataIndex: 'redCount',
width: 139
}, },
{ {
title: this.$t('yellow'), title: this.$t('yellow'),
align: 'center', align: 'left',
dataIndex: 'yellowCount' dataIndex: 'yellowCount',
width: 139
}, },
{ {
title: this.$t('green'), title: this.$t('green'),
align: 'center', align: 'left',
dataIndex: 'greenCount' dataIndex: 'greenCount',
width: 139
}, },
{ {
title: this.$t('blue'), title: this.$t('blue'),
align: 'center', align: 'left',
dataIndex: 'blueCount' dataIndex: 'blueCount',
width: 139
} }
] ]
} }
@@ -10,6 +10,7 @@
style="height: 100%;overflow: auto;padding-bottom: 53px;"> style="height: 100%;overflow: auto;padding-bottom: 53px;">
<div style="margin-bottom: 60px"> <div style="margin-bottom: 60px">
<a-table <a-table
:components="drag(columns,'columns')"
:columns="columns" :columns="columns"
rowKey="id" rowKey="id"
:scroll="{x: 800}" :scroll="{x: 800}"
@@ -42,11 +43,13 @@
<script> <script>
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'transferList', name: 'transferList',
components: {}, components: {},
props: ['url'], props: ['url'],
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
visible: false, visible: false,
@@ -58,7 +61,8 @@
title: this.$t('customColumn'), title: this.$t('customColumn'),
dataIndex: 'name', dataIndex: 'name',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 884
}, },
], ],
dataList: [ dataList: [
@@ -14,9 +14,10 @@
</template> </template>
<a-table <a-table
class="table" class="table"
:components="drag(columns,'columns')"
:columns="columns" :columns="columns"
:pagination="false" :pagination="false"
:scroll="{y: 400}" :scroll="{x:'100%',y: 400}"
:data-source="dataSource" :data-source="dataSource"
:loading="loading" :loading="loading"
> >
@@ -29,9 +30,11 @@
<script> <script>
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'historicalVersionList', name: 'historicalVersionList',
mixins: [ResizeColumnProvide, ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
visible: false, visible: false,
@@ -46,13 +49,15 @@
title: this.$t('versionName'), title: this.$t('versionName'),
dataIndex: 'versionsName', dataIndex: 'versionsName',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 362
}, },
{ {
title: this.$t('finalizationTime'), title: this.$t('finalizationTime'),
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 362
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
@@ -60,6 +60,7 @@
</a-form> </a-form>
</div> </div>
<a-table <a-table
:components="drag(columns,'columns')"
:columns="columns" :columns="columns"
rowKey="id" rowKey="id"
:scroll="{x: 1200}" :scroll="{x: 1200}"
@@ -93,6 +94,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: 'listAddModel', name: 'listAddModel',
@@ -100,6 +102,7 @@
globalAdvancedQuery globalAdvancedQuery
}, },
props: ['url'], props: ['url'],
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
toggleSearchStatus: false, toggleSearchStatus: false,
@@ -112,19 +115,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'),
@@ -142,13 +148,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'),
@@ -105,6 +105,7 @@
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"--> :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"-->
<a-table <a-table
class="table" class="table"
:components="drag(columns,'columnsAll')"
:columns="columns" :columns="columns"
rowKey="id" rowKey="id"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -270,6 +271,7 @@
import { getAction, postAction, downloadFile, putAction } from '@/api/manage' import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
import ImportFile from '@/components/ImportFile/index' import ImportFile from '@/components/ImportFile/index'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'listOfRelevantPersonnel', name: 'listOfRelevantPersonnel',
@@ -278,6 +280,7 @@
ImportFile, ImportFile,
personBatting personBatting
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
toggleSearchStatus: false, toggleSearchStatus: false,
@@ -288,31 +291,36 @@
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
align: 'left', align: 'left',
dataIndex: 'dutyTerritory_dictText', dataIndex: 'dutyTerritory_dictText',
ellipsis: true ellipsis: true,
width: 153
}, },
{ {
align: 'left', align: 'left',
dataIndex: 'lawEngineerName', dataIndex: 'lawEngineerName',
slots: { title: 'regulatoryEngineer' }, slots: { title: 'regulatoryEngineer' },
ellipsis: true ellipsis: true,
width: 153
}, },
{ {
align: 'left', align: 'left',
slots: { title: 'engineeringInterfacePerson' }, slots: { title: 'engineeringInterfacePerson' },
dataIndex: 'engineeringInterfacePersonName', dataIndex: 'engineeringInterfacePersonName',
ellipsis: true ellipsis: true,
width: 153
}, },
{ {
align: 'left', align: 'left',
slots: { title: 'certifiedEngineer' }, slots: { title: 'certifiedEngineer' },
dataIndex: 'certificationEngineerName', dataIndex: 'certificationEngineerName',
ellipsis: true ellipsis: true,
width: 153
}, },
{ {
title: this.$t('remarks'), title: this.$t('remarks'),
align: 'left', align: 'left',
dataIndex: 'remark', dataIndex: 'remark',
ellipsis: true ellipsis: true,
width: 153
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
@@ -689,4 +697,8 @@
/*/deep/.table .ant-table-tbody > tr > td {*/ /*/deep/.table .ant-table-tbody > tr > td {*/
/* color: #040B29 ;*/ /* color: #040B29 ;*/
/*}*/ /*}*/
.table {
margin-bottom: 60px;
}
</style> </style>
@@ -51,6 +51,7 @@
<a-table <a-table
ref="table" ref="table"
size="middle" size="middle"
:components="drag(columns,'columns')"
:loading="loading" :loading="loading"
rowKey="uuid" rowKey="uuid"
:pagination="false" :pagination="false"
@@ -85,9 +86,11 @@
<script> <script>
import { getAction, postAction, downloadFile, deleteAction,downloadFilePost } from '@/api/manage' import { getAction, postAction, downloadFile, deleteAction,downloadFilePost } from '@/api/manage'
import store from '@/store/' import store from '@/store/'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'nonConformance', name: 'nonConformance',
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
queryParam: {}, queryParam: {},
@@ -20,6 +20,7 @@
</div> </div>
<a-table <a-table
ref="table" ref="table"
:components="drag(columns,'columns')"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: true,y:400}" :scroll="{x: true,y:400}"
@@ -36,9 +37,11 @@
<script> <script>
import { getAction, postAction, downloadFile } from '@/api/manage' import { getAction, postAction, downloadFile } from '@/api/manage'
import moment from 'moment' import moment from 'moment'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'responsibilityList', name: 'responsibilityList',
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
visible: false, visible: false,
@@ -55,7 +58,7 @@
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
dataIndex: 'dutyTerritoryName', dataIndex: 'dutyTerritoryName',
align: 'center', align: 'left',
width: 400, width: 400,
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'areaOfResponsibility' } scopedSlots: { customRender: 'areaOfResponsibility' }
@@ -63,7 +66,7 @@
{ {
title: this.$t('Quantity'), title: this.$t('Quantity'),
dataIndex: 'amount', dataIndex: 'amount',
align: 'center', align: 'left',
ellipsis: true, ellipsis: true,
width: 300 width: 300
} }
@@ -31,6 +31,7 @@
</a-form> </a-form>
</div> </div>
<a-table <a-table
:components="drag(columns,'columns')"
:columns="columns" :columns="columns"
rowKey="id" rowKey="id"
:scroll="{x: 1000}" :scroll="{x: 1000}"
@@ -63,11 +64,13 @@
<script> <script>
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'transferList', name: 'transferList',
components: {}, components: {},
props: ['url'], props: ['url'],
mixins: [ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
visible: false, visible: false,
@@ -79,25 +82,29 @@
title: this.$t('VirtualListName'), title: this.$t('VirtualListName'),
dataIndex: 'name', dataIndex: 'name',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 235
}, },
{ {
title: this.$t('instructionForUse'), title: this.$t('instructionForUse'),
dataIndex: 'useExplain', dataIndex: 'useExplain',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 235
}, },
{ {
title: this.$t('updateTime'), title: this.$t('updateTime'),
dataIndex: 'updateTime', dataIndex: 'updateTime',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 235
}, },
{ {
title: this.$t('creater'), title: this.$t('creater'),
dataIndex: 'createBy', dataIndex: 'createBy',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 235
} }
], ],
dataList: [], dataList: [],
@@ -31,6 +31,7 @@
<!-- </a-form>--> <!-- </a-form>-->
<!-- </div>--> <!-- </div>-->
<a-table <a-table
:components="drag(columns,'columns')"
:columns="columns" :columns="columns"
:rowKey="(record)=>JSON.stringify(record)" :rowKey="(record)=>JSON.stringify(record)"
:scroll="{x: '100%',y:500}" :scroll="{x: '100%',y:500}"
@@ -63,9 +64,11 @@
<script> <script>
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'versionStatistics', name: 'versionStatistics',
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
visible: false, visible: false,
@@ -39,6 +39,7 @@
ref='table' ref='table'
size='middle' size='middle'
rowKey='id' rowKey='id'
:components="drag(columns,'columns')"
:columns='columns' :columns='columns'
:dataSource='areaTable' :dataSource='areaTable'
:pagination='false' :pagination='false'
@@ -72,12 +73,14 @@ import axios from 'axios'
import Vue from 'vue' import Vue from 'vue'
import ParameterTemplate from '../dialog/ParameterTemplate' import ParameterTemplate from '../dialog/ParameterTemplate'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'diolagArea', name: 'diolagArea',
components: { components: {
ParameterTemplate ParameterTemplate
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
token:Vue.ls.get(ACCESS_TOKEN), token:Vue.ls.get(ACCESS_TOKEN),
@@ -91,13 +94,15 @@ export default {
title: this.$t('zoneOfApplication'), title: this.$t('zoneOfApplication'),
dataIndex: 'region_dictText', dataIndex: 'region_dictText',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 296
}, },
{ {
title: this.$t('parameterTemplate'), title: this.$t('parameterTemplate'),
align: 'left', align: 'left',
dataIndex: 'paramsTemplateName', dataIndex: 'paramsTemplateName',
ellipsis: true ellipsis: true,
width: 296
} }
], ],
newVisible: false, newVisible: false,
@@ -148,6 +148,7 @@
ref='table' ref='table'
size='middle' size='middle'
rowKey='id' rowKey='id'
:components="drag(columns,'columns')"
:columns='columns' :columns='columns'
:dataSource='areaTable' :dataSource='areaTable'
:pagination='false' :pagination='false'
@@ -178,10 +179,12 @@
<script> <script>
import { putAction, postAction, getAction, deleteAction } from '@/api/manage' import { putAction, postAction, getAction, deleteAction } from '@/api/manage'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'diolagArea', name: 'diolagArea',
components: {}, components: {},
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
title: this.$t('add'), title: this.$t('add'),
@@ -193,15 +196,17 @@
{ {
title: this.$t('zoneOfApplication'), title: this.$t('zoneOfApplication'),
dataIndex: 'region_dictText', dataIndex: 'region_dictText',
key: 'showArea', // key: 'showArea',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 363
}, },
{ {
title: this.$t('parameterTemplate'), title: this.$t('parameterTemplate'),
align: 'left', align: 'left',
dataIndex: 'paramsTemplateName', dataIndex: 'paramsTemplateName',
ellipsis: true ellipsis: true,
width: 363
} }
], ],
projectVersionList: [], projectVersionList: [],
@@ -95,6 +95,7 @@
ref='table' ref='table'
size='middle' size='middle'
rowKey='id' rowKey='id'
:components="drag(columns,'columns')"
:columns='columns' :columns='columns'
:dataSource='areaTable' :dataSource='areaTable'
:pagination='false' :pagination='false'
@@ -141,12 +142,14 @@
import Vue from 'vue' import Vue from 'vue'
import ParameterTemplate from '../dialog/ParameterTemplate' import ParameterTemplate from '../dialog/ParameterTemplate'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'ProjectCollectionParameters', name: 'ProjectCollectionParameters',
components: { components: {
ParameterTemplate ParameterTemplate
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
token: Vue.ls.get(ACCESS_TOKEN), token: Vue.ls.get(ACCESS_TOKEN),
@@ -160,22 +163,25 @@
{ {
title: this.$t('entryName'), title: this.$t('entryName'),
dataIndex: 'projectName', dataIndex: 'projectName',
key: 'showArea', // key: 'showArea',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 242
}, },
{ {
title: this.$t('ListTitle'), title: this.$t('ListTitle'),
align: 'left', align: 'left',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true ellipsis: true,
width: 242
}, },
{ {
title: this.$t('parameterTemplate'), title: this.$t('parameterTemplate'),
align: 'left', align: 'left',
dataIndex: 'paramsTemplateName', dataIndex: 'paramsTemplateName',
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'parameterTemplateSlot' } scopedSlots: { customRender: 'parameterTemplateSlot' },
width: 242
} }
], ],
newVisible: false, newVisible: false,
@@ -5,6 +5,7 @@
ref='table' ref='table'
size='middle' size='middle'
rowKey='id' rowKey='id'
:components="drag(columns,'columns')"
:columns='columns' :columns='columns'
:dataSource='areaTable' :dataSource='areaTable'
:pagination='false' :pagination='false'
@@ -23,10 +24,12 @@ import { putAction, postAction, getAction, deleteAction } from '@/api/manage'
import axios from 'axios' import axios from 'axios'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import Vue from 'vue' import Vue from 'vue'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'diolagArea', name: 'diolagArea',
components: {}, components: {},
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
token:Vue.ls.get(ACCESS_TOKEN), token:Vue.ls.get(ACCESS_TOKEN),
@@ -40,14 +43,16 @@ export default {
title: this.$t('VersionNumber'), title: this.$t('VersionNumber'),
dataIndex: 'version', dataIndex: 'version',
align: 'left', align: 'left',
ellipsis: true ellipsis: true,
width: 351
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
align: 'left', align: 'left',
dataIndex: 'paramsTemplateName', dataIndex: 'paramsTemplateName',
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' },
width: 351
} }
], ],
newVisible: false, newVisible: false,