ソースを参照

空间内的系统

haojianlong 4 年 前
コミット
c5c9322e96

+ 1 - 1
src/api/scan/request.js

@@ -1997,7 +1997,7 @@ export function syInSpaceDelete(param, success) {
 
 //关系-----系统所在业务空间--创建关系
 export function syInSpaceCreate(param, success) {
-  let url = `${baseUrl}${dataCenter}/sy-in-sp-base/link-sp-sys?type=${param.type}`;
+  let url = `${baseUrl}${rel}/sy-in-sp-base/link-sp-sys?type=${param.type}`;
   http.postJson(url, param.data, success)
 }
 

+ 8 - 8
src/components/business_space/newAddDialogs/addSystemDialog.vue

@@ -7,11 +7,11 @@
         <el-table-column :label="`${inSpaceType}名称`" show-overflow-tooltip min-width="100">
           <template slot-scope="scope">
             <div>
-              {{scope.row.SysLocalName||scope.row.SysName||''}}
+              {{scope.row.localName||scope.row.name||''}}
             </div>
           </template>
         </el-table-column>
-        <el-table-column prop="SysLocalID" :label="`${inSpaceType}本地编码`" show-overflow-tooltip min-width="100"></el-table-column>
+        <el-table-column prop="localId" :label="`${inSpaceType}本地编码`" show-overflow-tooltip min-width="100"></el-table-column>
         <el-table-column prop="action" label="操作" min-width="100">
           <template slot-scope="scope">
             <el-button size="mini" @click="toDetail(scope.$index, scope.row)" type="primary" plain>查看详情</el-button>
@@ -68,13 +68,13 @@ export default {
     savaRelation() {
       let pa = {
         data: {
-          SpaceId: this.spaceId,
-          SysIdList: []
+          spaceId: this.spaceId,
+          sysIdList: []
         },
         type: this.zone
       }
       this.selections.map(t => {
-        pa.data.SysIdList.push(t.SysID)
+        pa.data.sysIdList.push(t.id)
       })
       syInSpaceCreate(pa, res => {
         this.$message.success('关联成功');
@@ -86,14 +86,14 @@ export default {
     getTableData() {
       let pa = {
         data: {
-          PageSize: 200,
-          Orders: 'SysID asc'
+          pageSize: 200,
+          orders: 'id asc'
         },
         type: this.zone,
         spaceId: this.spaceId
       }
       notSyInSpaceQuery(pa, res => {
-        this.tableData = res.Content;
+        this.tableData = res.content;
       })
     },
     // 查看详情

+ 7 - 4
src/components/business_space/newTables/syInSpaceTable.vue

@@ -11,11 +11,11 @@
         <el-table-column :label="`${inSpaceType}名称`" show-overflow-tooltip min-width="100">
           <template slot-scope="scope">
             <div>
-              {{scope.row.SysLocalName||scope.row.SysName}}
+              {{scope.row.localName||scope.row.name}}
             </div>
           </template>
         </el-table-column>
-        <el-table-column prop="SysLocalID" :label="`${inSpaceType}本地编码`" show-overflow-tooltip min-width="100"></el-table-column>
+        <el-table-column prop="localId" :label="`${inSpaceType}本地编码`" show-overflow-tooltip min-width="100"></el-table-column>
         <el-table-column prop="action" label="操作" min-width="100">
           <template slot-scope="scope">
             <el-tooltip class="item" effect="dark" content="删除关系" placement="left">
@@ -83,7 +83,10 @@ export default {
         type: 'warning'
       }).then(() => {
         let pa = {
-          data: [row],
+          data: [{
+            sysId: row.id,
+            spaceId: row.spaceId
+          }],
           type: this.params.zone
         }
         this.deleteSyInSpace(pa)
@@ -110,7 +113,7 @@ export default {
         this.loading = false;
         this.tableData = res.content[0].generalSystem || [];
         this.tableData.map(t => {
-          t.SpaceId = res.content[0].id;
+          t.spaceId = res.content[0].id;
           return t;
         })
       })