Commit 8a0022e9 authored by wanglianghe's avatar wanglianghe

网点

parent ec69c6f9
import request from '@/utils/request'
// 创建服务网点
export function createNode(data) {
return request({
url: '/ecw/node/create',
method: 'post',
data: data
})
}
// 更新服务网点
export function updateNode(data) {
return request({
url: '/ecw/node/update',
method: 'put',
data: data
})
}
// 删除服务网点
export function deleteNode(id) {
return request({
url: '/ecw/node/delete?id=' + id,
method: 'delete'
})
}
// 获得服务网点
export function getNode(id) {
return request({
url: '/ecw/node/get?id=' + id,
method: 'get'
})
}
// 获得服务网点分页
export function getNodePage(query) {
return request({
url: '/ecw/node/page',
method: 'get',
params: query
})
}
// 导出服务网点 Excel
export function exportNodeExcel(query) {
return request({
url: '/ecw/node/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
...@@ -73,8 +73,6 @@ ...@@ -73,8 +73,6 @@
<el-table-column label="排序" align="center" prop="sort" /> <el-table-column label="排序" align="center" prop="sort" />
<el-table-column label="是否显示,默认显示" align="center" prop="isShow" /> <el-table-column label="是否显示,默认显示" align="center" prop="isShow" />
<el-table-column label="数据来源(pc端,mobile端)" align="center" prop="source" /> <el-table-column label="数据来源(pc端,mobile端)" align="center" prop="source" />
<el-table-column label="创建时间" align="center" prop="createAt" />
<el-table-column label="更新时间" align="center" prop="updateAt" />
<el-table-column label="国家id" align="center" prop="countryId" /> <el-table-column label="国家id" align="center" prop="countryId" />
<el-table-column label="国家中文名称" align="center" prop="countryZh" /> <el-table-column label="国家中文名称" align="center" prop="countryZh" />
<el-table-column label="国家英文名称" align="center" prop="countryEn" /> <el-table-column label="国家英文名称" align="center" prop="countryEn" />
...@@ -122,12 +120,6 @@ ...@@ -122,12 +120,6 @@
<el-form-item label="数据来源(pc端,mobile端)" prop="source"> <el-form-item label="数据来源(pc端,mobile端)" prop="source">
<el-input v-model="form.source" placeholder="请输入数据来源(pc端,mobile端)" /> <el-input v-model="form.source" placeholder="请输入数据来源(pc端,mobile端)" />
</el-form-item> </el-form-item>
<el-form-item label="创建时间" prop="createAt">
<el-input v-model="form.createAt" placeholder="请输入创建时间" />
</el-form-item>
<el-form-item label="更新时间" prop="updateAt">
<el-input v-model="form.updateAt" placeholder="请输入更新时间" />
</el-form-item>
<el-form-item label="国家id" prop="countryId"> <el-form-item label="国家id" prop="countryId">
<el-input v-model="form.countryId" placeholder="请输入国家id" /> <el-input v-model="form.countryId" placeholder="请输入国家id" />
</el-form-item> </el-form-item>
...@@ -203,8 +195,6 @@ export default { ...@@ -203,8 +195,6 @@ export default {
sort: null, sort: null,
isShow: null, isShow: null,
source: null, source: null,
createAt: null,
updateAt: null,
countryId: null, countryId: null,
countryZh: null, countryZh: null,
countryEn: null, countryEn: null,
...@@ -225,9 +215,7 @@ export default { ...@@ -225,9 +215,7 @@ export default {
titleEn: [{ required: true, message: "英文名称不能为空", trigger: "blur" }], titleEn: [{ required: true, message: "英文名称不能为空", trigger: "blur" }],
sort: [{ required: true, message: "排序不能为空", trigger: "blur" }], sort: [{ required: true, message: "排序不能为空", trigger: "blur" }],
isShow: [{ required: true, message: "是否显示,默认显示不能为空", trigger: "blur" }], isShow: [{ required: true, message: "是否显示,默认显示不能为空", trigger: "blur" }],
source: [{ required: true, message: "数据来源(pc端,mobile端)不能为空", trigger: "blur" }], source: [{ required: true, message: "数据来源(pc端,mobile端)不能为空", trigger: "blur" }]
createAt: [{ required: true, message: "创建时间不能为空", trigger: "blur" }],
updateAt: [{ required: true, message: "更新时间不能为空", trigger: "blur" }],
} }
}; };
}, },
...@@ -262,8 +250,6 @@ export default { ...@@ -262,8 +250,6 @@ export default {
sort: undefined, sort: undefined,
isShow: undefined, isShow: undefined,
source: undefined, source: undefined,
createAt: undefined,
updateAt: undefined,
countryId: undefined, countryId: undefined,
countryZh: undefined, countryZh: undefined,
countryEn: undefined, countryEn: undefined,
......
This diff is collapsed.
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