gaoshp
2024-11-03 3931e2728f618d0090f129b2665bc1285c4440c3
src/views/console/soam/oss-system.vue
@@ -354,7 +354,7 @@
      },
      methods: {
         getMachineCodeList() {
            this.$HTTP.get(`/api/blade-cps/machine/list`).then(res=> {
            this.$HTTP.get(`/api/smis/machine/list`).then(res=> {
               if(res.code == 200) {
                  this.machineCodeList = res.data;
                  this.outer(); //服务集成
@@ -436,21 +436,21 @@
            });
         },
         license() {
            this.$HTTP.get("/api/blade-cps/init/license-detail").then(res=> {
            this.$HTTP.get("/api/smis/init/license-detail").then(res=> {
               if(res.code == 200) {
                  res.data.moduleNames.VISION = JSON.stringify(res.data.moduleNames.VISION);
                  res.data.moduleNames.CPS = JSON.stringify(res.data.moduleNames.CPS);
                  this.licenseDetail = res.data;
               }
            })
            this.$HTTP.get("/api/blade-cps/init/license-device").then(res=> {  //设备标识
            this.$HTTP.get("/api/smis/init/license-device").then(res=> {  //设备标识
               if(res.code == 200) {
                  this.copyStr = res.data;
               }
            })
         },
         getFile() {
            this.$HTTP.get("/api/blade-cps/enterprise/get").then(res=> {
            this.$HTTP.get("/api/smis/enterprise/get").then(res=> {
               if(res.code == 200) {
                  this.uploadData = res.data;
                  this.imageUrl1 = res.data.list[0].link;
@@ -478,7 +478,7 @@
         },
         handleAvatarSuccess(resp) {
            var that = this;
            this.$HTTP.get("/api/blade-cps/enterprise/get").then(res=> {
            this.$HTTP.get("/api/smis/enterprise/get").then(res=> {
               if(res.code == 200) {
                  // 先赋值
                  if(res.data.list.length == 0) res.data.list = [{},{}];
@@ -486,7 +486,7 @@
                  that.imageUrl1 = res.data.list[0].link;
                  that.imageUrl2 = res.data.list[1].link;
                  //添加接口
                  var url = "/api/blade-cps/enterprise/add";
                  var url = "/api/smis/enterprise/add";
                  if(that.logoType == "0") {
                     var upData = Object.assign({},res.data.list[0]);
                     obj.type = "0";
@@ -496,7 +496,7 @@
                     var upData = Object.assign({},res.data.list[1]);
                  }
                  if(resp.uploadMethod == "edit") {
                     url = "/api/blade-cps/enterprise/edit";
                     url = "/api/smis/enterprise/edit";
                  }
                  that.$HTTP.post(url,upData).then(resJ=> {
                     if(resJ.code == 200) {