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