|
|
|
@ -55,6 +55,13 @@
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native.stop="handleAddInterface(scope.row)"
|
|
|
|
|
>添加接口
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -66,7 +73,6 @@
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
:visible.sync="modifyDialogVisible"
|
|
|
|
|
width="70%"
|
|
|
|
|
v-if="modifyDialogVisible"
|
|
|
|
|
>
|
|
|
|
|
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
|
|
|
|
|
<div style="text-align: center">
|
|
|
|
@ -155,18 +161,10 @@
|
|
|
|
|
<el-table v-loading="busTypeLoading" :data="busTypeList" style="width: 100%">
|
|
|
|
|
<el-table-column label="序号" type="index" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型" prop="name" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型代码" prop="code"></el-table-column>
|
|
|
|
|
<el-table-column v-if="addBussinessTypeBtnVisible" label="第三方单据类型" prop="thirdBuyName"></el-table-column>
|
|
|
|
|
<el-table-column v-if="addBussinessTypeBtnVisible" label="第三方单据类型" prop="thirdBuyCode"></el-table-column>
|
|
|
|
|
<el-table-column label="接口地址" prop="url" width="400" show-overflow-tooltip>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input :disabled="scope.$index !== currentCheckIndex" v-model="scope.row.url"
|
|
|
|
|
placeholder="请输入"></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="接口地址" prop="url" width="400" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="备注" prop="remark" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="200" prop="price" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -175,19 +173,6 @@
|
|
|
|
|
@click="handleEdit(scope.$index, scope.row)"
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="addBussinessTypeBtnVisible"
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click="bindThirdBuyType(scope.$index, scope.row)"
|
|
|
|
|
>绑定
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click="handleSave(scope.$index, scope.row)"
|
|
|
|
|
>保存
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
@ -206,23 +191,77 @@
|
|
|
|
|
|
|
|
|
|
<!--添加单据类型弹窗-->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="单据类型"
|
|
|
|
|
:title="formMap[formName]"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
:visible.sync="bussinessTypeFormVisible"
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-table v-loading="loading" :data="bussinessTypeList" ref="typeList"
|
|
|
|
|
@selection-change="handleBussinessTypeSelectionChange"
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
<el-table-column
|
|
|
|
|
type="selection"
|
|
|
|
|
:reserve-selection="false"
|
|
|
|
|
width="55">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="单据类型编码" prop="action" fixed></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型名称" prop="name" fixed></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<div>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<div class="itemTag">
|
|
|
|
|
<span>单据类型: </span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-select style="width: 350px;" v-model="thirdBuyForm.name" placeholder="单据类型">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in bussinessTypeList"
|
|
|
|
|
:key="item.action"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.name"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<div class="itemTag">
|
|
|
|
|
<span>第三方单据类型: </span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-select style="width: 350px;" v-model="thirdBuyForm.thirdBuyName" placeholder="第三方单据类型">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in thirdBuyList"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.name"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<div class="itemTag">
|
|
|
|
|
<span>接口地址: </span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 350px"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="thirdBuyForm.url"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<div class="itemTag">
|
|
|
|
|
<span>备注: </span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 350px"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="thirdBuyForm.remark"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native="bussinessTypeFormVisible = !bussinessTypeFormVisible"
|
|
|
|
@ -232,38 +271,36 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
@click.native="addBussinessTypeData()"
|
|
|
|
|
>提交
|
|
|
|
|
>保存
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--绑定第三方单据类型弹窗-->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="第三方系统单据类型"
|
|
|
|
|
title="添加接口"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
:visible.sync="bindBuyTypeFormVisible"
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
:visible.sync="addInterfaceVisible"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-table v-loading="loading" :data="thirdBuyList" ref="typeList"
|
|
|
|
|
@selection-change="handleBussinessTypeSelectionChange"
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
<el-table-column label="单据类型编码" prop="code" fixed></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型名称" prop="name" fixed></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="200" prop="price" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click="bindThirdBuyTypeData(scope.$index, scope.row)"
|
|
|
|
|
>绑定
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table :data="thirdSysDetailList" style="width: 100%;" @selection-change="selectedInterface">
|
|
|
|
|
<el-table-column type="selection" :reserve-selection="false" width="55"></el-table-column>
|
|
|
|
|
<el-table-column prop="name" label="接口名称"></el-table-column>
|
|
|
|
|
<el-table-column prop="value" label="接口地址"></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native="addInterfaceVisible = !addInterfaceVisible"
|
|
|
|
|
>取消
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
@click.native="addInterfaceData()"
|
|
|
|
|
>提交
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@ -274,7 +311,7 @@
|
|
|
|
|
import {
|
|
|
|
|
getBasicThirdSys,
|
|
|
|
|
updateBasicThirdSys, getDetailBasicThirdSys, updateDetailBasicThirdSys, filterBusTypeDetail, saveBusTypeDetail,
|
|
|
|
|
saveBusTypes, deleteThirdSysBusType
|
|
|
|
|
saveBusTypes, deleteThirdSysBusType, enableInterfaces
|
|
|
|
|
} from "../../api/basic/basicThirdSys";
|
|
|
|
|
|
|
|
|
|
import modifyDialog from "./BasicThirdSysModify";
|
|
|
|
@ -308,6 +345,11 @@ export default {
|
|
|
|
|
2: "第三方上传缓存",
|
|
|
|
|
3: "接口本地缓存"
|
|
|
|
|
},
|
|
|
|
|
formMap: {
|
|
|
|
|
edit: "编辑",
|
|
|
|
|
add: "单据类型"
|
|
|
|
|
},
|
|
|
|
|
formName: null,
|
|
|
|
|
detailList: null,
|
|
|
|
|
busTypeList: [],
|
|
|
|
|
total: 0,
|
|
|
|
@ -317,12 +359,24 @@ export default {
|
|
|
|
|
bussinessTypeFormVisible: false,
|
|
|
|
|
bussinessTypeList: [],
|
|
|
|
|
addBussinessTypeBtnVisible: false,
|
|
|
|
|
addInterfaceVisible: false,
|
|
|
|
|
selectBussinessTypeList: [],
|
|
|
|
|
thirdSysFk: null,
|
|
|
|
|
submitOrderRow: null,
|
|
|
|
|
thirdBuyForm: {
|
|
|
|
|
id: null,
|
|
|
|
|
thirdBuyName: null,
|
|
|
|
|
thirdBuyCode: null,
|
|
|
|
|
name: null,
|
|
|
|
|
code: null,
|
|
|
|
|
type: null,
|
|
|
|
|
thirdSys: null,
|
|
|
|
|
url: null,
|
|
|
|
|
remark: null
|
|
|
|
|
},
|
|
|
|
|
thirdBuyList: [], //第三方系统单据类型,
|
|
|
|
|
bindBuyTypeFormVisible: false,
|
|
|
|
|
submitTypeRowId: null //业务单据提交绑定修改行的ID
|
|
|
|
|
thirdSysDetailList: [],
|
|
|
|
|
selectInterfaceList: []
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -346,6 +400,9 @@ export default {
|
|
|
|
|
this.modifyBusYypeDialogVisible = false;
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange(row) {
|
|
|
|
|
if (row != null) {
|
|
|
|
|
this.thirdSysFk = row.thirdId;
|
|
|
|
|
}
|
|
|
|
|
this.getDetailList(row);
|
|
|
|
|
},
|
|
|
|
|
handleBustypeChange(row) {
|
|
|
|
@ -356,7 +413,7 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
this.addBussinessTypeBtnVisible = false;
|
|
|
|
|
}
|
|
|
|
|
this.thirdSysFk = row.thirdSysFk;
|
|
|
|
|
this.thirdSysFk = this.thirdSysFk;
|
|
|
|
|
},
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
@ -373,11 +430,10 @@ export default {
|
|
|
|
|
this.total = 0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getDetailList(row) {
|
|
|
|
|
getDetailList() {
|
|
|
|
|
let query = {
|
|
|
|
|
thirdSysFk: row.thirdId
|
|
|
|
|
thirdSysFk: this.thirdSysFk,
|
|
|
|
|
enabled: true
|
|
|
|
|
};
|
|
|
|
|
this.loading = true;
|
|
|
|
|
getDetailBasicThirdSys(query)
|
|
|
|
@ -392,10 +448,9 @@ export default {
|
|
|
|
|
this.total = 0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getBustyList(row) {
|
|
|
|
|
let query = {
|
|
|
|
|
thirdSysFk: row.thirdSysFk,
|
|
|
|
|
thirdSysFk: this.thirdSysFk,
|
|
|
|
|
type: 0,
|
|
|
|
|
};
|
|
|
|
|
if (row.key == "orderQueryUrl") {
|
|
|
|
@ -418,17 +473,16 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
onModifySubmit() {
|
|
|
|
|
this.modifyDialogVisible = false;
|
|
|
|
|
updateBasicThirdSys(this.inputQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.cancelDialog();
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -440,13 +494,13 @@ export default {
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.cancelDialog();
|
|
|
|
|
this.getList();
|
|
|
|
|
this.modifyDetailDialogVisible = false;
|
|
|
|
|
this.handleCurrentChange();
|
|
|
|
|
// this.getList();
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -463,6 +517,20 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
handleEdit(index, row) {
|
|
|
|
|
this.currentCheckIndex = index;
|
|
|
|
|
this.formName = "edit";
|
|
|
|
|
this.getBussinessType();
|
|
|
|
|
this.getThirdBuyType();
|
|
|
|
|
this.bussinessTypeFormVisible = true;
|
|
|
|
|
this.thirdBuyForm = {
|
|
|
|
|
id: row.id,
|
|
|
|
|
code: row.code,
|
|
|
|
|
name: row.name,
|
|
|
|
|
thirdBuyCode: row.thirdBuyCode,
|
|
|
|
|
thirdBuyName: row.thirdBuyName,
|
|
|
|
|
type: row.type,
|
|
|
|
|
thirdSys: row.thirdSys,
|
|
|
|
|
remark: row.remark
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
handleSave(index, row) {
|
|
|
|
|
this.currentCheckIndex = -1;
|
|
|
|
@ -474,37 +542,52 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
addBussinessType() {
|
|
|
|
|
this.bussinessTypeFormVisible = true;
|
|
|
|
|
this.formName = "add";
|
|
|
|
|
this.getBussinessType();
|
|
|
|
|
this.getThirdBuyType();
|
|
|
|
|
this.thirdBuyForm = {
|
|
|
|
|
id: null,
|
|
|
|
|
code: null,
|
|
|
|
|
name: null,
|
|
|
|
|
thirdBuyCode: null,
|
|
|
|
|
thirdBuyName: null,
|
|
|
|
|
type: null,
|
|
|
|
|
thirdSys: null,
|
|
|
|
|
remark: null
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
getBussinessType() {
|
|
|
|
|
filterForThirdSys().then((res) => {
|
|
|
|
|
this.bussinessTypeList = res.data;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
addBussinessTypeData() {
|
|
|
|
|
if (this.selectBussinessTypeList.length == 0) {
|
|
|
|
|
this.$message.error("请选择单据类型")
|
|
|
|
|
} else {
|
|
|
|
|
this.bussinessTypeFormVisible = false;
|
|
|
|
|
let data = [];
|
|
|
|
|
this.selectBussinessTypeList.forEach((row) => {
|
|
|
|
|
let item = {
|
|
|
|
|
code: row.action,
|
|
|
|
|
name: row.name,
|
|
|
|
|
type: 2,
|
|
|
|
|
thirdSys: this.thirdSysFk
|
|
|
|
|
}
|
|
|
|
|
data.push(item);
|
|
|
|
|
});
|
|
|
|
|
saveBusTypes(data).then((res) => {
|
|
|
|
|
this.handleBustypeChange(this.submitOrderRow);
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
})
|
|
|
|
|
this.bussinessTypeFormVisible = false;
|
|
|
|
|
//新增
|
|
|
|
|
if (this.formName == "add") {
|
|
|
|
|
this.thirdBuyForm.type = 2;
|
|
|
|
|
this.thirdBuyForm.thirdSys = this.thirdSysFk;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleBussinessTypeSelectionChange(row) {
|
|
|
|
|
let _this = this;
|
|
|
|
|
_this.selectBussinessTypeList = [];
|
|
|
|
|
row.forEach((item) => {
|
|
|
|
|
_this.selectBussinessTypeList.push(item);
|
|
|
|
|
|
|
|
|
|
//匹配编码
|
|
|
|
|
this.bussinessTypeList.forEach(item =>{
|
|
|
|
|
//单据业务类型编码
|
|
|
|
|
if (item.name === this.thirdBuyForm.name) {
|
|
|
|
|
this.thirdBuyForm.code = item.action;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.thirdBuyList.forEach(item => {
|
|
|
|
|
//第三方单据类型编码
|
|
|
|
|
if (item.name === this.thirdBuyForm.thirdBuyName) {
|
|
|
|
|
this.thirdBuyForm.thirdBuyCode = item.code;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
saveBusTypes(this.thirdBuyForm).then((res) => {
|
|
|
|
|
this.handleBustypeChange(this.submitOrderRow);
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleDelete(index, row) {
|
|
|
|
@ -515,34 +598,63 @@ export default {
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
bindThirdBuyType(index,row) {
|
|
|
|
|
this.bindBuyTypeFormVisible = true;
|
|
|
|
|
getThirdBuyType() {
|
|
|
|
|
let query = {
|
|
|
|
|
thirdSysFk: row.thirdSysFk,
|
|
|
|
|
thirdSysFk: this.thirdSysFk,
|
|
|
|
|
type: 1,
|
|
|
|
|
}
|
|
|
|
|
this.submitTypeRowId = row.id;
|
|
|
|
|
//查询第三方系统的单据类型
|
|
|
|
|
filterBusTypeDetail(query).then((res)=> {
|
|
|
|
|
this.thirdBuyList = res.data.list;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
bindThirdBuyTypeData(index, row){
|
|
|
|
|
let params = {
|
|
|
|
|
"id": this.submitTypeRowId,
|
|
|
|
|
"thirdBuyName": row.name,
|
|
|
|
|
"thirdBuyCode": row.code
|
|
|
|
|
handleAddInterface(row) {
|
|
|
|
|
this.addInterfaceVisible = true;
|
|
|
|
|
if (this.thirdSysFk == null) {
|
|
|
|
|
this.thirdSysFk = row.thirdId;
|
|
|
|
|
}
|
|
|
|
|
let query = {
|
|
|
|
|
thirdSysFk: row.thirdId,
|
|
|
|
|
enabled: false
|
|
|
|
|
};
|
|
|
|
|
saveBusTypeDetail(params).then((res) => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.$message.success("绑定成功");
|
|
|
|
|
this.bindBuyTypeFormVisible = false;
|
|
|
|
|
this.handleBustypeChange(this.submitOrderRow);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("绑定失败");
|
|
|
|
|
getDetailBasicThirdSys(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.thirdSysDetailList = response.data.list;
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
selectedInterface(rows) {
|
|
|
|
|
let _this = this;
|
|
|
|
|
_this.selectInterfaceList = [];
|
|
|
|
|
rows.forEach(row => {
|
|
|
|
|
_this.selectInterfaceList.push(row.id);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
addInterfaceData(){
|
|
|
|
|
this.addInterfaceVisible = false;
|
|
|
|
|
enableInterfaces(this.selectInterfaceList).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.selectInterfaceList = [];
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
let query = {
|
|
|
|
|
thirdSysFk: this.thirdSysFk,
|
|
|
|
|
enabled: true
|
|
|
|
|
};
|
|
|
|
|
this.loading = true;
|
|
|
|
|
getDetailBasicThirdSys(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.detailList = response.data.list || [];
|
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.list = [];
|
|
|
|
|
this.total = 0;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
this.$message.error("添加失败");
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -563,5 +675,16 @@ export default {
|
|
|
|
|
/*transition: all .5s;*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-col {
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|