Commit d53fffd7 by li_hongchao

必中信息审核页面优化

parent 76d062d4
const _DEFAULT_KEYS = [ const _DEFAULT_KEYS = [
'公安厅', '公安厅',
'公安局', '公安局',
...@@ -12,7 +11,14 @@ const _DEFAULT_KEYS = [ ...@@ -12,7 +11,14 @@ const _DEFAULT_KEYS = [
const _TAG = 'src/utils/ZzjgUtil.js' const _TAG = 'src/utils/ZzjgUtil.js'
export default { export default {
formatContent(content) {
if (content && content.length <= 10) {
return content
}
let len = content.length
let last = this.lastZzjg(content, '')
return content.slice(0, 3) + '...' + last
},
last(content, defult = '...') { last(content, defult = '...') {
if (content && content.length <= 10) { if (content && content.length <= 10) {
return content return content
......
...@@ -136,9 +136,10 @@ ...@@ -136,9 +136,10 @@
<span class="clearCheck" @click="clearSelection()">清空</span> <span class="clearCheck" @click="clearSelection()">清空</span>
</el-tag> </el-tag>
<div class="bzxxsh-table">
<el-table <el-table
ref="multipleTable" ref="multipleTable"
class="bzxxsh-table"
:max-height="tableHeight" :max-height="tableHeight"
:data="tableDate" :data="tableDate"
:row-key="getRowKeys" :row-key="getRowKeys"
...@@ -147,7 +148,7 @@ ...@@ -147,7 +148,7 @@
:class="{ delSelection: !isSelectBoo }" :class="{ delSelection: !isSelectBoo }"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" :reserve-selection="false" <el-table-column v-if="isSelectBoo" type="selection" :reserve-selection="false"
:width="selectwidth" fixed="left" /> :width="selectwidth" fixed="left" />
<div v-for="item in tableColumns"> <div v-for="item in tableColumns">
...@@ -261,8 +262,7 @@ ...@@ -261,8 +262,7 @@
<div v-else-if="item.prop === 'sbdwGajgjgdmStr'"> <div v-else-if="item.prop === 'sbdwGajgjgdmStr'">
<el-table-column v-if="item.isShow" :prop="item.prop" <el-table-column v-if="item.isShow" :prop="item.prop"
:label="item.label" width="auto" :min-width="item.width" :label="item.label" width="auto" :min-width="item.width">
show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip effect="dark" :content="scope.row.sbdwGajgjgdmStr" <el-tooltip effect="dark" :content="scope.row.sbdwGajgjgdmStr"
placement="top-start"> placement="top-start">
...@@ -279,7 +279,8 @@ ...@@ -279,7 +279,8 @@
</div> </div>
</div> </div>
<el-table-column prop="prop" label="操作" :width="czWidth" fixed="right" style="background: white"> <el-table-column prop="prop" label="操作" :width="czWidth" fixed="right"
style="background: white">
<template slot-scope="scope"> <template slot-scope="scope">
<bzxxsf-opt :ref="getShxxOpt(scope.row.id)" :params="scope.row" :is-st="isStRole" <bzxxsf-opt :ref="getShxxOpt(scope.row.id)" :params="scope.row" :is-st="isStRole"
@refresh="bzxxsfOptRefresh" @refresh="bzxxsfOptRefresh"
...@@ -289,6 +290,7 @@ ...@@ -289,6 +290,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
<div class="bzxxsh-content-content-footer"> <div class="bzxxsh-content-content-footer">
<span class="record" <span class="record"
>&nbsp;{{ total }}&nbsp;条记录 第{{ currPage }}/{{ >&nbsp;{{ total }}&nbsp;条记录 第{{ currPage }}/{{
...@@ -462,8 +464,10 @@ export default { ...@@ -462,8 +464,10 @@ export default {
_that.SBDW.label = '地市' + _that.SBDW.label _that.SBDW.label = '地市' + _that.SBDW.label
_that.SBSJ.label = '地市' + _that.SBSJ.label _that.SBSJ.label = '地市' + _that.SBSJ.label
_that.SHR.label = '省厅复/' + _that.SHR.label _that.SHR.label = '省厅复/' + _that.SHR.label
_that.SHR.width = '126'
} else { } else {
_that.SHR.label = '地市' + _that.SHR.label _that.SHR.label = '地市' + _that.SHR.label
_that.SHR.width = '96'
} }
_that.tableColumns.push(_that.YTMH) _that.tableColumns.push(_that.YTMH)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment