[add
This commit is contained in:
parent
5964982b7c
commit
0ae7a7e6ca
@ -20,5 +20,5 @@ module.exports = {
|
|||||||
'vue/multi-word-component-names': 'off',
|
'vue/multi-word-component-names': 'off',
|
||||||
'prettier/prettier': 'error'
|
'prettier/prettier': 'error'
|
||||||
},
|
},
|
||||||
ignorePatterns: ['**/index.html']
|
ignorePatterns: ['**/knowledge.html']
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,14 +2,14 @@ import fetch from '../fetch.js'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
save(params) {
|
save(params) {
|
||||||
return fetch('/farmTemplate/add', params,'post','json')
|
return fetch('/library/add', params,'post','json')
|
||||||
},
|
},
|
||||||
update(params) {
|
update(params) {
|
||||||
return fetch('/farmTemplate/update', params,'post','json')
|
return fetch('/library/update', params,'post','json')
|
||||||
},
|
},
|
||||||
|
|
||||||
list(params) {
|
list(params) {
|
||||||
return fetch('/farmTemplate/list', params,'post','json')
|
return fetch('/library/list', params,'post','json')
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -80,7 +80,7 @@ import '@vue-office/docx/lib/index.css'
|
|||||||
import VueOfficeExcel from '@vue-office/excel'
|
import VueOfficeExcel from '@vue-office/excel'
|
||||||
//引入相关样式
|
//引入相关样式
|
||||||
import '@vue-office/excel/lib/index.css'
|
import '@vue-office/excel/lib/index.css'
|
||||||
import history from "@/components/history/index.vue";
|
import history from "@/components/history/knowledge.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@ -50,22 +50,36 @@ export default {
|
|||||||
show: false,
|
show: false,
|
||||||
title: '新增',
|
title: '新增',
|
||||||
from: {
|
from: {
|
||||||
circleDays: 0,
|
"name": "蝴蝶兰",
|
||||||
desc: '请输入描述',
|
"latinName": "Phalaenopsis aphrodite Rchb. f.",
|
||||||
isCircle: 0,
|
"aliases": "蝶兰,台湾蝴蝶兰,洋兰皇后",
|
||||||
name: '请输入名称',
|
"genus": "蝴蝶兰属",
|
||||||
remark: '请输入备注'
|
"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: {
|
methods: {
|
||||||
reset(){
|
reset(){
|
||||||
this.from = {
|
this.from = {
|
||||||
circleDays: 0,
|
|
||||||
desc: '请输入描述',
|
|
||||||
isCircle: 0,
|
|
||||||
name: '请输入名称',
|
name: '请输入名称',
|
||||||
remark: '请输入备注'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
submit(done) {
|
submit(done) {
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<navbar title="农事模版"/>
|
<navbar title="花卉百科"/>
|
||||||
<a-card>
|
<a-card>
|
||||||
<div class="flex flex-center flex-justify-start">
|
<div class="flex flex-center flex-justify-start">
|
||||||
<edit @ok="fetchList"/>
|
<edit @ok="fetchList"/>
|
||||||
@ -33,12 +33,20 @@ export default {
|
|||||||
},
|
},
|
||||||
columns :[
|
columns :[
|
||||||
{
|
{
|
||||||
title:'模版',
|
title:'名称',
|
||||||
dataIndex: 'Name',
|
dataIndex: 'name',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title:'周期',
|
title:'别名',
|
||||||
dataIndex: 'CircleDays',
|
dataIndex: 'aliases',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title:'latinName',
|
||||||
|
dataIndex:'latinName'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title:'科/属',
|
||||||
|
dataIndex: 'genus',
|
||||||
},{
|
},{
|
||||||
title:"操作",
|
title:"操作",
|
||||||
slotName:'menu'
|
slotName:'menu'
|
||||||
@ -66,4 +74,4 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@ -23,4 +23,4 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -19,4 +19,4 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -82,4 +82,4 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped></style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user