Commit 8d045016 by 闫泽浩

infpts更新

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