<template>
|
<div class="s-task-manage">
|
<div style="height:100%;">
|
<div class="flex-box task-manage">
|
<div class="installModel" v-if="isInstall">
|
<div class="progress-bar">
|
<div class="inner-bar"></div>
|
</div>
|
</div>
|
<!-- 超级管理员可见 -->
|
<div class="super">
|
<div class="left-box">
|
<!-- <div class="title">
|
<label>算法库</label>
|
</div>-->
|
<el-tabs
|
v-model="activeName"
|
type="border-card"
|
@tab-click="handleTabClick"
|
style="height: calc(100% - 20px);"
|
>
|
<el-tab-pane label="已激活" name="myAlgorithm">
|
<div class="width-new-line task-list" v-show="activeName === 'myAlgorithm'">
|
<p class="src-title">算法软件</p>
|
<div class="flex-list">
|
<!-- <div class="wrap-box" v-for="item in ungradeList" :key="'upgrade'+item.id">
|
<div class="list-choose-item-left">
|
<div class="list-complete-item-handle">
|
<div
|
class="svg-wrap"
|
:class="{willUpGrade:item.isUpgrade}"
|
v-loading="item.upgradeLoading"
|
:element-loading-text="item.progressMsg"
|
element-loading-background="rgba(0,0,0,.8)"
|
>
|
<i class="iconfont iconupdate" v-if="item.isUpgrade"></i>
|
<div class="mask">
|
<div class="info-onmask">
|
<div>当前版本:{{item.version}}</div>
|
<div>最新版本:{{item.remoteVersion}}</div>
|
</div>
|
<div class="mask-btn">
|
<el-button
|
type="warning"
|
class="bot-btn"
|
size="small"
|
@click="donwload(item)"
|
>升级</el-button>
|
</div>
|
</div>
|
<img
|
v-if="item.iconBlob"
|
class="baseImg"
|
:src="item.iconBlob.indexOf(',')>0? item.iconBlob:`data:image/png;base64,${item.iconBlob}`"
|
alt
|
/>
|
<img v-else class="baseImg" :src="item.icon" alt />
|
</div>
|
<div class="alg-name">
|
<div style="padding:0px 10px 0px 10px;">
|
<span>{{ item.sdk_name }}</span>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>-->
|
<div class="wrap-box" v-for="(item) in installedList" :key="item.id">
|
<div class="list-choose-item-left">
|
<div class="list-complete-item-handle">
|
<div
|
class="svg-wrap"
|
:class="{willUpGrade:item.isUpgrade}"
|
v-loading="item.upgradeLoading"
|
:element-loading-text="item.progressMsg"
|
element-loading-background="rgba(0,0,0,.8)"
|
>
|
<i class="iconfont iconupdate" v-if="item.isUpgrade"></i>
|
<div class="mask" v-if="!item.isDefault || item.isUpgrade">
|
<div class="left-top">
|
<div>当前版本:{{item.version}}</div>
|
<div v-if="item.remoteVersion">最新版本:{{item.remoteVersion}}</div>
|
</div>
|
<div class="info-onmask" @click="checkDetail(item)">查看详情</div>
|
<div class="mask-btn">
|
<el-button
|
@click="unLoadSdk(item)"
|
type="primary"
|
size="small"
|
class="bot-btn"
|
>卸载</el-button>
|
<el-button
|
v-if="item.isUpgrade"
|
@click="donwload(item)"
|
type="warning"
|
size="small"
|
class="bot-btn"
|
>升级</el-button>
|
</div>
|
</div>
|
<img
|
v-if="item.iconBlob"
|
class="baseImg"
|
:src="item.iconBlob.indexOf(',')>0? item.iconBlob:`data:image/png;base64,${item.iconBlob}`"
|
alt
|
/>
|
<img v-else class="baseImg" :src="item.icon" alt />
|
</div>
|
<div class="alg-name">
|
<div style="padding:0px 10px 0px 10px;">
|
<span v-if="!item.isEdit">{{ item.sdk_name }}</span>
|
|
<el-input
|
size="small"
|
v-model="item.sdk_name"
|
v-if="item.isEdit"
|
v-focus
|
:maxlength="15"
|
@blur="inputBlur(item)"
|
></el-input>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<!-- </draggable> -->
|
<div class="wrap-box" v-for="(item) in notInstalledList" :key="item.id">
|
<div
|
class="list-choose-item-left list-choose-item-left-uninstal"
|
v-loading="downloading && downloadItem == item.id"
|
>
|
<div class="mask">
|
<el-button type="primary" class="bot-btn" @click="donwload(item)">安装</el-button>
|
</div>
|
<div class="click-download" title="下载">
|
<span class="iconfont iconxiazai1"></span>
|
</div>
|
<div class="list-complete-item-handle">
|
<div
|
class="svg-wrap"
|
v-loading="item.installLoading||item.upgradeLoading"
|
:element-loading-text="item.progressMsg"
|
element-loading-background="rgba(0,0,0,.8)"
|
>
|
<img
|
v-if="item.iconBlob"
|
class="baseImg"
|
:src="item.iconBlob.indexOf(',')>0? item.iconBlob:`data:image/png;base64,${item.iconBlob}`"
|
alt
|
/>
|
<img v-else class="baseImg" :src="item.icon" alt />
|
</div>
|
<div class="alg-name">
|
<div style="padding:0px 10px 0px 10px;">
|
<span class="list-choose-item-left-uninstal">{{ item.sdk_name }}</span>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<p class="src-title">应用软件</p>
|
<div class="flex-list">
|
<div class="wrap-box" v-for="(item) in installedApps" :key="item.id">
|
<div class="list-choose-item-left">
|
<div class="list-complete-item-handle">
|
<div
|
class="svg-wrap"
|
:class="{willUpGrade:item.isUpgrade}"
|
v-loading="item.unloadLoading||item.upgradeLoading"
|
:element-loading-text="item.progressMsg"
|
element-loading-background="rgba(0,0,0,.8)"
|
>
|
<i class="iconfont iconupdate" v-if="item.isUpgrade"></i>
|
<div class="mask">
|
<div class="left-top">
|
<div>当前版本:{{item.version}}</div>
|
<div v-if="item.remoteVersion">最新版本:{{item.remoteVersion}}</div>
|
</div>
|
<div class="info-onmask" @click="checkDetail(item)">查看详情</div>
|
<div class="mask-btn">
|
<el-button
|
v-if="!item.isDefault"
|
@click="unLoad(item)"
|
type="primary"
|
size="small"
|
class="bot-btn"
|
>卸载</el-button>
|
<el-button
|
v-if="item.isUpgrade"
|
@click="downloadApp(item,'upgrade')"
|
type="warning"
|
size="small"
|
class="bot-btn"
|
>升级</el-button>
|
</div>
|
</div>
|
<img
|
v-if="item.iconBlob"
|
class="baseImg"
|
:src="item.iconBlob.indexOf(',')>0? item.iconBlob:`data:image/png;base64,${item.iconBlob}`"
|
alt
|
/>
|
<img v-else class="baseImg" :src="item.icon" alt />
|
</div>
|
<div class="alg-name">
|
<div style="padding:0px 10px 0px 10px;">
|
<span v-if="!item.isEdit">{{ item.name }}</span>
|
<el-input
|
size="small"
|
v-model="item.sdk_name"
|
v-if="item.isEdit"
|
v-focus
|
:maxlength="15"
|
@blur="inputBlur(item)"
|
></el-input>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="wrap-box" v-for="item in storeApps" :key="item.id">
|
<div class="list-choose-item-left">
|
<div class="list-complete-item-handle uninstall">
|
<div
|
class="svg-wrap"
|
v-loading="item.installLoading||item.upgradeLoading"
|
:element-loading-text="item.progressMsg"
|
element-loading-background="rgba(0,0,0,.8)"
|
>
|
<div class="mask">
|
<el-button
|
size="small"
|
type="primary"
|
class="bot-btn"
|
@click="downloadApp(item)"
|
>安装</el-button>
|
</div>
|
<img
|
v-if="item.iconBlob"
|
class="baseImg"
|
:src="item.iconBlob.indexOf(',')>0? item.iconBlob:`data:image/png;base64,${item.iconBlob}`"
|
alt
|
/>
|
<img v-else class="baseImg" :src="item.icon" alt />
|
</div>
|
<div class="alg-name">
|
<div style="padding:0px 10px 0px 10px;">
|
<span v-if="!item.isEdit">{{ item.name }}</span>
|
<el-input
|
size="small"
|
v-model="item.name"
|
v-if="item.isEdit"
|
v-focus
|
:maxlength="15"
|
@blur="inputBlur(item)"
|
></el-input>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</el-tab-pane>
|
|
<el-tab-pane
|
label="离线升级/安装"
|
name="upgradeOrInstallation"
|
v-if="isShow('algorithmManage:insOffLine')"
|
>
|
<div class="tab-content">
|
<div class="action-bar">
|
<file-uploader
|
single
|
tip
|
tipWords="上传算法"
|
uploadPlaceholder="上传安装软件"
|
url="/data/api-v/sdk/upload"
|
@complete="onFileUpload"
|
@file-added="onFileAdded"
|
/>
|
</div>
|
</div>
|
</el-tab-pane>
|
<el-tab-pane label="应用中心" name="algorithmMall" v-if=" isShow('algorithmManage:buy')">
|
<div class="tab-content">
|
<p class="src-title">算法软件</p>
|
<div class="store-list flex-list">
|
<div class="wrap-box" v-for="item in unActivedSDKList" :key="item.id">
|
<div class="list-choose-item-left">
|
<div class="list-complete-item-handle">
|
<div class="alg-icon svg-wrap">
|
<div class="mask" @click="actSdkOrApp(item.id)">
|
<span
|
class="iconfont iconyunxiazai"
|
style="color:#ff6a00;font-size:20px;position:absolute;top:45%;left:45%"
|
></span>
|
</div>
|
<img
|
v-if="item.iconBlob"
|
class="baseImg"
|
:src="item.iconBlob.indexOf(',')>0? item.iconBlob:`data:image/png;base64,${item.iconBlob}`"
|
alt
|
/>
|
<img v-else class="baseImg" :src="item.icon" alt />
|
</div>
|
<div class="alg-name">
|
<div style="padding:0px 10px 0px 10px;">
|
<span v-if="!item.isEdit">{{ item.sdk_name }}</span>
|
<el-input
|
size="small"
|
v-model="item.sdk_name"
|
v-if="item.isEdit"
|
v-focus
|
:maxlength="15"
|
@blur="inputBlur(item)"
|
></el-input>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<p class="src-title">应用软件</p>
|
<div class="app-list flex-list">
|
<div class="wrap-box" v-for="item in unActivedAppList" :key="item.id">
|
<div class="list-choose-item-left">
|
<div class="list-complete-item-handle">
|
<div class="alg-icon svg-wrap">
|
<div class="mask" @click="actSdkOrApp(item.id,'app')">
|
<span
|
class="iconfont iconyunxiazai"
|
style="color:#ff6a00;font-size:20px;position:absolute;top:45%;left:45%"
|
></span>
|
</div>
|
<img
|
v-if="item.iconBlob"
|
class="baseImg"
|
:src="item.iconBlob.indexOf(',')>0? item.iconBlob:`data:image/png;base64,${item.iconBlob}`"
|
alt
|
/>
|
<img v-else class="baseImg" :src="item.icon" alt />
|
</div>
|
<div class="alg-name">
|
<div style="padding:0px 10px 0px 10px;">
|
<span v-if="!item.isEdit">{{ item.name }}</span>
|
<el-input
|
size="small"
|
v-model="item.name"
|
v-if="item.isEdit"
|
v-focus
|
:maxlength="15"
|
@blur="inputBlur(item)"
|
></el-input>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<el-drawer title="下载" :visible.sync="actDrawerShow" :direction="direction">
|
<div class="drawer-content">
|
<div class="current-step">
|
<el-steps align-center :active="actStep" finish-status="success">
|
<el-step title="添加激活码"></el-step>
|
<el-step title="激活成功"></el-step>
|
</el-steps>
|
</div>
|
|
<div v-if="actStep==0">
|
<div class="act-code">
|
<p>使用激活码将新的算法添加到您的账户</p>
|
<el-input
|
v-model="activeCode"
|
placeholder="00000-00000-00000-00000-00000"
|
@blur="getCodeDetail"
|
></el-input>
|
</div>
|
<div class="text-right">
|
<el-button type="primary" @click="actived">激活</el-button>
|
</div>
|
</div>
|
<div v-else-if="actStep==1">
|
<ul class="desc">
|
<li>
|
<label>激活码:</label>
|
<span>{{activedSdkOrApp.activateCode}}</span>
|
</li>
|
<li>
|
<label>产品名称:</label>
|
<span>{{activedSdkOrApp.productName}}</span>
|
</li>
|
<li>
|
<label>配置详情:</label>
|
<span>{{activedSdkOrApp.setting}}</span>
|
</li>
|
<li>
|
<label>服务到期日:</label>
|
<span>{{activedSdkOrApp.expireTime}}</span>
|
</li>
|
<li>
|
<label>许可证:</label>
|
<span>{{activedSdkOrApp.licence}}</span>
|
</li>
|
<!-- <li>
|
<label>设备ID:</label>
|
<span>3342-235f-ret55-fdsg</span>
|
</li>-->
|
</ul>
|
<div class="text-right">
|
<el-button type="primary" @click="checkMyAlgorith">确定</el-button>
|
<p class="tip">提示:请在“我的算法”中查看并安装算法</p>
|
</div>
|
</div>
|
</div>
|
</el-drawer>
|
</el-tab-pane>
|
<el-tab-pane name="update">
|
<span slot="label">
|
<el-badge class="update-badge" :value="updateNum">更新</el-badge>
|
</span>
|
<div class="task-list">
|
<div class="flex-title">
|
<p class="src-title">算法软件</p>
|
<el-button @click="batchUpdate('sdk')" size="mini" type="primary">更新全部</el-button>
|
</div>
|
<div class="flex-list">
|
<div v-if="!hasNewVersionSdk.length" class="empty-tip">暂无数据,请稍后重试...</div>
|
<div class="wrap-box" v-for="item in hasNewVersionSdk" :key="item.id">
|
<div class="list-choose-item-left">
|
<div class="list-complete-item-handle">
|
<div
|
class="svg-wrap"
|
:class="{willUpGrade:item.isUpgrade}"
|
v-loading="item.upgradeLoading"
|
:element-loading-text="item.progressMsg"
|
element-loading-background="rgba(0,0,0,.8)"
|
>
|
<i class="iconfont iconupdate" v-if="item.isUpgrade"></i>
|
<div class="mask" v-if="!item.isDefault || item.isUpgrade">
|
<div class="left-top">
|
<div>当前版本:{{item.version}}</div>
|
<div v-if="item.remoteVersion">最新版本:{{item.remoteVersion}}</div>
|
</div>
|
<div class="info-onmask" @click="checkDetail(item)">查看详情</div>
|
<div class="mask-btn">
|
<el-button
|
@click="unLoadSdk(item)"
|
type="primary"
|
size="small"
|
class="bot-btn"
|
>卸载</el-button>
|
<el-button
|
v-if="item.isUpgrade"
|
@click="donwload(item)"
|
type="warning"
|
size="small"
|
class="bot-btn"
|
>升级</el-button>
|
</div>
|
</div>
|
<img
|
v-if="item.iconBlob"
|
class="baseImg"
|
:src="item.iconBlob.indexOf(',')>0? item.iconBlob:`data:image/png;base64,${item.iconBlob}`"
|
alt
|
/>
|
<img v-else class="baseImg" :src="item.icon" alt />
|
</div>
|
<div class="alg-name">
|
<div style="padding:0px 10px 0px 10px;">
|
<span v-if="!item.isEdit">{{ item.sdk_name}}</span>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="flex-title">
|
<p class="src-title">应用软件</p>
|
<el-button @click="batchUpdate('app')" type="primary" size="mini">更新全部</el-button>
|
</div>
|
<div class="flex-list">
|
<div v-if="!hasNewVersionApp.length" class="empty-tip">暂无数据,请稍后重试...</div>
|
<div class="wrap-box" v-for="item in hasNewVersionApp" :key="item.id">
|
<div class="list-choose-item-left">
|
<div class="list-complete-item-handle">
|
<div
|
class="svg-wrap"
|
:class="{willUpGrade:item.isUpgrade}"
|
v-loading="item.unloadLoading||item.upgradeLoading"
|
:element-loading-text="item.progressMsg"
|
element-loading-background="rgba(0,0,0,.8)"
|
>
|
<i class="iconfont iconupdate" v-if="item.isUpgrade"></i>
|
<div class="mask">
|
<div class="left-top">
|
<div>当前版本:{{item.version}}</div>
|
<div v-if="item.remoteVersion">最新版本:{{item.remoteVersion}}</div>
|
</div>
|
<div class="info-onmask" @click="checkDetail(item)">查看详情</div>
|
<div class="mask-btn">
|
<el-button
|
v-if="!item.isDefault"
|
@click="unLoad(item)"
|
type="primary"
|
size="small"
|
class="bot-btn"
|
>卸载</el-button>
|
<el-button
|
v-if="item.isUpgrade"
|
@click="downloadApp(item,'upgrade')"
|
type="warning"
|
size="small"
|
class="bot-btn"
|
>升级</el-button>
|
</div>
|
</div>
|
<img
|
v-if="item.iconBlob"
|
class="baseImg"
|
:src="item.iconBlob.indexOf(',')>0? item.iconBlob:`data:image/png;base64,${item.iconBlob}`"
|
alt
|
/>
|
<img v-else class="baseImg" :src="item.icon" alt />
|
</div>
|
<div class="alg-name">
|
<div style="padding:0px 10px 0px 10px;">
|
<span v-if="!item.isEdit">{{ item.name }}</span>
|
<el-input
|
size="small"
|
v-model="item.sdk_name"
|
v-if="item.isEdit"
|
v-focus
|
:maxlength="15"
|
@blur="inputBlur(item)"
|
></el-input>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</el-tab-pane>
|
</el-tabs>
|
</div>
|
</div>
|
</div>
|
</div>
|
<el-dialog
|
title="安装包信息"
|
:visible.sync="installDialogVisible"
|
width="40%"
|
:close-on-click-modal="false"
|
>
|
<div class="installInfo">
|
<template v-if="installAppPackage != null">
|
<div>
|
<div>
|
<span>安装包名称:</span>
|
<span>{{installAppPackage.productName}}</span>
|
</div>
|
<div>
|
<span>安装版本:</span>
|
<span>{{installAppPackage.version}}</span>
|
</div>
|
<div>
|
<span>更新内容:</span>
|
<span>{{installAppPackage.installContent}}</span>
|
</div>
|
</div>
|
</template>
|
<template v-if="installSdkPackage != null">
|
<div>
|
<div>
|
<span>安装包名称:</span>
|
<span>{{installSdkPackage.productName}}</span>
|
</div>
|
<div>
|
<span>安装版本:</span>
|
<span>{{installSdkPackage.version}}</span>
|
</div>
|
<div>
|
<span>更新内容:</span>
|
<span>{{installSdkPackage.installContent}}</span>
|
</div>
|
</div>
|
</template>
|
<p>确定安装?</p>
|
</div>
|
<div slot="footer" class="dialog-footer">
|
<el-button @click="installDialogVisible = false">取 消</el-button>
|
<el-button type="primary" @click="offlineInstall">安 装</el-button>
|
</div>
|
</el-dialog>
|
<!-- <div class="dialog-content" v-if="productDetailVisible" > -->
|
<el-dialog
|
class="product-detail-dialog"
|
:visible="productDetailVisible"
|
@close="productDetailVisible=false"
|
>
|
<div class="dialog-title" slot="title">算法/应用详情</div>
|
<div class="dialog-content">
|
<div class="box-top">
|
<div class="top-left">
|
<div class="banner">
|
<!-- <el-carousel
|
ref="carousel"
|
:autoplay="false"
|
indicator-position="none"
|
:arrow="curCheckTarget.pics.length > 1 ? 'always' : 'never'"
|
@change="changeHandle"
|
>
|
<el-carousel-item v-for="(item, index) in curCheckTarget.pics" :key="index">
|
<div class="imgwrap">
|
<img
|
v-if="item.type=='image'"
|
:src="'/httpImage/'+item.url"
|
class="cursor-pointer"
|
preview
|
/>
|
<video v-if="item.type=='video'" :src="'/httpImage/'+item.url" controls></video>
|
</div>
|
</el-carousel-item>
|
</el-carousel>-->
|
</div>
|
</div>
|
<div class="top-right">
|
<div class="summary">
|
<div class="icon"></div>
|
<div class="name"></div>
|
<!-- <div class="tags">
|
<span
|
class="tag"
|
v-for="(id, index) in curCheckTarget.productLabelId"
|
:key="index+'i'"
|
>{{showNameById(id)}}</span>
|
</div>-->
|
<div class="btns">
|
<el-button size="mini">升级</el-button>
|
<el-button size="mini">卸载</el-button>
|
<el-button size="mini">打开</el-button>
|
</div>
|
</div>
|
<div class="product-intruduction">
|
<div class="title">产品简介</div>
|
</div>
|
</div>
|
</div>
|
<div class="box-bot">
|
<div class="bot-left">
|
<div class="part-title">功能特点</div>
|
</div>
|
<div class="bot-right">
|
<div class="part-title">推荐算法</div>
|
</div>
|
</div>
|
</div>
|
</el-dialog>
|
</div>
|
</template>
|
<script>
|
|
import { findAllSdk, downloadSdk, installSdk, getInstallInfo, removeSdk } from "./api";
|
import { getApps, installApp, removeApp, getUnActivedSdk, actPageAlg, getUnActivedApp, actApp } from "@/api/app";
|
|
import FileUploader from "@/components/subComponents/FileUpload/index";
|
export default {
|
name: "algorithmManage",
|
props: {},
|
components: {
|
FileUploader
|
},
|
computed: {
|
updateNum () {
|
return this.hasNewVersionApp.length + this.hasNewVersionSdk.length
|
},
|
// notInstalledList () {
|
// return this.sdkList.filter(sdk => {
|
// return sdk.installed === false;
|
// });
|
// },
|
// installedList () {
|
// return this.sdkList.filter(sdk => {
|
// return sdk.installed === true && !sdk.isUpgrade;
|
// });
|
// },
|
// ungradeList () {
|
// // 升级处理会导致重复的key,需要修改
|
// let arr = this.sdkList.filter(sdk => {
|
// return sdk.isUpgrade === true;
|
// });
|
// arr.forEach(sdk => {
|
// sdk.upgradeLoading = false;
|
// });
|
// return arr;
|
// },
|
isAdmin () {
|
if (
|
sessionStorage.getItem("userInfo") &&
|
sessionStorage.getItem("userInfo") !== ""
|
) {
|
let loginName = JSON.parse(sessionStorage.getItem("userInfo")).username;
|
return loginName === "superadmin" || loginName === "basic";
|
}
|
|
return false;
|
},
|
},
|
data () {
|
return {
|
sdkList: [],
|
installedList: [],
|
hasNewVersionSdk: [],
|
hasNewVersionApp: [],
|
notInstalledList: [],
|
buttonAuthority: sessionStorage.getItem("buttonAuthoritys") || [],
|
activeName: "myAlgorithm",
|
patchUpdateStatus: "",
|
downloadItem: "",
|
downloading: false,
|
direction: "rtl",
|
actDrawerShow: false,
|
actStep: 0,
|
activeCode: "",
|
isInstall: false,
|
installDialogVisible: false,
|
installPackage: {},
|
installAppPackage: null,
|
installSdkPackage: null,
|
installPercentage: 0,
|
unActivedSDKList: [],
|
unActivedAppList: [],
|
//actSdkId: '',
|
actType: '',
|
actId: '',
|
activedSdkOrApp: {
|
activateCode: '',
|
productName: '',
|
setting: '',
|
expireTime: '',
|
licence: '',
|
devIds: ''
|
},
|
// unloadLoading: false,
|
// installLoading: false,
|
installedApps: [],
|
storeApps: [],
|
installFile: {},
|
freshTimer: null,
|
appUpgreading: true,
|
sdkUpgreading: true,
|
autoRefresh: true,
|
curCheckTarget: {},
|
productDetailVisible: false,
|
}
|
},
|
directives: {
|
focus: {
|
inserted: function (el) {
|
el.querySelector("input").focus();
|
}
|
}
|
},
|
mounted () {
|
// 获取所有应用
|
this.autoRefreshAppAndSdkState();
|
|
this.getUnActivedList();
|
this.getUnActivedAppList();
|
},
|
beforeDestroy () {
|
this.autoRefresh = false;
|
},
|
methods: {
|
isShow (authority) {
|
return this.isAdmin || this.buttonAuthority.indexOf("," + authority + ",") > -1
|
},
|
batchUpdate (type) {
|
if (type == "sdk") {
|
this.hasNewVersionSdk.forEach(sdk => {
|
this.donwload(sdk)
|
})
|
} else {
|
this.hasNewVersionApp.forEach(app => {
|
this.downloadApp(app, 'upgrade')
|
})
|
}
|
},
|
checkDetail (item) {
|
this.curCheckTarget = item;
|
debugger
|
this.productDetailVisible = true;
|
},
|
//离线安装
|
offlineInstall () {
|
this.installDialogVisible = false;
|
this.isInstall = true;
|
//安装
|
installSdk(this.installFile).then(res => {
|
if (res.success) {
|
this.isInstall = false;
|
this.$message({
|
type: 'success',
|
message: '安装成功,将跳转至"已激活"中查看'
|
});
|
setTimeout(() => {
|
this.getAllSdk();
|
window.parent.postMessage({
|
msg: "AppUpdate"
|
}, '*')
|
this.activeName = 'myAlgorithm';
|
}, 3000);
|
}
|
|
}).catch(e => {
|
console.log(e)
|
this.isInstall = false;
|
this.$message({
|
type: 'error',
|
message: e.data
|
});
|
})
|
},
|
downloadApp (app, action) {
|
if (action == 'upgrade') {
|
app.upgradeLoading = true;
|
} else {
|
app.installLoading = true;
|
}
|
let _this = this;
|
|
installApp({ path: app.id }).then(res => {
|
if (res && res.success) {
|
setTimeout(() => {
|
if (action == 'upgrade') {
|
app.upgradeLoading = false;
|
// _this.$notify({
|
// type: 'success',
|
// message: '升级成功'
|
// });
|
} else {
|
app.installLoading = false;
|
// _this.$notify({
|
// type: 'success',
|
// message: '安装成功'
|
// });
|
}
|
// _this.getAllApps();
|
window.parent.postMessage({
|
msg: "AppUpdate"
|
}, '*')
|
}, 3000);
|
}
|
}).catch(e => {
|
console.log(e);
|
if (action == 'upgrade') {
|
app.upgradeLoading = false;
|
} else {
|
app.installLoading = false;
|
}
|
})
|
|
// 开启自动刷新
|
this.appUpgreading = true;
|
},
|
async getAllApps () {
|
let iArry = []
|
let sArry = []
|
let nArry = []
|
let rsp = await getApps();
|
if (rsp && rsp.success) {
|
// 遍历app的过程重置
|
this.appUpgreading = false;
|
|
rsp.data.forEach(item => {
|
let obj = Object.assign({ unloadLoading: false, upgradeLoading: false }, item)
|
if (obj.progressMsg !== "" && obj.progressMsg !== "已安装") {
|
obj.upgradeLoading = true;
|
|
this.appUpgreading = true;
|
}
|
item.installed ? iArry.push(obj) : sArry.push(obj);
|
item.isUpgrade && nArry.push(obj)
|
});
|
}
|
this.installedApps = iArry;
|
this.storeApps = sArry;
|
this.hasNewVersionApp = nArry;
|
},
|
//卸载算法
|
unLoadSdk (sdk) {
|
let _this = this;
|
this.$confirm('确定要卸载该算法吗?', '提示').then(() => {
|
sdk.unloadLoading = true;
|
removeSdk({ sdkId: sdk.id }).then(res => {
|
if (res && res.success) {
|
sdk.unloadLoading = false;
|
_this.getAllSdk();
|
window.parent.postMessage({
|
msg: "AppUpdate"
|
}, '*')
|
}
|
}).catch(e => {
|
console.log(e);
|
sdk.unloadLoading = false;
|
})
|
}).catch(e => {
|
console.log(e)
|
})
|
},
|
//卸载应用
|
unLoad (app) {
|
let _this = this;
|
this.$confirm('确定要卸载该应用吗?', '提示').then(() => {
|
app.unloadLoading = true;
|
removeApp({ appId: app.id }).then(res => {
|
if (res && res.success) {
|
app.unloadLoading = false;
|
_this.getAllApps();
|
window.parent.postMessage({
|
msg: "AppUpdate"
|
}, '*')
|
}
|
}).catch(e => {
|
console.log(e);
|
app.unloadLoading = false;
|
})
|
}).catch(e => {
|
console.log(e)
|
})
|
},
|
// actSdk (id) {
|
// this.actSdkId = id;
|
// this.actDrawerShow = true;
|
// this.actStep = 0;
|
// this.activeCode = '';
|
// this.activedSdkOrApp = this.newActInfo()
|
// },
|
actSdkOrApp (id, type = 'sdk') {
|
this.actType = type;
|
this.actId = id;
|
this.actDrawerShow = true;
|
this.actStep = 0;
|
this.activeCode = '';
|
this.activedSdkOrApp = this.newActInfo()
|
},
|
newActInfo () {
|
return {
|
activateCode: '',
|
productName: '',
|
setting: '',
|
expireTime: '',
|
licence: '',
|
devIds: ''
|
}
|
},
|
getUnActivedList () {
|
getUnActivedSdk().then(res => {
|
if (res.code == 200) {
|
this.unActivedSDKList = res.data;
|
}
|
})
|
|
},
|
getUnActivedAppList () {
|
getUnActivedApp().then(res => {
|
if (res.code == 200) {
|
this.unActivedAppList = res.data;
|
}
|
});
|
},
|
actived () {
|
let _this = this;
|
if (this.actType == 'sdk') {
|
//激活算法
|
actPageAlg(this.actId, this.activeCode).then(res => {
|
if (res.data.isSuccess) {
|
_this.activedSdkOrApp = res.data.successMsg;
|
_this.actStep++;
|
_this.getUnActivedList();
|
_this.getAllSdk();
|
} else {
|
_this.$notify({
|
type: 'error',
|
message: res.data.failMsg.failMsg
|
});
|
}
|
}).catch(e => {
|
console.log(e)
|
});
|
} else if (this.actType == 'app') {
|
//激活应用
|
actApp(this.actId, this.activeCode).then(res => {
|
if (res.data.isSuccess) {
|
_this.activedSdkOrApp = res.data.successMsg;
|
_this.actStep++;
|
_this.getUnActivedAppList();
|
_this.getAllApps();
|
} else {
|
_this.$notify({
|
type: 'error',
|
message: res.data.failMsg.failMsg
|
});
|
}
|
}).catch(e => {
|
console.log(e)
|
});
|
}
|
},
|
getCodeDetail () { },
|
checkMyAlgorith () {
|
this.actDrawerShow = false;
|
this.activeName = "myAlgorithm";
|
},
|
onFileUpload (file) {
|
//this.patchUpdateStatus = `<span style="color:green">上传成功, 点击升级按钮开始安装</span>`;
|
this.patchFile = { ...file };
|
this.fileAdded = true;
|
const h = this.$createElement;
|
//上传完成获取安装信息
|
let _this = this;
|
getInstallInfo(file).then(res => {
|
_this.installFile = file;
|
if (res.success) {
|
_this.installDialogVisible = true;
|
if (res.data.apps.length > 0) {
|
_this.installAppPackage = {
|
appId: res.data.apps[0].appId,
|
version: res.data.apps[0].version,
|
productName: res.data.productName,
|
installContent: res.data.apps[0].installContent
|
}
|
}
|
if (res.data.sdks.length > 0) {
|
_this.installSdkPackage = {
|
appId: res.data.sdks[0].sdkId,
|
version: res.data.sdks[0].version,
|
productName: res.data.productName,
|
installContent: res.data.sdks[0].installContent
|
}
|
}
|
}
|
}).catch(e => {
|
this.$message({
|
type: 'error',
|
message: e.data
|
});
|
})
|
|
},
|
|
onFileAdded (f) {
|
this.patchUpdateStatus = "";
|
},
|
|
async getAllSdk () {
|
let installedList = [];
|
let unInstalledList = [];
|
let hasNewVersionList = [];
|
let res = await findAllSdk();
|
if (res && res.success) {
|
this.sdkUpgreading = false;
|
|
res.data.forEach(item => {
|
let obj = Object.assign({ unloadLoading: false, upgradeLoading: false }, item)
|
if (obj.progressMsg !== "" && obj.progressMsg !== "已安装") {
|
obj.upgradeLoading = true;
|
|
this.sdkUpgreading = true;
|
}
|
|
//算法软件 已安装其中包含待升级 未安装
|
item.installed ? installedList.push(obj) : unInstalledList.push(obj)
|
|
});
|
}
|
this.installedList = installedList;
|
this.notInstalledList = unInstalledList;
|
this.hasNewVersionSdk = hasNewVersionList;
|
},
|
|
donwload (item) {
|
item.upgradeLoading = true;
|
//this.downloading = true;
|
this.downloadItem = item.id;
|
|
downloadSdk({ path: item.id })
|
.then(rsp => {
|
// this.$notify({
|
// type: "success",
|
// message: "算法已安装"
|
// });
|
item.upgradeLoading = false;
|
//this.downloading = false;
|
this.downloadItem = "";
|
})
|
.catch(err => {
|
this.$notify({
|
type: "warning",
|
message: err.data
|
});
|
item.upgradeLoading = false;
|
//this.downloading = false;
|
this.downloadItem = "";
|
});
|
// 开启自动刷新
|
this.sdkUpgreading = true;
|
},
|
inputBlur (item) {
|
// console.log(item, '修改名称')
|
this.$set(item, "isEdit", false);
|
},
|
handleTabClick () {
|
|
},
|
autoRefreshAppAndSdkState () {
|
// 关闭后退出
|
if (!this.autoRefresh) {
|
return;
|
}
|
|
if (this.appUpgreading) {
|
this.getAllApps();
|
}
|
|
if (this.sdkUpgreading) {
|
this.getAllSdk();
|
}
|
|
let _this = this
|
setTimeout(() => {
|
_this.autoRefreshAppAndSdkState();
|
}, 500)
|
}
|
}
|
};
|
</script>
|
<style lang="scss">
|
.s-task-manage {
|
width: 100% !important;
|
height: 100%;
|
box-sizing: border-box;
|
text-align: left;
|
min-width: 1106px;
|
|
.el-tabs {
|
height: calc(100% - 50px);
|
// margin-top: 5px !important;
|
}
|
.el-tabs--border-card > .el-tabs__header {
|
border: none;
|
}
|
.el-tabs__item.is-top {
|
height: 50px;
|
padding: 5px 50px !important;
|
font-size: 15px;
|
border: none !important;
|
}
|
.el-tabs__item.is-top.is-active {
|
font-weight: bold;
|
}
|
.el-tabs__content {
|
width: 100%;
|
height: calc(100% - 34px);
|
box-sizing: border-box;
|
}
|
.el-tab-pane {
|
width: 100%;
|
height: 100%;
|
}
|
.product-detail-dialog {
|
.el-dialog__header {
|
text-align: center;
|
}
|
.dialog-content {
|
.box-top {
|
}
|
.box-bot {
|
}
|
}
|
}
|
}
|
.flex-title {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
}
|
|
.el-loading-mask .el-loading-spinner {
|
top: 40px !important;
|
}
|
.el-loading-mask .el-loading-spinner svg {
|
transform: none !important;
|
top: 20px !important;
|
left: 40% !important;
|
}
|
.el-loading-mask .el-loading-spinner p.el-loading-text {
|
display: block !important;
|
text-align: center !important;
|
bottom: 10px !important;
|
top: 80px !important;
|
right: 0 !important;
|
color: #78adf7;
|
}
|
.el-loading-mask .el-loading-spinner .path {
|
stroke: #78adf7;
|
}
|
.installInfo {
|
text-indent: 2em;
|
font-size: 14px;
|
line-height: 26px;
|
p {
|
text-align: center;
|
}
|
}
|
.src-title {
|
//color: #bfbfbf;
|
color: #bbcee8;
|
font-family: 'PingFangSC-Semibold', 'PingFang SC Semibold', 'PingFang SC';
|
font-weight: 650;
|
font-style: normal;
|
height: 36px;
|
font-size: 15px;
|
padding-left: 25px;
|
}
|
.update-badge .el-badge__content.is-fixed {
|
top: 10px;
|
right: 4px;
|
}
|
.empty-tip {
|
padding-left: 25px;
|
color: #ccc;
|
}
|
.task-manage {
|
height: 100%;
|
.installModel {
|
width: 100%;
|
height: 100%;
|
background-color: rgba(0, 0, 0, 0.7);
|
position: fixed;
|
top: 0;
|
left: 0;
|
z-index: 100;
|
.progress-bar {
|
width: 70%;
|
height: 17px;
|
border-radius: 3px;
|
background-color: rgb(227, 229, 231);
|
position: absolute;
|
top: 50%;
|
left: 50%;
|
background: url('/images/algo/green.gif');
|
overflow: hidden;
|
transform: translate(-50%, -50%);
|
.inner-bar {
|
position: absolute;
|
top: 0;
|
left: 0;
|
width: 0;
|
height: 100%;
|
transition: width 3s;
|
background-color: #3d68e1;
|
}
|
}
|
}
|
.el-tab-pane {
|
height: auto !important;
|
}
|
.el-tabs--border-card > .el-tabs__content {
|
padding: 0 !important;
|
overflow: auto !important;
|
}
|
.el-tabs__content {
|
padding: 0 !important;
|
overflow: auto !important;
|
}
|
//height: calc(100% - 10px);
|
// .super {
|
// .right-box {
|
// width: 58% !important;
|
// }
|
// }
|
|
.super {
|
width: 100%;
|
height: 100%;
|
.title {
|
margin-bottom: 10px;
|
line-height: 30px;
|
font-family: PingFangSC-Medium;
|
font-size: 16px;
|
color: #222222;
|
}
|
.left-box {
|
// width: 41%;
|
height: 100%;
|
box-sizing: border-box;
|
// float: left;
|
.el-drawer__header {
|
border-bottom: 2px solid #eee;
|
padding-bottom: 10px;
|
font-size: 16px;
|
margin-bottom: 0px;
|
span {
|
outline: none !important;
|
}
|
}
|
.action-bar {
|
margin-bottom: 30px;
|
.el-input {
|
width: 100%;
|
}
|
}
|
.task-list {
|
background: #fdfdfd;
|
padding: 20px;
|
box-sizing: border-box;
|
|
.flex-list {
|
display: flex;
|
flex-direction: row;
|
flex-wrap: wrap;
|
min-height: 200px;
|
.wrap-box {
|
width: 16.66%;
|
}
|
.list-choose-item-left {
|
width: 80%;
|
height: auto;
|
margin: auto;
|
margin-bottom: 30px;
|
max-width: 200px;
|
.mask {
|
width: 100%;
|
|
.el-button + .el-button {
|
margin-left: 0 !important;
|
}
|
}
|
}
|
}
|
}
|
.store-list,
|
.app-list {
|
display: flex;
|
flex-wrap: wrap;
|
.wrap-box {
|
width: 16.6%;
|
margin-bottom: 30px;
|
.list-choose-item-left {
|
width: 80%;
|
height: auto;
|
margin: auto;
|
margin-bottom: 30px;
|
max-width: 200px;
|
}
|
.inner {
|
width: 80%;
|
box-sizing: border-box;
|
position: relative;
|
font-size: 14px;
|
padding-bottom: 10px;
|
transition: all 1s;
|
background: #ffffff;
|
border: 1px solid #e2e2e2;
|
box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.07);
|
border-radius: 4px;
|
margin: auto;
|
.alg-icon {
|
position: relative;
|
width: 80%;
|
margin: auto;
|
padding-top: 80%;
|
svg {
|
position: absolute;
|
top: 50%;
|
left: 50%;
|
transform: translate(-50%, -50%);
|
}
|
}
|
.alg-name {
|
height: 36px;
|
text-align: center;
|
line-height: 36px;
|
}
|
.mask {
|
position: absolute;
|
top: 0;
|
left: 0;
|
width: 100%;
|
height: 100%;
|
background: rgba(0, 0, 0, 0.65);
|
backdrop-filter: blur(1px) brightness(100%);
|
text-align: center;
|
z-index: 1;
|
border-radius: 3px;
|
display: none;
|
svg {
|
position: absolute;
|
top: 49%;
|
left: 50%;
|
transform: translate(-50%, -50%);
|
z-index: 33;
|
}
|
}
|
&:hover {
|
.mask {
|
display: block;
|
}
|
}
|
}
|
}
|
}
|
.drawer-content {
|
font-family: 'PingFangSC-Regular';
|
.el-step__title.is-process {
|
border-color: #3d68e1 !important;
|
color: #3d68e1 !important;
|
font-family: Tahoma, Helvetica, Arial, '\5B8B\4F53', sans-serif;
|
}
|
.el-step__head.is-process {
|
border-color: #3d68e1 !important;
|
color: #3d68e1 !important;
|
font-family: Tahoma, Helvetica, Arial, '\5B8B\4F53', sans-serif;
|
}
|
.el-input {
|
width: 100%;
|
margin-bottom: 30px;
|
}
|
.current-step {
|
margin: 40px 30px 30px;
|
}
|
.act-code {
|
padding: 0 30px;
|
p {
|
font-size: 15px;
|
margin-bottom: 16px;
|
}
|
}
|
.desc {
|
padding: 0 30px;
|
margin-bottom: 30px;
|
li {
|
border-bottom: 1px solid #eee;
|
height: 45px;
|
line-height: 45px;
|
font-size: 14px;
|
&:last-child {
|
border-bottom: none;
|
}
|
label {
|
display: inline-block;
|
width: 90px;
|
padding-left: 14px;
|
font-weight: bold;
|
}
|
}
|
}
|
.text-right {
|
padding-right: 30px;
|
text-align: right;
|
.tip {
|
color: #999;
|
line-height: 38px;
|
}
|
}
|
}
|
.tab-content {
|
padding: 30px 20px;
|
}
|
}
|
.mask {
|
position: absolute;
|
width: 100%;
|
height: 100%;
|
background: rgba(0, 0, 0, 0.65);
|
backdrop-filter: blur(1px) brightness(100%);
|
text-align: center;
|
z-index: 1;
|
border-radius: 3px;
|
display: none;
|
.info-onmask {
|
color: #fff;
|
}
|
.left-top {
|
position: absolute;
|
left: 5px;
|
top: 5px;
|
font-size: 12px;
|
color: #90d6ff;
|
}
|
.mask-btn {
|
width: 100%;
|
display: flex;
|
}
|
i {
|
color: #fff;
|
position: relative;
|
top: 40%;
|
display: contents;
|
}
|
i:hover {
|
color: rgba(255, 255, 255, 0.685);
|
}
|
}
|
|
.text-css {
|
width: 100%;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
}
|
.move-hear {
|
margin: 10px 0 0 0;
|
font-size: 5rem;
|
}
|
.list-choose-item {
|
cursor: pointer;
|
position: relative;
|
font-size: 14px;
|
display: inline-block;
|
@media screen and(min-width: 1640px) {
|
margin: 30px 20px 20px 20px;
|
}
|
@media screen and(min-width: 1460px) and(max-width: 1640px) {
|
margin: 30px 20px 20px 10px;
|
}
|
@media screen and(max-width: 1460px) {
|
margin: 30px 10px 20px 10px;
|
}
|
min-width: 126px;
|
height: 120px;
|
transition: all 1s;
|
background: #fff;
|
border: 1px solid #e2e2e2;
|
box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.07);
|
border-radius: 4px;
|
}
|
.list-choose-item:hover {
|
.mask {
|
display: block;
|
}
|
}
|
|
.alg-shadow {
|
-webkit-box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.3);
|
-moz-box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.3);
|
box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.3);
|
}
|
.select-color {
|
margin-top: 16px;
|
text-align: center;
|
line-height: 28px;
|
// background-color: #3498DB;
|
}
|
.list-choose-item-left {
|
cursor: pointer;
|
position: relative;
|
font-size: 14px;
|
|
transition: all 1s;
|
background: #ffffff;
|
border-radius: 4px;
|
p {
|
display: none;
|
text-align: right;
|
width: 100%;
|
position: absolute;
|
right: 10px;
|
top: 5px;
|
}
|
.click-download {
|
position: absolute;
|
left: 80%;
|
top: 5%;
|
}
|
}
|
.list-choose-item-left:hover {
|
.mask {
|
display: flex;
|
align-items: flex-end;
|
flex-wrap: wrap;
|
justify-content: center;
|
top: 0;
|
.bot-btn {
|
flex: 1;
|
}
|
&.flex-center {
|
align-items: center;
|
justify-content: center;
|
}
|
}
|
}
|
.list-choose-item-left-uninstal {
|
color: darkgray;
|
background-color: #ddd;
|
}
|
.list-complete-item.sortable-chosen {
|
background: #4ab7bd;
|
}
|
.list-choose-item.sortable-ghost {
|
background: #30b08f;
|
}
|
.width-new-line {
|
word-wrap: break-word;
|
word-break: break-all;
|
}
|
.dndList-list {
|
max-width: 40%;
|
}
|
.dic-border {
|
width: 98%;
|
min-height: 170px;
|
background: #fff;
|
padding: 10px 10px 10px 20px;
|
}
|
.min-h {
|
min-height: 130px;
|
}
|
.parent-div {
|
border-right: 1px solid rgba(24, 28, 33, 0.5);
|
max-width: 140px;
|
position: relative;
|
}
|
.list-choose-header {
|
position: relative;
|
width: 74px;
|
height: 74px;
|
background-image: linear-gradient(-137deg, #7076f2 0%, #3d63e1 100%);
|
box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.07);
|
border-radius: 37px;
|
margin: 10px 25px;
|
}
|
|
.task-name-div {
|
font-family: PingFangSC-Medium;
|
font-size: 15px;
|
color: #4b68e6;
|
text-align: center;
|
margin-top: 6px;
|
max-width: 120px;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
.border-dash {
|
height: 30px;
|
width: 96%;
|
margin-bottom: 10px;
|
border: 1px dashed rgba(24, 28, 33, 0.5);
|
}
|
.i-setting {
|
position: absolute;
|
font-size: 28px;
|
margin-top: -25px;
|
margin-left: -30px;
|
}
|
.i-delete {
|
position: absolute;
|
font-size: 28px;
|
margin-top: -25px;
|
margin-left: -8px;
|
color: red;
|
}
|
.i-bell {
|
float: left;
|
position: relative;
|
left: 10px;
|
top: 10px;
|
font-size: 24px;
|
color: red;
|
}
|
.task-msg {
|
padding-left: 10px;
|
}
|
.b-top {
|
width: 100%;
|
padding-top: 10px;
|
}
|
.b-bottom {
|
width: 100%;
|
border-bottom: 1px solid rgba(24, 28, 33, 0.5);
|
}
|
.i-set-right {
|
position: absolute;
|
left: 80px;
|
top: -11px;
|
font-size: 24px;
|
}
|
.i-remove-right {
|
position: absolute;
|
right: -1px;
|
top: -11px;
|
font-size: 24px;
|
color: red;
|
}
|
.alg-t {
|
line-height: 31px;
|
font-family: PingFangSC-Medium;
|
font-size: 14px;
|
color: #222222;
|
}
|
.alg-name {
|
//margin-top: 12px;
|
line-height: 36px;
|
font-family: PingFangSC-Regular;
|
font-size: 14px;
|
letter-spacing: 0.05em;
|
color: #3e4664;
|
// background-color: #ecf5ff;
|
.el-input {
|
position: relative;
|
font-size: 14px;
|
display: inline-block;
|
width: 100%;
|
}
|
}
|
.unit-class {
|
margin-left: 10px;
|
text-align: center;
|
line-height: 38px;
|
}
|
.el-input {
|
position: relative;
|
font-size: 14px;
|
display: inline-block;
|
width: 80%;
|
}
|
.list-complete-item-handle {
|
height: 100%;
|
//padding-bottom: 10px;
|
text-align: center;
|
.svg-wrap {
|
//width: 80%;
|
width: 100%;
|
margin: auto;
|
padding-top: 80%;
|
padding-top: 100%;
|
position: relative;
|
box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.07);
|
svg {
|
position: absolute;
|
top: 50%;
|
left: 50%;
|
transform: translate(-50%, -50%);
|
}
|
.baseImg {
|
width: 56%;
|
position: absolute;
|
top: 50%;
|
left: 50%;
|
transform: translate(-50%, -50%);
|
max-width: 106px;
|
max-height: 106px;
|
}
|
}
|
.willUpGrade {
|
.iconupdate {
|
color: #01e667;
|
position: absolute;
|
top: 5px;
|
right: 5px;
|
font-weight: 550;
|
font-size: 26px;
|
}
|
}
|
&.uninstall {
|
.svg-wrap {
|
background-color: #ddd;
|
}
|
.alg-name {
|
color: darkgray;
|
}
|
}
|
}
|
.dragAreaR {
|
height: 100%;
|
}
|
.drag-info {
|
min-width: 126px;
|
height: 120px;
|
border: 1px dashed #3d68e1;
|
box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.07);
|
// box-shadow: 0px 0px 10px 3px rgba(0,0,0,0.3);
|
border-radius: 4px;
|
margin: 30px 10px 20px 10px;
|
}
|
.drag-info-text {
|
letter-spacing: 3px;
|
line-height: 20px;
|
width: 80px;
|
height: 42px;
|
font-family: PingFangSC-Regular;
|
font-size: 13px;
|
color: #3d68e1;
|
text-align: center;
|
}
|
.task-edit {
|
font-size: 26px;
|
position: relative;
|
bottom: -6px;
|
}
|
.el-button--cancle {
|
background: #eaeaea;
|
border-radius: 2px;
|
border-color: #eaeaea;
|
font-family: PingFangSC-Medium;
|
font-size: 13px;
|
color: #222222;
|
margin-right: 12px;
|
}
|
.click-changeImg {
|
cursor: pointer;
|
display: none;
|
background: rgba(0, 0, 0, 0.35);
|
width: 74px;
|
line-height: 20px;
|
color: rgb(255, 255, 255);
|
font-size: 14px;
|
opacity: 1;
|
border-radius: 6px;
|
}
|
|
.task-name-google {
|
position: relative;
|
top: 30px;
|
width: 126px;
|
height: 120px;
|
border: 1px solid #fff;
|
background: #fff;
|
border-radius: 4px;
|
cursor: pointer;
|
.set-task {
|
display: none;
|
cursor: pointer;
|
}
|
|
.el-switch__core {
|
width: 27px !important;
|
height: 14px;
|
}
|
.el-switch__core:after {
|
width: 10px;
|
height: 10px;
|
}
|
.el-switch.is-checked .el-switch__core::after {
|
left: 100%;
|
margin-left: -11px;
|
}
|
}
|
.task-name-google:hover {
|
.mask {
|
display: block;
|
}
|
}
|
}
|
}
|
</style>
|
|