|
@@ -1,32 +1,14 @@
|
|
|
<template>
|
|
|
<div class="template-page-1">
|
|
|
- <zj-page-template
|
|
|
- ref="zjpage"
|
|
|
- tableMinHeight="300px"
|
|
|
- :getTableData="getTableData"
|
|
|
- :columnParsing="columnParsing"
|
|
|
- :reduction="reduction"
|
|
|
- :showTable="showTable"
|
|
|
- :codeGather="codeGather"
|
|
|
- :loading="loading"
|
|
|
- :lowerLine="true"
|
|
|
- :onSavePlan="onSavePlan"
|
|
|
- :onClosePlain="onClosePlain"
|
|
|
- :defaultSearchData="defaultSearchData"
|
|
|
- :replaceOrNotMap="replaceOrNotMap"
|
|
|
- :optionsEvensGroup="selBtn([...optionsEvensGroup, evens])"
|
|
|
- :operation="operation"
|
|
|
- :operationColumnWidth="operationColumnWidth"
|
|
|
- :plan="[...defaultPlan, ...timePlan, ...paramList, ...morePlan]"
|
|
|
+ <zj-page-template ref="zjpage" tableMinHeight="300px" :getTableData="getTableData" :columnParsing="columnParsing"
|
|
|
+ :reduction="reduction" :showTable="showTable" :codeGather="codeGather" :loading="loading" :lowerLine="true"
|
|
|
+ :onSavePlan="onSavePlan" :onClosePlain="onClosePlain" :defaultSearchData="defaultSearchData"
|
|
|
+ :replaceOrNotMap="replaceOrNotMap" :optionsEvensGroup="selBtn([...optionsEvensGroup, evens])" :operation="operation"
|
|
|
+ :operationColumnWidth="operationColumnWidth" :plan="[...defaultPlan, ...timePlan, ...paramList, ...morePlan]"
|
|
|
:tableEvents="{ ...defaultTableEvents, ...tableEvents }"
|
|
|
- :tableAttributes="{ ...defaultTableAttributes, ...tableAttributes }"
|
|
|
- :ellipsis="ellipsis"
|
|
|
- @columnWidthChange="columnWidthChange"
|
|
|
- @columnListChange="columnListChange"
|
|
|
- :screeningAnalysis="screeningAnalysis"
|
|
|
- :filterMethod="filterMethod"
|
|
|
- :moreParameters="moreParameters"
|
|
|
- >
|
|
|
+ :tableAttributes="{ ...defaultTableAttributes, ...tableAttributes }" :ellipsis="ellipsis" :pageSizes="pageSizes"
|
|
|
+ @columnWidthChange="columnWidthChange" @columnListChange="columnListChange" :screeningAnalysis="screeningAnalysis"
|
|
|
+ :filterMethod="filterMethod" :moreParameters="moreParameters">
|
|
|
<template slot="more-search">
|
|
|
<slot name="moreSearch"></slot>
|
|
|
</template>
|
|
@@ -148,7 +130,11 @@ export default {
|
|
|
default: (value, row, column) => {
|
|
|
return row[column['property']] === value
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ pageSizes: {
|
|
|
+ type: Array,
|
|
|
+ default: () => [15, 30, 50, 100, 150, 200],
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -158,15 +144,15 @@ export default {
|
|
|
// 按钮集合
|
|
|
evens: this.exportList
|
|
|
? [
|
|
|
- [
|
|
|
- {
|
|
|
- isRole: this.$restrict('export'),
|
|
|
- name: '导出',
|
|
|
- click: this.export,
|
|
|
- loading: false
|
|
|
- }
|
|
|
- ]
|
|
|
+ [
|
|
|
+ {
|
|
|
+ isRole: this.$restrict('export'),
|
|
|
+ name: '导出',
|
|
|
+ click: this.export,
|
|
|
+ loading: false
|
|
|
+ }
|
|
|
]
|
|
|
+ ]
|
|
|
: [],
|
|
|
// 表格属性
|
|
|
defaultTableAttributes: {},
|
|
@@ -331,7 +317,7 @@ export default {
|
|
|
this.getZfireParamList()
|
|
|
})
|
|
|
})
|
|
|
- .catch(() => {})
|
|
|
+ .catch(() => { })
|
|
|
}
|
|
|
},
|
|
|
// 过滤按钮集合
|
|
@@ -443,7 +429,7 @@ export default {
|
|
|
}),
|
|
|
this.moduleId
|
|
|
)
|
|
|
- .then(res => {})
|
|
|
+ .then(res => { })
|
|
|
.catch(err => {
|
|
|
this.$message.error('保存失败')
|
|
|
})
|
|
@@ -467,7 +453,7 @@ export default {
|
|
|
}),
|
|
|
this.moduleId
|
|
|
)
|
|
|
- .then(res => {})
|
|
|
+ .then(res => { })
|
|
|
.catch(err => {
|
|
|
this.$message.error('保存失败')
|
|
|
})
|
|
@@ -584,23 +570,28 @@ export default {
|
|
|
box-sizing: border-box;
|
|
|
overflow: auto;
|
|
|
}
|
|
|
+
|
|
|
.zj-page-template {
|
|
|
position: relative;
|
|
|
z-index: 0;
|
|
|
}
|
|
|
+
|
|
|
@font-face {
|
|
|
font-family: 'aliyun_iconfont';
|
|
|
src: url('~@/components/template/font/font_2075393_0cjq4n8ykvds.woff2') format('woff2'),
|
|
|
url('~@/components/template/font/font_2075393_0cjq4n8ykvds.woff') format('woff'),
|
|
|
url('~@/components/template/font/font_2075393_0cjq4n8ykvds.ttf') format('truetype');
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-table__cell {
|
|
|
padding: 0 !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-table--mini td,
|
|
|
::v-deep .el-table--mini th {
|
|
|
padding: 0 !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-table__column-filter-trigger {
|
|
|
.el-icon-arrow-down {
|
|
|
font-family: aliyun_iconfont !important;
|
|
@@ -618,29 +609,36 @@ export default {
|
|
|
width: 20px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
+
|
|
|
.el-icon-arrow-down:before {
|
|
|
content: '\e64c' !important;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
::v-deep .zj-buttons-group {
|
|
|
.el-upload-list {
|
|
|
display: none !important;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
::v-deep .operation-btns {
|
|
|
width: 100%;
|
|
|
height: 35px;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
align-items: center;
|
|
|
- & > *:not(:last-child) {
|
|
|
+
|
|
|
+ &>*:not(:last-child) {
|
|
|
margin-right: 5px;
|
|
|
}
|
|
|
+
|
|
|
.el-button {
|
|
|
margin-left: 0 !important;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
::v-deep .is-disabled {
|
|
|
+
|
|
|
.el-textarea__inner,
|
|
|
.el-input__inner,
|
|
|
.el-radio__label,
|
|
@@ -649,15 +647,18 @@ export default {
|
|
|
color: #606266 !important;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-checkbox.is-bordered.is-checked,
|
|
|
::v-deep .el-radio.is-bordered.is-checked {
|
|
|
border-color: #409eff !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-checkbox__input.is-checked .el-checkbox__inner,
|
|
|
::v-deep .el-radio__input.is-checked .el-radio__inner {
|
|
|
border-color: #409eff !important;
|
|
|
background: #409eff !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-checkbox.is-bordered {
|
|
|
margin-left: 0 !important;
|
|
|
margin-right: 10px !important;
|