Browse Source

在线入库更新;新增业务对象建模

李顺 2 years ago
parent
commit
194ad237c4

+ 67 - 15
src/api/APIs.ts

@@ -264,12 +264,44 @@ export const getPbsLevelPage = (data) => {
   });
 };
 
-/** 业务对象分页查询*/ 
-export const getBoinfoPage = (data) => {
+/** 业务属性分页查询*/ 
+export const getBoinfoPage = (params) => {
   return request({
     method: "get",
     url: `/tofly-sxgk/boinfo/page`,
-    params: data,
+    params
+  });
+};
+/** 业务属性添加*/ 
+export const addBoInfo = (data) => {
+  return request({
+    method: "post",
+    url: `/tofly-sxgk/boinfo`,
+    data
+  });
+};
+/** 业务属性修改*/ 
+export const editBoInfo = (data) => {
+  return request({
+    method: "put",
+    url: `/tofly-sxgk/boinfo`,
+    data
+  });
+};
+/** 业务属性按ID删除*/ 
+export const delBoInfoById = (params) => {
+  return request({
+    method: "delete",
+    url: `/tofly-sxgk/boinfo/${params.id}`,
+    params
+  });
+};
+/** 业务属性按批量删除*/ 
+export const delBoInfoByIds = (params) => {
+  return request({
+    method: "delete",
+    url: `/tofly-sxgk/boinfo/deleteByIds`,
+    params
   });
 };
 
@@ -707,22 +739,43 @@ const PbsfxGetBuildStatistics_api = (data) => {
   });
 };
 // 业务对象建模获得表格
-const GetBoPage_api = (method, Rurl, data) => {
-  if (Rurl) {
-    Rurl = `/tofly-sxgk${Rurl}`;
-  }
+export const GetBoPage_api = (params) => {
   return request({
-    method: method,
-    url: Rurl || "/tofly-sxgk/bo/page",
-    params: data,
+    method: 'get',
+    url:"/tofly-sxgk/bo/page",
+    params
+  });
+};
+/**业务对象-已存在的组 */
+export const getExsitBoGroup = (params) => {
+  return request({
+    method: 'get',
+    url:"/tofly-sxgk/bo/getGroup",
+    params
+  });
+};
+// 根据ID删除业务对象
+export const delBoPageById = (params) => {
+  return request({
+    method: 'delete',
+    url:`/tofly-sxgk/bo/${params.id}`,
+    params
   });
 };
 // 业务对象建模新增数据
-const AddPage_api = (method, Rurl, data) => {
+export const AddPage_api = (data) => {
   return request({
-    method: method,
-    url: `/tofly-sxgk${Rurl}`,
-    data: data,
+    method: 'post',
+    url: `/tofly-sxgk/bo`,
+    data: data
+  });
+};
+// 业务对象建模修改数据
+export const editPage_api = (data) => {
+  return request({
+    method: 'put',
+    url: `/tofly-sxgk/bo`,
+    data
   });
 };
 // pbs工程结构管理版本管理
@@ -1280,7 +1333,6 @@ export default {
   MaterialinvoiceMaterialStatistical_api,
   PbsfxPgforecastList_api,
   PbsfxGetBuildStatistics_api,
-  GetBoPage_api,
   AddPage_api,
   pbsTreeList_api,
   getPBSVersion_api,

+ 1 - 1
src/utils/constant.ts

@@ -8,7 +8,7 @@ export const gisNames = ['spectrum', 'pipelineDefect', 'OnlineImport']
 
 export const pageSizes = [10, 20, 30, 50, 100, 1000]
 
-export const getDefaultPagination = () => ({ current: 1, size: 30 })
+export const getDefaultPagination = () => ({ current: 1, size: 30,total:0 })
 
 export const getIntervalValue = (start: string | number, end: string | number, infinitySign: string = '∞') =>
   !start && !end ? infinitySign : `${start || 0} ~ ${end || infinitySign}`

+ 1 - 3
src/utils/request.ts

@@ -147,9 +147,7 @@ service.interceptors.response.use(
       requestTimes = 0
       return res
     }
-    return Promise.reject(new Error(res.message || 'Error')).catch((err) => {
-      console.log(err)
-    })
+    return Promise.reject(new Error(res.message || 'Error'))
   },
   (error) => {
     function clearSession() {

+ 402 - 0
src/views/OnlineImport/widgets/BusinessObjectModeling/widget.vue

@@ -0,0 +1,402 @@
+<template>
+  <div>
+    <tf-page>
+      <template #action>
+        <tf-title>业务对象类型表</tf-title>
+        <el-divider></el-divider>
+        <el-button size="small" type="primary" @click="getDataList">刷新列表</el-button>
+        <el-button size="small" type="primary" @click="addBo">新建业务对象</el-button>
+        <!-- <el-button size="small" type="primary">批量删除</el-button> -->
+        <el-input v-model="searchBoGroup" placeholder="所属组名称" size="small" style="width:200px"></el-input>
+      </template>
+      <tf-table ref="mainTb" row-key="id" :pagination="pagination" @expand-change="expandChange" @page-change="onPageChange" :data="dataList">
+        <el-table-column type="expand">
+          <template slot-scope="props">
+            <tf-page style="minHeight:500px;padding:0 1%;">
+              <template #action>
+                <tf-title>{{props.row.boType}}属性列表</tf-title>
+                <el-divider></el-divider>
+                <el-button size="small" type="primary" @click="getSubDataList">刷新列表</el-button>
+                <el-button size="small" type="primary" @click="addBoInfo">新建属性</el-button>
+                <el-button size="small" type="primary" @click="delBoInfoByIds">批量删除</el-button>
+              </template>
+              <tf-table @selection-change="selectChange" row-key="id" :pagination="subpagination" @page-change="onSubPageChange" :data="props.row.dataList">
+                <el-table-column type="selection"></el-table-column>
+                <el-table-column prop="name" label="属性名称"></el-table-column>
+                <el-table-column prop="code" label="编码"></el-table-column>
+                <el-table-column prop="createTime" label="创建时间"></el-table-column>
+                <el-table-column label="操作">
+                  <template slot-scope="scope">
+                    <el-button type="primary" size="mini" @click='editBoInfo(scope.row)'>编辑</el-button>
+                    <el-button type="primary" size="mini" @click='delBoInfoById(scope.row)'>删除</el-button>
+                  </template>
+                </el-table-column>
+              </tf-table>
+            </tf-page>
+          </template>
+        </el-table-column>
+        <!-- <el-table-column type="selection"></el-table-column> -->
+        <el-table-column prop="boGroup" label="所属组名称"></el-table-column>
+        <el-table-column prop="boType" label="类型名称"></el-table-column>
+        <el-table-column prop="createUserName" label="创建用户"></el-table-column>
+        <el-table-column prop="createTime" label="创建时间"></el-table-column>
+        <el-table-column label="操作">
+          <template slot-scope="scope">
+            <el-button v-if="scope.row.origin != 2" type="primary" size="mini" @click='editBo(scope.row)'>编辑</el-button>
+            <el-button v-if="scope.row.origin != 2" type="primary" size="mini" @click='delBo(scope.row)'>删除</el-button>
+          </template>
+        </el-table-column>
+      </tf-table>
+    </tf-page>
+    <tf-dialog :title="isBoEdit?'修改业务对象':'新增业务对象'" :visible.sync='isBodialogShow' width="600px">
+      <el-form v-model="addBoForm" label-width="100px">
+        <el-form-item label="类型名称">
+          <el-input v-model="addBoForm.boType"></el-input>
+        </el-form-item>
+        <el-form-item label="所属组名称">
+          <el-select v-model="addBoForm.boGroup" style="width:100%">
+            <el-option v-for="(item,index) in boGroups" :key="index" :value="item" :label="item"></el-option>
+          </el-select>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" style="text-align:right">
+        <el-button size="small" @click="isBodialogShow=false">取消</el-button>
+        <el-button size="small" type="primary" v-if="isBoEdit" @click="editBoSubmit">提交</el-button>
+        <el-button size="small" type="primary" v-if="!isBoEdit" @click="addBoSubmit">提交</el-button>
+      </div>
+    </tf-dialog>
+    <tf-dialog :title="isBoInfoEdit?'修改属性':'新增属性'" :visible.sync='isBoInfodialogShow' width="600px">
+      <el-form v-model="addBoInfoForm" label-width="100px">
+        <el-form-item label="属性编码">
+          <el-input v-model="addBoInfoForm.code"></el-input>
+        </el-form-item>
+        <el-form-item label="属性名称">
+          <el-input v-model="addBoInfoForm.name"></el-input>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" style="text-align:right">
+        <el-button size="small" @click="isBoInfodialogShow=false">取消</el-button>
+        <el-button size="small" type="primary" v-if="isBoInfoEdit" @click="editBoInfoSubmit">提交</el-button>
+        <el-button size="small" type="primary" v-if="!isBoInfoEdit" @click="addBoInfoSubmit">提交</el-button>
+      </div>
+    </tf-dialog>
+  </div>
+</template>
+<script lang="ts">
+/**
+ * 业务对象建模
+ */
+import { Vue, Prop, Watch, Component } from 'vue-property-decorator'
+import { getDefaultPagination } from '@/utils/constant'
+import {
+  addBoInfo,
+  editBoInfo,
+  delBoInfoById,
+  delBoInfoByIds,
+  GetBoPage_api,
+  getExsitBoGroup,
+  getBoinfoPage,
+  editPage_api,
+  AddPage_api,
+  delBoPageById
+} from '@/api/APIs'
+import { ElTable } from 'element-ui/types/table'
+@Component({
+  name: 'BusinessObjectModeling'
+})
+export default class BusinessObjectModeling extends Vue {
+  /**主表分页 */
+  pagination = getDefaultPagination()
+  /**子表分页 */
+  subpagination = getDefaultPagination()
+  /**主表数据 */
+  dataList = []
+  /**主表展开行 */
+  expandRow = null
+  /**业务对象新增或删除 */
+  isBoEdit = false
+  /**业务属性新增或删除 */
+  isBoInfoEdit = false
+  /**业务对象编辑框 */
+  isBodialogShow = false
+  /**业务属性编辑框 */
+  isBoInfodialogShow = false
+  /**业务对象信息 */
+  addBoForm = {
+    id: '',
+    boType: '',
+    boGroup: ''
+  }
+  /**业务属性信息 */
+  addBoInfoForm = {
+    id: '',
+    name: '',
+    code: ''
+  }
+  /**勾选的业务属性 */
+  checkedBoinfos = []
+  /**搜索所属组 */
+  searchBoGroup = ''
+  /**已存在业务对象组 */
+  boGroups = []
+  @Watch('searchBoGroup')
+  searchBogroup(value) {
+    this.pagination = getDefaultPagination()
+    this.getDataList()
+  }
+  /**主表分页事件 */
+  onPageChange(pagination) {
+    this.pagination = { ...this.pagination, ...pagination }
+    this.getDataList()
+  }
+  /**子表分页事件 */
+  onSubPageChange(pagination) {
+    this.subpagination = { ...this.subpagination, ...pagination }
+    this.getSubDataList()
+  }
+  /**主表展开行事件 */
+  expandChange(value, expanded) {
+    if (expanded.length === 0) {
+      this.$set(value, 'dataList', [])
+      this.expandRow = null
+      return
+    }
+    let params = { boId: value.id }
+    params = { ...params, ...this.subpagination }
+    if (this.expandRow)
+      ((this.$refs.mainTb as ElTable).$refs.table as ElTable).toggleRowExpansion(this.expandRow, false)
+    getBoinfoPage(params)
+      .then((result) => {
+        if (result.code !== 1) return
+        this.$set(value, 'dataList', result.result.records)
+        this.expandRow = value
+        const { current, size, total } = result.result
+        this.subpagination = { current, size, total }
+      })
+      .catch((err) => {
+        console.error(err)
+      })
+  }
+  mounted() {
+    this.getDataList()
+    this.getBoGroup()
+  }
+  /**获取已存在的组 */
+  getBoGroup() {
+    getExsitBoGroup({}).then((result) => {
+      this.boGroups = result.result
+    })
+  }
+  /**项目业务对象 */
+  getDataList() {
+    let params = {
+      boGroup: this.searchBoGroup
+    }
+    params = { ...params, ...this.pagination }
+    GetBoPage_api(params)
+      .then((result) => {
+        if (result.code !== 1) return
+        this.dataList = result.result.records
+        const { current, size, total } = result.result
+        this.pagination = { current, size, total }
+      })
+      .catch((err) => {
+        console.error(err)
+      })
+  }
+  /**业务对象属性 */
+  getSubDataList() {
+    const value = this.expandRow
+    let params = { boId: value.id }
+    params = { ...params, ...this.subpagination }
+    getBoinfoPage(params)
+      .then((result) => {
+        if (result.code !== 1) return
+        this.$set(value, 'dataList', result.result.records)
+        this.expandRow = value
+        const { current, size, total } = result.result
+        this.subpagination = { current, size, total }
+      })
+      .catch((err) => {
+        console.error(err)
+      })
+  }
+  /**新增业务对象按钮事件 */
+  addBo() {
+    this.isBodialogShow = true
+    this.isBoEdit = false
+    this.addBoForm.boType = ''
+    this.addBoForm.boGroup = ''
+  }
+  /**新增业务对象提交 */
+  addBoSubmit() {
+    const data = {
+      boType: this.addBoForm.boType,
+      boGroup: this.addBoForm.boGroup
+    }
+    AddPage_api(data)
+      .then((result) => {
+        if (result.code === 1) {
+          this.$message.success('添加成功')
+          this.isBodialogShow = false
+          this.getDataList()
+        }
+      })
+      .catch((err) => {
+        console.error(err)
+      })
+  }
+  /**编辑业务对象按钮事件 */
+  editBo(row) {
+    this.isBodialogShow = true
+    this.isBoEdit = true
+    this.addBoForm.boType = row.boType
+    this.addBoForm.boGroup = row.boGroup
+    this.addBoForm.id = row.id
+  }
+  /**编辑业务对象提交 */
+  editBoSubmit() {
+    const data = {
+      id: this.addBoForm.id,
+      boType: this.addBoForm.boType,
+      boGroup: this.addBoForm.boGroup
+    }
+    editPage_api(data)
+      .then((result) => {
+        if (result.code === 1) {
+          this.$message.success('修改成功')
+          this.isBodialogShow = false
+          this.getDataList()
+        }
+      })
+      .catch((err) => {
+        console.error(err)
+      })
+  }
+  /**删除业务对象 */
+  delBo(row) {
+    this.$confirm('是否删除业务对象?', '提示', {
+      type: 'warning'
+    }).then(() => {
+      delBoPageById({ id: row.id })
+        .then((result) => {
+          if (result.code === 1) {
+            this.$message.success('删除成功')
+            this.getDataList()
+          }
+        })
+        .catch((err) => {
+          console.error(err)
+        })
+    })
+  }
+  /**新增业务属性按钮事件 */
+  addBoInfo() {
+    this.isBoInfodialogShow = true
+    this.isBoInfoEdit = false
+    this.addBoInfoForm.name = ''
+    this.addBoInfoForm.code = ''
+  }
+  /**新增业务属性提交 */
+  addBoInfoSubmit() {
+    const data = {
+      boId: this.expandRow.id,
+      name: this.addBoInfoForm.name,
+      code: this.addBoInfoForm.code
+    }
+    addBoInfo(data)
+      .then((result) => {
+        if (result.code === 1) {
+          this.$message.success('添加成功')
+          this.isBoInfodialogShow = false
+          this.getSubDataList()
+        }
+      })
+      .catch((err) => {
+        console.error(err)
+      })
+  }
+  /**编辑业务属性按钮事件 */
+  editBoInfo(row) {
+    this.isBoInfodialogShow = true
+    this.isBoInfoEdit = true
+    this.addBoInfoForm.code = row.code
+    this.addBoInfoForm.name = row.name
+    this.addBoInfoForm.id = row.id
+  }
+  /**编辑业务属性提交 */
+  editBoInfoSubmit() {
+    const data = {
+      id: this.addBoInfoForm.id,
+      name: this.addBoInfoForm.name,
+      code: this.addBoInfoForm.code
+    }
+    editBoInfo(data)
+      .then((result) => {
+        if (result.code === 1) {
+          this.$message.success('修改成功')
+          this.isBoInfodialogShow = false
+          this.getSubDataList()
+        }
+      })
+      .catch((err) => {
+        console.error(err)
+      })
+  }
+  /**删除业务对象 */
+  delBoInfoById(row) {
+    this.$confirm('是否删除属性?', '提示', {
+      type: 'warning'
+    }).then(() => {
+      delBoInfoById({ id: row.id })
+        .then((result) => {
+          if (result.code === 1) {
+            this.$message.success('删除成功')
+            this.getSubDataList()
+          }
+        })
+        .catch((err) => {
+          console.error(err)
+        })
+    })
+  }
+  /**删除业务对象 */
+  delBoInfoByIds() {
+    const ids = this.checkedBoinfos.map((item) => item.id).join(',')
+    this.$confirm('是否删除属性?', '提示', {
+      type: 'warning'
+    }).then(() => {
+      delBoInfoByIds({ ids: ids })
+        .then((result) => {
+          if (result.code === 1) {
+            this.$message.success('删除成功')
+            this.getSubDataList()
+          }
+        })
+        .catch((err) => {
+          console.error(err)
+        })
+    })
+  }
+  /**属性表格勾选事件 */
+  selectChange(selection) {
+    this.checkedBoinfos = selection
+  }
+}
+</script>
+<style lang="scss" scoped>
+.container {
+  background: #fff;
+  >>> .actions {
+    margin-bottom: 0;
+    .el-divider--horizontal {
+      margin: 15px 0;
+    }
+  }
+  >>> .content {
+    .tf-table .el-table:not(.el-table--border) .el-table__body tr.el-table__row td.el-table__cell button {
+      color: #fff;
+    }
+  }
+}
+</style>

+ 3 - 3
src/views/OnlineImport/widgets/DataImport/components/PbsTree.vue

@@ -1,14 +1,14 @@
 <template>
   <div>
     <el-select style="width:100%" ref='stlectTree' v-model="treeSelectText" placeholder="请选择或者输入工程名称" clearable filterable :filter-method="filterMethod" @clear="clearInput" size="mini">
-      <el-option :value="treeValue.id" :label="treeValue.label" style="max-width: 260px;height: auto;padding:0;">
+      <el-option :value="treeValue.id" :label="treeValue.label" style="height: auto;padding:0;">
         <el-tree :data="datas" :props="defaultProps" :expand-on-click-node="false" node-key="pbsTree" highlight-current @node-click="nodeClick" :filter-node-method="filterNode" ref="tree" />
       </el-option>
     </el-select>
   </div>
 </template>
 <script>
-import {pbsTreeList_api} from '@/api/APIs'
+import {pbsTreeListwithPublish} from '@/api/APIs'
 export default {
   name: "commonTree",//显示工程树
   data() {
@@ -27,7 +27,7 @@ export default {
   },
   methods: {
     getPbsTree() {
-      pbsTreeList_api({}).then(res => {
+      pbsTreeListwithPublish({}).then(res => {
         const { code, result } = res;
         if (code === 1) {
           function formatTree(obj) {

+ 32 - 36
src/views/OnlineImport/widgets/PipeOnlineImport/widget.vue

@@ -10,8 +10,8 @@
             </el-row>
             <span></span>
             <span>工程名称</span>
-            <pbs-tree @getTreeList="getTreeList" @changeProjectName="treeNodeClick" style="width:50%;display:inline-block;"></pbs-tree>
-            <el-button type="primary" size="mini">查询</el-button>
+            <pbs-tree @changeProjectName="treeNodeClick" style="width:50%;display:inline-block;"></pbs-tree>
+            <el-button type="primary" size="mini" @click="getPbsTree">查询</el-button>
           </el-col>
           <el-col :span="6" :offset="6">
             <el-button type="primary" size="mini" @click="publicService">数据发布</el-button>
@@ -304,12 +304,12 @@ export default class PipeOnlineImprt extends Vue {
     paperUnit: [{ required: true, message: '请输入图纸提供单位', trigger: 'blur' }],
     paperPerson: [{ required: true, message: '请输入图纸提供人', trigger: 'blur' }]
   }
-  importInfo=''
-  priviewInfo=''
+  importInfo = ''
+  priviewInfo = ''
   /**
-   * PBS结构树层级ID
+   * 搜索PBS结构树层级ID
    */
-  selectProjID = null
+  searchStructureId = null
   /**
   在线获取弹窗开关
    */
@@ -435,11 +435,9 @@ export default class PipeOnlineImprt extends Vue {
   mounted() {
     this.getPbsTree()
   }
-  getTreeList(list) {
-    //this.tableData = list
-  }
   /**未过滤发布状态的 */
   getPbsTree() {
+    const params={structDetailId:this.searchStructureId}
     pbsTreeListwithPublish({}).then((res) => {
       const { code, result } = res
       if (code === 1) {
@@ -455,7 +453,6 @@ export default class PipeOnlineImprt extends Vue {
         if (result[0]) {
           let data = formatTree(result[0].structures)
           this.tableData = data
-          console.log(data)
         }
       } else {
         this.$message.error('信息获取失败')
@@ -469,7 +466,7 @@ export default class PipeOnlineImprt extends Vue {
   }
   treeNodeClick(info) {
     if (!info) return
-    this.selectProjID = info.id
+    this.searchStructureId = info.id
   }
   /**
    * 该方法用于新建节点
@@ -526,17 +523,18 @@ export default class PipeOnlineImprt extends Vue {
       name: this.addNodeForm.name,
       prjId: 9
     }
-    console.log(data)
-    addStrctureNode(data).then(result=>{
-      if(result.code===-1){
-        this.$message.error('添加失败');
-        return;
-      }
-      this.newNodeDialogShow=false;
-      this.getPbsTree()
-    }).catch(err=>{
-      console.error(err)
-    })
+    addStrctureNode(data)
+      .then((result) => {
+        if (result.code === -1) {
+          this.$message.error('添加失败')
+          return
+        }
+        this.newNodeDialogShow = false
+        this.getPbsTree()
+      })
+      .catch((err) => {
+        console.error(err)
+      })
   }
   /**下级节点选择器选中事件 */
   nextNodeChange() {
@@ -548,7 +546,6 @@ export default class PipeOnlineImprt extends Vue {
   }
   /**导入按钮点击事件 */
   pipeDataImport(row) {
-    console.log(row)
     this.impForm.id = row.id
     getStructureDetailByID({ id: row.pid })
       .then((result) => {
@@ -625,26 +622,26 @@ export default class PipeOnlineImprt extends Vue {
         if (result.code === 1) {
           this.$message.success('excel预览成功')
           //点表
-          this.importInfo="导入管点0个"
+          this.importInfo = '导入管点0个'
           if (result.result['点表'].length > 0) {
             const pointcolumns = Object.getOwnPropertyNames(result.result['点表'][0]).map((item) => {
               return { prop: item, label: item, showOverflowTooltip: true }
             })
             this.impForm.pointColumns = pointcolumns
             this.impForm.pointData = result.result['点表']
-            this.importInfo='导入管点'+result.result['点表'].length+'个'
+            this.importInfo = '导入管点' + result.result['点表'].length + '个'
           }
           //线表
-          let lineinfo=',管线0条'
+          let lineinfo = ',管线0条'
           if (result.result['线表'].length > 0) {
             const linecolumns = Object.getOwnPropertyNames(result.result['线表'][0]).map((item) => {
               return { prop: item, label: item, showOverflowTooltip: true }
             })
             this.impForm.lineColumns = linecolumns
             this.impForm.lineData = result.result['线表']
-            lineinfo=',管线'+result.result['线表'].length+'条'
+            lineinfo = ',管线' + result.result['线表'].length + '条'
           }
-          this.importInfo+=lineinfo
+          this.importInfo += lineinfo
           //this.buildNetwork()
         }
       })
@@ -1024,7 +1021,7 @@ export default class PipeOnlineImprt extends Vue {
     //viewer.scene.highDynamicRange = false;
     this.initTianditu()
     this.initBaseMap()
-    
+
     const initPosition = this.AppX.appConfig.initPosition
     const carto = Cesium.Cartographic.fromDegrees(
       parseFloat(initPosition.lon),
@@ -1297,17 +1294,16 @@ export default class PipeOnlineImprt extends Vue {
   }
   /**发布服务 */
   submitPublicService() {
-    if (this.selectProjID)
-      if (this.publicConfig.length === 0) {
-        this.$message.error('请勾选发布选项')
-        return
-      }
+    if (this.publicConfig.length === 0) {
+      this.$message.error('请勾选发布选项')
+      return
+    }
     if (this.publicConfig.indexOf('重建三维网络') > -1) {
       this.zsbuildNetwork()
     }
-    if (this.publicConfig.indexOf('发布地图服务')>-1) {
+    if (this.publicConfig.indexOf('发布地图服务') > -1) {
     }
-    if (this.publicConfig.indexOf('更新发布标识')>-1) {
+    if (this.publicConfig.indexOf('更新发布标识') > -1) {
       this.updatePubcliSign(this.listSelect.id)
     }
   }