| | |
| | | </div>
|
| | | </div>
|
| | | <!-- 超级管理员可见 -->
|
| | | <div class="super" v-if="isSuperUser">
|
| | | <div class="super">
|
| | | <div class="left-box">
|
| | | <!-- <div class="title">
|
| | | <label>算法库</label>
|
| | |
| | | <el-tab-pane
|
| | | label="离线升级/安装"
|
| | | name="upgradeOrInstallation"
|
| | | v-show="activeName==='upgradeOrInstallation'"
|
| | | v-if="isShow('algorithmManage:insOffLine')"
|
| | | >
|
| | | <div class="tab-content">
|
| | | <div class="action-bar">
|
| | |
| | | </div>
|
| | | </div>
|
| | | </el-tab-pane>
|
| | | <el-tab-pane label="应用中心" name="algorithmMall" v-show="activeName==='algorithmMall'">
|
| | | <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">
|
| | |
| | | return sdk.isUpgrade === true;
|
| | | });
|
| | | },
|
| | | 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 {
|
| | | TaskMange: new TaskManage,
|
| | | VideoManageData: new VideoManageData,
|
| | | buttonAuthority: sessionStorage.getItem("buttonAuthoritys") || [],
|
| | | activeName: "myAlgorithm",
|
| | | patchUpdateStatus: "",
|
| | | dragging: false,
|
| | |
| | | this.findByType();
|
| | | this.getBaseList();
|
| | | this.findAll();
|
| | | this.getUser();
|
| | | this.getUnActivedList();
|
| | | this.getUnActivedAppList();
|
| | | // this.TaskMange.findAllSdk();
|
| | |
| | | this.VideoManageData.init();
|
| | | },
|
| | | methods: {
|
| | | isShow(authority) {
|
| | | return this.isAdmin || this.buttonAuthority.indexOf("," + authority + ",") > -1
|
| | | },
|
| | | offlineInstall () {
|
| | | this.installDialogVisible = false;
|
| | | this.isInstall = true;
|
| | |
| | | this.clickSet(row);
|
| | | }
|
| | | },
|
| | | getUser () {
|
| | | // console.log("登录用户",JSON.parse(sessionStorage.getItem("userInfo")).username)
|
| | | if (
|
| | | sessionStorage.getItem("userInfo") &&
|
| | | (JSON.parse(sessionStorage.getItem("userInfo")).username ==
|
| | | "superadmin" ||
|
| | | JSON.parse(sessionStorage.getItem("userInfo")).username == "basic")
|
| | | ) {
|
| | | this.isSuperUser = true;
|
| | | } else {
|
| | | this.isSuperUser = false;
|
| | | }
|
| | | },
|
| | | donwload (item) {
|
| | | this.downloading = true;
|
| | | this.downloadItem = item.id;
|
| | |
| | | .src-title {
|
| | | //color: #bfbfbf;
|
| | | color: #bbcee8;
|
| | | font-family: 'PingFangSC-Semibold', 'PingFang SC Semibold', 'PingFang SC';
|
| | | font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC";
|
| | | font-weight: 650;
|
| | | font-style: normal;
|
| | | height: 36px;
|
| | |
| | | position: absolute;
|
| | | top: 50%;
|
| | | left: 50%;
|
| | | background: url('/images/algo/green.gif');
|
| | | background: url("/images/algo/green.gif");
|
| | | overflow: hidden;
|
| | | transform: translate(-50%, -50%);
|
| | | .inner-bar {
|
| | |
| | | }
|
| | | }
|
| | | .drawer-content {
|
| | | font-family: 'PingFangSC-Regular';
|
| | | 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;
|
| | | 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;
|
| | | font-family: Tahoma, Helvetica, Arial, "\5B8B\4F53", sans-serif;
|
| | | }
|
| | | .el-input {
|
| | | width: 100%;
|