Commit e7bbf9dd by mr.wang

多生物采集调整

parent 370d5d3f
...@@ -33,15 +33,15 @@ const menuLayouts = [ ...@@ -33,15 +33,15 @@ const menuLayouts = [
}, },
component: () => import("@/views/dswtz/dnaxx/queryDnaxx.vue") component: () => import("@/views/dswtz/dnaxx/queryDnaxx.vue")
}, },
{ // {
path: "/addDnaxx", // path: "/addDnaxx",
name: "addDnaxx", // name: "addDnaxx",
meta: { // meta: {
isAdd: true, // isAdd: true,
title: 'DNA信息' // title: 'DNA信息'
}, // },
component: () => import("@/views/dswtz/dnaxx/addDnaxx.vue") // component: () => import("@/views/dswtz/dnaxx/addDnaxx.vue")
}, // },
{ {
path: "/detailDnaxx", path: "/detailDnaxx",
name: "detailDnaxx", name: "detailDnaxx",
...@@ -83,15 +83,15 @@ const menuLayouts = [ ...@@ -83,15 +83,15 @@ const menuLayouts = [
}, },
component: () => import("@/views/dswtz/swxx/querySwxx.vue") component: () => import("@/views/dswtz/swxx/querySwxx.vue")
}, },
{ // {
path: "/addSwxx", // path: "/addSwxx",
name: "addSwxx", // name: "addSwxx",
meta: { // meta: {
isAdd: true, // isAdd: true,
title: '声纹信息' // title: '声纹信息'
}, // },
component: () => import("@/views/dswtz/swxx/addSwxx.vue") // component: () => import("@/views/dswtz/swxx/addSwxx.vue")
}, // },
// { // {
// path: "/swtzxxgl", // path: "/swtzxxgl",
// name: "swtzxxgl", // name: "swtzxxgl",
......
...@@ -216,4 +216,22 @@ export default [ ...@@ -216,4 +216,22 @@ export default [
}, },
component: () => import("@/views/dswtz/swxx/dswcj.vue") component: () => import("@/views/dswtz/swxx/dswcj.vue")
}, },
{
path: "/addDnaxx",
name: "addDnaxx",
meta: {
isAdd: true,
title: 'DNA信息'
},
component: () => import("@/views/dswtz/dnaxx/addDnaxx.vue")
},
{
path: "/addSwxx",
name: "addSwxx",
meta: {
isAdd: true,
title: '声纹信息'
},
component: () => import("@/views/dswtz/swxx/addSwxx.vue")
}
] ]
...@@ -13,6 +13,11 @@ ...@@ -13,6 +13,11 @@
@add="add" @add="add"
ref="rightContent" ref="rightContent"
> >
<template #listOperation="scope">
<span class="hbyps" @click="add(scope.scope)">
<i class="el-ibncon-plus"></i>新增</span
>
</template>
<template #btnGroup="scope"> <template #btnGroup="scope">
<el-button @click="edit(scope.scope)" type="text">修改</el-button> <el-button @click="edit(scope.scope)" type="text">修改</el-button>
<el-button @click="dele(scope.scope)" type="text">删除</el-button> <el-button @click="dele(scope.scope)" type="text">删除</el-button>
...@@ -204,5 +209,21 @@ ...@@ -204,5 +209,21 @@
} }
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/assets/styles/rightContent.scss"; @import "@/assets/styles/rightContent.scss";
.hbyps{
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
margin-bottom: 15px;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style> </style>
...@@ -101,8 +101,9 @@ ...@@ -101,8 +101,9 @@
params.set('hmsjRight',this.fileBase64['hmsjRight']) params.set('hmsjRight',this.fileBase64['hmsjRight'])
updateHm(params).then(res=>{ updateHm(params).then(res=>{
if(res.code){ if(res.code){
loading.close() // loading.close()
this.$router.push("dswtzxxlbxx") // this.$router.push("dswtzxxlbxx")
this.$message.success("保存成功");
} }
}) })
}, },
......
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
params.append('asjxgrybh',this.$route.query.rybh) params.append('asjxgrybh',this.$route.query.rybh)
this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList); this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList);
if (this.$route.query.rybh) { if (this.$route.query.rybh) {
this.title = "修改人像信息"; this.title = "人像信息";
this.rybh = this.$route.query.rybh; this.rybh = this.$route.query.rybh;
this.getshuju(); this.getshuju();
} }
......
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
@toInfor="toInfor" @toInfor="toInfor"
ref="rightContent" ref="rightContent"
> >
<template #listOperation="scope">
<span class="hbyps" @click="add(scope.scope)">
<i class="el-ibncon-plus"></i>新增</span
>
</template>
<template #btnGroup="scope"> <template #btnGroup="scope">
<el-button @click="dele(scope.scope)" type="text">删除</el-button> <el-button @click="dele(scope.scope)" type="text">删除</el-button>
</template> </template>
...@@ -35,7 +40,7 @@ ...@@ -35,7 +40,7 @@
data() { data() {
return { return {
tableOperation:true, tableOperation:true,
tableOperationWidth:800, tableOperationWidth:100,
header: "多生物特征信息", header: "多生物特征信息",
pageBs: "dswtzxxlbxx", pageBs: "dswtzxxlbxx",
cxFormData: { cxFormData: {
...@@ -215,4 +220,20 @@ ...@@ -215,4 +220,20 @@
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/assets/styles/rightContent.scss"; @import "@/assets/styles/rightContent.scss";
.hbyps{
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
margin-bottom: 15px;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style> </style>
...@@ -91,7 +91,14 @@ ...@@ -91,7 +91,14 @@
}, },
methods: { methods: {
submit(params) { submit(params) {
if(!params.get('voicefile')){ // if(!params.get('voicefile')){
// this.$message({
// message: '请上传音频文件',
// type: 'warning'
// });
// return
// }
if(!params.get('file')){
this.$message({ this.$message({
message: '请上传音频文件', message: '请上传音频文件',
type: 'warning' type: 'warning'
...@@ -105,6 +112,8 @@ ...@@ -105,6 +112,8 @@
background: "rgba(255, 255, 255, 0.7)", background: "rgba(255, 255, 255, 0.7)",
}); });
params.append('rybh',this.rybh) params.append('rybh',this.rybh)
params.append('voicefile', params.get('file'))
params.delete('file')
saveSw(params).then(res=>{ saveSw(params).then(res=>{
if(res.code === 200){ if(res.code === 200){
loading.close(); loading.close();
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
this.form.name = data.rdbzcz this.form.name = data.rdbzcz
}, },
getRdbs(type) { getRdbs(type) {
// 0-未比对 1-已比对 2-比对中 3-已认定 // 0-未认定 1-已认定
let text = '' let text = ''
switch (type) { switch (type) {
case '0': case '0':
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
pageBs: "dswtzxxlbxx", pageBs: "dswtzxxlbxx",
header: "多生物特征信息", header: "多生物特征信息",
tableData: [], tableData: [],
Url: '/Zwbzrw/gethainZwrwList', Url: '/Zwbzrw/getOracleZwrwList',
Url2: '/Zwbzrw/updateZwbdDswById', Url2: '/Zwbzrw/updateZwbdDswById',
loading: false, loading: false,
cxFormData1: { cxFormData1: {
......
...@@ -224,7 +224,8 @@ ...@@ -224,7 +224,8 @@
insertRyxx(params).then(res=>{ insertRyxx(params).then(res=>{
if(res.code===200){ if(res.code===200){
loading.close() loading.close()
this.$router.go(-1) // this.$router.go(-1)
this.$router.push('dswtzxxlbxx')
} }
}) })
} }
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
prop: "xbdmStr", prop: "xbdmStr",
}, },
], ],
cxUrl: "/rycj/selectOracleRyxxList", cxUrl: "/rycj/selectRyxxList",
Menu: [ Menu: [
{ {
id: "wfqdzczl", id: "wfqdzczl",
......
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