Commit a084caef by xionglin

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents 83090acb 3e984269
...@@ -14,7 +14,7 @@ export function queryByPage2(data) { ...@@ -14,7 +14,7 @@ export function queryByPage2(data) {
export function insert(data) { export function insert(data) {
return Api.post("/manager/pts/insert", data) return Api.post("/manager/pts/insert", data)
} }
export function update(data) { export function edit(data) {
return Api.post("/manager/pts/update", data) return Api.post("/manager/pts/update", data)
} }
export function deleteById(data) { export function deleteById(data) {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<c-button <c-button
type="primary" type="primary"
style="margin-right: 10px" style="margin-right: 10px"
@click="commitUpdate" @click="commitEdit"
>提 交</c-button >提 交</c-button
> >
<c-button type="primary" @click="goBack">返 回</c-button> <c-button type="primary" @click="goBack">返 回</c-button>
...@@ -38,7 +38,7 @@ import Pts, { Pattern } from "./Pts.js"; ...@@ -38,7 +38,7 @@ import Pts, { Pattern } from "./Pts.js";
import PtsInfo from "./PtsInfo.vue"; import PtsInfo from "./PtsInfo.vue";
import { add, update, deleteById,queryById } from "~/service/test/pts.js"; import { add, edit, deleteById,queryById } from "~/service/test/pts.js";
export default { export default {
name: "StaticsDbipts", name: "StaticsDbipts",
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
}, },
data() { data() {
return { return {
tabVal: "infsea", tabVal: "PtsInfo",
model: new Pts().data, model: new Pts().data,
tabVal: "pts", tabVal: "pts",
rules: Pattern, rules: Pattern,
...@@ -93,11 +93,11 @@ export default { ...@@ -93,11 +93,11 @@ export default {
} }
}, },
methods: { methods: {
commitUpdate() { commitEdit() {
this.$refs.modelForm.validate((validated) => { this.$refs.modelForm.validate((validated) => {
if (validated) { if (validated) {
if(this.tabPosition===`tab-pts`){ if(this.tabPosition===`tab-pts`){
update(this.model) edit(this.model)
.then((res) => { .then((res) => {
this.$message.success("代码修改保存成功!"); this.$message.success("代码修改保存成功!");
this.goBack() this.goBack()
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
style="margin-left: 5px" style="margin-left: 5px"
size="small" size="small"
type="primary" type="primary"
@click="infptsUpdate(scope.$index, scope.row)" @click="infptsEdit(scope.$index, scope.row)"
>修改</c-button >修改</c-button
> >
</template> </template>
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
}) })
}, },
infptsUpdate(index, row) { infptsEdit(index, row) {
this.$router.push(`/statics/dbepts/${row.extkey}`) this.$router.push(`/statics/dbepts/${row.extkey}`)
}, },
onInfptsSearch2() { onInfptsSearch2() {
......
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