田源
2023-08-31 7e312ecf7100ca8931421e6200a145e6f26bc20e
Source/UBCS-WEB/src/views/docking/info.vue
@@ -12,7 +12,7 @@
          <template slot="menu" slot-scope="{row,index}">
            <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"
            <el-button v-if="row.usedFlag=='false' || row.usedFlag==''" icon="el-icon-position" size="small" type="text"
                       @click="ENABLE(row,index)">启用
            </el-button>
            <el-button v-else icon="el-icon-finished" size="small" type="text" @click="DISABLE(row,index)">停用
@@ -200,7 +200,7 @@
          width: 150
        }, {
            label: '参数名称',
            prop: 'targName',
            prop: 'targetName',
            sortable: true,
            width: 150
          },{
@@ -251,11 +251,19 @@
      return oids.join(",");
    }
  },
  watch:{
    // editAttribute:{
    //   immediate: true,
    //   handler(newData) {
    //     this.$refs.infoForm.formData  = Object.assign({}, newData);
    //   }
    // }
  },
  methods: {
    //单元格样式
    cellStyle(row,column,rowIndex,columnIndex){
      if(row.columnIndex==2) {
        if(row.row.usedFlag == 'false'){
        if(row.row.usedFlag == '' || row.row.usedFlag == 'false'){
          return {
            color: 'red',
            fontWeight: 'bold',
@@ -299,11 +307,11 @@
    addSave() {
      this.$refs.infoForm.showSubmitDialog = true;
      this.$refs.infoForm.formData = {
        dataFlowType: 'push',
        pushType: '1',
        sourceSystemName: '编码系统',
        sourceSystemOid: 'code00000001',
        sourceSystemId: 'CODE',
        dataFlowType: '',
        pushType: '',
        sourceSystemName: '',
        sourceSystemOid: '',
        sourceSystemId: '',
        targetSystemName: '',
        targetSystemOid: '',
        targetSystemId: '',
@@ -316,10 +324,11 @@
      this.editAttribute = row;
      this.editAttribute.sysIntParamVOs = row.sysIntParamVOs || [];
      this.editAttribute.sysIntHeaderVOs = row.sysIntHeaderVOs || [];
      this.editAttribute.type = 'edit';
      this.$refs.infoForm.formData = this.editAttribute;
      this.$refs.infoForm.showSubmitDialog = true;
      console.log('row',row.dataFlowTypeText)
      console.log('editAttribute',this.editAttribute.dataFlowTypeText)
      // console.log('row',this.editAttribute.pushType)
      // console.log('editAttribute',this.editAttribute.dataFlowTypeText)
    },
    deleteSave(row, index) {
      this.$confirm("删除数据将无法被恢复, 是否继续?", "提示", {
@@ -409,7 +418,7 @@
        //   interfaceFunction:'',
        //   nameSpace:'',
        //   soapAction:'',
        //   targName:'',
        //   targetName:'',
        //   cxfaxis:''
        // };
        // this.pushTypeList.forEach(item => {
@@ -459,7 +468,7 @@
        fieldType: 'text'
      }, {
        title: '参数名称',
        queryField: 'targName',
        queryField: 'targetName',
        fieldType: 'text'
      }, {
        title: '调用方式',