21 Commits

Author SHA1 Message Date
wuzhihao
bde1796ebc fix:优化快速查询模块 2024-08-30 15:40:31 +08:00
wuzhihao
6bb0947da9 fix:优化快速查询模块 2024-08-30 15:32:36 +08:00
wuzhihao
b274f7b3d5 Merge branch 'dev' of https://gitea.aiotagro.com/liupengcheng/admin-jxn-testing into dev 2024-08-30 15:32:26 +08:00
wuzhihao
ce45fac9a8 fix:快速查询模块优化 2024-08-30 15:30:50 +08:00
wuzhihao
4cfce04955 fix:快速查询模块优化 2024-08-30 15:29:32 +08:00
liupengcheng
dff4081e4a 报错修改 2024-08-30 15:28:19 +08:00
wuzhihao
c19fa2bce6 Merge branch 'wzh0830' of https://gitea.aiotagro.com/liupengcheng/admin-jxn-testing into dev 2024-08-30 15:24:03 +08:00
wuzhihao
97c31a871d fix:快速查询模块优化 2024-08-30 15:23:27 +08:00
liupengcheng
acd30efd1c Merge branch 'dev-lpc' of https://gitea.aiotagro.com/liupengcheng/admin-jxn-testing into dev 2024-08-30 15:19:20 +08:00
liupengcheng
e5b65ee409 遗传病风险和品种资源 2024-08-30 15:13:57 +08:00
wuzhihao
b5d0ecfdf4 feat:路由文件添加页面信息 2024-08-30 15:00:42 +08:00
wuzhihao
b1bfe9529b feat:路由文件添加页面信息 2024-08-30 14:56:16 +08:00
wuzhihao
9fab1f7daf Merge branch 'dev' of https://gitea.aiotagro.com/liupengcheng/admin-jxn-testing into dev 2024-08-30 14:53:36 +08:00
lijinxuan123
9db5f12469 功能开发 2024-08-30 11:48:54 +08:00
lijinxuan123
72efe14d10 Merge branch 'jx-dev' into dev 2024-08-30 11:42:16 +08:00
lijinxuan123
c040663c36 功能开发 2024-08-30 11:41:06 +08:00
lijinxuan123
1ae3e877a0 页面开发 2024-08-29 18:03:38 +08:00
lijinxuan123
a0f1afe178 Merge branch 'jx-dev' into dev 2024-08-29 15:52:30 +08:00
lijinxuan123
beb5558464 修改图标 2024-08-29 15:51:43 +08:00
lijinxuan123
6f4cad004d Merge branch 'jx-dev' into dev 2024-08-29 15:37:18 +08:00
lijinxuan123
59a632711c 功能开发 2024-08-29 15:35:56 +08:00
31 changed files with 22251 additions and 21605 deletions

23718
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,7 +13,7 @@
"axios": "^0.26.1",
"core-js": "^3.6.5",
"echarts": "^5.3.2",
"element-ui": "^2.15.6",
"element-ui": "^2.15.14",
"file-saver": "^2.0.5",
"jquery": "^3.6.0",
"js-base64": "^3.7.2",

View File

@@ -6,4 +6,7 @@
</template>
<style lang="less">
a {
color: #67c23a !important;
}
</style>

BIN
src/assets/img/e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
src/assets/img/gongzhu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 KiB

BIN
src/assets/img/huoji.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

BIN
src/assets/img/ji.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

BIN
src/assets/img/lv.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

BIN
src/assets/img/muzhu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

BIN
src/assets/img/niu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

BIN
src/assets/img/one.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

BIN
src/assets/img/two.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 KiB

BIN
src/assets/img/ya.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

BIN
src/assets/img/yang.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

BIN
src/assets/img/zhu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

View File

@@ -1,6 +1,7 @@
import Vue from 'vue'
// 引入element-ui框架
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
// import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './router'

View File

@@ -13,11 +13,6 @@ const routes = [
meta: { title: '登录', activeMenu: '/login' }
},
{
path: '/',
component: Layout,
redirect: '/disease-resistance/disease-resistance',
meta: { title: '', activeMenu: '/disease-resistance/disease-resistance' }
}, {
// 首页
path: '/index',
component: Layout,
@@ -43,6 +38,71 @@ const routes = [
}
]
},
{
// 基因管理
path: '/geneMgmt',
component: Layout,
children: [
{
path: '/geneMgmt/SPN',
component: () =>
import('../views/geneMgmt/SPN.vue'),
meta: { title: 'SPN位点管理', activeMenu: '/geneMgmt/SPN' }
},
{
path: '/geneMgmt/SPNPanel',
component: () =>
import('../views/geneMgmt/SPNPanel.vue'),
meta: { title: 'SPN Panel位点管理', activeMenu: '/geneMgmt/SPNPanel' }
},
{
path: '/geneMgmt/sequence',
component: () =>
import('../views/geneMgmt/sequence.vue'),
meta: { title: '原始测序数据', activeMenu: '/geneMgmt/sequence' }
}
]
},
{
// 繁育管理
path: '/breedMgmt',
component: Layout,
children: [
{
path: '/breedMgmt/BLUP',
component: () =>
import('../views/breedMgmt/BLUP.vue'),
meta: { title: 'BLUP', activeMenu: '/breedMgmt/BLUP' }
},
{
path: '/breedMgmt/paternityTest',
component: () =>
import('../views/breedMgmt/paternityTest.vue'),
meta: { title: '亲子鉴定', activeMenu: '/breedMgmt/paternityTest' }
},
{
path: '/breedMgmt/lineage',
component: () =>
import('../views/breedMgmt/lineage.vue'),
meta: { title: '血统管理', activeMenu: '/breedMgmt/lineage' }
}
]
},
{
// 进化分析
path: '/phylogeneticAnalysis',
component: Layout,
children: [
{
path: '/phylogeneticAnalysis/evolutionaryTree',
component: () =>
import('../views/phylogeneticAnalysis/evolutionaryTree.vue'),
meta: { title: '进化树', activeMenu: '/phylogeneticAnalysis/evolutionaryTree' }
},
]
},
{
// 档案信息
path: '/archive-information',
@@ -68,6 +128,25 @@ const routes = [
meta: { title: '快速查询', activeMenu: '/quick-Search/quick-Search' }
}
]
},
{
// 品种资源
path: '/variety-resources',
component: Layout,
children: [
{
path: '/variety-resources/variety-resources',
component: () =>
import('../views/variety-resources/variety-resources.vue'),
meta: { title: '品种资源', activeMenu: '/variety-resources/variety-resources' }
},
{
path: '/variety-resources/pig-list',
component: () =>
import('../views/variety-resources/pig-list.vue'),
meta: { title: '品种猪', activeMenu: '/variety-resources/pig-list' }
},
]
}
]
@@ -79,7 +158,7 @@ router.beforeEach((to, from, next) => {
// to到哪里取 from 从哪里来 next 放行
const token = local.get('token_sd')
if (to.meta.title) { // 修改总标题
document.title = '肉牛溯源系统' + '-' + to.meta.title // routes数组中--meta是关键
document.title = '基芯农育种' + '-' + to.meta.title // routes数组中--meta是关键
}
if (token) { // ok
next()
@@ -89,5 +168,7 @@ router.beforeEach((to, from, next) => {
}
next('/login')
}
})
// next('/login')
}
)
export default router

View File

@@ -0,0 +1,409 @@
<template>
<div class="container-box">
<div class="search-box">
<el-radio-group v-model="activeName" style="margin: 20px 10px">
<el-radio-button label="ABLUP"></el-radio-button>
<el-radio-button label="GBLUP"></el-radio-button>
<el-radio-button label="ssGBLUP"></el-radio-button>
</el-radio-group>
</div>
<div class="list-box">
<el-form
:inline="true"
ref="searchForm"
:model="searchForm"
class="demo-form-inline"
label-width="auto"
size="mini"
style="margin: 15px 0 25px"
>
<el-form-item label="养殖场">
<el-input
v-model="searchForm.a"
placeholder="请输入养殖场"
></el-input>
</el-form-item>
<el-form-item label="标记编号">
<el-input
v-model="searchForm.b"
placeholder="请输入标记编号"
></el-input>
</el-form-item>
<el-form-item>
<el-button type="success" icon="el-icon-search" @click="searchClick"
>搜索</el-button
>
<el-button type="warning" icon="el-icon-refresh" @click="resetClick"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table
:data="tableDataABLUP"
style="width: 100%"
size="mini"
border
v-if="activeName == 'ABLUP'"
>
<el-table-column prop="a" label="养殖场"></el-table-column>
<el-table-column prop="b" label="标记编号"></el-table-column>
<el-table-column prop="c" label="性别"></el-table-column>
<el-table-column prop="d" label="外貌评分"></el-table-column>
<el-table-column prop="e" label="18月龄体高(CM)"></el-table-column>
<el-table-column prop="f" label="18月龄体长(CM)"></el-table-column>
<el-table-column prop="g" label="18月龄胸围(CM)"></el-table-column>
<el-table-column prop="h" label="18月龄官维(CM)"></el-table-column>
<el-table-column prop="i" label="18月龄体重(KG)"></el-table-column>
<el-table-column prop="j" label="18月龄背膘厚度(MM)"></el-table-column>
<el-table-column prop="k" label="18月龄眼肌面积(MM)"></el-table-column>
<el-table-column prop="l" label="平均产奶量(KG)"></el-table-column>
<el-table-column prop="m" label="平均乳脂率(%)"></el-table-column>
<el-table-column prop="n" label="平均乳蛋白率(%)"></el-table-column>
<el-table-column
prop="o"
label="综合育种指数"
sortable
></el-table-column>
<el-table-column label="详情">
<!-- <template slot-scope="scope"> -->
<el-button size="mini" type="text" class="detail-btn"
><a
target="_blank"
href="https://smart-1259258654.cos.ap-guangzhou.myqcloud.com/pdf/99715011920%E7%89%9B%E9%81%97%E4%BC%A0%E7%97%85%E5%9F%BA%E5%9B%A0%E6%A3%80%E6%B5%8B%E6%8A%A5%E5%91%8A.pdf"
>查看</a
></el-button
>
<!-- </template> -->
</el-table-column>
</el-table>
<el-table
:data="tableDataGBLUP"
style="width: 100%"
size="mini"
border
v-if="activeName == 'GBLUP'"
>
<el-table-column prop="a" label="养殖场"></el-table-column>
<el-table-column prop="b" label="标记编号"></el-table-column>
<el-table-column prop="c" label="性别"></el-table-column>
<el-table-column prop="d" label="月龄"></el-table-column>
<el-table-column prop="e" label="样本"></el-table-column>
<el-table-column
prop="f"
label="综合育种指数"
sortable
></el-table-column>
<el-table-column label="详情">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="download(scope.row.id)"
class="detail-btn"
>查看</el-button
>
</template>
</el-table-column>
</el-table>
<el-table
:data="tableDatassGBLUP"
style="width: 100%"
size="mini"
border
v-if="activeName == 'ssGBLUP'"
>
<el-table-column prop="a" label="养殖场"></el-table-column>
<el-table-column prop="b" label="标记编号"></el-table-column>
<el-table-column prop="c" label="性别"></el-table-column>
<el-table-column prop="d" label="月龄"></el-table-column>
<el-table-column prop="e" label="样本"></el-table-column>
<el-table-column
prop="f"
label="综合育种指数"
sortable
></el-table-column>
<el-table-column label="详情">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="download(scope.row.id)"
class="detail-btn"
>查看</el-button
>
</template>
</el-table-column>
</el-table>
<div class="page-box">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[20, 50, 100]"
layout="total, sizes, prev, pager, next, jumper"
:current-page="form.page"
:page-size="form.pagesize"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
activeName: 'ABLUP',
searchForm: {
a: '',
b: ''
},
tableDataABLUP: [
{
id: 0,
a: '若尔盖',
b: '82010000990',
c: '雌',
d: '93',
e: '132',
f: '161',
g: '198',
h: '18',
i: '577',
j: '10.9',
k: '42.92',
l: '4500',
m: '4.1',
n: '3.4',
o: '255.85'
},
{
id: 2,
a: '若尔盖',
b: '82010000991',
c: '雌',
d: '90',
e: '130',
f: '155',
g: '192',
h: '19',
i: '567',
j: '9.9',
k: '41.2',
l: '4490',
m: '4.0',
n: '3.2',
o: '252.85'
},
{
id: 3,
a: '若尔盖',
b: '82010000992',
c: '雌',
d: '91',
e: '130',
f: '155',
g: '192',
h: '19',
i: '567',
j: '9.9',
k: '41.2',
l: '4490',
m: '4.0',
n: '3.2',
o: '252.85'
},
{
id: 6,
a: '若尔盖',
b: '82010000993',
c: '雌',
d: '98',
e: '140',
f: '175',
g: '199',
h: '20',
i: '597',
j: '12.9',
k: '47.2',
l: '4690',
m: '4.9',
n: '3.4',
o: '259.85'
},
{
id: 4,
a: '若尔盖',
b: '82010000994',
c: '雌',
d: '96',
e: '140',
f: '185',
g: '199',
h: '20',
i: '597',
j: '12.9',
k: '47.2',
l: '4800',
m: '4.9',
n: '3.4',
o: '254.85'
}
],
tableDataGBLUP: [
{
a: '若尔盖',
b: '82010000990',
c: '雌',
d: '6',
e: '血液',
f: '1'
},
{
a: '若尔盖',
b: '82010000991',
c: '雌',
d: '8',
e: '血液',
f: '3'
},
{
a: '若尔盖',
b: '82010000992',
c: '雌',
d: '7',
e: '血液',
f: '5'
},
{
a: '若尔盖',
b: '82010000993',
c: '雌',
d: '6',
e: '血液',
f: '4'
},
{
a: '若尔盖',
b: '82010000994',
c: '雌',
d: '6',
e: '血液',
f: '9'
}
],
tableDatassGBLUP: [
{
a: '若尔盖',
b: '82010000991',
c: '雌',
d: '8',
e: '血液',
f: '3'
},
{
a: '若尔盖',
b: '82010000994',
c: '雌',
d: '6',
e: '血液',
f: '8'
},
{
a: '若尔盖',
b: '82010000992',
c: '雌',
d: '7',
e: '血液',
f: '5'
},
{
a: '若尔盖',
b: '82010000990',
c: '雌',
d: '6',
e: '血液',
f: '6'
},
{
a: '若尔盖',
b: '82010000993',
c: '雌',
d: '6',
e: '血液',
f: '4'
}
],
form: {
page: 1,
pagesize: 20
},
total: 5
}
},
methods: {
// 搜索
searchClick() {},
// 重置
resetClick() {
for (const key in this.searchForm) {
this.searchForm[key] = ''
}
},
// 条
handleSizeChange(val) {
this.form.pagesize = parseInt(val)
},
// 页
handleCurrentChange(val) {
this.form.page = parseInt(val)
},
handleClick(tab, event) {
console.log(tab, event)
}
}
}
</script>
<style lang="less" scoped>
.container-box {
min-height: calc(100vh - 84px);
padding: 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
.search-box {
background: #fff;
border-radius: 6px;
padding: 10px 15px;
margin-bottom: 25px;
}
.list-box {
flex: 1;
background: #fff;
border-radius: 6px;
padding: 10px 15px;
.detail-btn {
color: #67c23a;
}
.page-box {
margin-top: 10px;
}
}
}
.el-form-item {
margin-bottom: 0px;
margin-right: 20px;
}
// table
/deep/.el-table th.el-table__cell {
background-color: #f5f7fa;
}
/deep/ .cell {
font-weight: normal;
}
</style>

View File

@@ -0,0 +1,296 @@
<template>
<div class="container-box">
<div class="search-box">
<el-form
:inline="true"
ref="searchForm"
:model="searchForm"
class="demo-form-inline"
label-width="auto"
size="mini"
>
<el-select v-model="searchForm.a" placeholder="选择品种">
<el-option
v-for="item in options1"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-model="searchForm.b" placeholder="选择单个">
<el-option
v-for="item in options2"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-form-item label="">
<el-input v-model="searchForm.c" placeholder="请输入编号"></el-input>
</el-form-item>
<el-form-item>
<el-button type="warning" icon="el-icon-refresh" @click="resetClick"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="list-box con">
<div class="con">
<div class="left">
<el-table
:data="tableData"
style="width: 100%"
size="mini"
border
height="504"
ref="multipleTable"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column prop="a" label="标记编号"></el-table-column>
</el-table>
</div>
<div class="right">
<div style="height: 480px; width: 500px">
<img
src="@/assets/img/one.png"
alt=""
v-if="multipleSelection.length == 1"
/>
<img
src="@/assets/img/two.png"
alt=""
v-if="multipleSelection.length == 2"
/>
</div>
<div class="info">
<p>
<el-tooltip placement="top">
<div slot="content">
低近交系数0% -
5%表示个体的遗传多样性较高近交程度较低这些个体的基因组中<br />
来自近亲的比例很小通常表示良好的遗传多样性和较低的遗传疾病风险<br />
中等近交系数5% -
15%表示个体存在一定程度的近交遗传多样性略有下降这些个体<br />
可能会有一些遗传问题的风险但整体仍然在可接受范围内<br />
高近交系数15%
以上表示个体的近交程度较高遗传多样性明显下降这些个体可能面<br />
临更高的遗传疾病风险且可能出现表现不稳定的情况如生长缓慢繁殖问题等<br />
</div>
<span class="el-icon-info"></span>
</el-tooltip>
近交系数
</p>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
searchForm: {
a: '',
b: '',
c: ''
},
options1: [
{
value: '选项1',
label: '西门塔尔'
},
{
value: '选项2',
label: '九龙牦牛'
},
{
value: '选项3',
label: '荷斯坦牛'
},
{
value: '选项4',
label: '安格斯牛'
}
],
options2: [
{
value: '选项1',
label: '单个'
},
{
value: '选项2',
label: '多个'
}
],
tableData: [
{
id: 1,
a: 'CX_82010000990'
},
{
id: 2,
a: 'CX_82010000991'
},
{
id: 3,
a: 'CX_82010000992'
},
{
id: 4,
a: 'CX_82010000993'
},
{
id: 5,
a: 'CX_82010000994'
},
{
id: 6,
a: 'CX_82010000995'
},
{
id: 7,
a: 'CX_82010000996'
},
{
id: 8,
a: 'CX_82010000997'
},
{
id: 9,
a: 'CX_82010000998'
},
{
id: 10,
a: 'CX_82010000999'
},
{
id: 11,
a: 'CX_82010001000'
},
{
id: 12,
a: 'CX_82010001001'
},
{
id: 13,
a: 'CX_82010001002'
},
{
id: 14,
a: 'CX_82010001003'
}
],
form: {
page: 1,
pagesize: 20
},
total: 2,
multipleSelection: [],
maxSelectionCount: 2
}
},
methods: {
// 搜索
searchClick() {},
// 重置
resetClick() {
for (const key in this.searchForm) {
this.searchForm[key] = ''
}
},
// 条
handleSizeChange(val) {
this.form.pagesize = parseInt(val)
},
// 页
handleCurrentChange(val) {
this.form.page = parseInt(val)
},
handleSelectionChange(val) {
if (val.length > this.maxSelectionCount) {
val.splice(0, val.length - 2)
this.$refs.multipleTable.toggleRowSelection(val[0], false) // 取消第一行的选中状态
}
this.multipleSelection = val
console.log(this.multipleSelection)
}
}
}
</script>
<style lang="less" scoped>
.container-box {
min-height: calc(100vh - 84px);
padding: 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
.search-box {
background: #fff;
border-radius: 6px;
padding: 10px 15px;
margin-bottom: 25px;
}
.list-box {
flex: 1;
background: #fff;
border-radius: 6px;
padding: 10px 15px;
.detail-btn {
color: #67c23a;
}
.page-box {
margin-top: 10px;
}
}
}
.el-form-item {
margin-bottom: 0px;
margin-right: 20px;
}
// table
/deep/.el-table th.el-table__cell {
background-color: #f5f7fa;
}
/deep/ .cell {
font-weight: normal;
}
/deep/ .el-input--suffix .el-input__inner {
padding-right: 30px;
width: 150px;
height: 28px;
line-height: 28px;
}
/deep/ .el-input__suffix {
height: 120%;
}
.con {
width: 100%;
height: 508px;
border: #ccc solid 1px;
padding: 15px;
border-radius: 3px;
display: flex;
flex-direction: row;
}
.left {
width: 200px;
}
.right {
flex: 1;
img {
width: auto;
height: 480px;
margin-left: 100px;
}
}
.info p {
padding-right: 200px;
float: right;
}
</style>

View File

@@ -0,0 +1,202 @@
<template>
<div class="container-box">
<div class="search-box">
<el-form
:inline="true"
ref="searchForm"
:model="searchForm"
class="demo-form-inline"
label-width="auto"
size="mini"
>
<el-form-item label="养殖场">
<el-input
v-model="searchForm.a"
placeholder="请输入养殖场"
></el-input>
</el-form-item>
<el-form-item label="标记编号">
<el-input
v-model="searchForm.b"
placeholder="请输入标记编号"
></el-input>
</el-form-item>
<el-form-item>
<el-button type="success" icon="el-icon-search" @click="searchClick"
>搜索</el-button
>
<el-button type="warning" icon="el-icon-refresh" @click="resetClick"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="list-box">
<el-table :data="tableData" style="width: 100%" size="mini" border>
<el-table-column prop="a" label="养殖场"></el-table-column>
<el-table-column prop="b" label="标记编号"></el-table-column>
<el-table-column prop="c" label="性别"></el-table-column>
<el-table-column prop="d" label="月龄"></el-table-column>
<el-table-column prop="e" label="样本"></el-table-column>
<el-table-column prop="d" label="疑是父母编号"></el-table-column>
<el-table-column prop="e" label="相似度"></el-table-column>
<el-table-column label="亲缘关系结果">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="download(scope.row.id)"
class="detail-btn"
>查看</el-button
>
</template>
</el-table-column>
</el-table>
<div class="page-box">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[20, 50, 100]"
layout="total, sizes, prev, pager, next, jumper"
:current-page="form.page"
:page-size="form.pagesize"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
searchForm: {
a: '',
b: ''
},
tableData: [
{
id: 0,
a: '若尔盖',
b: '82010000991',
c: '雌',
d: '8',
e: '血液',
f: '82020000981',
g: '99.99%'
},
{
id: 1,
a: '若尔盖',
b: '82010000992',
c: '雌',
d: '6',
e: '血液',
f: '82020000986',
g: '69.99%'
},
{
id: 2,
a: '若尔盖',
b: '82010000994',
c: '雌',
d: '6',
e: '血液',
f: '82020000985',
g: '79.99%'
},
{
id: 3,
a: '若尔盖',
b: '82010000995',
c: '雌',
d: '6',
e: '血液',
f: '82020000989',
g: '98.99%'
},
{
id: 3,
a: '若尔盖',
b: '82010000998',
c: '雌',
d: '6',
e: '血液',
f: '82020000976',
g: '78.99%'
}
],
form: {
page: 1,
pagesize: 20
},
total: 5
}
},
methods: {
// 搜索
searchClick() {},
// 重置
resetClick() {
for (const key in this.searchForm) {
this.searchForm[key] = ''
}
},
// 条
handleSizeChange(val) {
this.form.pagesize = parseInt(val)
},
// 页
handleCurrentChange(val) {
this.form.page = parseInt(val)
},
download(id) {
this.$message({
message: '下载成功',
type: 'success'
})
}
}
}
</script>
<style lang="less" scoped>
.container-box {
min-height: calc(100vh - 84px);
padding: 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
.search-box {
background: #fff;
border-radius: 6px;
padding: 10px 15px;
margin-bottom: 25px;
}
.list-box {
flex: 1;
background: #fff;
border-radius: 6px;
padding: 10px 15px;
.detail-btn {
color: #67c23a;
}
.page-box {
margin-top: 10px;
}
}
}
.el-form-item {
margin-bottom: 0px;
margin-right: 20px;
}
// table
/deep/.el-table th.el-table__cell {
background-color: #f5f7fa;
}
/deep/ .cell {
font-weight: normal;
}
</style>

View File

@@ -62,7 +62,7 @@
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[20, 50, 100]"
:page-sizes="[10, 50, 100]"
layout="total, sizes, prev, pager, next, jumper"
:current-page="form.page"
:page-size="form.pagesize"
@@ -85,17 +85,66 @@ export default {
tableData: [
{
id: 1,
farm: '爱农养殖场',
farm: '若尔盖',
number: '82010000990',
age: '6',
result: '携带'
},
{
id: 2,
farm: '小新养殖场',
farm: '若尔盖',
number: '82010000991',
age: '6',
result: '未携带'
},
{
id: 3,
farm: '若尔盖',
number: '82010000992',
age: '6',
result: '携带'
},
{
id: 4,
farm: '若尔盖',
number: '82010000993',
age: '6',
result: '未携带'
},
{
id: 5,
farm: '若尔盖',
number: '82010000994',
age: '6',
result: '未携带'
},
{
id: 6,
farm: '若尔盖',
number: '82010000995',
age: '6',
result: '未携带'
},
{
id: 7,
farm: '若尔盖',
number: '82010000996',
age: '6',
result: '未携带'
},
{
id: 8,
farm: '若尔盖',
number: '82010000997',
age: '6',
result: '未携带'
},
{
id: 9,
farm: '若尔盖',
number: '82010000973',
age: '6',
result: '未携带'
}
],
form: {
@@ -130,6 +179,12 @@ export default {
} else {
return 'textAlign: center'
}
},
// 查看
detailClick() {
window.open(
'https://smart-1259258654.cos.ap-guangzhou.myqcloud.com/pdf/99715011920%E7%89%9B%E9%81%97%E4%BC%A0%E7%97%85%E5%9F%BA%E5%9B%A0%E6%A3%80%E6%B5%8B%E6%8A%A5%E5%91%8A.pdf'
)
}
}
}

258
src/views/geneMgmt/SPN.vue Normal file
View File

@@ -0,0 +1,258 @@
<template>
<div class="container-box">
<div class="search-box">
<el-form
:inline="true"
ref="searchForm"
:model="searchForm"
class="demo-form-inline"
label-width="auto"
size="mini"
>
<el-form-item label="标记编号">
<el-input
v-model="searchForm.a"
placeholder="请输入标记编号"
></el-input>
</el-form-item>
<el-form-item label="标记名称">
<el-input
v-model="searchForm.b"
placeholder="请输入标记名称"
></el-input>
</el-form-item>
<el-form-item label="Panel">
<el-input v-model="searchForm.c" placeholder="请输入Panel"></el-input>
</el-form-item>
<el-form-item label="染色体">
<el-input
v-model="searchForm.d"
placeholder="请输入染色体"
></el-input>
</el-form-item>
<el-form-item label="开始位置">
<el-input
v-model="searchForm.e"
placeholder="请输入开始位置"
></el-input>
</el-form-item>
<el-form-item label="结束位置">
<el-input
v-model="searchForm.f"
placeholder="请输入结束位置"
></el-input>
</el-form-item>
<el-form-item>
<el-button type="success" icon="el-icon-search" @click="searchClick"
>搜索</el-button
>
<el-button type="warning" icon="el-icon-refresh" @click="resetClick"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="list-box">
<el-table :data="tableData" style="width: 100%" size="mini" border>
<el-table-column prop="a" label="标记编号"></el-table-column>
<el-table-column prop="b" label="标记名称"></el-table-column>
<el-table-column prop="c" label="基因版本"></el-table-column>
<el-table-column prop="d" label="染色体号"></el-table-column>
<el-table-column prop="e" label="位置"></el-table-column>
<el-table-column prop="f" label="参考基因"></el-table-column>
<el-table-column prop="g" label="等位基因"></el-table-column>
<el-table-column prop="h" label="备注"></el-table-column>
</el-table>
<div class="page-box">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[20, 50, 100]"
layout="total, sizes, prev, pager, next, jumper"
:current-page="form.page"
:page-size="form.pagesize"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
searchForm: {
a: '',
b: '',
c: '',
d: '',
e: '',
f: ''
},
tableData: [
{
id: 1,
a: '82010000990',
b: '--',
c: 'ARS-UCD1.2',
d: '10',
e: '10011101',
f: 'T',
g: 'G',
h: '--'
},
{
id: 2,
a: '82010000991',
b: '--',
c: 'ARS-UCD1.2',
d: '10',
e: '10011102',
f: 'G',
g: 'C',
h: '--'
},
{
id: 3,
a: '82010000992',
b: '--',
c: 'ARS-UCD1.2',
d: '10',
e: '10011103',
f: 'A',
g: 'G',
h: '--'
},
{
id: 4,
a: '82010000993',
b: '--',
c: 'ARS-UCD1.2',
d: '10',
e: '1001457',
f: 'C',
g: 'G',
h: '--'
},
{
id: 5,
a: '82010000994',
b: '--',
c: 'ARS-UCD1.2',
d: '10',
e: '100118',
f: 'A',
g: 'T',
h: '--'
},
{
id: 6,
a: '82010000995',
b: '--',
c: 'ARS-UCD1.2',
d: '10',
e: '10011109',
f: 'T',
g: 'G',
h: '--'
},
{
id: 7,
a: '82010000996',
b: '--',
c: 'ARS-UCD1.2',
d: '10',
e: '10011105',
f: 'G',
g: 'C',
h: '--'
},
{
id: 8,
a: '82010000997',
b: '--',
c: 'ARS-UCD1.2',
d: '10',
e: '100111023',
f: 'A',
g: 'G',
h: '--'
}
],
form: {
page: 1,
pagesize: 20
},
total: 8
}
},
methods: {
// 搜索
searchClick() {},
// 重置
resetClick() {
for (const key in this.searchForm) {
this.searchForm[key] = ''
}
},
// 条
handleSizeChange(val) {
this.form.pagesize = parseInt(val)
},
// 页
handleCurrentChange(val) {
this.form.page = parseInt(val)
},
// 当监测结果为 已携带 的状态,加上背景色,字体颜色
cellStyle({ row, column, rowIndex, columnIndex }) {
// 注意,这里返回的是一个对象
if (row.result == '携带' && column.label == '监测结果') {
return 'background:#d9001b;textAlign: center;color:#fff;'
} else {
return 'textAlign: center'
}
}
}
}
</script>
<style lang="less" scoped>
.container-box {
min-height: calc(100vh - 84px);
padding: 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
.search-box {
background: #fff;
border-radius: 6px;
padding: 10px 15px;
margin-bottom: 25px;
}
.list-box {
flex: 1;
background: #fff;
border-radius: 6px;
padding: 10px 15px;
.detail-btn {
color: #67c23a;
}
.page-box {
margin-top: 10px;
}
}
}
.el-form-item {
margin-bottom: 0px;
margin-right: 20px;
}
// table
/deep/.el-table th.el-table__cell {
background-color: #f5f7fa;
}
/deep/ .cell {
font-weight: normal;
}
</style>

View File

@@ -0,0 +1,154 @@
<template>
<div class="container-box">
<div class="search-box">
<el-form
:inline="true"
ref="searchForm"
:model="searchForm"
class="demo-form-inline"
label-width="auto"
size="mini"
>
<el-form-item label="Panel">
<el-input
v-model="searchForm.farm"
placeholder="请输入Panel"
></el-input>
</el-form-item>
<el-form-item label="检测平台">
<el-input
v-model="searchForm.farm"
placeholder="请输入检测平台"
></el-input>
</el-form-item>
<el-form-item>
<el-button type="success" icon="el-icon-search" @click="searchClick"
>搜索</el-button
>
<el-button type="warning" icon="el-icon-refresh" @click="resetClick"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="list-box">
<el-table :data="tableData" style="width: 100%" size="mini" border>
<el-table-column prop="a" label="Panel名称"></el-table-column>
<el-table-column prop="b" label="检测平台"></el-table-column>
<el-table-column prop="c" label="基因版本"></el-table-column>
<el-table-column prop="d" label="位点数目"></el-table-column>
<el-table-column prop="e" label="描述"></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="download(scope.row.id)"
class="detail-btn"
>详情</el-button
>
</template>
</el-table-column>
</el-table>
<div class="page-box">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[20, 50, 100]"
layout="total, sizes, prev, pager, next, jumper"
:current-page="form.page"
:page-size="form.pagesize"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
searchForm: {
farm: '',
number: ''
},
tableData: [
{
id: 1,
a: '',
b: 'illumina',
c: '',
d: '',
e: ''
}
],
form: {
page: 1,
pagesize: 20
},
total: 2
}
},
methods: {
// 搜索
searchClick() {},
// 重置
resetClick() {
for (const key in this.searchForm) {
this.searchForm[key] = ''
}
},
// 条
handleSizeChange(val) {
this.form.pagesize = parseInt(val)
},
// 页
handleCurrentChange(val) {
this.form.page = parseInt(val)
},
download(id) {}
}
}
</script>
<style lang="less" scoped>
.container-box {
min-height: calc(100vh - 84px);
padding: 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
.search-box {
background: #fff;
border-radius: 6px;
padding: 10px 15px;
margin-bottom: 25px;
}
.list-box {
flex: 1;
background: #fff;
border-radius: 6px;
padding: 10px 15px;
.detail-btn {
color: #67c23a;
}
.page-box {
margin-top: 10px;
}
}
}
.el-form-item {
margin-bottom: 0px;
margin-right: 20px;
}
// table
/deep/.el-table th.el-table__cell {
background-color: #f5f7fa;
}
/deep/ .cell {
font-weight: normal;
}
</style>

View File

@@ -0,0 +1,186 @@
<template>
<div class="container-box">
<div class="search-box">
<el-form
:inline="true"
ref="searchForm"
:model="searchForm"
class="demo-form-inline"
label-width="auto"
size="mini"
>
<el-form-item label="文件名">
<el-input
v-model="searchForm.farm"
placeholder="请输入文件名"
></el-input>
</el-form-item>
<el-form-item>
<el-button type="success" icon="el-icon-search" @click="searchClick"
>搜索</el-button
>
<el-button type="warning" icon="el-icon-refresh" @click="resetClick"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="list-box">
<el-table :data="tableData" style="width: 100%" size="mini" border>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column prop="a" label="文件名"></el-table-column>
<el-table-column prop="b" label="文件大小"></el-table-column>
<el-table-column prop="c" label="上传时间"></el-table-column>
<el-table-column prop="d" label="品种"></el-table-column>
<el-table-column prop="e" label="文件状态"></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="download(scope.row.id)"
class="detail-btn"
>下载</el-button
>
</template>
</el-table-column>
</el-table>
<div class="page-box">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[20, 50, 100]"
layout="total, sizes, prev, pager, next, jumper"
:current-page="form.page"
:page-size="form.pagesize"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
searchForm: {
farm: '',
number: ''
},
tableData: [
{
id: 0,
a: 'CX_82010000990',
b: '10.23MB',
c: '2024-03-06',
d: '九龙牦牛',
e: '已上传'
},
{
id: 1,
a: 'CX_82010000991',
b: '8.6MB',
c: '2024-03-06',
d: '西门塔尔',
e: '已上传'
},
{
id: 2,
a: 'CX_82010000992',
b: '21.23MB',
c: '2024-03-06',
d: '华西牛',
e: '已上传'
},
{
id: 3,
a: 'CX_82010000993',
b: '13.21MB',
c: '2024-03-06',
d: '西门塔尔',
e: '已上传'
},
{
id: 4,
a: 'CX_82010000994',
b: '15.3MB',
c: '2024-03-06',
d: '西藏高山牦牛',
e: '已上传'
}
],
form: {
page: 1,
pagesize: 20
},
total: 5
}
},
methods: {
// 搜索
searchClick() {},
// 重置
resetClick() {
for (const key in this.searchForm) {
this.searchForm[key] = ''
}
},
// 条
handleSizeChange(val) {
this.form.pagesize = parseInt(val)
},
// 页
handleCurrentChange(val) {
this.form.page = parseInt(val)
},
download(id) {
this.$message({
message: '下载成功',
type: 'success'
})
}
}
}
</script>
<style lang="less" scoped>
.container-box {
min-height: calc(100vh - 84px);
padding: 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
.search-box {
background: #fff;
border-radius: 6px;
padding: 10px 15px;
margin-bottom: 25px;
}
.list-box {
flex: 1;
background: #fff;
border-radius: 6px;
padding: 10px 15px;
.detail-btn {
color: #67c23a;
}
.page-box {
margin-top: 10px;
}
}
}
.el-form-item {
margin-bottom: 0px;
margin-right: 20px;
}
// table
/deep/.el-table th.el-table__cell {
background-color: #f5f7fa;
}
/deep/ .cell {
font-weight: normal;
}
</style>

View File

@@ -31,6 +31,41 @@
<i class="el-icon-orange"></i>
<span slot="title">遗传病风险</span>
</el-menu-item>
<el-submenu index="66">
<template slot="title">
<i class="el-icon-printer"></i>
<span slot="title">基因管理</span>
</template>
<el-menu-item-group>
<el-menu-item index="/geneMgmt/SPN">SPN位点管理</el-menu-item>
<el-menu-item index="/geneMgmt/SPNPanel"
>SPN Panel位点管理</el-menu-item
>
<el-menu-item index="/geneMgmt/sequence">原始测序数据</el-menu-item>
</el-menu-item-group>
</el-submenu>
<el-submenu index="67">
<template slot="title">
<i class="el-icon-news"></i>
<span slot="title">繁育管理</span>
</template>
<el-menu-item-group>
<el-menu-item index="/breedMgmt/BLUP">BLUP</el-menu-item>
<el-menu-item index="/breedMgmt/paternityTest">亲子鉴定</el-menu-item>
<el-menu-item index="/breedMgmt/lineage">血统管理</el-menu-item>
</el-menu-item-group>
</el-submenu>
<el-submenu index="68">
<template slot="title">
<i class="el-icon-suitcase"></i>
<span slot="title">进化分析</span>
</template>
<el-menu-item-group>
<el-menu-item index="/phylogeneticAnalysis/evolutionaryTree"
>进化树</el-menu-item
>
</el-menu-item-group>
</el-submenu>
<el-menu-item index="/archive-information/archive-information">
<i class="el-icon-document"></i>
<span slot="title">档案信息</span>
@@ -39,6 +74,10 @@
<i class="el-icon-folder-checked"></i>
<span slot="title">快速查询</span>
</el-menu-item>
<el-menu-item index="/variety-resources/variety-resources">
<i class="el-icon-copy-document"></i>
<span slot="title">品种资源</span>
</el-menu-item>
</el-menu>
</div>
</template>
@@ -49,7 +88,7 @@ export default {
return {
activeIndex: '/',
isCollapse: false,
system_name: '肉牛溯源系统',
system_name: '基芯农育种',
logo: '',
index: 0,
menuList: [], // 菜单权限列表

View File

@@ -87,9 +87,10 @@
>
</p>
<p>
<el-link @click="handlerClick('register')">注册账号</el-link
<el-link @click="handlerClick('register')"
><span style="color: black">注册账号</span></el-link
>/<el-link @click="handlerClick('forgotpwd')"
>忘记密码</el-link
><span style="color: black">忘记密码</span></el-link
>
</p>
</div>
@@ -120,7 +121,7 @@
style="color: #409eff; font-size: 14px; font-size: 12px"
class="el-icon-question"
></i>
获取分子育种检测方案
<span style="color: #409eff">获取分子育种检测方案</span>
</el-link>
</div>
<!-- 下面的绑定与联系我们 -->
@@ -566,7 +567,7 @@ export default {
})
if (local.get('token_sd')) {
setTimeout(() => {
this.$router.push('/disease-resistance/disease-resistance')
this.$router.push('/index/index')
}, 1500)
}
},

View File

@@ -0,0 +1,207 @@
<template>
<div class="container-box">
<div class="search-box">
<el-form
:inline="true"
ref="searchForm"
:model="searchForm"
class="demo-form-inline"
label-width="auto"
size="mini"
>
<el-form-item label="养殖场">
<el-input
v-model="searchForm.farm"
placeholder="请输入养殖场"
></el-input>
</el-form-item>
<el-form-item label="标记编号">
<el-input
v-model="searchForm.farm"
placeholder="请输入标记编号"
></el-input>
</el-form-item>
<el-form-item>
<el-button type="success" icon="el-icon-search" @click="searchClick"
>搜索</el-button
>
<el-button type="warning" icon="el-icon-refresh" @click="resetClick"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="list-box">
<el-table :data="tableData" style="width: 100%" size="mini" border>
<el-table-column prop="a" label="养殖场"></el-table-column>
<el-table-column prop="b" label="标记编号"></el-table-column>
<el-table-column prop="c" label="文件大小"></el-table-column>
<el-table-column prop="d" label="创建时间"></el-table-column>
<el-table-column prop="e" label="分析工具"></el-table-column>
<el-table-column label="详情">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="download(scope.row.id)"
class="detail-btn"
>查看</el-button
>
</template>
</el-table-column>
</el-table>
<div class="page-box">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[20, 50, 100]"
layout="total, sizes, prev, pager, next, jumper"
:current-page="form.page"
:page-size="form.pagesize"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
searchForm: {
farm: '',
number: ''
},
tableData: [
{
id: 1,
a: '若尔盖',
b: '82010000990',
c: '45MB',
d: '2024.03.06',
e: 'PhyML'
},
{
id: 2,
a: '若尔盖',
b: '82010000991',
c: '40MB',
d: '2024.03.06',
e: 'PhyML'
},
{
id: 3,
a: '若尔盖',
b: '82010000992',
c: '42MB',
d: '2024.03.27',
e: 'PhyML'
},
{
id: 4,
a: '若尔盖',
b: '82010000993',
c: '35MB',
d: '2024.08.02',
e: 'PhyML'
},
{
id: 5,
a: '若尔盖',
b: '82010000994',
c: '40MB',
d: '2024.05.03',
e: 'PhyML'
},
{
id: 6,
a: '若尔盖',
b: '82010000995',
c: '50MB',
d: '2024.04.23',
e: 'PhyML'
},
{
id: 7,
a: '若尔盖',
b: '82010000996',
c: '38MB',
d: '2024.06.03',
e: 'PhyML'
}
],
form: {
page: 1,
pagesize: 20
},
total: 2
}
},
methods: {
// 搜索
searchClick() {},
// 重置
resetClick() {
for (const key in this.searchForm) {
this.searchForm[key] = ''
}
},
// 条
handleSizeChange(val) {
this.form.pagesize = parseInt(val)
},
// 页
handleCurrentChange(val) {
this.form.page = parseInt(val)
},
download(id) {
this.$message({
message: '下载成功',
type: 'success'
})
}
}
}
</script>
<style lang="less" scoped>
.container-box {
min-height: calc(100vh - 84px);
padding: 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
.search-box {
background: #fff;
border-radius: 6px;
padding: 10px 15px;
margin-bottom: 25px;
}
.list-box {
flex: 1;
background: #fff;
border-radius: 6px;
padding: 10px 15px;
.detail-btn {
color: #67c23a;
}
.page-box {
margin-top: 10px;
}
}
}
.el-form-item {
margin-bottom: 0px;
margin-right: 20px;
}
// table
/deep/.el-table th.el-table__cell {
background-color: #f5f7fa;
}
/deep/ .cell {
font-weight: normal;
}
</style>

View File

@@ -33,7 +33,7 @@
</el-form-item>
</el-form>
</div>
<div class="list-box">
<div class="list-box" v-if="showtable">
<el-table
:data="tableData"
style="width: 100%"
@@ -82,6 +82,23 @@
</el-pagination>
</div>
</div>
<div
v-loading="loading"
element-loading-text="加载中"
v-else
style="
width: 100%;
text-align: center;
padding: 50px 0px 50px 0px;
background: white;
"
>
<img
style="width: 80%"
src="https://smart-1251449951.cos.ap-guangzhou.myqcloud.com/iot_breed/farm/2024/08/307d7b147050a9475b2580aa1d1ae44476.jpg"
alt=""
/>
</div>
<el-dialog :visible.sync="dialogVisible" width="40%">
<div style="text-align: center">
<div class="btmstyle">1</div>
@@ -90,7 +107,15 @@
<div>养殖场:234</div>
<div>品种信息:43223</div>
</div>
<div style="text-align: left; padding: 30px 0px 18px 14px;font-weight: bold;">11</div>
<div
style="
text-align: left;
padding: 30px 0px 18px 14px;
font-weight: bold;
"
>
11
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false" size="mini">关闭</el-button>
@@ -108,7 +133,9 @@
export default {
data() {
return {
dialogVisible: true,
loading: false,
showtable: false,
dialogVisible: false,
searchForm: {
a: '',
b: '',
@@ -184,10 +211,20 @@ export default {
}
},
methods: {
detailClick() {},
report() {},
detailClick() {
this.$router.push('/phylogeneticAnalysis/evolutionaryTree')
},
report() {
this.dialogVisible = true
},
// 搜索
searchClick() {},
searchClick() {
this.loading = true
setTimeout(() => {
this.loading = false
this.showtable = true
}, 1500)
},
// 重置
resetClick() {
for (const key in this.searchForm) {

View File

@@ -0,0 +1,961 @@
<template>
<div class="container-box">
<div class="top-box">
<i
class="el-icon-arrow-left"
style="font-size: 24px"
@click="backClick"
></i>
<div class="top-title"></div>
</div>
<div class="list-box">
<el-table
:data="tableData"
style="width: 100%"
size="mini"
border
stripe
:header-cell-style="{ textAlign: 'center', color: '#606266' }"
:cell-style="{ textAlign: 'center' }"
>
<el-table-column prop="id" label="序号"></el-table-column>
<el-table-column prop="number" label="品种登记号"></el-table-column>
<el-table-column prop="cate" label="畜种名称"></el-table-column>
<el-table-column prop="varieties" label="品种名称"></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button
size="mini"
type="primary"
@click="detailClick(scope.row)"
icon="el-icon-view"
class="detail-btn"
>查看详情</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<el-dialog title="详情" :visible.sync="dialogVisible" width="60%">
<el-descriptions :column="2" border>
<el-descriptions-item
label="品种登记号"
label-class-name="my-label"
content-class-name="my-content"
>X-01-01-001-01</el-descriptions-item
>
<el-descriptions-item
label="畜种名称"
label-class-name="my-label"
content-class-name="my-content"
></el-descriptions-item
>
<el-descriptions-item
label="品种来源"
label-class-name="my-label"
content-class-name="my-content"
>
地方</el-descriptions-item
>
<el-descriptions-item
label="品种名称"
content-class-name="my-content"
label-class-name="my-label"
>
民猪</el-descriptions-item
>
<el-descriptions-item
label="品种英文名"
label-class-name="my-label"
content-class-name="my-content"
></el-descriptions-item>
<el-descriptions-item
label="品种别名"
label-class-name="my-label"
content-class-name="my-content"
>东北民猪</el-descriptions-item
>
<el-descriptions-item
label="类群名称"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="类群别名"
content-class-name="my-content"
label-class-name="my-label"
>
</el-descriptions-item>
<el-descriptions-item
label="图片(公)"
label-class-name="my-label"
content-class-name="my-content"
>
<el-image
style="width: 80px; height: 50px; overflow: hidden"
:src="boarImage"
fit="contain"
:preview-src-list="[boarImage]"
>
<div
slot="error"
class="image-slot"
style="
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background-color: #f0f0f0;
"
>
<i class="el-icon-picture-outline"></i>
</div>
</el-image>
</el-descriptions-item>
<el-descriptions-item
label="图片(母)"
content-class-name="my-content"
label-class-name="my-label"
>
<el-image
style="width: 80px; height: 50px; overflow: hidden"
:src="sowImage"
fit="contain"
:preview-src-list="[sowImage]"
>
<div
slot="error"
class="image-slot"
style="
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background-color: #f0f0f0;
"
>
<i class="el-icon-picture-outline"></i>
</div>
</el-image>
</el-descriptions-item>
<el-descriptions-item
label="影像(公)"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="影像(母)"
content-class-name="my-content"
label-class-name="my-label"
>
</el-descriptions-item>
<el-descriptions-item
label="图像(公)"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="图像(母)"
content-class-name="my-content"
label-class-name="my-label"
>
</el-descriptions-item>
<el-descriptions-item
label="照片(群体)"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="图像(群体)"
content-class-name="my-content"
label-class-name="my-label"
>
</el-descriptions-item>
<el-descriptions-item
label="影像(群体)"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="引进国家"
content-class-name="my-content"
label-class-name="my-label"
>
</el-descriptions-item>
<el-descriptions-item
label="信息来源"
label-class-name="my-label"
content-class-name="my-content"
>
国家品种志
</el-descriptions-item>
<el-descriptions-item
label="中心产区"
content-class-name="my-content"
label-class-name="my-label"
>
辽宁省岫岩建昌复县海城昌图朝阳吉林省九站桦甸永吉靖宇通化黑龙江省绥滨富锦集贤北安德都双城兰西河北省迁西遵化兴隆丰宁等
</el-descriptions-item>
<el-descriptions-item
label="主要分布区"
label-class-name="my-label"
content-class-name="my-content"
>
东北和华北部分地区
</el-descriptions-item>
<el-descriptions-item
label="最高海拔"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="最低海拔"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="气候类型"
label-class-name="my-label"
content-class-name="my-content"
>
温带大陆性季风半温润气候地型
</el-descriptions-item>
<el-descriptions-item
label="地型"
label-class-name="my-label"
content-class-name="my-content"
>以丘陵为主
</el-descriptions-item>
<el-descriptions-item
label="年均温度"
label-class-name="my-label"
content-class-name="my-content"
>
8
</el-descriptions-item>
<el-descriptions-item
label="年最高温度"
label-class-name="my-label"
content-class-name="my-content"
>25
</el-descriptions-item>
<el-descriptions-item
label="年最低温度"
label-class-name="my-label"
content-class-name="my-content"
>
-14
</el-descriptions-item>
<el-descriptions-item
label="相对湿度"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="年均降水量"
label-class-name="my-label"
content-class-name="my-content"
>
647
</el-descriptions-item>
<el-descriptions-item
label="无霜期"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="土壤类型"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<!-- ----------- -->
<el-descriptions-item
label="作物种类"
label-class-name="my-label"
content-class-name="my-content"
>高粱玉米大豆谷子棉花芝麻向日葵甜菜等
</el-descriptions-item>
<el-descriptions-item
label="生态适应性"
label-class-name="my-label"
content-class-name="my-content"
>适应性强
</el-descriptions-item>
<el-descriptions-item
label="抗病能力"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="独特性状"
label-class-name="my-label"
content-class-name="my-content"
>抗寒能力强
</el-descriptions-item>
<el-descriptions-item
label="典型生态影像"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="填报人"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="填报单位"
label-class-name="my-label"
content-class-name="my-content"
>中国农业科学院畜牧研究所
</el-descriptions-item>
<el-descriptions-item
label="更新日期 "
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="采集日期"
label-class-name="my-label"
content-class-name="my-content"
>01/01/1982
</el-descriptions-item>
<el-descriptions-item
label="群体总数"
label-class-name="my-label"
content-class-name="my-content"
>850
</el-descriptions-item>
<el-descriptions-item
label="公畜数量"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="配种公畜数量"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="母畜数量"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="繁殖母畜数量"
label-class-name="my-label"
content-class-name="my-content"
>2
</el-descriptions-item>
<el-descriptions-item
label="品种杂交比例"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="人工授精公畜"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="人工授精母畜"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="保护等级"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="保护方法"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="濒危状态"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="濒危依据及说明"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="体貌概述"
label-class-name="my-label"
content-class-name="my-content"
>
头中等大面直耳大下垂体躯扁平背腰窄狭臀部斜四肢粗壮全身被毛黑色毛密而长猪鬃较多冬季密生绒毛起防寒保温作用
</el-descriptions-item>
<el-descriptions-item
label="体型"
label-class-name="my-label"
content-class-name="my-content"
>体躯扁平背腰窄狭臀部倾斜四肢粗壮
</el-descriptions-item>
<el-descriptions-item
label="毛色"
label-class-name="my-label"
content-class-name="my-content"
>全身被毛黑色毛密而长
</el-descriptions-item>
<el-descriptions-item
label="肤色"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="头型"
label-class-name="my-label"
content-class-name="my-content"
>头中等大面直长
</el-descriptions-item>
<el-descriptions-item
label="角型"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="耳型"
label-class-name="my-label"
content-class-name="my-content"
>耳大下垂
</el-descriptions-item>
<el-descriptions-item
label="乳头个数"
label-class-name="my-label"
content-class-name="my-content"
>14
</el-descriptions-item>
<el-descriptions-item
label="体高(公)"
label-class-name="my-label"
content-class-name="my-content"
>86
</el-descriptions-item>
<el-descriptions-item
label="体斜长(公)"
label-class-name="my-label"
content-class-name="my-content"
>148
</el-descriptions-item>
<el-descriptions-item
label="胸围(公)"
label-class-name="my-label"
content-class-name="my-content"
>139
</el-descriptions-item>
<el-descriptions-item
label="体重(公)"
label-class-name="my-label"
content-class-name="my-content"
>195
</el-descriptions-item>
<el-descriptions-item
label="体高(母)"
label-class-name="my-label"
content-class-name="my-content"
>82
</el-descriptions-item>
<el-descriptions-item
label="体斜长(母)"
label-class-name="my-label"
content-class-name="my-content"
>141
</el-descriptions-item>
<el-descriptions-item
label="胸围(母)"
label-class-name="my-label"
content-class-name="my-content"
>132
</el-descriptions-item>
<el-descriptions-item
label="体重(母)"
label-class-name="my-label"
content-class-name="my-content"
>151
</el-descriptions-item>
<el-descriptions-item
label="独特特征"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="性成熟日龄(公)"
label-class-name="my-label"
content-class-name="my-content"
>90
</el-descriptions-item>
<el-descriptions-item
label="配种日龄(公)"
label-class-name="my-label"
content-class-name="my-content"
>270
</el-descriptions-item>
<el-descriptions-item
label="性成熟日龄(母)"
label-class-name="my-label"
content-class-name="my-content"
>120
</el-descriptions-item>
<el-descriptions-item
label="配种日龄(母)"
label-class-name="my-label"
content-class-name="my-content"
>240
</el-descriptions-item>
<el-descriptions-item
label="发情月份"
label-class-name="my-label"
content-class-name="my-content"
>全年多次发情
</el-descriptions-item>
<el-descriptions-item
label="发情周期"
label-class-name="my-label"
content-class-name="my-content"
>21
</el-descriptions-item>
<el-descriptions-item
label="怀孕期"
label-class-name="my-label"
content-class-name="my-content"
>114
</el-descriptions-item>
<el-descriptions-item
label="初产仔数"
label-class-name="my-label"
content-class-name="my-content"
>11
</el-descriptions-item>
<el-descriptions-item
label="经产仔数"
label-class-name="my-label"
content-class-name="my-content"
>12
</el-descriptions-item>
<el-descriptions-item
label="初生重(公)"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="初生重(母)"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="断奶日龄"
label-class-name="my-label"
content-class-name="my-content"
>60
</el-descriptions-item>
<el-descriptions-item
label="断奶重"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="断奶窝重"
label-class-name="my-label"
content-class-name="my-content"
>120
</el-descriptions-item>
<el-descriptions-item
label="断奶活仔数"
label-class-name="my-label"
content-class-name="my-content"
>9.7
</el-descriptions-item>
<el-descriptions-item
label="空怀天数"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="繁殖率"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="繁殖成活率"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="主要用途"
label-class-name="my-label"
content-class-name="my-content"
>肉脂兼用
</el-descriptions-item>
<el-descriptions-item
label="产奶量"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="乳脂率"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="料肉比"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="屠宰活重"
label-class-name="my-label"
content-class-name="my-content"
>90
</el-descriptions-item>
<el-descriptions-item
label="屠宰日龄"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="胴体重"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="屠宰率"
label-class-name="my-label"
content-class-name="my-content"
>72
</el-descriptions-item>
<el-descriptions-item
label="净肉率"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="瘦肉率"
label-class-name="my-label"
content-class-name="my-content"
>45
</el-descriptions-item>
<el-descriptions-item
label="肉色评分"
label-class-name="my-label"
content-class-name="my-content"
>3
</el-descriptions-item>
<el-descriptions-item
label="肉ph1"
label-class-name="my-label"
content-class-name="my-content"
>6.3
</el-descriptions-item>
<el-descriptions-item
label="肉ph2"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="肉系水力"
label-class-name="my-label"
content-class-name="my-content"
>76.3
</el-descriptions-item>
<el-descriptions-item
label="大理石纹评分"
label-class-name="my-label"
content-class-name="my-content"
>4
</el-descriptions-item>
<el-descriptions-item
label="肉嫩度"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="肉风味"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="毛绒类型"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="毛绒产量(公)"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="毛绒产量(母)"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="毛绒纤维细度"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="毛绒纤维长度"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="净毛绒率"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="挽力"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="速率"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="饲养类型"
label-class-name="my-label"
content-class-name="my-content"
>舍饲和放牧
</el-descriptions-item>
<el-descriptions-item
label="补饲状况"
label-class-name="my-label"
content-class-name="my-content"
>精料及农副产品
</el-descriptions-item>
<el-descriptions-item
label="管理容易否"
label-class-name="my-label"
content-class-name="my-content"
>易管理
</el-descriptions-item>
<el-descriptions-item
label="遗传检测"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="检测单位"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="检测人"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="基因组文库"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="文件存放单位"
label-class-name="my-label"
content-class-name="my-content"
>
</el-descriptions-item>
<el-descriptions-item
label="品种评价及开发利用"
label-class-name="my-label"
content-class-name="my-content"
>
民猪具有抗寒能力强体质强健产仔较多脂肪沉积能力强和肉质好的特点适于放牧和较粗放的管理与约克夏巴克夏苏白克米洛夫和长白猪杂交培育成哈白猪新金猪东北花猪和三江白猪这些新品种猪大都保留了民猪抗寒性强的特点繁殖力高和肉质好的特点但胴体脂肪率高皮较厚后腿肌肉不发达增重较慢今后应继续加强本品种选育提高胴体的瘦肉率
</el-descriptions-item>
</el-descriptions>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false" size="mini"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
tableData: [
{
id: '1',
number: 'x-01-01-001-01',
cate: '猪',
varieties: '民猪'
},
{
id: '2',
number: 'x-01-01-002-01',
cate: '猪',
varieties: '八眉猪'
},
{
id: '3',
number: 'x-01-01-003-01',
cate: '猪',
varieties: '黄淮海黑猪'
},
{
id: '4',
number: 'x-01-01-003-02',
cate: '猪',
varieties: '黄淮海黑猪'
},
{
id: '5',
number: 'x-01-01-003-03',
cate: '猪',
varieties: '黄淮海黑猪'
},
{
id: '6',
number: 'x-01-01-003-04',
cate: '猪',
varieties: '黄淮海黑猪'
},
{
id: '7',
number: 'x-01-01-003-05',
cate: '猪',
varieties: '黄淮海黑猪'
},
{
id: '8',
number: 'x-01-01-004-01',
cate: '猪',
varieties: '汉江黑猪'
},
{
id: '9',
number: 'x-01-01-005-01',
cate: '猪',
varieties: '沂蒙黑猪'
},
{
id: '10',
number: 'x-01-01-006-01',
cate: '猪',
varieties: '两广小花猪'
},
{
id: '11',
number: 'x-01-01-007-01',
cate: '猪',
varieties: '粤东猪'
}
],
dialogVisible: false,
boarImage: require('../../assets/img/gongzhu.png'),
sowImage: require('../../assets/img/muzhu.png')
}
},
methods: {
// 返回
backClick() {
window.history.go(-1)
},
detailClick() {
this.dialogVisible = true
}
}
}
</script>
<style lang="less" scoped>
.container-box {
min-height: calc(100vh - 84px);
padding: 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
background: #fff;
.top-box {
display: flex;
align-items: center;
margin-bottom: 20px;
.top-title {
background-color: #5aad00;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
width: 80px;
}
}
}
// 弹层--header
/deep/.el-dialog__header {
font-weight: bold;
box-shadow: 0 0.2px 1px rgba(0, 0, 0, 0.12), 0 0 4px rgba(0, 0, 0, 0.04);
}
/deep/ .my-label {
background: #f0f8ff;
width: 120px;
text-align: right !important;
// display: flex;
// align-items: center;
// align-items: center;
}
/deep/ .my-content {
width: 425px;
}
</style>

View File

@@ -0,0 +1,169 @@
<template>
<div class="container-box">
<div class="all-box">
<div class="top-box">
<div class="top-title1">家畜品种库</div>
</div>
<div class="content-box">
<div
class="item-box"
v-for="item in livestockList"
:key="item.id"
@click="livestockClick(item)"
>
<div class="img-box">
<img :src="item.url" alt="" style="width: 100%" />
</div>
<div class="title">{{ item.title }}</div>
</div>
</div>
</div>
<div class="all-box" style="margin-top: 60px">
<div class="top-box">
<div class="top-title1">家禽品种库</div>
</div>
<div class="content-box">
<div
class="item-box"
v-for="item in poultryList"
:key="item.id"
@click="poultryClick(item)"
>
<div class="img-box">
<img :src="item.url" alt="" style="width: 100%" />
</div>
<div class="title">{{ item.title }}</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
livestockList: [
{
id: 1,
url: require('../../assets/img/zhu.png'),
title: '猪'
},
{
id: 2,
url: require('../../assets/img/niu.png'),
title: '牛'
},
{
id: 3,
url: require('../../assets/img/yang.png'),
title: '羊'
},
{
id: 4,
url: require('../../assets/img/lv.png'),
title: '驴'
}
],
poultryList: [
{
id: 1,
url: require('../../assets/img/huoji.png'),
title: '火鸡'
},
{
id: 2,
url: require('../../assets/img/e.png'),
title: '鹅'
},
{
id: 3,
url: require('../../assets/img/ya.png'),
title: '鸭'
},
{
id: 4,
url: require('../../assets/img/ji.png'),
title: '鸡'
}
]
}
},
methods: {
livestockClick(item) {
console.log(item, 'item.name')
if (item.title == '猪') {
this.$router.push({
path: '/variety-resources/pig-list'
})
} else {
this.$alert('建设中,请耐心等待!', '提示', {
confirmButtonText: '确定',
callback: (action) => {}
})
}
},
poultryClick(item) {
this.$alert('建设中,请耐心等待!', '提示', {
confirmButtonText: '确定',
callback: (action) => {}
})
}
}
}
</script>
<style lang="less" scoped>
.container-box {
min-height: calc(100vh - 84px);
padding: 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
.all-box {
.top-box {
border-radius: 6px;
background: #fff;
padding: 10px;
margin-bottom: 10px;
.top-title1 {
background-color: #5aad00;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
width: 80px;
}
}
.content-box {
border-radius: 6px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
background: #fff;
padding: 10px;
.item-box {
flex: 1;
cursor: pointer;
margin-right: 20px;
.img-box {
padding: 5px 15px;
border: 1px solid #f2f2f2;
}
.title {
margin-top: 10px;
width: 100%;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
}
}
.item-box:last-child {
margin-right: 0px;
}
}
}
}
</style>

17035
yarn.lock

File diff suppressed because it is too large Load Diff