Compare commits
5 Commits
a438469c6b
...
zhp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a98b7ceea | ||
| a6060b5a3b | |||
| 6955d75dd6 | |||
| db5e8db835 | |||
| 0d9b39d920 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "code-brick-zj",
|
"name": "code-brick-zj",
|
||||||
"version": "0.0.5",
|
"version": "0.0.7",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "组件封装",
|
"description": "组件封装",
|
||||||
"main": "index.js"
|
"main": "index.js"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
prop="_pageIndex"
|
prop="_pageIndex"
|
||||||
:width="pageWidth"
|
:width="pageWidth"
|
||||||
align="center"
|
align="center"
|
||||||
fixed
|
:fixed="cancelPageFixed ? false : true"
|
||||||
>
|
>
|
||||||
<template slot="header">
|
<template slot="header">
|
||||||
<el-popover placement="bottom-start" width="300" trigger="click">
|
<el-popover placement="bottom-start" width="300" trigger="click">
|
||||||
@@ -121,6 +121,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
|
cancelPageFixed: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
tableData: {
|
tableData: {
|
||||||
type: Array,
|
type: Array,
|
||||||
required: true,
|
required: true,
|
||||||
@@ -205,6 +209,9 @@ export default {
|
|||||||
let _this = this
|
let _this = this
|
||||||
let obj = _this.$refs[name].data[index]
|
let obj = _this.$refs[name].data[index]
|
||||||
_this.$refs[name].setCurrentRow(obj)
|
_this.$refs[name].setCurrentRow(obj)
|
||||||
|
},
|
||||||
|
doLayout(name) {
|
||||||
|
this.$refs[name].doLayout()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,6 +95,13 @@ export default {
|
|||||||
let showStatus = true
|
let showStatus = true
|
||||||
const showStatusArr = showParam.data.map((item) => {
|
const showStatusArr = showParam.data.map((item) => {
|
||||||
let showStatusItem = true
|
let showStatusItem = true
|
||||||
|
if (item.type === 'have') {
|
||||||
|
if (row[item.name] !== item.value) {
|
||||||
|
showStatusItem = true
|
||||||
|
} else {
|
||||||
|
showStatusItem = false
|
||||||
|
}
|
||||||
|
}
|
||||||
if (item.type === 'unequal') {
|
if (item.type === 'unequal') {
|
||||||
if (row[item.name] !== item.value) {
|
if (row[item.name] !== item.value) {
|
||||||
showStatusItem = true
|
showStatusItem = true
|
||||||
@@ -123,6 +130,13 @@ export default {
|
|||||||
showStatusItem = false
|
showStatusItem = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (item.type === 'have') {
|
||||||
|
if (row[item.name] !== item.value) {
|
||||||
|
showStatusItem = true
|
||||||
|
} else {
|
||||||
|
showStatusItem = false
|
||||||
|
}
|
||||||
|
}
|
||||||
if (item.type === 'indexof') {
|
if (item.type === 'indexof') {
|
||||||
if (item.value.indexOf(row[item.name]) >= 0) {
|
if (item.value.indexOf(row[item.name]) >= 0) {
|
||||||
showStatusItem = true
|
showStatusItem = true
|
||||||
|
|||||||
@@ -101,6 +101,7 @@
|
|||||||
@click="headBtnClick(item.name)"
|
@click="headBtnClick(item.name)"
|
||||||
>{{ item.btnName }}</el-button
|
>{{ item.btnName }}</el-button
|
||||||
>
|
>
|
||||||
|
<span v-if="item.type === 'separate'" class="separateStyle"></span>
|
||||||
<!-- 可用于显示其他按钮 -->
|
<!-- 可用于显示其他按钮 -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
@@ -253,4 +254,15 @@ export default {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color:#0B58FF;
|
color:#0B58FF;
|
||||||
}
|
}
|
||||||
|
.searchBar .el-input__prefix .el-icon-time {
|
||||||
|
font-size: 16px;
|
||||||
|
color:#0B58FF;
|
||||||
|
}
|
||||||
|
.searchBar .separateStyle {
|
||||||
|
display: inline-block;
|
||||||
|
width: 1px;
|
||||||
|
height: 24px;
|
||||||
|
background: #E8E8E8;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user