田源
2023-10-24 c8005d3f303be7241f5acdc10ad679e1bf8cd602
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)">停用
@@ -93,6 +93,7 @@
      option: {
        height: "auto",
        calcHeight: 20,
        columnBtn:false,
        tip: false,
        headerAlign: "center",
        border: true,
@@ -109,7 +110,6 @@
        addBtn: false,
        editBtn: false,
        delBtn: false,
        columnBtn: false,
        column: [ {
          label: '是否启用',
          prop: 'usedFlag',
@@ -174,8 +174,9 @@
        },{
          label: 'soapAction',
          prop: 'soapAction',
          overHidden:true,
          sortable: true,
          width: 150
          width: 200
        },  {
          label: '调用方式',
          prop: 'cxfaxis',
@@ -191,7 +192,8 @@
          label: '请求地址',
          prop: 'requestUrl',
          sortable: true,
          width: 150
          overHidden:true,
          width: 200
        },  {
          label: '接口函数',
          prop: 'interfaceFunction',
@@ -263,7 +265,7 @@
    //单元格样式
    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',
@@ -324,10 +326,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("删除数据将无法被恢复, 是否继续?", "提示", {
@@ -399,7 +402,7 @@
    onLoad(page, params = {}) {
      this.loading = true;
      getList(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => {
        console.log(res)
        // console.log(res)
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
@@ -498,8 +501,24 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.applyRangeTable > .el-card:nth-of-type(2) > .el-card__body > .avue-crud__menu {
  display: none !important;
}
// 滚动条样式修改
// 滚动条的宽度
/deep/ .el-table__body-wrapper::-webkit-scrollbar {
  height: 15px; // 纵向滚动条 必写
  background: white;
  border: white;
  width: 10px;
}
// 滚动条的滑块
/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
  background-color: #ececec;
  border-radius: 20px;
  border: #ececec;
}
</style>