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