| | |
| | | <span class="icon iconfont all-scene"></span>
|
| | | <el-input
|
| | | placeholder="搜索"
|
| | | v-model="inputText" @change="searchAll"
|
| | | v-model="inputText"
|
| | | @change="searchAll"
|
| | | class="input-with-select"
|
| | | >
|
| | | <i class="el-icon-search" slot="prepend"></i>
|
| | |
| | | this.autoRefresh = false;
|
| | | },
|
| | | methods: {
|
| | | searchAll(){
|
| | | this.getAllApps()
|
| | | this.getAllSdk()
|
| | | searchAll() {
|
| | | this.getAllApps();
|
| | | this.getAllSdk();
|
| | | this.getUnActivedList(1);
|
| | | this.getUnActivedAppList();
|
| | | },
|
| | |
| | | })
|
| | | .catch((e) => {
|
| | | this.isInstall = false;
|
| | | this.$message.error(e.data);
|
| | | this.$message.error(e.msg);
|
| | | });
|
| | | },
|
| | | downloadApp(app, action) {
|
| | |
| | | let iArry = [];
|
| | | let sArry = [];
|
| | | let nArry = [];
|
| | | let rsp = await getApps({appName:this.inputText});
|
| | | let rsp = await getApps({ appName: this.inputText });
|
| | | if (rsp && rsp.success) {
|
| | | // 遍历app的过程重置
|
| | | this.appUpgreading = false;
|
| | |
| | | };
|
| | | },
|
| | | getUnActivedList(v) {
|
| | | getUnActivedSdk({sdkName:this.inputText}).then((res) => {
|
| | | getUnActivedSdk({ sdkName: this.inputText }).then((res) => {
|
| | | if (res.code == 200) {
|
| | | this.unActivedSDKList = res.data;
|
| | | const len = this.unActivedSDKList.length;
|
| | |
| | | });
|
| | | },
|
| | | getUnActivedAppList() {
|
| | | getUnActivedApp({appName:this.inputText}).then((res) => {
|
| | | getUnActivedApp({ appName: this.inputText }).then((res) => {
|
| | | if (res.code == 200) {
|
| | | this.unActivedAppList = res.data;
|
| | | this.pickTab();
|
| | |
| | | _this.$notify.error(res.data.failMsg.failMsg);
|
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | });
|
| | | .catch((e) => {});
|
| | | } else if (this.activeTab == "app") {
|
| | | //激活应用
|
| | | actApp(item.id, "")
|
| | |
| | | _this.$notify.error(res.data.failMsg.failMsg);
|
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | });
|
| | | .catch((e) => {});
|
| | | }
|
| | | },
|
| | | onFileUpload(file) {
|
| | |
| | | let installedList = [];
|
| | | let unInstalledList = [];
|
| | | let hasNewVersionList = [];
|
| | | let res = await findAllSdk({sdkName:this.inputText});
|
| | | let res = await findAllSdk({ sdkName: this.inputText });
|
| | | if (res && res.success) {
|
| | | this.sdkUpgreading = false;
|
| | |
|