上线时验证节点是否在线,自己可以再次提交未完成任务(同步更新)
This commit is contained in:
parent
925f952748
commit
554e5864ea
@ -40,6 +40,7 @@
|
|||||||
<el-button @click="isQuerying = true">里站搜索</el-button>
|
<el-button @click="isQuerying = true">里站搜索</el-button>
|
||||||
<el-button @click="isViewingTag = true">查看标签</el-button>
|
<el-button @click="isViewingTag = true">查看标签</el-button>
|
||||||
<br>
|
<br>
|
||||||
|
<el-button v-if="isLion" @click="resetUndone">重置任务</el-button>
|
||||||
<div v-show="thumbnailGallery !== {}">
|
<div v-show="thumbnailGallery !== {}">
|
||||||
<span>
|
<span>
|
||||||
{{thumbnailGallery.shortName}}
|
{{thumbnailGallery.shortName}}
|
||||||
@ -235,6 +236,10 @@ let thumbnailGallery = computed(() => {
|
|||||||
return store.state.thumbnailGallery
|
return store.state.thumbnailGallery
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let isLion = computed(() => {
|
||||||
|
return store.state.userId === 3
|
||||||
|
})
|
||||||
|
|
||||||
function pullNewTag(){
|
function pullNewTag(){
|
||||||
store.dispatch("loadTags")
|
store.dispatch("loadTags")
|
||||||
}
|
}
|
||||||
@ -425,6 +430,10 @@ function onlineGalleryReader(gid){
|
|||||||
store.dispatch("queryOnlineLinks", gid)
|
store.dispatch("queryOnlineLinks", gid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//重新给节点发送未完成任务
|
||||||
|
function resetUndone(){
|
||||||
|
store.dispatch("resetUndone").then()
|
||||||
|
}
|
||||||
function deleteAuthCode(){
|
function deleteAuthCode(){
|
||||||
localStorage.removeItem('auth')
|
localStorage.removeItem('auth')
|
||||||
ElMessage("删除授权码完成")
|
ElMessage("删除授权码完成")
|
||||||
|
|||||||
@ -57,7 +57,7 @@ function closeDialog(){
|
|||||||
</template>
|
</template>
|
||||||
<el-scrollbar height="75vh" ref="onlineReadingScrollbar">
|
<el-scrollbar height="75vh" ref="onlineReadingScrollbar">
|
||||||
<el-image v-for="(link, i) in links" :src="link" :style="{'width': 'auto', 'text-align': 'center', 'background-color': 'ghostwhite'}"
|
<el-image v-for="(link, i) in links" :src="link" :style="{'width': 'auto', 'text-align': 'center', 'background-color': 'ghostwhite'}"
|
||||||
:preview-src-list="currentGallery.images" :initial-index="index * lengthPerPage + i" loading="lazy"/>
|
:preview-src-list="currentGallery.images" :initial-index="index * lengthPerPage + i" lazy/>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
|
||||||
<!--五页以下-->
|
<!--五页以下-->
|
||||||
|
|||||||
@ -91,7 +91,11 @@ const actions = {
|
|||||||
validate(context, AuthCode){
|
validate(context, AuthCode){
|
||||||
axios.post(BaseUrl + "validate?AuthCode=" + AuthCode).then((res)=>{
|
axios.post(BaseUrl + "validate?AuthCode=" + AuthCode).then((res)=>{
|
||||||
if(res.data.result === 'success'){
|
if(res.data.result === 'success'){
|
||||||
context.commit("_authed", {AuthCode, ...JSON.parse(res.data.data)})
|
let data = JSON.parse(res.data.data);
|
||||||
|
if(!data.isAvailable){
|
||||||
|
ElMessage({duration:0, message:"节点挂了,不能下也不能看,找狮子处理", type: "error"})
|
||||||
|
}
|
||||||
|
context.commit("_authed", {AuthCode, ...data})
|
||||||
//初始化
|
//初始化
|
||||||
context.dispatch("loadTags", true).then()
|
context.dispatch("loadTags", true).then()
|
||||||
context.dispatch("loadWeekUsedAmount").then()
|
context.dispatch("loadWeekUsedAmount").then()
|
||||||
@ -245,6 +249,11 @@ const actions = {
|
|||||||
else
|
else
|
||||||
ElMessage(res.data.data)
|
ElMessage(res.data.data)
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
resetUndone(context) {
|
||||||
|
axios.post(GalleryManageUrl + "/reset?AuthCode=big+lion").then((res) => {
|
||||||
|
ElMessage(res.data.data)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user