Browse Source

fix: 配方新增

master
guoapeng 2 weeks ago
parent
commit
cf8b0977ef
  1. 18
      src/views/formula/index.vue

18
src/views/formula/index.vue

@ -8,11 +8,11 @@ import { ref } from 'vue'
const formRef = ref() const formRef = ref()
const onAddFormula = () => { const onAddFormula = () => {
selectedIndexRest() selectedIndexRest()
formRef.value?.formRef.value.addFormula()
formRef.value?.addFormula()
} }
const tableRef = ref() const tableRef = ref()
const selectedIndexRest = () => { const selectedIndexRest = () => {
tableRef.value?.tableRef.value.selectedIndexRest() //
tableRef.value?.selectedIndexRest() //
} }
</script> </script>
@ -47,32 +47,32 @@ const selectedIndexRest = () => {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.main-content{
.main-content {
display: grid; display: grid;
grid-template-columns: repeat(3,1fr);
grid-template-columns: repeat(3, 1fr);
height: $main-container-height; height: $main-container-height;
gap: 5px; gap: 5px;
overflow: hidden; overflow: hidden;
.formula-left{
.formula-left {
box-shadow: 0px 1px 5px 0px rgba(9, 39, 62, 0.15); box-shadow: 0px 1px 5px 0px rgba(9, 39, 62, 0.15);
background: $gradient-color; background: $gradient-color;
.formula-add{
.formula-add {
margin: 10px; margin: 10px;
} }
.formula-add-btn{
.formula-add-btn {
display: flex; display: flex;
align-items: center; align-items: center;
height: 3rem; height: 3rem;
border-radius: 5px; border-radius: 5px;
} }
.formula-list{
.formula-list {
display: flex; display: flex;
justify-content: center; justify-content: center;
height: 74vh; height: 74vh;
max-height: 74vh; max-height: 74vh;
} }
} }
.formula-right{
.formula-right {
grid-column: 2 / 4; grid-column: 2 / 4;
box-shadow: 0px 1px 5px 0px rgba(9, 39, 62, 0.15); box-shadow: 0px 1px 5px 0px rgba(9, 39, 62, 0.15);
background: $gradient-color; background: $gradient-color;

Loading…
Cancel
Save