Commit 8d045016 by 闫泽浩

infpts更新

parent 3e984269
......@@ -15,7 +15,7 @@ export function insert(data) {
return Api.post("/manager/pts/insert", data)
}
export function edit(data) {
return Api.post("/manager/pts/update", data)
return Api.post("/manager/pts/edit", data)
}
export function deleteById(data) {
return Api.post("/manager/pts/deleteById", data)
......
......@@ -14,11 +14,11 @@ export const Pattern = {
"extkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 16, "message": "最大长度16个字符", "trigger": "blur" }
{ "max": 55, "message": "最大长度16个字符", "trigger": "blur" }
],
"nam": [
{ "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
{ "max": 140, "message": "最大长度40个字符", "trigger": "blur" }
],
"branch": [
{ "type": "string", "trigger": "blur" },
......@@ -26,6 +26,6 @@ export const Pattern = {
],
"bchname": [
{ "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
{ "max": 100, "message": "最大长度40个字符", "trigger": "blur" }
],
}
......@@ -9,7 +9,6 @@
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="changePosition">
<el-tab-pane label="基本信息" name="info">
......@@ -96,7 +95,7 @@ export default {
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
if(this.tabPosition===`tab-pts`){
window.console.log("123")
edit(this.model)
.then((res) => {
this.$message.success("代码修改保存成功!");
......@@ -104,10 +103,8 @@ export default {
})
.catch((err) => {
this.$message.error("代码修改保存失败!");
});}
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
}
});
},
......
......@@ -267,7 +267,7 @@ const StaticsRouter = [
{ path: 'infbtb', component: InfBtb, name: 'StaticsInfbtb', meta: { title: '查询清算代理行' } },
{ path: 'dbibtb/:inr', component: DbiBtb, name: 'StaticsDbibtb', meta: { title: (tag) => { return '清算代理行详情: ' + tag.params.inr } } },
{ path: 'Infpts', component: Infpts, name: 'StaticsDbaatx', meta: { title: '客户管户机构管理' } },
{ path: 'Infpts', component: Infpts, name: 'StaticsInfpts', meta: { title: '客户管户机构管理' } },
{ path: 'dbipts/:extkey', component: Dbipts, name: 'StaticsDbipts', meta: { title: (tag) => { return '客户更新详情: ' + tag.params.extkey } } },
{ path: 'dbepts/:extkey', component: Dbipts, name: 'StaticsDbepts', meta: { title: (tag) => { return '客户信息修改: ' + tag.params.extkey } } },
......
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