Commit 4251e48e by 无尘

fix: 修改内部判断

parent 252a3add
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"name": "@gic-test/vue-gic-card", "name": "@gic-test/vue-gic-card",
"description": "vue-gic-card Plugin", "description": "vue-gic-card Plugin",
"version": "1.0.38", "version": "1.0.41",
"license": "MIT", "license": "MIT",
"private": false, "private": false,
"main": "dist/vue-gic-card.js", "main": "dist/vue-gic-card.js",
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
width="130"> width="130">
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="pagination"> <div class="pagination" v-if="total>0">
<el-pagination <el-pagination
@size-change="cardSizeChange" @size-change="cardSizeChange"
@current-change="cardCurrentChange" @current-change="cardCurrentChange"
...@@ -228,6 +228,8 @@ ...@@ -228,6 +228,8 @@
console.log(res,res.data,res.data.errorCode) console.log(res,res.data,res.data.errorCode)
var resData = res.data var resData = res.data
if (resData.errorCode == 0) { if (resData.errorCode == 0) {
if (!!resData.result) {
if (!!resData.result.result) {
resData.result.result.forEach(function(ele,index){ resData.result.result.forEach(function(ele,index){
if (!!ele.beginDate) { if (!!ele.beginDate) {
ele.beginDate = that.formatDate(ele.beginDate,'.') ele.beginDate = that.formatDate(ele.beginDate,'.')
...@@ -237,7 +239,10 @@ ...@@ -237,7 +239,10 @@
} }
}) })
that.cardData = resData.result.result that.cardData = resData.result.result
}
that.total = resData.result.totalCount that.total = resData.result.totalCount
}
return; return;
} }
that.$message.error({ that.$message.error({
...@@ -315,6 +320,9 @@ ...@@ -315,6 +320,9 @@
#wrap{ #wrap{
background: #fff; background: #fff;
} }
.search-input{
width: 180px;
}
.attention-textAndImg-wrap /deep/{ .attention-textAndImg-wrap /deep/{
.text-img-search { .text-img-search {
margin: 10px 15px; margin: 10px 15px;
...@@ -326,6 +334,7 @@ ...@@ -326,6 +334,7 @@
float: left; float: left;
margin-right: 10px; margin-right: 10px;
} }
/deep/.search-input{ /deep/.search-input{
width: 180px; width: 180px;
.el-input__inner { .el-input__inner {
......
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