| @@ -707,6 +707,7 @@ export default { | |||||
| } | } | ||||
| }, | }, | ||||
| checked(val){ | checked(val){ | ||||
| this.paramsPublic.page = 1 | |||||
| this.paramsPublic.recommend = val | this.paramsPublic.recommend = val | ||||
| this.getImageListPublic() | this.getImageListPublic() | ||||
| } | } | ||||
| @@ -86,7 +86,7 @@ | |||||
| <el-table-column | <el-table-column | ||||
| prop="creator" | prop="creator" | ||||
| label="创建者" | label="创建者" | ||||
| min-width="8%" | |||||
| min-width="7%" | |||||
| align="center" | align="center" | ||||
| > | > | ||||
| <template slot-scope="scope"> | <template slot-scope="scope"> | ||||
| @@ -99,7 +99,7 @@ | |||||
| prop="createdUnix" | prop="createdUnix" | ||||
| label="创建时间" | label="创建时间" | ||||
| align="center" | align="center" | ||||
| min-width="14%" | |||||
| min-width="13%" | |||||
| > | > | ||||
| <template slot-scope="scope"> | <template slot-scope="scope"> | ||||
| {{scope.row.createdUnix | transformTimestamp}} | {{scope.row.createdUnix | transformTimestamp}} | ||||
| @@ -107,7 +107,7 @@ | |||||
| </el-table-column> | </el-table-column> | ||||
| <el-table-column | <el-table-column | ||||
| align="center" | align="center" | ||||
| min-width="21%" | |||||
| min-width="23%" | |||||
| label="操作" | label="操作" | ||||
| > | > | ||||
| <template slot-scope="scope"> | <template slot-scope="scope"> | ||||
| @@ -97,7 +97,7 @@ export default async function initImage(){ | |||||
| // 只有请求不正常(状态码不为200)才会执行 | // 只有请求不正常(状态码不为200)才会执行 | ||||
| // $('.ui.error.message').text(xhr.responseText) | // $('.ui.error.message').text(xhr.responseText) | ||||
| // $('.ui.error.message').css('display','block') | // $('.ui.error.message').css('display','block') | ||||
| $('.ui.positive.message').html(xhr.responseText).show().delay(1500).fadeOut(); | |||||
| $('.ui.negative.message').html(xhr.responseText).show().delay(1500).fadeOut(); | |||||
| }, | }, | ||||
| complete:function(xhr){ | complete:function(xhr){ | ||||
| $("#mask").css({"display":"none","z-index":"1"}) | $("#mask").css({"display":"none","z-index":"1"}) | ||||
| @@ -153,7 +153,7 @@ export default async function initImage(){ | |||||
| } | } | ||||
| }, | }, | ||||
| error: function(xhr){ | error: function(xhr){ | ||||
| $('.ui.positive.message').text(xhr.responseText).show().delay(1500).fadeOut(); | |||||
| $('.ui.negative.message').text(xhr.responseText).show().delay(1500).fadeOut(); | |||||
| } | } | ||||
| }) | }) | ||||
| } | } | ||||