This commit is contained in:
sdaduanbilei-d1581 2025-10-13 09:59:08 +08:00
parent 5964982b7c
commit 0ae7a7e6ca
8 changed files with 46 additions and 24 deletions

View File

@ -20,5 +20,5 @@ module.exports = {
'vue/multi-word-component-names': 'off',
'prettier/prettier': 'error'
},
ignorePatterns: ['**/index.html']
}
ignorePatterns: ['**/knowledge.html']
}

View File

@ -2,14 +2,14 @@ import fetch from '../fetch.js'
export default {
save(params) {
return fetch('/farmTemplate/add', params,'post','json')
return fetch('/library/add', params,'post','json')
},
update(params) {
return fetch('/farmTemplate/update', params,'post','json')
return fetch('/library/update', params,'post','json')
},
list(params) {
return fetch('/farmTemplate/list', params,'post','json')
return fetch('/library/list', params,'post','json')
},
}

View File

@ -80,7 +80,7 @@ import '@vue-office/docx/lib/index.css'
import VueOfficeExcel from '@vue-office/excel'
//
import '@vue-office/excel/lib/index.css'
import history from "@/components/history/index.vue";
import history from "@/components/history/knowledge.vue";
export default {
components: {

View File

@ -50,22 +50,36 @@ export default {
show: false,
title: '新增',
from: {
circleDays: 0,
desc: '请输入描述',
isCircle: 0,
name: '请输入名称',
remark: '请输入备注'
"name": "蝴蝶兰",
"latinName": "Phalaenopsis aphrodite Rchb. f.",
"aliases": "蝶兰,台湾蝴蝶兰,洋兰皇后",
"genus": "蝴蝶兰属",
"ossId": "9bb42e62-9c13-11f0-aa50-ea36f1e40c44",
"growthHabit": "喜高温多湿半阴环境,不耐寒,怕干旱和强光,忌积水;附生于树干或岩石,根系暴露于空气中吸收水分",
"pestsDiseases": "叶斑病,灰霉病,褐斑病,介壳虫,煤烟病",
"lifeCycle": "多年生",
"lightIntensity": "中光照",
"lightType": "散射光",
"optimalTempMin": 20,
"optimalTempMax": 28,
"hardyTempMin": 5,
"hardyTempMax": 32,
"foliageType": "稍肉质",
"foliageColor": "正面绿色,背面紫绿色",
"foliageShape": "椭圆形或长圆形,先端锐尖或钝",
"height": 50,
"floweringPeriod": "自然花期4-6月人工栽培可全年开花盛花期12-3月",
"floweringColor": "白、粉、黄、紫红等,常具斑纹或条纹",
"floweringShape": "花姿如蝶唇瓣3裂具卷须",
"flowerDiameter": 90
}
}
},
methods: {
reset(){
this.from = {
circleDays: 0,
desc: '请输入描述',
isCircle: 0,
name: '请输入名称',
remark: '请输入备注'
}
},
submit(done) {

View File

@ -1,6 +1,6 @@
<template>
<div>
<navbar title="农事模版"/>
<navbar title="花卉百科"/>
<a-card>
<div class="flex flex-center flex-justify-start">
<edit @ok="fetchList"/>
@ -33,12 +33,20 @@ export default {
},
columns :[
{
title:'模版',
dataIndex: 'Name',
title:'名称',
dataIndex: 'name',
},
{
title:'周期',
dataIndex: 'CircleDays',
title:'别名',
dataIndex: 'aliases',
},
{
title:'latinName',
dataIndex:'latinName'
},
{
title:'科/属',
dataIndex: 'genus',
},{
title:"操作",
slotName:'menu'
@ -66,4 +74,4 @@ export default {
<style lang="scss" scoped>
</style>
</style>

View File

@ -23,4 +23,4 @@ export default {
<style lang="scss" scoped>
</style>
</style>

View File

@ -19,4 +19,4 @@ export default {
<style lang="scss" scoped>
</style>
</style>

View File

@ -82,4 +82,4 @@ export default {
}
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped></style>