Commit 14652c18 authored by 赵啸非's avatar 赵啸非

添加站点分类查询

parent c8c53866
......@@ -68,7 +68,7 @@ function restBuilder(path, component = path) {
arr.push(builder(`${path}/list`, `${component}/list`));
arr.push(builder(`${path}/edit`, `${component}/show`));
arr.push(builder(`${path}/add`, `${component}/show`));
arr.push(builder(`${path}/view`, `${component}/show`));
arr.push(builder(`${path}/view`, `${component}/view`));
return arr;
}
......@@ -95,6 +95,9 @@ function getComponent(fileName) {
try {
return require("./views/" + fileName).default;
} catch (error) {
//console.error(error)
return fileNotFound;
}
}
......
......@@ -33,9 +33,9 @@
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
/* toView(row) {
this.$refs.drawerform.view(row);
},
},*/
},
data() {
......
<template>
<div class="page">
<LayoutTable :data="tableData" :config="tableConfig">
<LayoutTable :data="tableData" notDel :config="tableConfig">
</LayoutTable>
......@@ -41,11 +41,8 @@
search: [
],
columns: [
{type: "selection", width: 60},
{type: "index",label: "序号",width: 50},
{label: "站点Id", prop: "siteId", formatter: this.formatter},
{label: "站点编码", prop: "siteCode"},
{label: "站点名称", prop: "siteName"},
......@@ -63,18 +60,10 @@
{label: "", prop: "month",formatter: this.formatter},
{label: "", prop: "day",formatter: this.formatter},
{
label: "操作",
width: 240,
formatter: row => {
return (
<table-buttons noAdd row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
);
}
}
]
}
};
}
};
</script>
\ No newline at end of file
</script>
<template>
<layout-view>
<el-descriptions :title="title" :column="column" :size="size" :colon="false" border>
<template slot="title">
<i class="el-icon-tickets"></i>
基本详细信息
</template>
<el-descriptions style="margin-top: 10px" :title="title" :column="column" :size="size" :colon="false" border>
<template slot="extra">
<el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
</template>
<el-descriptions-item label="预约编号,为空现场取号" label-class-name="labelClass" content-class-name="contentClass">
<el-descriptions-item label="预约编号" label-class-name="labelClass" content-class-name="contentClass">
{{form.ordernumber}}
</el-descriptions-item>
<el-descriptions-item label="叫号状态 " label-class-name="labelClass" content-class-name="contentClass">
......@@ -141,4 +138,4 @@
.contentClass{
width: 600px;
}
</style>
\ No newline at end of file
</style>
......@@ -2,23 +2,19 @@
<div class="page">
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
<drawer-show ref="drawerform" @ok="getData" />
<view-show ref="viewform" @ok="getData" />
</div>
</template>
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import viewShow from "./view";
import table from "@/assets/mixins/table";
import session from "@/assets/utils/session";
export default {
name: "PjEvaluateList",
components: {
drawerShow,viewShow
drawerShow
},
mixins: [table],
created() {
......@@ -35,9 +31,9 @@
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
/* toView(row) {
this.$refs.drawerform.view(row);
},
},*/
},
data() {
......
<template>
<div class="page">
<LayoutTable :data="tableData" :config="tableConfig">
<LayoutTable :data="tableData" notDel :config="tableConfig">
</LayoutTable>
......@@ -41,11 +41,8 @@
search: [
],
columns: [
{type: "selection", width: 60},
{type: "index",label: "序号",width: 50},
{label: "站点Id", prop: "siteId", formatter: this.formatter},
{label: "站点编码", prop: "siteCode"},
{label: "站点名称", prop: "siteName"},
......@@ -63,18 +60,10 @@
{label: "", prop: "month",formatter: this.formatter},
{label: "", prop: "day",formatter: this.formatter},
{
label: "操作",
width: 240,
formatter: row => {
return (
<table-buttons noAdd row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
);
}
}
]
}
};
}
};
</script>
\ No newline at end of file
</script>
<template>
<layout-view>
<el-descriptions :title="title" :column="column" :size="size" :colon="false" border>
<template slot="title">
<i class="el-icon-tickets"></i>
基本详细信息
</template>
<el-descriptions style="margin-top: 10px" :title="title" :column="column" :size="size" :colon="false" border>
<template slot="extra">
<el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
</template>
......@@ -115,7 +112,7 @@
data() {
return {
size:"small",
title:"small",
title:"",
column:2,
toString:[
],
......
......@@ -9,7 +9,7 @@ module.exports = {
hot: true, //自动保存
proxy: {
"/bill": {
target: "http://192.168.0.98:11078",
target: "http://192.168.0.98:11019",
//target: 'http://127.0.0.1:18222',
changeOrigin: true,
secure: false
......
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