| | |
| | | @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" |
| | | <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)">停用 |
| | |
| | | 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' |
| | |
| | | editBtn: false, |
| | | delBtn: false, |
| | | columnBtn: false, |
| | | column: [{ |
| | | label: '推送类型', |
| | | prop: 'pushType', |
| | | sortable: true, |
| | | overHidden:true, |
| | | column: [ { |
| | | label: '是否启用', |
| | | prop: 'usedFlag', |
| | | width: 150, |
| | | //pushTypeList作用域 |
| | | formatter: (d) => { |
| | | return this.pushTypeList[d.pushType] |
| | | } |
| | | }, { |
| | | label: '系统编号', |
| | | prop: 'id', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: '系统名称', |
| | | prop: 'name', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: '接口函数', |
| | | prop: 'interfaceFunction', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: '命名空间', |
| | | prop: 'nameSpace', |
| | | 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: res => res.isGroupCodeFlag ? '集团码' : '企业编码' |
| | | },{ |
| | | label: '接口类型', |
| | | prop:'dataFlowTypeText', |
| | | align:'center', |
| | | sortable: true, |
| | | width:150, |
| | | },{ |
| | | label: '推送类型', |
| | | prop: 'pushTypeText', |
| | | sortable: true, |
| | | overHidden:true, |
| | | align:'center', |
| | | width: 150, |
| | | //pushTypeList作用域 |
| | | // formatter: (d) => { |
| | | // return this.pushTypeList[d.pushType] |
| | | // } |
| | | }, { |
| | | label: '集成系统', |
| | | prop: 'targetSystemName', |
| | | // sortable: true, |
| | | label: '系统编号', |
| | | prop: 'id', |
| | | sortable: true, |
| | | hide:true, |
| | | width: 150 |
| | | }, { |
| | | label: '系统名称', |
| | | prop: 'name', |
| | | hide:true, |
| | | sortable: true, |
| | | width: 150 |
| | | },{ |
| | | label: '接口方式', |
| | |
| | | },{ |
| | | label: 'soapAction', |
| | | prop: 'soapAction', |
| | | overHidden:true, |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: '参数名称', |
| | | prop: 'targName', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | width: 200 |
| | | }, { |
| | | label: '调用方式', |
| | | prop: 'cxfaxis', |
| | | sortable: true, |
| | |
| | | }, { |
| | | label: '请求方式', |
| | | prop: 'requestMethod', |
| | | align:'center', |
| | | // sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: '请求地址', |
| | | prop: 'requestUrl', |
| | | sortable: true, |
| | | overHidden:true, |
| | | width: 200 |
| | | }, { |
| | | label: '接口函数', |
| | | prop: 'interfaceFunction', |
| | | sortable: true, |
| | | align:'center', |
| | | width: 150 |
| | | }, { |
| | | label: '参数名称', |
| | | prop: 'targetName', |
| | | sortable: true, |
| | | width: 150 |
| | | },{ |
| | | label: '参数类型', |
| | | prop: 'paramType', |
| | | sortable: true, |
| | |
| | | return this.returnTypeList[d.returnType] |
| | | } |
| | | }, { |
| | | label: '命名空间', |
| | | prop: 'nameSpace', |
| | | sortable: true, |
| | | width: 150 |
| | | },{ |
| | | label: '系统描述', |
| | | prop: 'description', |
| | | width: 150 |
| | |
| | | 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 == '' || row.row.usedFlag == 'false'){ |
| | | return { |
| | | color: 'red', |
| | | fontWeight: 'bold', |
| | | fontSize: '20' |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | |
| | | 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: '', |
| | |
| | | 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',this.editAttribute.pushType) |
| | | // console.log('editAttribute',this.editAttribute.dataFlowTypeText) |
| | | }, |
| | | deleteSave(row, index) { |
| | | this.$confirm("删除数据将无法被恢复, 是否继续?", "提示", { |
| | |
| | | showClose: true, |
| | | type: "warning" |
| | | }).then(() => { |
| | | remove(row.oid).then(res => { |
| | | del({oids:row.oid}).then(res => { |
| | | this.$message.success("删除成功"); |
| | | this.refreshChange(); |
| | | }); |
| | |
| | | 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; |
| | |
| | | // interfaceFunction:'', |
| | | // nameSpace:'', |
| | | // soapAction:'', |
| | | // targName:'', |
| | | // targetName:'', |
| | | // cxfaxis:'' |
| | | // }; |
| | | // this.pushTypeList.forEach(item => { |
| | |
| | | fieldType: 'text' |
| | | }, { |
| | | title: '参数名称', |
| | | queryField: 'targName', |
| | | queryField: 'targetName', |
| | | fieldType: 'text' |
| | | }, { |
| | | title: '调用方式', |