| | |
| | | v-show="!shengjiing && upStatus === ''"
|
| | | :http-request="uploadPkg"
|
| | | :limit="1"
|
| | | accept=".zip,.tar,.gz,.tar.gz"
|
| | | >
|
| | | <i class="el-icon-upload"></i>
|
| | | <div
|
| | |
| | | <script>
|
| | | import {
|
| | | getDevInfo,
|
| | | doUpgrade,
|
| | | checkNewVersion,
|
| | | upgradeNewVersion,
|
| | | uploadUpgradePkg,
|
| | |
| | | });
|
| | | },
|
| | | upgrade() {
|
| | | if (!this.pkgID) {
|
| | | this.$notify.error({
|
| | | title: "失败",
|
| | | message: "请先上传更新包",
|
| | | });
|
| | | return;
|
| | | }
|
| | | this.shengjiing = true;
|
| | | upgradePkg({
|
| | | id: this.pkgID,
|
| | |
| | | value: item.val,
|
| | | }).then((res) => {
|
| | | if (res.code == 200) {
|
| | | this.$notify.success("更新成功");
|
| | | this.$notify.success("配置成功");
|
| | | }
|
| | | });
|
| | | },
|
| | |
| | | flex-shrink: 0;
|
| | | padding: 9px 10px 0 10px;
|
| | | border-right: 4px solid rgb(242, 242, 247);
|
| | |
|
| | | .menu-item {
|
| | | height: 56px;
|
| | | margin-bottom: 4px;
|