Commit b2c3d99f by hewei

完善usr页面

parent 1d1ac1db
......@@ -20,25 +20,25 @@ export function deleteById(inr) {
return Api.post(`/test/usr/deleteById?inr=${inr}`)
}
export function addUbrData(inr, data) {
return Api.post(`/test/usr/addUbrData?inr=${inr}`, data)
export function addUbrData(data) {
return Api.post(`/test/usr/addUbrData`, data)
}
export function updateUbrData(inr, data) {
return Api.post(`/test/usr/updateUbrData?inr=${inr}`, data)
export function updateUbrData(data) {
return Api.post(`/test/usr/updateUbrData`, data)
}
export function deleteUbrData(data) {
return Api.post(`/test/usr/deleteUbrData`, data)
export function deleteUbrData(inr) {
return Api.post(`/test/usr/deleteUbrData?inr=${inr}`, inr)
}
export function addUclData(inr, data) {
return Api.post(`/test/usr/addUclData?inr=${inr}`, data)
export function addUclData(data) {
return Api.post(`/test/usr/addUclData`, data)
}
export function updateUclData(inr, data) {
return Api.post(`/test/usr/updateUclData?inr=${inr}`, data)
export function updateUclData(data) {
return Api.post(`/test/usr/updateUclData`, data)
}
export function deleteUclData(data) {
return Api.post(`/test/usr/deleteUclData`, data)
export function deleteUclData(usr, branchinr) {
return Api.post(`/test/usr/deleteUclData?usr=${usr}&&branchinr=${branchinr}`, usr, branchinr)
}
\ No newline at end of file
......@@ -104,7 +104,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="autamt" prop="autamt">
<el-form-item label="一次性释放授权" prop="autamt">
<c-input
v-model="ubr.autamt"
placeholder="请输入一次性释放授权"
......@@ -130,3 +130,6 @@ export default {
},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<div style="text-align: right">
<c-button size="small" type="primary" @click="ubrAdd()"> 新增 </c-button>
<c-button size="small" type="primary" @click="ubrAdd()" :disabled="false"> 新增 </c-button>
</div>
<el-form-item label="" label-width="0" prop="ubrList">
<c-table :columnsConfig="columns" :list="model.ubrList">
......@@ -149,7 +149,7 @@ export default {
cancelButtonText: "取消",
type: "warning",
}).then((res) => {
deleteUbrData(row).then((res) => {
deleteUbrData(row.inr).then((res) => {
if (res) {
this.model.ubrList.splice(index, 1);
this.$message.success("删除成功!");
......@@ -165,11 +165,11 @@ export default {
editUbr() {
this.$refs.ubr.$refs.modelForm.validate((validated) => {
if (validated) {
updateUbrData(this.model.inr, this.ubr)
updateUbrData(this.ubr)
.then((res) => {
if (res.ubr) {
if (res) {
this.$message.success("修改柜员权限信息成功!");
this.model.ubrList = res.ubrList;
// this.model.ubrList = res.ubrList;
this.handleClose();
}
})
......@@ -195,16 +195,17 @@ export default {
} else {
this.$refs.ubr.$refs.modelForm.validate((validated) => {
if (validated) {
addUbrData(this.model.inr, this.ubr)
// this.ubr.inr = this.model.inr
addUbrData(this.ubr)
.then((res) => {
if (res && res.inr) {
this.$message.success("保存地址信息成功!");
if (res) {
this.$message.success("保存柜员权限信息成功!");
this.model.ubrList = res.ubrList;
this.handleClose();
}
})
.catch((error) => {
this.$message.error("保存地址信息失败!");
this.$message.error("保存柜员权限信息失败!");
});
}
});
......
......@@ -85,4 +85,7 @@ export default {
};
}
}
</script>
\ No newline at end of file
</script>
<style>
</style>
\ No newline at end of file
......@@ -83,7 +83,6 @@ import {
updateUclData,
deleteUclData,
} from "@/service/test/usr";
import {addAdrData, deleteAdrData, updateAdrData} from "@/service/test/pty";
export default {
name: "UclList",
......@@ -124,7 +123,6 @@ export default {
uclAdd() {
this.ucl = new Ucl().data;
this.operate = "add";
this.operateIdx = index;
this.uclDialog = true;
},
/**
......@@ -145,7 +143,8 @@ export default {
cancelButtonText: "取消",
type: "warning",
}).then((res) => {
deleteUclData(row).then((res) => {
console.log(row.branchinr)
deleteUclData(row.usr, row.branchinr).then((res) => {
if (res) {
this.model.uclList.splice(index, 1);
this.$message.success("删除成功!");
......@@ -161,11 +160,10 @@ export default {
editUcl() {
this.$refs.ucl.$refs.modelForm.validate((validated) => {
if (validated) {
updateAdrData(this.model.inr, this.ucl)
updateUclData(this.ucl)
.then((res) => {
if (res.inr) {
if (res.usr) {
this.$message.success("修改柜员组信息成功!");
this.model.uclList = res.uclList;
this.handleClose();
}
})
......@@ -191,16 +189,15 @@ export default {
} else {
this.$refs.ucl.$refs.modelForm.validate((validated) => {
if (validated) {
addUclData(this.model.inr, this.ucl)
addUclData(this.ucl)
.then((res) => {
if (res && res.inr) {
this.$message.success("保存地址信息成功!");
this.model.uclList = res.uclList;
if (res) {
this.$message.success("保存柜员组信息成功!");
this.handleClose();
}
})
.catch((error) => {
this.$message.error("保存地址信息失败!");
this.$message.error("保存柜员组信息失败!");
});
}
});
......
......@@ -55,15 +55,15 @@
</c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="24">-->
<!-- <el-form-item label="ver" prop="ver">-->
<!-- <c-input-->
<!-- v-model="model.ver"-->
<!-- placeholder="请输入ver"-->
<!-- >-->
<!-- </c-input>-->
<!-- </el-form-item>-->
<!-- </c-col>-->
<c-col :span="24">
<el-form-item label="ver" prop="ver">
<c-input
v-model="model.ver"
placeholder="请输入ver"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体标志" prop="pri">
<c-input
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment