no message
This commit is contained in:
parent
fb7c06bd31
commit
b0f291c4cc
@ -8,11 +8,11 @@ const APP_CONFIG = {
|
|||||||
// Cookie name
|
// Cookie name
|
||||||
SESSIONNAME: 'miucms_session',
|
SESSIONNAME: 'miucms_session',
|
||||||
//TokenName
|
//TokenName
|
||||||
TOKEN_NAME: "authorization",
|
TOKEN_NAME: "token",
|
||||||
// 网站LOGO, 正式形
|
// 网站LOGO, 正式形
|
||||||
APP_LOGO: '',
|
APP_LOGO: '',
|
||||||
//接口地址
|
//接口地址
|
||||||
API_URL: 'https://49.0.203.204',
|
API_URL: 'http://localhost/admin/',
|
||||||
// 微信扫码登录
|
// 微信扫码登录
|
||||||
MY_SHOW_LOGIN_OAUTH: true,
|
MY_SHOW_LOGIN_OAUTH: true,
|
||||||
//
|
//
|
||||||
|
3
src/assets/icons/Upgrade.vue
Normal file
3
src/assets/icons/Upgrade.vue
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path d="M758.215111 530.375111a212.366222 212.366222 0 0 1 211.683556 211.740445 212.309333 212.309333 0 0 1-211.683556 211.683555 212.309333 212.309333 0 0 1-211.740444-211.683555 212.309333 212.309333 0 0 1 211.740444-211.740445z m0 79.587556a21.902222 21.902222 0 0 0-12.515555 3.697777l-3.413334 2.844445-72.931555 72.988444a22.300444 22.300444 0 0 0 0 31.857778c7.338667 7.338667 19.000889 8.931556 28.046222 2.958222l3.697778-3.015111 34.304-34.360889v164.579556a22.755556 22.755556 0 0 0 45.112889 4.551111l0.455111-4.551111v-164.579556l34.304 34.360889a22.300444 22.300444 0 0 0 31.857777 0 22.300444 22.300444 0 0 0 3.015112-28.103111l-3.072-3.697778-72.988445-72.988444a24.405333 24.405333 0 0 0-15.928889-6.542222zM451.811556 91.989333a133.12 133.12 0 0 1 168.732444-0.796444l362.552889 294.343111a22.186667 22.186667 0 0 1-14.336 39.367111l-98.816-1.592889v67.185778a275.228444 275.228444 0 0 0-357.148445 376.376889H330.979556a123.448889 123.448889 0 0 1-123.221334-123.278222V425.984l-96.256-1.706667a22.186667 22.186667 0 0 1-13.767111-39.253333z" fill="#D5BE93"></path> </svg>
|
||||||
|
</template>
|
@ -8,4 +8,5 @@ export { default as FileExcel } from './FileExcel.vue'
|
|||||||
export { default as FilePpt } from './FilePpt.vue'
|
export { default as FilePpt } from './FilePpt.vue'
|
||||||
export { default as Organization } from './Organization.vue'
|
export { default as Organization } from './Organization.vue'
|
||||||
export { default as Upload } from './Upload.vue'
|
export { default as Upload } from './Upload.vue'
|
||||||
export { default as Download } from './Download.vue'
|
export { default as Download } from './Download.vue'
|
||||||
|
export { default as Upgrade } from './Upgrade.vue'
|
@ -36,16 +36,21 @@
|
|||||||
<el-switch v-model="scope.row.status" :before-change="()=>changeStatus(scope.row)" :loading="scope.row.changeStatusloading||false" />
|
<el-switch v-model="scope.row.status" :before-change="()=>changeStatus(scope.row)" :loading="scope.row.changeStatusloading||false" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="120" fixed="right" align="center">
|
<el-table-column label="操作" width="200" fixed="right" align="right">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div class="tool-box dis-f jus-bet al-item" style="display: contents;">
|
|
||||||
<el-icon @click="uninstall(scope.row, scope.$index)" class="icon">
|
<el-badge v-if="scope.row.upgrade" :value="scope.row.upgradeversion" style="margin-top: 10px; margin-right: 40px;">
|
||||||
<el-icon-delete />
|
<el-button @click="upgrade(scope.row)" icon="x-icon-upgrade" style="font-size: 22px; padding: 10px 6px;"></el-button>
|
||||||
</el-icon>
|
</el-badge>
|
||||||
<el-icon style="margin-left:10px" @click="installPlugin(scope.row)" v-if="!scope.row.isdelete" class="icon">
|
|
||||||
<el-icon-setting />
|
<el-badge style="margin-top: 10px; margin-right: 10px;">
|
||||||
</el-icon>
|
<el-button @click="uninstall(scope.row, scope.$index)" icon="el-icon-delete" style="padding: 10px;"></el-button>
|
||||||
</div>
|
</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>
|
||||||
@ -100,8 +105,25 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
upgrade(o){
|
||||||
|
return ElMessageBox.confirm('正在将应用<'+ o.name + '>升级到'+o.upgradeversion, '此操作不可逆, 如已二次开发请谨慎操作', {
|
||||||
|
type: 'info',
|
||||||
|
closeOnClickModal: false,
|
||||||
|
confirmButtonText: '确认操作',
|
||||||
|
}).then(() => {
|
||||||
|
o.changeStatusloading = true;
|
||||||
|
return this.$http.post('admin/application/upgrade', {app:o.app, upgradeversion:o.upgradeversion}).then((res) => {
|
||||||
|
o.changeStatusloading = false;
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$message.success(res.message || "操作成功")
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
this.$alert(res.message, "提示", {type: 'error'});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
}).catch(() => {})
|
||||||
|
},
|
||||||
changeStatus(o){
|
changeStatus(o){
|
||||||
|
|
||||||
return ElMessageBox.confirm((o.status?'关闭应用会导致相关调用失效':'打开应用('+ o.name +')') + ', 确认执行?', '正在'+ (o.status?'关闭':'打开') + '应用', {
|
return ElMessageBox.confirm((o.status?'关闭应用会导致相关调用失效':'打开应用('+ o.name +')') + ', 确认执行?', '正在'+ (o.status?'关闭':'打开') + '应用', {
|
||||||
type: 'error',
|
type: 'error',
|
||||||
closeOnClickModal: false,
|
closeOnClickModal: false,
|
||||||
|
@ -35,6 +35,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="plugin-introduce">
|
<div class="plugin-introduce">
|
||||||
{{ info.description }}
|
{{ info.description }}
|
||||||
|
<div v-if="info.exec" style="padding: 10px 0;">
|
||||||
|
<p>当前应用需要第三方组件支持请使用命令行先安装</p>
|
||||||
|
<pre style="background: #848484; padding: 15px; color: #fff; font-size: 13px; border-radius: 4px;">{{ info.exec }}
|
||||||
|
|
||||||
|
|
||||||
|
或手动安装组件后再来操作安装
|
||||||
|
|
||||||
|
|
||||||
|
{{ info.otherexec }}</pre>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="plugin-tag-title">
|
<div class="plugin-tag-title">
|
||||||
相关详情
|
相关详情
|
||||||
|
Loading…
Reference in New Issue
Block a user