add ModelInfoDialog
This commit is contained in:
@ -77,7 +77,7 @@
|
||||
|
||||
<v-list-tile-action>
|
||||
<span class="group">
|
||||
<v-btn icon @click.stop="popInfo(item.id)">
|
||||
<v-btn icon @click.stop="popModelInfo(item.model)">
|
||||
<v-icon small color="grey lighten-1">info</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon @click.stop="popDelete(item.id)">
|
||||
@ -133,6 +133,7 @@
|
||||
<AddSectionDialog v-model="showAddSectionDialog"/>
|
||||
<SectionInfoDialog v-model="showSectionInfoDialog"/>
|
||||
<SectionDeleteDialog v-model="showSectionDeleteDialog"/>
|
||||
<ModelInfoDialog v-model="showModelInfoDialog"/>
|
||||
|
||||
</v-container>
|
||||
</template>
|
||||
@ -148,6 +149,7 @@ import AddProductDialog from './AddProductDialog'
|
||||
import AddSectionDialog from './AddSectionDialog'
|
||||
import SectionInfoDialog from './SectionInfoDialog'
|
||||
import SectionDeleteDialog from './SectionDeleteDialog'
|
||||
import ModelInfoDialog from './ModelInfoDialog'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -156,6 +158,7 @@ export default {
|
||||
AddSectionDialog,
|
||||
SectionInfoDialog,
|
||||
SectionDeleteDialog,
|
||||
ModelInfoDialog,
|
||||
//RawDisplayer,
|
||||
},
|
||||
|
||||
@ -164,6 +167,7 @@ export default {
|
||||
showAddSectionDialog: false,
|
||||
showSectionInfoDialog: false,
|
||||
showSectionDeleteDialog: false,
|
||||
showModelInfoDialog: false,
|
||||
}),
|
||||
computed: {
|
||||
...mapState([
|
||||
@ -192,11 +196,6 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
selectModel(id) {
|
||||
console.log('select model', id)
|
||||
this.$store.dispatch('selectModel', id)
|
||||
},
|
||||
|
||||
sectionModelCount(sectionID) {
|
||||
let section = this.section(sectionID)
|
||||
if (section) {
|
||||
@ -258,8 +257,14 @@ export default {
|
||||
this.showSectionDeleteDialog = true
|
||||
},
|
||||
|
||||
popModelInfo(id) {
|
||||
this.selectModel(id)
|
||||
this.showModelInfoDialog = true
|
||||
},
|
||||
|
||||
...mapActions([
|
||||
'selectSection',
|
||||
'selectModel',
|
||||
'reorderSection',
|
||||
'setSectionPages',
|
||||
'setModelMaterials',
|
||||
|
||||
Reference in New Issue
Block a user