| | |
| | | class="quick-item"
|
| | | v-for="(item, index) in recomandUpdateList"
|
| | | :key="index"
|
| | | @click="checkDetail(item, 'inactive')"
|
| | | @click="checkDetail(item, 'inactive', item.sdk_name)"
|
| | | >
|
| | | <div class="icon-img">
|
| | | <span class="icon iconfont" v-if="item.isUpgrade"
|
| | |
| | | class="front-page-item"
|
| | | v-for="(item, index) in tempList"
|
| | | :key="index"
|
| | | @click="checkDetail(item)"
|
| | | @click="checkDetail(item, null, item.sdk_name)"
|
| | | :class="{
|
| | | disabled: activeName == '应用中心' && !item.canUpOrIns,
|
| | | }"
|
| | |
| | | type="primary"
|
| | | class="other-btn"
|
| | | round
|
| | | @click="checkDetail(item)"
|
| | | @click="checkDetail(item, null, item.sdk_name)"
|
| | | v-if="activeName == '应用中心' && item.price > 0"
|
| | | >激活</el-button
|
| | | >
|
| | |
| | | class="front-page-item item-dimmed"
|
| | | v-for="(item, index) in tempDarkList"
|
| | | :key="index"
|
| | | @click="checkDetail(item, 'activeNotInstall')"
|
| | | @click="checkDetail(item, 'activeNotInstall', item.sdk_name)"
|
| | | >
|
| | | <div class="icon-img">
|
| | | <img
|
| | |
| | | :detailProductID="detailProductID"
|
| | | :detailType="detailType"
|
| | | :detailPrice="detailPrice"
|
| | | :isSdk="isSdk"
|
| | | v-if="inDetail"
|
| | | @flushSdk="getAllSdk"
|
| | | @flushApp="getAllApps"
|
| | |
| | | this.tempDarkList = [];
|
| | | }
|
| | | },
|
| | | checkDetail(item, typ) {
|
| | | checkDetail(item, typ, sdkName) {
|
| | | /* if (!item.canUpOrIns && typ == "Appcenter") {
|
| | | return false;
|
| | | } */
|
| | |
|
| | | this.isSdk = Boolean(sdkName);
|
| | | this.inDetail = true;
|
| | | this.detailProductID = item.id;
|
| | | this.detailPrice = item.price;
|
| | |
| | | type: String,
|
| | | },
|
| | | detailPrice: {},
|
| | | isSdk: {},
|
| | | },
|
| | | directives: {
|
| | | focus: {
|
| | |
| | | });
|
| | | return;
|
| | | }
|
| | | if (this.actType == "sdk") {
|
| | | if (this.isSdk) {
|
| | | //激活算法
|
| | | actPageAlg(this.actId, this.activeCode)
|
| | | actPageAlg(this.detailProductID, this.activeCode)
|
| | | .then((res) => {
|
| | | if (res.data.isSuccess) {
|
| | | this.productDetailVisible = false;
|
| | |
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | console.log(e);
|
| | | this.$notify({
|
| | | type: "error",
|
| | | message: e.msg,
|
| | | });
|
| | | });
|
| | | } else if (this.actType == "app") {
|
| | | } else {
|
| | | //激活应用
|
| | | actApp(this.actId, this.activeCode)
|
| | | actApp(this.detailProductID, this.activeCode)
|
| | | .then((res) => {
|
| | | if (res.data.isSuccess) {
|
| | | this.productDetailVisible = false;
|
| | |
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | console.log(e);
|
| | | this.$notify({
|
| | | type: "error",
|
| | | message: e.msg,
|
| | | });
|
| | | });
|
| | | }
|
| | | },
|
| | |
| | | // }
|
| | | });
|
| | |
|
| | | //const serverUrl = "http://192.168.20.189:7009"
|
| | | const serverUrl = "http://192.168.20.116:7009";
|
| | | const serverUrl = "http://192.168.20.189:7009";
|
| | | //const serverUrl = "http://192.168.20.116:7009";
|
| | | const iotdataServerUrl = "http://192.168.8.10:9000";
|
| | |
|
| | | // const cir = require("circular-dependency-plugin");
|
| | |
| | | },
|
| | | "/data/api-v/app/findAllApp": {
|
| | | // target: '/',
|
| | | target: "http://localhost:8080/",
|
| | | target: "http://localhost:8081/",
|
| | | changeOrigin: true,
|
| | | pathRewrite: {
|
| | | "^/data/api-v/app/findAllApp": "apps.json",
|