no message

This commit is contained in:
小陌 2024-03-20 23:17:51 +08:00
parent ac8f876db5
commit 4d4211b0bb
10 changed files with 187 additions and 127 deletions

6
dist/config.js vendored
View File

@ -1,8 +1,8 @@
const APP_CONFIG = { const APP_CONFIG = {
"APP_NAME": "聚美汽服", "APP_NAME": "demo",
"THEMESETTING": false, "THEMESETTING": false,
"API_URL": "https:\/\/jmqf.v0750.com\/adminApi", "API_URL": "https:\/\/x.cn\/adminApi",
"APP_VER": "5.0.56", "APP_VER": "VERSIONDATA",
"TOKEN_NAME": "token", "TOKEN_NAME": "token",
"WEBSOCKET": "", "WEBSOCKET": "",
"MY_SHOW_LOGIN_OAUTH": true, "MY_SHOW_LOGIN_OAUTH": true,

2
dist/index.html vendored
View File

@ -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, body,
#app { #app {
transition-property: filter; transition-property: filter;

4
dist/report.html vendored

File diff suppressed because one or more lines are too long

View File

@ -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
View 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}

File diff suppressed because one or more lines are too long

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

View File

@ -1,8 +1,8 @@
const APP_CONFIG = { const APP_CONFIG = {
"APP_NAME": "聚美汽服", "APP_NAME": "demo",
"THEMESETTING": false, "THEMESETTING": false,
"API_URL": "https:\/\/jmqf.v0750.com\/adminApi", "API_URL": "https:\/\/x.cn\/adminApi",
"APP_VER": "5.0.56", "APP_VER": "VERSIONDATA",
"TOKEN_NAME": "token", "TOKEN_NAME": "token",
"WEBSOCKET": "", "WEBSOCKET": "",
"MY_SHOW_LOGIN_OAUTH": true, "MY_SHOW_LOGIN_OAUTH": true,

View File

@ -17,11 +17,11 @@
<span class="title">授权 {{ name }}</span> <span class="title">授权 {{ name }}</span>
<p>{{ authorizationtime }}</p> <p>{{ authorizationtime }}</p>
<p> <p>
<i class="el-icon-mobile-phone"/> <i class="el-icon-mobile-phone" />
{{ userData.mobile }} {{ userData.mobile }}
</p> </p>
<p> <p>
<i class="wk wk-icon-email-outline"/> <i class="wk wk-icon-email-outline" />
{{ userData.email }} {{ userData.email }}
</p> </p>
</div> </div>
@ -47,18 +47,23 @@
</div> </div>
<div v-loading="checkLoading" class="last-time"> <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>
<!-- 检查更新后展示 --> <!-- 检查更新后展示 -->
<div v-if="isCheckUpdate" class> <div v-if="isCheckUpdate" class>
<!-- 已经是最新版本 --> <!-- 已经是最新版本 -->
<div v-if="isNewest" class="version"> <div v-if="isNewest" class="version">
<p class="text">您当前是最新版本</p> <p class="text">您当前是最新版本</p>
当前版本{{ version }} ({{ release }}) 当前版本{{ version }} ({{ release }})
</div> </div>
<div v-else v-loading="updateLoading" class="version"> <div v-else v-loading="updateLoading" class="version">
<p class="text">有新的版本可升级</p> <p class="text">有新的版本可升级</p>
当前版本{{ version }} ({{ release }}) 当前版本{{ version }} ({{ release }})
<div class="update-wrap"> <div class="update-wrap">
@ -66,27 +71,27 @@
<el-table :data="upgradelist" border style="width:100%"> <el-table :data="upgradelist" border style="width:100%">
<el-table-column label="版本" width="170"> <el-table-column label="版本" width="170">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.version }} ({{ scope.row.release }})</span> <span>{{ scope.row.version }} ({{ scope.row.release }})</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="更新内容"> <el-table-column label="更新内容">
<template #default="scope"> <template #default="scope">
<input style="cursor: pointer; " class="el-input__inner" type="text" readonly :value="scope.row.message"> <input style="cursor: pointer; " class="el-input__inner" type="text" readonly :value="scope.row.message">
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="发布时间" width="170"> <el-table-column label="发布时间" width="170">
<template #default="scope"> <template #default="scope">
<span v-time="scope.row.timestamp"></span> <span v-time="scope.row.timestamp"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="140" fixed="right"> <el-table-column label="操作" align="center" width="140" fixed="right">
<template #default="scope"> <template #default="scope">
<el-button :type="isCanUpdate ? 'default' : 'info'" @click="updateHandle(scope.row)">更新到此版本</el-button> <el-button :type="isCanUpdate ? 'default' : 'info'" @click="updateHandle(scope.row)">更新到此版本</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -98,7 +103,7 @@
<!-- 登录云平台弹窗 --> <!-- 登录云平台弹窗 -->
<el-dialog v-model="dialogVisible" class="xlogin" title="" width="500px"> <el-dialog v-model="dialogVisible" class="xlogin" title="" width="500px">
<template #header="{}"> <template #header="{ }">
<div class="el-dialog__title"> <div class="el-dialog__title">
登录云平台账号 登录云平台账号
<p class="description">您可以登录云平台账号来进行一键升级,如没有请<a target="_blank" :href="cloudregister">注册</a></p> <p class="description">您可以登录云平台账号来进行一键升级,如没有请<a target="_blank" :href="cloudregister">注册</a></p>
@ -109,13 +114,13 @@
<div class="form-item"> <div class="form-item">
<el-form-item prop="account"> <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> </el-form-item>
</div> </div>
<div class="form-item password"> <div class="form-item password">
<el-form-item prop="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> </el-form-item>
</div> </div>
<el-button type="primary" @click="loginHandle('loginRef')">确认登录</el-button> <el-button type="primary" @click="loginHandle('loginRef')">确认登录</el-button>
@ -145,10 +150,10 @@ export default {
password: [{ required: true, message: '请输入密码', trigger: 'blur' }] password: [{ required: true, message: '请输入密码', trigger: 'blur' }]
}, },
userData: { userData: {
uid:0 uid: 0
}, },
name:null, name: null,
authorizationtime:null, authorizationtime: null,
cloudregister: null, cloudregister: null,
isCheckUpdate: false, // isCheckUpdate: false, //
isNewest: false, // isNewest: false, //
@ -158,39 +163,41 @@ export default {
serverVersion: {}, // serverVersion: {}, //
upgradelist: [], // upgradelist: [], //
updateLoading: false, updateLoading: false,
progress: 0 // progress: 0, //
isupdateadminframework: false //
} }
}, },
created() { created() {
this.loaddata(); this.loaddata();
}, },
methods: { methods: {
loaddata(){ loaddata() {
this.loading = true; this.loading = true;
this.$http.get('admin/upgrade/get').then((res) => { this.$http.get('admin/upgrade/get').then((res) => {
this.loading = false; this.loading = false;
if (res.code == 200) { if (res.code == 200) {
this.userData = res.data.user; this.userData = res.data.user;
this.cloudregister = res.data.cloudregister; this.cloudregister = res.data.cloudregister;
this.name = res.data.name; this.name = res.data.name;
this.authorizationtime = res.data.authorizationtime; this.authorizationtime = res.data.authorizationtime;
return ; this.isupdateadminframework = res.data.isupdateadminframework;
} return;
this.$alert(res.message, "提示", {type: 'error'}); }
this.$alert(res.message, "提示", { type: 'error' });
}); });
}, },
loginHandle(formName) { loginHandle(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.$http.post('admin/upgrade/login', this.loginForm).then((res) => { this.$http.post('admin/upgrade/login', this.loginForm).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.dialogVisible = false; this.dialogVisible = false;
this.$message.success(res.message || "操作成功"); this.$message.success(res.message || "操作成功");
this.userData = res.data; this.userData = res.data;
return true; return true;
} }
this.$alert(res.message, "提示", {type: 'error'}); this.$alert(res.message, "提示", { type: 'error' });
}); });
} else { } else {
@ -200,29 +207,29 @@ export default {
}, },
logoutHandle() { logoutHandle() {
ElMessageBox.confirm('退出后无法在线升级系统框架和下载应用.', '正在退出云账号', { ElMessageBox.confirm('退出后无法在线升级系统框架和下载应用.', '正在退出云账号', {
type: 'error', type: 'error',
closeOnClickModal: false, closeOnClickModal: false,
confirmButtonText: '确认退出', confirmButtonText: '确认退出',
}).then(() => { }).then(() => {
this.$http.post('admin/upgrade/quit', {}).then((res) => { this.$http.post('admin/upgrade/quit', {}).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.userData = {uid:0} this.userData = { uid: 0 }
this.loginForm.account = '' this.loginForm.account = ''
this.loginForm.password = '' this.loginForm.password = ''
this.$message.success(res.message || "操作成功") this.$message.success(res.message || "操作成功")
return true; return true;
} }
this.$alert(res.message, "提示", {type: 'error'}); this.$alert(res.message, "提示", { type: 'error' });
}); });
}).catch(() => {}) }).catch(() => { })
}, },
async checkHandle() { async checkHandle() {
this.checkLoading = true this.checkLoading = true
var { code, data, message } = await this.$http.post('admin/upgrade/check', {}) var { code, data, message } = await this.$http.post('admin/upgrade/check', {})
this.checkLoading = false this.checkLoading = false
if (code==200) { if (code == 200) {
// //
this.isNewest = !data.upgrade ? true : false; this.isNewest = !data.upgrade ? true : false;
// //
@ -239,13 +246,38 @@ export default {
return true; return true;
} }
if (code==205) { if (code == 205) {
this.$message.info(message || "请先登录云平台") this.$message.info(message || "请先登录云平台")
this.dialogVisible = true; 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) { async updateHandle(row) {
@ -254,35 +286,35 @@ export default {
this.dialogVisible = true; this.dialogVisible = true;
return return
} }
this.updateLoading = { visible:true, text:'获取更新信息中' } this.updateLoading = { visible: true, text: '获取更新信息中' }
var res = await this.$http.post('admin/upgrade/update', {version:row.version, release:row.release, xphphash:row.xphphash}) var res = await this.$http.post('admin/upgrade/update', { version: row.version, release: row.release, xphphash: row.xphphash })
if (res.code == 200) { if (res.code == 200) {
this.updateLoading = { visible:true, text:res.message || "文件下载成功" } this.updateLoading = { visible: true, text: res.message || "文件下载成功" }
this.$message.success(res.message || "文件下载成功"); this.$message.success(res.message || "文件下载成功");
var _this = this; var _this = this;
setTimeout(async ()=>{ setTimeout(async () => {
var install = await _this.$http.post('admin/upgrade/install', {token:res.data.token}); var install = await _this.$http.post('admin/upgrade/install', { token: res.data.token });
if (install.code==200) { if (install.code == 200) {
_this.updateLoading = false _this.updateLoading = false
_this.$message.success(install.message || "更新成功") _this.$message.success(install.message || "更新成功")
// //
_this.checkHandle(); _this.checkHandle();
return ; return;
} }
this.updateLoading = false this.updateLoading = false
this.$alert(install.message || '操作失败', "提示", {type: 'error'}); this.$alert(install.message || '操作失败', "提示", { type: 'error' });
}, 1000) }, 1000)
return ; return;
} }
else if (res.code==205) { else if (res.code == 205) {
this.$message.info(res.message || "请先登录云平台") this.$message.info(res.message || "请先登录云平台")
this.dialogVisible = true; this.dialogVisible = true;
return ; return;
} }
this.updateLoading = false this.updateLoading = false
this.$alert(res.message || '操作失败', "提示", {type: 'error'}); this.$alert(res.message || '操作失败', "提示", { type: 'error' });
}, },
} }
} }
@ -290,35 +322,34 @@ export default {
<style> <style>
.xlogin .el-input__wrapper{ .xlogin .el-input__wrapper {
padding: 1px 1px; padding: 1px 1px;
} }
.xlogin .el-input__inner{
--el-input-inner-height: auto;
padding: 4px 10px;
}
.xlogin .el-input__inner {
--el-input-inner-height: auto;
padding: 4px 10px;
}
</style> </style>
<style lang="scss" scoped> <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 { .el-alert {
padding: 2px 4px; margin: 10px 0 10px;
font-size: 90%; }
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px;
clear: both;
display: initial;
cursor: pointer;
}
.el-alert { .el-alert:first-child {
margin: 10px 0 10px; margin: 0;
} }
.el-alert:first-child {
margin: 0;
}
/*@import "../styles/table.scss";*/ /*@import "../styles/table.scss";*/
$linkColor: #3b6ff1; $linkColor: #3b6ff1;
@ -331,6 +362,7 @@ $linkColor: #3b6ff1;
line-height: 38px; line-height: 38px;
color: #000; color: #000;
} }
.link { .link {
color: $linkColor; color: $linkColor;
cursor: pointer; cursor: pointer;
@ -360,10 +392,12 @@ $linkColor: #3b6ff1;
color: #fff; color: #fff;
font-size: 18px; font-size: 18px;
} }
.title { .title {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
} }
.description { .description {
height: 22px; height: 22px;
line-height: 22px; line-height: 22px;
@ -376,18 +410,22 @@ $linkColor: #3b6ff1;
display: flex; display: flex;
height: 40px; height: 40px;
align-items: center; align-items: center;
.face { .face {
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
img { img {
width: 100%; width: 100%;
} }
} }
.name { .name {
margin: 0 8px; margin: 0 8px;
} }
.phone { .phone {
margin-right: 8px; margin-right: 8px;
} }
@ -408,6 +446,7 @@ $linkColor: #3b6ff1;
display: flex; display: flex;
border-radius: 6px; border-radius: 6px;
justify-content: space-between; justify-content: space-between;
.face { .face {
width: 40px; width: 40px;
height: 40px; height: 40px;
@ -420,16 +459,19 @@ $linkColor: #3b6ff1;
color: #fff; color: #fff;
text-align: center; text-align: center;
flex-grow: 0; flex-grow: 0;
img { img {
width: 100%; width: 100%;
} }
} }
.info { .info {
flex-grow: 1; flex-grow: 1;
color: #a2a2a2; color: #a2a2a2;
font-size: 12px; font-size: 12px;
line-height: 20px; line-height: 20px;
} }
.name { .name {
height: 22px; height: 22px;
line-height: 22px; line-height: 22px;
@ -446,6 +488,7 @@ $linkColor: #3b6ff1;
font-size: 16px; font-size: 16px;
color: #333; color: #333;
cursor: pointer; cursor: pointer;
p { p {
height: 28px; height: 28px;
font-size: 14px; font-size: 14px;
@ -454,6 +497,7 @@ $linkColor: #3b6ff1;
font-weight: normal; font-weight: normal;
} }
} }
.el-button { .el-button {
height: 31px; height: 31px;
} }
@ -469,6 +513,7 @@ $linkColor: #3b6ff1;
a { a {
color: $linkColor; color: $linkColor;
} }
button { button {
display: block; display: block;
} }
@ -477,6 +522,7 @@ $linkColor: #3b6ff1;
// //
.data-back { .data-back {
margin-top: 40px; margin-top: 40px;
.link { .link {
margin-left: 20px; margin-left: 20px;
} }
@ -489,13 +535,16 @@ $linkColor: #3b6ff1;
padding: 14px; padding: 14px;
margin-top: 20px; margin-top: 20px;
background: #fafafa; background: #fafafa;
.database-wrap { .database-wrap {
margin-top: 20px; margin-top: 20px;
} }
.way { .way {
margin: 14px 0; margin: 14px 0;
// margin-bottom: 14px; // margin-bottom: 14px;
} }
.back-success { .back-success {
color: #f56c6c; color: #f56c6c;
height: 30px; height: 30px;
@ -503,11 +552,13 @@ $linkColor: #3b6ff1;
font-size: 18px; font-size: 18px;
margin-top: 12px; margin-top: 12px;
} }
.explain { .explain {
margin-top: 14px; margin-top: 14px;
line-height: 22px; line-height: 22px;
font-size: 12px; font-size: 12px;
color: #aaa; color: #aaa;
img { img {
width: 16px; width: 16px;
vertical-align: middle; vertical-align: middle;
@ -518,32 +569,35 @@ $linkColor: #3b6ff1;
// //
.custom { .custom {
width: 200px; width: 200px;
p { p {
width: 200px; width: 200px;
margin: 14px 0; margin: 14px 0;
} }
} }
.custom1 { .custom1 {
width: 200px; width: 200px;
margin-top: 14px; margin-top: 14px;
.el-button {
} .el-button {}
} }
// dialog // dialog
.el-dialog { .el-dialog {
padding-left: 25px; padding-left: 25px;
padding-right: 25px; padding-right: 25px;
border-radius: 6px; border-radius: 6px;
.el-dialog__title {
.description { .el-dialog__title {
font-size: 14px; .description {
color: #a2a2a2; font-size: 14px;
font-weight: normal; color: #a2a2a2;
} font-weight: normal;
} }
} }
}
// //
@ -554,15 +608,18 @@ $linkColor: #3b6ff1;
height: 45px; height: 45px;
} }
} }
.form-item { .form-item {
&.password { &.password {
margin-top: 8px; margin-top: 8px;
} }
p { p {
margin-bottom: 8px; margin-bottom: 8px;
} }
.el-input { .el-input {
input { input {
height: 47px; height: 47px;
background: #f8f8f8; background: #f8f8f8;
} }
@ -575,6 +632,7 @@ $linkColor: #3b6ff1;
text-align: right; text-align: right;
color: #2362fb; color: #2362fb;
} }
.register { .register {
margin-top: 20px; margin-top: 20px;
text-align: center; text-align: center;
@ -584,6 +642,7 @@ $linkColor: #3b6ff1;
.time { .time {
display: flex; display: flex;
.el-input { .el-input {
width: 246px; width: 246px;
margin-left: 108px; margin-left: 108px;
@ -594,13 +653,14 @@ $linkColor: #3b6ff1;
.p-contianer { .p-contianer {
margin-top: 30px; margin-top: 30px;
border-top: none; border-top: none;
.p-bar { .p-bar {
margin-right: 0; margin-right: 0;
} }
} }
// //
.update-wrap{ .update-wrap {
// margin-top: 10px; // margin-top: 10px;
// margin-right: 40px; // margin-right: 40px;
margin-top: 20px; margin-top: 20px;