no message
This commit is contained in:
parent
b0f291c4cc
commit
7dbcd75d68
@ -4,7 +4,7 @@
|
|||||||
<el-table-column label="">
|
<el-table-column label="">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div class="tab-box dis-f al-item">
|
<div class="tab-box dis-f al-item">
|
||||||
<img :src="scope.row.icon" v-if="scope.row.icon" class="img" alt="">
|
<img @click="installPlugin(scope.row)" :src="scope.row.icon" v-if="scope.row.icon" class="img" alt="">
|
||||||
<div class="info-box">
|
<div class="info-box">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
{{ scope.row.name }}
|
{{ scope.row.name }}
|
||||||
@ -33,24 +33,22 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" width="80">
|
<el-table-column label="状态" width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-switch v-model="scope.row.status" :before-change="()=>changeStatus(scope.row)" :loading="scope.row.changeStatusloading||false" />
|
<el-switch v-model="scope.row.status" v-if="!scope.row.disabled" :before-change="()=>changeStatus(scope.row)" :loading="scope.row.changeStatusloading||false" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="200" fixed="right" align="right">
|
<el-table-column label="操作" width="200" fixed="right" align="right">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
<el-badge v-if="scope.row.upgrade" :value="scope.row.upgradeversion" style="margin-top: 10px; margin-right: 40px;">
|
||||||
|
<el-button @click="upgrade(scope.row)" icon="x-icon-upgrade" style="font-size: 22px; padding: 10px 6px;"></el-button>
|
||||||
|
</el-badge>
|
||||||
|
|
||||||
<el-badge v-if="scope.row.upgrade" :value="scope.row.upgradeversion" style="margin-top: 10px; margin-right: 40px;">
|
<el-badge v-if="!scope.row.disabled" style="margin-top: 10px; margin-right: 10px;">
|
||||||
<el-button @click="upgrade(scope.row)" icon="x-icon-upgrade" style="font-size: 22px; padding: 10px 6px;"></el-button>
|
<el-button @click="uninstall(scope.row, scope.$index)" icon="el-icon-delete" style="padding: 10px;"></el-button>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
|
|
||||||
<el-badge style="margin-top: 10px; margin-right: 10px;">
|
|
||||||
<el-button @click="uninstall(scope.row, scope.$index)" icon="el-icon-delete" style="padding: 10px;"></el-button>
|
|
||||||
</el-badge>
|
|
||||||
|
|
||||||
<el-badge style="margin-top: 10px; margin-right: 10px;">
|
|
||||||
<el-button @click="installPlugin(scope.row)" icon="el-icon-setting" style="padding: 10px;"></el-button>
|
|
||||||
</el-badge>
|
|
||||||
|
|
||||||
|
<el-badge style="margin-top: 10px; margin-right: 10px;">
|
||||||
|
<el-button @click="installPlugin(scope.row)" icon="el-icon-setting" style="padding: 10px;"></el-button>
|
||||||
|
</el-badge>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -114,7 +112,20 @@ export default {
|
|||||||
o.changeStatusloading = true;
|
o.changeStatusloading = true;
|
||||||
return this.$http.post('admin/application/upgrade', {app:o.app, upgradeversion:o.upgradeversion}).then((res) => {
|
return this.$http.post('admin/application/upgrade', {app:o.app, upgradeversion:o.upgradeversion}).then((res) => {
|
||||||
o.changeStatusloading = false;
|
o.changeStatusloading = false;
|
||||||
|
|
||||||
|
// 请先确认身份
|
||||||
|
if (res.code == 205) {
|
||||||
|
this.$message.warning(res.message || "请前往在线升级频道登录X-PHP后进行升级");
|
||||||
|
if (res.url) {
|
||||||
|
this.$router.replace({
|
||||||
|
path: res.url
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
this.loaddata();
|
||||||
this.$message.success(res.message || "操作成功")
|
this.$message.success(res.message || "操作成功")
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,13 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="install-btn" @click="install" style="flex:0.2;" v-if="!info.installed">
|
<div class="install-btn" @click="install" style="flex:0.2;" v-if="!info.installed">
|
||||||
安装
|
安装
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="install-btn" @click="uninstall" style="flex:0.2;background: #9E9E9E; border-color: #9E9E9E;">
|
<div class="install-btn" @click="uninstall" style="flex:0.2;background: #9E9E9E; border-color: #9E9E9E;">
|
||||||
卸载
|
卸载
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user