田源
2023-08-28 95cb1d699badedeb761e45015c6e5d824fc8502f
Source/UBCS-WEB/src/views/docking/info.vue
@@ -2,7 +2,7 @@
  <el-container>
    <el-main>
      <basic-container>
        <avue-crud v-model="form" ref="crud" :option="option" :data="data" @on-load="onLoad" :page.sync="page"
        <avue-crud ref="crud" v-model="form" :data="data" :option="option" :page.sync="page" @on-load="onLoad"
                   @search-change="searchChange"
                   @search-reset="searchReset"
                   @selection-change="selectionChange"
@@ -12,21 +12,24 @@
          <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-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)">启用</el-button>
            <el-button v-else icon="el-icon-finished" size="small" type="text" @click="DISABLE(row,index)">停用</el-button>
            <el-button v-if="row.usedflag=='false'" 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)">停用
            </el-button>
          </template>
          <template slot="menuLeft">
            <el-button size="small" type="primary" icon="el-icon-plus" @click="addSave">新&nbsp;&nbsp;增
            <el-button icon="el-icon-plus" size="small" type="primary" @click="addSave">新&nbsp;&nbsp;增
            </el-button>
            <el-button size="small" icon="el-icon-share" @click="PUSH">同  步
            <el-button icon="el-icon-share" size="small" @click="PUSH">同 步
            </el-button>
            <el-button size="small" icon="el-icon-search" @click="openAdvancedQuery">查  询
            <el-button icon="el-icon-search" size="small" @click="openAdvancedQuery">查 询
            </el-button>
          </template>
        </avue-crud>
      </basic-container>
    </el-main>
    <infoForm ref="infoForm" @refreshTable="refreshChange" :formData="editAttribute"></infoForm>
    <infoForm ref="infoForm" :formData="editAttribute" @refreshTable="refreshChange"></infoForm>
    <!-- 高级查询对话框 -->
    <advanced-query
      :ref="advancedQueryParam.ref"
@@ -49,6 +52,28 @@
  components:{infoForm},
  data() {
    return {
      add: [
        {
          pushType: '1',
          name: '小明',
        },
        {
          pushType: '1',
          name: '小明1',
        },
        {
          pushType: '2',
          name: '小明12',
        },
        {
          pushType: '5',
          name: '小明123',
        },
        {
          pushType: '2',
          name: '小红123',
        }
      ],
      //接口类型下拉
      interfaceTypeList: [{
        label: 'webService', value: 'webService'
@@ -111,6 +136,7 @@
          label: '推送类型',
          prop: 'pushType',
          sortable: true,
          overHidden:true,
          width: 150,
          //pushTypeList作用域
          formatter:(d)=>{
@@ -137,6 +163,26 @@
          sortable: true,
          width: 150
        }, {
          label: '分类选择',
          prop: 'classifyName',
          // sortable: true,
          width: 150
        }, {
          label: '集成系统',
          prop: 'targetSystemName',
          // sortable: true,
          width: 150
        },{
          label: '接口方式',
          prop: 'interfaceType',
          // sortable: true,
          width: 150
        },{
          label: '类路径',
          prop: 'classPath',
          // sortable: true,
          width: 150
        },{
          label: 'soapAction',
          prop: 'soapAction',
          sortable: true,
@@ -150,6 +196,11 @@
          label: '调用方式',
          prop: 'cxfaxis',
          sortable: true,
          width: 150
        }, {
            label: '请求方式',
            prop: 'requestMethod',
            // sortable: true,
          width: 150
        }, {
          label: '请求地址',
@@ -325,9 +376,30 @@
    onLoad(page, params = {}) {
      this.loading = true;
      getList(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => {
        console.log(res)
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        // const Props = {
        //   paramType: '',
        //   returnType: '',
        //   dataFlowType: '',
        //   pushType: '',
        //   classifyName: '',
        //   sourceSystemName: '',
        //   targetSystemName: '',
        //   classPath:'',
        //   requestMethod:'',
        //   requestUrl:'',
        //   interfaceFunction:'',
        //   nameSpace:'',
        //   soapAction:'',
        //   targName:'',
        //   cxfaxis:''
        // };
        // this.pushTypeList.forEach(item => {
        //   Object.assign(item, Props);
        // });
        this.loading = false;
      });
    },