| | |
| | | }; |
| | | |
| | | //获取应用中心商城待激活算法列表 |
| | | export const getUnActivedSdk = () => { |
| | | export const getUnActivedSdk = (query: any) => { |
| | | return request({ |
| | | url: "/data/api-v/sdk/buyList", |
| | | method: "get" |
| | | method: "get", |
| | | params: query |
| | | }); |
| | | }; |
| | | |
| | |
| | | method: "get", |
| | | }) |
| | | } |
| | | |
| | | //获取商城所有应用(已激活) |
| | | // export const findAllApp = () => request({ |
| | | // url: '/data/api-v/app/findAllApp', |
| | | // method: 'get' |
| | | // }); |
| | | |
| | | export const getAppDetail = (query:any) => request({ |
| | | url: '/data/api-v/app/detail', |
| | |
| | | data |
| | | }); |
| | | //获取商城待激活的应用 |
| | | export const getUnActivedApp = ()=> request({ |
| | | export const getUnActivedApp = (query:any)=> request({ |
| | | url:'/data/api-v/app/buyList', |
| | | method: 'get' |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | | //激活商城应用 |
| | | export const actApp = (appId:String,code:String) => request({ |
| | |
| | | this.error = false; |
| | | this.isComplete = true; |
| | | this.isUploading = false; |
| | | console.log("rootFile, file, message", rootFile, file, message); |
| | | }, |
| | | _fileComplete() { |
| | | this._fileSuccess(); |
| | | }, |
| | | _fileError(rootFile, file, message) { |
| | | this._fileProgress(); |
| | | console.log("rootFile, file, message", rootFile, file, message); |
| | | this.processResponse(message); |
| | | this.error = true; |
| | | this.isComplete = false; |
| | |
| | | <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;
|
| | |
|
| | |
| | | },
|
| | | mounted() {
|
| | | this.getDetail();
|
| | | this.autoRefreshAppAndSdkState();
|
| | | this.getUnActivedList();
|
| | | this.getUnActivedAppList();
|
| | | // this.autoRefreshAppAndSdkState();
|
| | | // this.getUnActivedList();
|
| | | // this.getUnActivedAppList();
|
| | | this.showBackBtn();
|
| | | this.addBackListener();
|
| | | },
|
| | |
| | | getAppDetail({ id: id || this.detailProductID })
|
| | | .then((res) => {
|
| | | if (res.success) {
|
| | | console.log("----------");
|
| | | console.log(res);
|
| | | this.productDetail = res.data.detail;
|
| | | this.otherProducts = res.data.randoms;
|
| | |
|
| | |
| | | .then((res) => {
|
| | | if (res && res.success) {
|
| | | app.unloadLoading = false;
|
| | | // _this.getAllApps();
|
| | | this.$emit("flushApp");
|
| | | window.parent.postMessage(
|
| | | {
|
| | |
| | | // ws: true,
|
| | | changeOrigin: true,
|
| | | },
|
| | | "/data/api-v/app/findAllApp": {
|
| | | // target: '/',
|
| | | target: "http://localhost:8080/",
|
| | | changeOrigin: true,
|
| | | pathRewrite: {
|
| | | "^/data/api-v/app/findAllApp": "apps.json",
|
| | | },
|
| | | },
|
| | | // "/data/api-v/app/findAllApp": {
|
| | | // // target: '/',
|
| | | // target: "http://localhost:8080/",
|
| | | // changeOrigin: true,
|
| | | // pathRewrite: {
|
| | | // "^/data/api-v/app/findAllApp": "apps.json",
|
| | | // },
|
| | | // },
|
| | | "/api-c": {
|
| | | target: serverUrl,
|
| | | changeOrigin: true,
|