no message
This commit is contained in:
parent
ac8f876db5
commit
4d4211b0bb
6
dist/config.js
vendored
6
dist/config.js
vendored
@ -1,8 +1,8 @@
|
||||
const APP_CONFIG = {
|
||||
"APP_NAME": "聚美汽服",
|
||||
"APP_NAME": "demo",
|
||||
"THEMESETTING": false,
|
||||
"API_URL": "https:\/\/jmqf.v0750.com\/adminApi",
|
||||
"APP_VER": "5.0.56",
|
||||
"API_URL": "https:\/\/x.cn\/adminApi",
|
||||
"APP_VER": "VERSIONDATA",
|
||||
"TOKEN_NAME": "token",
|
||||
"WEBSOCKET": "",
|
||||
"MY_SHOW_LOGIN_OAUTH": true,
|
||||
|
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1,4 +1,4 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.7f438750.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.6e8d7b4b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="adminui"><div class="app-loading"><div class="app-loading__logo"><img src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/logo.png"/></div><div class="app-loading-text"><span class="app-loading-preloader">X</span> <span class="app-loading-preloader">-</span> <span class="app-loading-preloader">A</span> <span class="app-loading-preloader">d</span> <span class="app-loading-preloader">m</span> <span class="app-loading-preloader">i</span> <span class="app-loading-preloader">n</span><div class="app-loading-viewtext-container"><span class="app-loading-viewtext">X</span> <span class="app-loading-viewtext">-</span> <span class="app-loading-viewtext">A</span> <span class="app-loading-viewtext">d</span> <span class="app-loading-viewtext">m</span> <span class="app-loading-viewtext">i</span> <span class="app-loading-viewtext">n</span></div></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>html,
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.a0a92e64.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.6e8d7b4b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="adminui"><div class="app-loading"><div class="app-loading__logo"><img src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/logo.png"/></div><div class="app-loading-text"><span class="app-loading-preloader">X</span> <span class="app-loading-preloader">-</span> <span class="app-loading-preloader">A</span> <span class="app-loading-preloader">d</span> <span class="app-loading-preloader">m</span> <span class="app-loading-preloader">i</span> <span class="app-loading-preloader">n</span><div class="app-loading-viewtext-container"><span class="app-loading-viewtext">X</span> <span class="app-loading-viewtext">-</span> <span class="app-loading-viewtext">A</span> <span class="app-loading-viewtext">d</span> <span class="app-loading-viewtext">m</span> <span class="app-loading-viewtext">i</span> <span class="app-loading-viewtext">n</span></div></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>html,
|
||||
body,
|
||||
#app {
|
||||
transition-property: filter;
|
||||
|
4
dist/report.html
vendored
4
dist/report.html
vendored
File diff suppressed because one or more lines are too long
1
dist/static/css/537.4a66b1eb.css
vendored
1
dist/static/css/537.4a66b1eb.css
vendored
@ -1 +0,0 @@
|
||||
.xlogin .el-input__wrapper{padding:1px 1px}.xlogin .el-input__inner{--el-input-inner-height:auto;padding:4px 10px}code[data-v-a75dfa78]{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px;clear:both;display:initial;cursor:pointer}.el-alert[data-v-a75dfa78]{margin:10px 0 10px}.el-alert[data-v-a75dfa78]:first-child{margin:0}.text[data-v-a75dfa78]{font-size:18px;font-weight:700;height:38px;line-height:38px;color:#000}.link[data-v-a75dfa78]{color:#3b6ff1;cursor:pointer}.x-update[data-v-a75dfa78]{width:100%;height:calc(100% - 102px);padding:15px 20px 20px;background:#fff;overflow:auto}.title-wrap[data-v-a75dfa78]{display:flex;padding:0 15px}.title-wrap .el-icon-setting[data-v-a75dfa78]{width:30px;height:30px;margin-right:12px;border-radius:6px;line-height:30px;text-align:center;background:#2362fb;color:#fff;font-size:18px}.title-wrap .title[data-v-a75dfa78]{font-size:16px;font-weight:700}.title-wrap .description[data-v-a75dfa78]{height:22px;line-height:22px;color:#a2a2a2;font-size:13px}.login-wrap[data-v-a75dfa78]{display:flex;height:40px;align-items:center}.login-wrap .face[data-v-a75dfa78]{width:40px;height:40px;border-radius:50%;overflow:hidden}.login-wrap .face img[data-v-a75dfa78]{width:100%}.login-wrap .name[data-v-a75dfa78]{margin:0 8px}.login-wrap .phone[data-v-a75dfa78]{margin-right:8px}.warning-box[data-v-a75dfa78]{margin-top:10px;margin-bottom:10px}.login-box[data-v-a75dfa78]{max-width:800px;background:#f8f8f8;padding:22px;display:flex;border-radius:6px;justify-content:space-between}.login-box .face[data-v-a75dfa78]{width:40px;height:40px;margin-right:14px;border-radius:50%;overflow:hidden;line-height:40px;background:var(--el-color-primary);font-size:12px;color:#fff;text-align:center;flex-grow:0}.login-box .face img[data-v-a75dfa78]{width:100%}.login-box .info[data-v-a75dfa78]{flex-grow:1;color:#a2a2a2;font-size:12px;line-height:20px}.login-box .name[data-v-a75dfa78]{height:22px;line-height:22px;font-weight:700;font-size:16px;color:#000;margin-right:10px}.login-box .login-box-title[data-v-a75dfa78]{height:22px;line-height:22px;font-weight:700;font-size:16px;color:#333;cursor:pointer}.login-box .login-box-title p[data-v-a75dfa78]{height:28px;font-size:14px;color:#a2a2a2;line-height:28px;font-weight:400}.login-box .el-button[data-v-a75dfa78]{height:31px}.last-time[data-v-a75dfa78]{margin:16px 0;padding:16px 0 0}.version a[data-v-a75dfa78]{color:#3b6ff1}.version button[data-v-a75dfa78]{display:block}.data-back[data-v-a75dfa78]{margin-top:40px}.data-back .link[data-v-a75dfa78]{margin-left:20px}.box[data-v-a75dfa78]{width:820px;border-radius:6px;padding:14px;margin-top:20px;background:#fafafa}.box .database-wrap[data-v-a75dfa78]{margin-top:20px}.box .way[data-v-a75dfa78]{margin:14px 0}.box .back-success[data-v-a75dfa78]{color:#f56c6c;height:30px;line-height:30px;font-size:18px;margin-top:12px}.box .explain[data-v-a75dfa78]{margin-top:14px;line-height:22px;font-size:12px;color:#aaa}.box .explain img[data-v-a75dfa78]{width:16px;vertical-align:middle}.custom[data-v-a75dfa78]{width:200px}.custom p[data-v-a75dfa78]{width:200px;margin:14px 0}.custom1[data-v-a75dfa78]{width:200px;margin-top:14px}.el-dialog[data-v-a75dfa78]{padding-left:25px;padding-right:25px;border-radius:6px}.el-dialog .el-dialog__title .description[data-v-a75dfa78]{font-size:14px;color:#a2a2a2;font-weight:400}.login-form .el-button[data-v-a75dfa78]{width:100%;font-size:16px;height:45px}.form-item.password[data-v-a75dfa78]{margin-top:8px}.form-item p[data-v-a75dfa78]{margin-bottom:8px}.form-item .el-input input[data-v-a75dfa78]{height:47px;background:#f8f8f8}.forget[data-v-a75dfa78]{height:40px;line-height:40px;text-align:right;color:#2362fb}.register[data-v-a75dfa78]{margin-top:20px;text-align:center;color:#2362fb;font-size:16px}.time[data-v-a75dfa78]{display:flex}.time .el-input[data-v-a75dfa78]{width:246px;margin-left:108px}.p-contianer[data-v-a75dfa78]{margin-top:30px;border-top:none}.p-contianer .p-bar[data-v-a75dfa78]{margin-right:0}.update-wrap[data-v-a75dfa78]{margin-top:20px}
|
1
dist/static/css/637.1fd8530b.css
vendored
Normal file
1
dist/static/css/637.1fd8530b.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.xlogin .el-input__wrapper{padding:1px 1px}.xlogin .el-input__inner{--el-input-inner-height:auto;padding:4px 10px}code[data-v-e6ec181a]{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px;clear:both;display:initial;cursor:pointer}.el-alert[data-v-e6ec181a]{margin:10px 0 10px}.el-alert[data-v-e6ec181a]:first-child{margin:0}.text[data-v-e6ec181a]{font-size:18px;font-weight:700;height:38px;line-height:38px;color:#000}.link[data-v-e6ec181a]{color:#3b6ff1;cursor:pointer}.x-update[data-v-e6ec181a]{width:100%;height:calc(100% - 102px);padding:15px 20px 20px;background:#fff;overflow:auto}.title-wrap[data-v-e6ec181a]{display:flex;padding:0 15px}.title-wrap .el-icon-setting[data-v-e6ec181a]{width:30px;height:30px;margin-right:12px;border-radius:6px;line-height:30px;text-align:center;background:#2362fb;color:#fff;font-size:18px}.title-wrap .title[data-v-e6ec181a]{font-size:16px;font-weight:700}.title-wrap .description[data-v-e6ec181a]{height:22px;line-height:22px;color:#a2a2a2;font-size:13px}.login-wrap[data-v-e6ec181a]{display:flex;height:40px;align-items:center}.login-wrap .face[data-v-e6ec181a]{width:40px;height:40px;border-radius:50%;overflow:hidden}.login-wrap .face img[data-v-e6ec181a]{width:100%}.login-wrap .name[data-v-e6ec181a]{margin:0 8px}.login-wrap .phone[data-v-e6ec181a]{margin-right:8px}.warning-box[data-v-e6ec181a]{margin-top:10px;margin-bottom:10px}.login-box[data-v-e6ec181a]{max-width:800px;background:#f8f8f8;padding:22px;display:flex;border-radius:6px;justify-content:space-between}.login-box .face[data-v-e6ec181a]{width:40px;height:40px;margin-right:14px;border-radius:50%;overflow:hidden;line-height:40px;background:var(--el-color-primary);font-size:12px;color:#fff;text-align:center;flex-grow:0}.login-box .face img[data-v-e6ec181a]{width:100%}.login-box .info[data-v-e6ec181a]{flex-grow:1;color:#a2a2a2;font-size:12px;line-height:20px}.login-box .name[data-v-e6ec181a]{height:22px;line-height:22px;font-weight:700;font-size:16px;color:#000;margin-right:10px}.login-box .login-box-title[data-v-e6ec181a]{height:22px;line-height:22px;font-weight:700;font-size:16px;color:#333;cursor:pointer}.login-box .login-box-title p[data-v-e6ec181a]{height:28px;font-size:14px;color:#a2a2a2;line-height:28px;font-weight:400}.login-box .el-button[data-v-e6ec181a]{height:31px}.last-time[data-v-e6ec181a]{margin:16px 0;padding:16px 0 0}.version a[data-v-e6ec181a]{color:#3b6ff1}.version button[data-v-e6ec181a]{display:block}.data-back[data-v-e6ec181a]{margin-top:40px}.data-back .link[data-v-e6ec181a]{margin-left:20px}.box[data-v-e6ec181a]{width:820px;border-radius:6px;padding:14px;margin-top:20px;background:#fafafa}.box .database-wrap[data-v-e6ec181a]{margin-top:20px}.box .way[data-v-e6ec181a]{margin:14px 0}.box .back-success[data-v-e6ec181a]{color:#f56c6c;height:30px;line-height:30px;font-size:18px;margin-top:12px}.box .explain[data-v-e6ec181a]{margin-top:14px;line-height:22px;font-size:12px;color:#aaa}.box .explain img[data-v-e6ec181a]{width:16px;vertical-align:middle}.custom[data-v-e6ec181a]{width:200px}.custom p[data-v-e6ec181a]{width:200px;margin:14px 0}.custom1[data-v-e6ec181a]{width:200px;margin-top:14px}.el-dialog[data-v-e6ec181a]{padding-left:25px;padding-right:25px;border-radius:6px}.el-dialog .el-dialog__title .description[data-v-e6ec181a]{font-size:14px;color:#a2a2a2;font-weight:400}.login-form .el-button[data-v-e6ec181a]{width:100%;font-size:16px;height:45px}.form-item.password[data-v-e6ec181a]{margin-top:8px}.form-item p[data-v-e6ec181a]{margin-bottom:8px}.form-item .el-input input[data-v-e6ec181a]{height:47px;background:#f8f8f8}.forget[data-v-e6ec181a]{height:40px;line-height:40px;text-align:right;color:#2362fb}.register[data-v-e6ec181a]{margin-top:20px;text-align:center;color:#2362fb;font-size:16px}.time[data-v-e6ec181a]{display:flex}.time .el-input[data-v-e6ec181a]{width:246px;margin-left:108px}.p-contianer[data-v-e6ec181a]{margin-top:30px;border-top:none}.p-contianer .p-bar[data-v-e6ec181a]{margin-right:0}.update-wrap[data-v-e6ec181a]{margin-top:20px}
|
1
dist/static/js/537.d818a153.js
vendored
1
dist/static/js/537.d818a153.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/637.9bb4a880.js
vendored
Normal file
1
dist/static/js/637.9bb4a880.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
||||
const APP_CONFIG = {
|
||||
"APP_NAME": "聚美汽服",
|
||||
"APP_NAME": "demo",
|
||||
"THEMESETTING": false,
|
||||
"API_URL": "https:\/\/jmqf.v0750.com\/adminApi",
|
||||
"APP_VER": "5.0.56",
|
||||
"API_URL": "https:\/\/x.cn\/adminApi",
|
||||
"APP_VER": "VERSIONDATA",
|
||||
"TOKEN_NAME": "token",
|
||||
"WEBSOCKET": "",
|
||||
"MY_SHOW_LOGIN_OAUTH": true,
|
||||
|
@ -17,11 +17,11 @@
|
||||
<span class="title">授权 {{ name }}</span>
|
||||
<p>{{ authorizationtime }}</p>
|
||||
<p>
|
||||
<i class="el-icon-mobile-phone"/>
|
||||
<i class="el-icon-mobile-phone" />
|
||||
{{ userData.mobile }}
|
||||
</p>
|
||||
<p>
|
||||
<i class="wk wk-icon-email-outline"/>
|
||||
<i class="wk wk-icon-email-outline" />
|
||||
{{ userData.email }}
|
||||
</p>
|
||||
</div>
|
||||
@ -47,18 +47,23 @@
|
||||
</div>
|
||||
|
||||
<div v-loading="checkLoading" class="last-time">
|
||||
<el-button :disabled="isClick" type="primary" plain @click="checkHandle">检查更新</el-button>
|
||||
<el-button :disabled="isClick" type="primary" plain @click="checkHandle">检查系统框架更新</el-button>
|
||||
</div>
|
||||
|
||||
<div v-if="isupdateadminframework" class="last-time">
|
||||
<el-badge is-dot class="item">
|
||||
<el-button :disabled="updateadminframeworkloading" :loading="updateadminframeworkloading" type="warning" plain @click="updateadminframework">{{ updateadminframeworkloading ? '文件下载中~~' : '后台框架有更新哦,点击更新' }}</el-button>
|
||||
</el-badge>
|
||||
</div>
|
||||
|
||||
<!-- 检查更新后展示 -->
|
||||
<div v-if="isCheckUpdate" class>
|
||||
<!-- 已经是最新版本 -->
|
||||
|
||||
<div v-if="isNewest" class="version">
|
||||
<p class="text">您当前是最新版本</p>
|
||||
当前版本:{{ version }} ({{ release }})
|
||||
</div>
|
||||
<div v-else v-loading="updateLoading" class="version">
|
||||
<div v-else v-loading="updateLoading" class="version">
|
||||
<p class="text">有新的版本可升级</p>
|
||||
当前版本:{{ version }} ({{ release }})
|
||||
<div class="update-wrap">
|
||||
@ -66,27 +71,27 @@
|
||||
<el-table :data="upgradelist" border style="width:100%">
|
||||
|
||||
<el-table-column label="版本" width="170">
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.version }} ({{ scope.row.release }})</span>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.version }} ({{ scope.row.release }})</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="更新内容">
|
||||
<template #default="scope">
|
||||
<input style="cursor: pointer; " class="el-input__inner" type="text" readonly :value="scope.row.message">
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<input style="cursor: pointer; " class="el-input__inner" type="text" readonly :value="scope.row.message">
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="发布时间" width="170">
|
||||
<template #default="scope">
|
||||
<span v-time="scope.row.timestamp"></span>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<span v-time="scope.row.timestamp"></span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="操作" align="center" width="140" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-button :type="isCanUpdate ? 'default' : 'info'" @click="updateHandle(scope.row)">更新到此版本</el-button>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-button :type="isCanUpdate ? 'default' : 'info'" @click="updateHandle(scope.row)">更新到此版本</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
@ -98,7 +103,7 @@
|
||||
|
||||
<!-- 登录云平台弹窗 -->
|
||||
<el-dialog v-model="dialogVisible" class="xlogin" title="" width="500px">
|
||||
<template #header="{}">
|
||||
<template #header="{ }">
|
||||
<div class="el-dialog__title">
|
||||
登录云平台账号
|
||||
<p class="description">您可以登录云平台账号来进行一键升级,如没有请<a target="_blank" :href="cloudregister">注册</a></p>
|
||||
@ -109,13 +114,13 @@
|
||||
<div class="form-item">
|
||||
<el-form-item prop="account">
|
||||
账号
|
||||
<el-input v-model="loginForm.account" autocomplete="off" placeholder="请输入您的云平台账号"/>
|
||||
<el-input v-model="loginForm.account" autocomplete="off" placeholder="请输入您的云平台账号" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="form-item password">
|
||||
<el-form-item prop="password">
|
||||
密码
|
||||
<el-input v-model="loginForm.password" autocomplete="off" type="password" placeholder="请输入您的云平台账号的密码"/>
|
||||
<el-input v-model="loginForm.password" autocomplete="off" type="password" placeholder="请输入您的云平台账号的密码" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-button type="primary" @click="loginHandle('loginRef')">确认登录</el-button>
|
||||
@ -145,10 +150,10 @@ export default {
|
||||
password: [{ required: true, message: '请输入密码', trigger: 'blur' }]
|
||||
},
|
||||
userData: {
|
||||
uid:0
|
||||
uid: 0
|
||||
},
|
||||
name:null,
|
||||
authorizationtime:null,
|
||||
name: null,
|
||||
authorizationtime: null,
|
||||
cloudregister: null,
|
||||
isCheckUpdate: false, // 是否检查更新过
|
||||
isNewest: false, // 是否是最新版本
|
||||
@ -158,39 +163,41 @@ export default {
|
||||
serverVersion: {}, // 服务器版本
|
||||
upgradelist: [], // 可以更新的版本
|
||||
updateLoading: false,
|
||||
progress: 0 // 进度
|
||||
progress: 0, // 进度
|
||||
isupdateadminframework: false // 是否更新后台框架
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.loaddata();
|
||||
},
|
||||
methods: {
|
||||
loaddata(){
|
||||
loaddata() {
|
||||
|
||||
this.loading = true;
|
||||
this.$http.get('admin/upgrade/get').then((res) => {
|
||||
this.loading = false;
|
||||
if (res.code == 200) {
|
||||
this.userData = res.data.user;
|
||||
this.cloudregister = res.data.cloudregister;
|
||||
this.name = res.data.name;
|
||||
this.authorizationtime = res.data.authorizationtime;
|
||||
return ;
|
||||
}
|
||||
this.$alert(res.message, "提示", {type: 'error'});
|
||||
this.loading = false;
|
||||
if (res.code == 200) {
|
||||
this.userData = res.data.user;
|
||||
this.cloudregister = res.data.cloudregister;
|
||||
this.name = res.data.name;
|
||||
this.authorizationtime = res.data.authorizationtime;
|
||||
this.isupdateadminframework = res.data.isupdateadminframework;
|
||||
return;
|
||||
}
|
||||
this.$alert(res.message, "提示", { type: 'error' });
|
||||
});
|
||||
},
|
||||
loginHandle(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$http.post('admin/upgrade/login', this.loginForm).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.dialogVisible = false;
|
||||
this.$message.success(res.message || "操作成功");
|
||||
this.userData = res.data;
|
||||
return true;
|
||||
}
|
||||
this.$alert(res.message, "提示", {type: 'error'});
|
||||
if (res.code == 200) {
|
||||
this.dialogVisible = false;
|
||||
this.$message.success(res.message || "操作成功");
|
||||
this.userData = res.data;
|
||||
return true;
|
||||
}
|
||||
this.$alert(res.message, "提示", { type: 'error' });
|
||||
});
|
||||
|
||||
} else {
|
||||
@ -200,29 +207,29 @@ export default {
|
||||
},
|
||||
logoutHandle() {
|
||||
ElMessageBox.confirm('退出后无法在线升级系统框架和下载应用.', '正在退出云账号', {
|
||||
type: 'error',
|
||||
closeOnClickModal: false,
|
||||
confirmButtonText: '确认退出',
|
||||
type: 'error',
|
||||
closeOnClickModal: false,
|
||||
confirmButtonText: '确认退出',
|
||||
}).then(() => {
|
||||
this.$http.post('admin/upgrade/quit', {}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.userData = {uid:0}
|
||||
this.loginForm.account = ''
|
||||
this.loginForm.password = ''
|
||||
this.$message.success(res.message || "操作成功")
|
||||
return true;
|
||||
}
|
||||
this.$alert(res.message, "提示", {type: 'error'});
|
||||
});
|
||||
this.$http.post('admin/upgrade/quit', {}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.userData = { uid: 0 }
|
||||
this.loginForm.account = ''
|
||||
this.loginForm.password = ''
|
||||
this.$message.success(res.message || "操作成功")
|
||||
return true;
|
||||
}
|
||||
this.$alert(res.message, "提示", { type: 'error' });
|
||||
});
|
||||
|
||||
}).catch(() => {})
|
||||
}).catch(() => { })
|
||||
},
|
||||
|
||||
async checkHandle() {
|
||||
this.checkLoading = true
|
||||
var { code, data, message } = await this.$http.post('admin/upgrade/check', {})
|
||||
this.checkLoading = false
|
||||
if (code==200) {
|
||||
if (code == 200) {
|
||||
// 是否为最新
|
||||
this.isNewest = !data.upgrade ? true : false;
|
||||
// 当前版本
|
||||
@ -239,13 +246,38 @@ export default {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (code==205) {
|
||||
if (code == 205) {
|
||||
this.$message.info(message || "请先登录云平台")
|
||||
this.dialogVisible = true;
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
this.$alert(message || '操作失败', "提示", {type: 'error'});
|
||||
this.$alert(message || '操作失败', "提示", { type: 'error' });
|
||||
},
|
||||
|
||||
async updateadminframework() {
|
||||
if (!this.userData.uid) {
|
||||
this.$message.info("请先登录云平台")
|
||||
this.dialogVisible = true;
|
||||
return
|
||||
}
|
||||
this.updateadminframeworkloading = true;
|
||||
var install = await this.$http.post('admin/upgrade/updateadminframework', { 'md5': this.isupdateadminframework });
|
||||
this.updateadminframeworkloading = false
|
||||
if (install.code == 200) {
|
||||
this.$message.success(install.message || "更新成功")
|
||||
// 查询更新
|
||||
this.loaddata();
|
||||
|
||||
|
||||
// 强制刷新当前页面 延迟1秒
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 1000)
|
||||
|
||||
return;
|
||||
}
|
||||
this.$message.error(install.message || "操作失败")
|
||||
},
|
||||
|
||||
async updateHandle(row) {
|
||||
@ -254,35 +286,35 @@ export default {
|
||||
this.dialogVisible = true;
|
||||
return
|
||||
}
|
||||
this.updateLoading = { visible:true, text:'获取更新信息中' }
|
||||
var res = await this.$http.post('admin/upgrade/update', {version:row.version, release:row.release, xphphash:row.xphphash})
|
||||
this.updateLoading = { visible: true, text: '获取更新信息中' }
|
||||
var res = await this.$http.post('admin/upgrade/update', { version: row.version, release: row.release, xphphash: row.xphphash })
|
||||
if (res.code == 200) {
|
||||
|
||||
this.updateLoading = { visible:true, text:res.message || "文件下载成功" }
|
||||
this.updateLoading = { visible: true, text: res.message || "文件下载成功" }
|
||||
this.$message.success(res.message || "文件下载成功");
|
||||
|
||||
var _this = this;
|
||||
setTimeout(async ()=>{
|
||||
var install = await _this.$http.post('admin/upgrade/install', {token:res.data.token});
|
||||
if (install.code==200) {
|
||||
_this.updateLoading = false
|
||||
_this.$message.success(install.message || "更新成功")
|
||||
// 查询更新
|
||||
_this.checkHandle();
|
||||
return ;
|
||||
}
|
||||
this.updateLoading = false
|
||||
this.$alert(install.message || '操作失败', "提示", {type: 'error'});
|
||||
setTimeout(async () => {
|
||||
var install = await _this.$http.post('admin/upgrade/install', { token: res.data.token });
|
||||
if (install.code == 200) {
|
||||
_this.updateLoading = false
|
||||
_this.$message.success(install.message || "更新成功")
|
||||
// 查询更新
|
||||
_this.checkHandle();
|
||||
return;
|
||||
}
|
||||
this.updateLoading = false
|
||||
this.$alert(install.message || '操作失败', "提示", { type: 'error' });
|
||||
}, 1000)
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
else if (res.code==205) {
|
||||
else if (res.code == 205) {
|
||||
this.$message.info(res.message || "请先登录云平台")
|
||||
this.dialogVisible = true;
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
this.updateLoading = false
|
||||
this.$alert(res.message || '操作失败', "提示", {type: 'error'});
|
||||
this.$alert(res.message || '操作失败', "提示", { type: 'error' });
|
||||
},
|
||||
}
|
||||
}
|
||||
@ -290,35 +322,34 @@ export default {
|
||||
|
||||
|
||||
<style>
|
||||
.xlogin .el-input__wrapper{
|
||||
padding: 1px 1px;
|
||||
}
|
||||
|
||||
.xlogin .el-input__inner{
|
||||
--el-input-inner-height: auto;
|
||||
padding: 4px 10px;
|
||||
}
|
||||
.xlogin .el-input__wrapper {
|
||||
padding: 1px 1px;
|
||||
}
|
||||
|
||||
.xlogin .el-input__inner {
|
||||
--el-input-inner-height: auto;
|
||||
padding: 4px 10px;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
code {
|
||||
padding: 2px 4px;
|
||||
font-size: 90%;
|
||||
color: #c7254e;
|
||||
background-color: #f9f2f4;
|
||||
border-radius: 4px;
|
||||
clear: both;
|
||||
display: initial;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
code {
|
||||
padding: 2px 4px;
|
||||
font-size: 90%;
|
||||
color: #c7254e;
|
||||
background-color: #f9f2f4;
|
||||
border-radius: 4px;
|
||||
clear: both;
|
||||
display: initial;
|
||||
cursor: pointer;
|
||||
}
|
||||
.el-alert {
|
||||
margin: 10px 0 10px;
|
||||
}
|
||||
|
||||
.el-alert {
|
||||
margin: 10px 0 10px;
|
||||
}
|
||||
.el-alert:first-child {
|
||||
margin: 0;
|
||||
}
|
||||
.el-alert:first-child {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/*@import "../styles/table.scss";*/
|
||||
$linkColor: #3b6ff1;
|
||||
@ -331,6 +362,7 @@ $linkColor: #3b6ff1;
|
||||
line-height: 38px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.link {
|
||||
color: $linkColor;
|
||||
cursor: pointer;
|
||||
@ -360,10 +392,12 @@ $linkColor: #3b6ff1;
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.description {
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
@ -376,18 +410,22 @@ $linkColor: #3b6ff1;
|
||||
display: flex;
|
||||
height: 40px;
|
||||
align-items: center;
|
||||
|
||||
.face {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
.phone {
|
||||
margin-right: 8px;
|
||||
}
|
||||
@ -408,6 +446,7 @@ $linkColor: #3b6ff1;
|
||||
display: flex;
|
||||
border-radius: 6px;
|
||||
justify-content: space-between;
|
||||
|
||||
.face {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
@ -420,16 +459,19 @@ $linkColor: #3b6ff1;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
flex-grow: 0;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
flex-grow: 1;
|
||||
color: #a2a2a2;
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.name {
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
@ -446,6 +488,7 @@ $linkColor: #3b6ff1;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
|
||||
p {
|
||||
height: 28px;
|
||||
font-size: 14px;
|
||||
@ -454,6 +497,7 @@ $linkColor: #3b6ff1;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.el-button {
|
||||
height: 31px;
|
||||
}
|
||||
@ -469,6 +513,7 @@ $linkColor: #3b6ff1;
|
||||
a {
|
||||
color: $linkColor;
|
||||
}
|
||||
|
||||
button {
|
||||
display: block;
|
||||
}
|
||||
@ -477,6 +522,7 @@ $linkColor: #3b6ff1;
|
||||
// 数据备份
|
||||
.data-back {
|
||||
margin-top: 40px;
|
||||
|
||||
.link {
|
||||
margin-left: 20px;
|
||||
}
|
||||
@ -489,13 +535,16 @@ $linkColor: #3b6ff1;
|
||||
padding: 14px;
|
||||
margin-top: 20px;
|
||||
background: #fafafa;
|
||||
|
||||
.database-wrap {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.way {
|
||||
margin: 14px 0;
|
||||
// margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.back-success {
|
||||
color: #f56c6c;
|
||||
height: 30px;
|
||||
@ -503,11 +552,13 @@ $linkColor: #3b6ff1;
|
||||
font-size: 18px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.explain {
|
||||
margin-top: 14px;
|
||||
line-height: 22px;
|
||||
font-size: 12px;
|
||||
color: #aaa;
|
||||
|
||||
img {
|
||||
width: 16px;
|
||||
vertical-align: middle;
|
||||
@ -518,32 +569,35 @@ $linkColor: #3b6ff1;
|
||||
// 数据库选择
|
||||
.custom {
|
||||
width: 200px;
|
||||
|
||||
p {
|
||||
width: 200px;
|
||||
margin: 14px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.custom1 {
|
||||
width: 200px;
|
||||
margin-top: 14px;
|
||||
.el-button {
|
||||
}
|
||||
|
||||
.el-button {}
|
||||
}
|
||||
|
||||
// dialog
|
||||
|
||||
.el-dialog {
|
||||
padding-left: 25px;
|
||||
padding-right: 25px;
|
||||
border-radius: 6px;
|
||||
.el-dialog__title {
|
||||
.description {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
font-weight: normal;
|
||||
}
|
||||
.el-dialog {
|
||||
padding-left: 25px;
|
||||
padding-right: 25px;
|
||||
border-radius: 6px;
|
||||
|
||||
.el-dialog__title {
|
||||
.description {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 登陆表单
|
||||
@ -554,15 +608,18 @@ $linkColor: #3b6ff1;
|
||||
height: 45px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-item {
|
||||
&.password {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.el-input {
|
||||
input {
|
||||
input {
|
||||
height: 47px;
|
||||
background: #f8f8f8;
|
||||
}
|
||||
@ -575,6 +632,7 @@ $linkColor: #3b6ff1;
|
||||
text-align: right;
|
||||
color: #2362fb;
|
||||
}
|
||||
|
||||
.register {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
@ -584,6 +642,7 @@ $linkColor: #3b6ff1;
|
||||
|
||||
.time {
|
||||
display: flex;
|
||||
|
||||
.el-input {
|
||||
width: 246px;
|
||||
margin-left: 108px;
|
||||
@ -594,13 +653,14 @@ $linkColor: #3b6ff1;
|
||||
.p-contianer {
|
||||
margin-top: 30px;
|
||||
border-top: none;
|
||||
|
||||
.p-bar {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 标记
|
||||
.update-wrap{
|
||||
.update-wrap {
|
||||
// margin-top: 10px;
|
||||
// margin-right: 40px;
|
||||
margin-top: 20px;
|
||||
|
Loading…
Reference in New Issue
Block a user