Browse Source

fix issue

tags/v1.22.4.1^2
zhoupzh 3 years ago
parent
commit
37cf73964e
3 changed files with 6 additions and 5 deletions
  1. +1
    -0
      web_src/js/components/images/Images.vue
  2. +3
    -3
      web_src/js/components/images/adminImages.vue
  3. +2
    -2
      web_src/js/features/images.js

+ 1
- 0
web_src/js/components/images/Images.vue View File

@@ -707,6 +707,7 @@ export default {
}
},
checked(val){
this.paramsPublic.page = 1
this.paramsPublic.recommend = val
this.getImageListPublic()
}


+ 3
- 3
web_src/js/components/images/adminImages.vue View File

@@ -86,7 +86,7 @@
<el-table-column
prop="creator"
label="创建者"
min-width="8%"
min-width="7%"
align="center"
>
<template slot-scope="scope">
@@ -99,7 +99,7 @@
prop="createdUnix"
label="创建时间"
align="center"
min-width="14%"
min-width="13%"
>
<template slot-scope="scope">
{{scope.row.createdUnix | transformTimestamp}}
@@ -107,7 +107,7 @@
</el-table-column>
<el-table-column
align="center"
min-width="21%"
min-width="23%"
label="操作"
>
<template slot-scope="scope">


+ 2
- 2
web_src/js/features/images.js View File

@@ -97,7 +97,7 @@ export default async function initImage(){
// 只有请求不正常(状态码不为200)才会执行
// $('.ui.error.message').text(xhr.responseText)
// $('.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){
$("#mask").css({"display":"none","z-index":"1"})
@@ -153,7 +153,7 @@ export default async function initImage(){
}
},
error: function(xhr){
$('.ui.positive.message').text(xhr.responseText).show().delay(1500).fadeOut();
$('.ui.negative.message').text(xhr.responseText).show().delay(1500).fadeOut();
}
})
}


Loading…
Cancel
Save