| | |
| | | <span class="icon iconfont all-scene"></span>
|
| | | <el-input
|
| | | placeholder="搜索"
|
| | | v-model="input3"
|
| | | v-model="inputText" @change="searchAll"
|
| | | class="input-with-select"
|
| | | >
|
| | | <i class="el-icon-search" slot="prepend"></i>
|
| | |
| | | isSDKDialog: true,
|
| | | actType: "",
|
| | | actId: "",
|
| | | input3: "",
|
| | | inputText: "",
|
| | | tempList: [],
|
| | | select: "",
|
| | | activedSdkOrApp: {
|
| | |
| | | this.autoRefresh = false;
|
| | | },
|
| | | methods: {
|
| | | searchAll(){
|
| | | this.getAllApps()
|
| | | this.getAllSdk()
|
| | | this.getUnActivedList(1);
|
| | | this.getUnActivedAppList();
|
| | | },
|
| | | goback() {
|
| | | this.inDetail = false;
|
| | | },
|
| | |
| | | let iArry = [];
|
| | | let sArry = [];
|
| | | let nArry = [];
|
| | | let rsp = await getApps();
|
| | | let rsp = await getApps({appName:this.inputText});
|
| | | if (rsp && rsp.success) {
|
| | | // 遍历app的过程重置
|
| | | this.appUpgreading = false;
|
| | |
| | | };
|
| | | },
|
| | | getUnActivedList(v) {
|
| | | getUnActivedSdk().then((res) => {
|
| | | getUnActivedSdk({sdkName:this.inputText}).then((res) => {
|
| | | if (res.code == 200) {
|
| | | this.unActivedSDKList = res.data;
|
| | | const len = this.unActivedSDKList.length;
|
| | |
| | | });
|
| | | },
|
| | | getUnActivedAppList() {
|
| | | getUnActivedApp().then((res) => {
|
| | | getUnActivedApp({appName:this.inputText}).then((res) => {
|
| | | if (res.code == 200) {
|
| | | this.unActivedAppList = res.data;
|
| | | this.pickTab();
|
| | |
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | console.log(e);
|
| | | });
|
| | | } else if (this.activeTab == "app") {
|
| | | //激活应用
|
| | |
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | console.log(e);
|
| | | });
|
| | | }
|
| | | },
|
| | |
| | | let installedList = [];
|
| | | let unInstalledList = [];
|
| | | let hasNewVersionList = [];
|
| | | let res = await findAllSdk();
|
| | | let res = await findAllSdk({sdkName:this.inputText});
|
| | | if (res && res.success) {
|
| | | this.sdkUpgreading = false;
|
| | |
|