田源
2023-08-29 7a1b2b8e10466b586dbc9cb899d04d49ad940af6
Source/UBCS-WEB/src/views/docking/info.vue
@@ -8,9 +8,9 @@
                   @selection-change="selectionChange"
                   @current-change="currentChange"
                   @size-change="sizeChange"
                   @refresh-change="refreshChange" @row-click="rowClick">
                   @refresh-change="refreshChange" @row-click="rowClick" :cell-style="cellStyle">
          <template slot="menu" slot-scope="{row,index}">
            <el-button icon="el-icon-edit" size="small" type="text" @click="updateSave(row,index)">编辑</el-button>
            <el-button icon="el-icon-edit" size="small" type="text" @click="updateSave(row,index)" :disabled="row.usedFlag === 'true' ? false :true">编辑</el-button>
            <el-button icon="el-icon-delete" size="small" type="text" @click="deleteSave(row,index)">删除</el-button>
            <el-button v-if="row.usedflag=='false'" icon="el-icon-position" size="small" type="text"
                       @click="ENABLE(row,index)">启用
@@ -111,16 +111,27 @@
        delBtn: false,
        columnBtn: false,
        column: [ {
          label: '是否启用',
          prop: 'usedFlag',
          width: 150,
          formatter: res => res.usedFlag === "true" ? "启用" : "停用"
        },{
          label: '集成系统',
          prop: 'sysBaseName',
          sortable: true,
          width: 150
        },{
          label: '分类选择',
          prop: 'classifyName',
          align:'center',
          // sortable: true,
          width: 150
        },{
          label: '编码类型',
          prop: 'isGroupCodeFlag',
          sortable: true,
          width: 150,
          formatter: d => d.isGroupCodeFlag ? '集团码' : '企业编码'
          formatter: res => res.isGroupCodeFlag ? '集团码' : '企业编码'
        },{
          label: '接口类型',
          prop:'dataFlowTypeText',
@@ -149,23 +160,6 @@
          prop: 'name',
          hide:true,
          sortable: true,
          width: 150
        }, {
          label: '接口函数',
          prop: 'interfaceFunction',
          sortable: true,
          align:'center',
          width: 150
        }, {
          label: '命名空间',
          prop: 'nameSpace',
          sortable: true,
          width: 150
        },{
          label: '分类选择',
          prop: 'classifyName',
          align:'center',
          // sortable: true,
          width: 150
        },{
          label: '接口方式',
@@ -198,6 +192,12 @@
          prop: 'requestUrl',
          sortable: true,
          width: 150
        },  {
          label: '接口函数',
          prop: 'interfaceFunction',
          sortable: true,
          align:'center',
          width: 150
        }, {
            label: '参数名称',
            prop: 'targName',
@@ -220,6 +220,11 @@
            return this.returnTypeList[d.returnType]
          }
        }, {
          label: '命名空间',
          prop: 'nameSpace',
          sortable: true,
          width: 150
        },{
          label: '系统描述',
          prop: 'description',
          width: 150
@@ -247,6 +252,18 @@
    }
  },
  methods: {
    //单元格样式
    cellStyle(row,column,rowIndex,columnIndex){
      if(row.columnIndex==2) {
        if(row.row.usedFlag == 'false'){
          return {
            color: 'red',
            fontWeight: 'bold',
            fontSize: '20'
          }
        }
      }
    },
    searchReset() {
      this.query = {};
      this.onLoad(this.page);
@@ -301,6 +318,8 @@
      this.editAttribute.sysIntHeaderVOs = row.sysIntHeaderVOs || [];
      this.$refs.infoForm.formData = this.editAttribute;
      this.$refs.infoForm.showSubmitDialog = true;
      console.log('row',row.dataFlowTypeText)
      console.log('editAttribute',this.editAttribute.dataFlowTypeText)
    },
    deleteSave(row, index) {
      this.$confirm("删除数据将无法被恢复, 是否继续?", "提示", {