Commit f14d0132 by liaoxing

gtx

parent 3c91e6e4
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/test/gtx/queryByPage", data)
}
export function queryDetailById(inr) {
return Api.post(`/test/gtx/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/test/gtx/add", data)
}
export function edit(data) {
return Api.post("/test/gtx/edit", data)
}
export function deleteById(inr) {
return Api.post(`/test/gtx/deleteById?inr=${inr}`)
}
......@@ -60,7 +60,7 @@ import Gtx, { Pattern } from "./Gtx.js";
import { queryDetailById, add, edit, deleteById } from "~/service/test/pty.js";
export default {
name: "StaticsDbipty",
name: "StaticsDbigtx",
components: {
// "m-pty-info": PtyInfo,
// "m-adr-list": AdrList,
......
......@@ -195,7 +195,7 @@
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="ptyAdd">新增</el-button>
<el-button type="primary" size="small" @click="gtxAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
......@@ -203,7 +203,7 @@
type="primary"
icon="el-icon-search"
size="small"
@click="onInfptySearch()"
@click="onInfgtxSearch()"
>查询
</el-button>
</c-col>
......@@ -211,7 +211,7 @@
<c-col :span="24">
<c-paging-table
:data="gtxData"
:columns="ptyColumns"
:columns="gtxColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
......@@ -266,7 +266,7 @@
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/pty.js";
import { queryByPage } from "~/service/test/gtx.js";
export default {
name: "",
......@@ -297,58 +297,58 @@ export default {
};
},
computed: {
// seatypb: {
// get: function () {
// return this.model.ptytyp === "B";
// },
// set: function (val) {
// this.model.ptytyp = val ? "B" : "";
// },
// },
// seatypc: {
// get: function () {
// return this.model.ptytyp === "C";
// },
// set: function (val) {
// this.model.ptytyp = val ? "C" : "";
// },
// },
// seatypa: {
// get: function () {
// return this.model.ptytyp === "A";
// },
// set: function (val) {
// this.model.ptytyp = val ? "A" : "";
// },
// },
// seatypo: {
// get: function () {
// return this.model.ptytyp === "O";
// },
// set: function (val) {
// this.model.ptytyp = val ? "O" : "";
// },
// },
// seatyph: {
// get: function () {
// return this.model.ptytyp === "H";
// },
// set: function (val) {
// this.model.ptytyp = val ? "H" : "";
// },
// },
seatypb: {
get: function () {
return this.model.ptytyp === "B";
},
set: function (val) {
this.model.ptytyp = val ? "B" : "";
},
},
seatypc: {
get: function () {
return this.model.ptytyp === "C";
},
set: function (val) {
this.model.ptytyp = val ? "C" : "";
},
},
seatypa: {
get: function () {
return this.model.ptytyp === "A";
},
set: function (val) {
this.model.ptytyp = val ? "A" : "";
},
},
seatypo: {
get: function () {
return this.model.ptytyp === "O";
},
set: function (val) {
this.model.ptytyp = val ? "O" : "";
},
},
seatyph: {
get: function () {
return this.model.ptytyp === "H";
},
set: function (val) {
this.model.ptytyp = val ? "H" : "";
},
},
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfptySearch()
this.onInfgtxSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onInfptySearch() {
onInfgtxSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
......@@ -366,7 +366,7 @@ export default {
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInfptySearch()
this.onInfgtxSearch()
},
ptytypeChange(val) {
this.model.ptytyp = val;
......
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