| | |
| | | <el-row :gutter="5"> |
| | | <el-col :span="5"> |
| | | <div class="fa-card-a" style="margin-right: 5px;height: calc(100vh - 123px)"> |
| | | <product-model-tree @on-selected="onProductSelected" @on-default="onDefault" showXdy="true" :isShow="false"/> |
| | | <product-model-tree ref="ProductModelTree" @on-selected="onProductSelected" @on-default="onDefault" showXdy="true" :isShow="false"/> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="19"> |
| | |
| | | </el-table> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <add-or-update @refreshDataList="table.query" ref="AddOrUpdate"/> |
| | | <el-dialog v-dialogDrag title="模型设计" top="1vh" width='95%' :visible.sync="dialogVisible2" v-if="dialogVisible2"> |
| | | <el-dialog v-dialogDrag :title="title" top="1vh" width='95%' :visible.sync="dialogVisible2" v-if="dialogVisible2"> |
| | | <RBDEditImg ref="rbdEditImg" @refreshDataList="table.query"></RBDEditImg> |
| | | </el-dialog> |
| | | </zt-table-wraper> |
| | |
| | | data() { |
| | | return { |
| | | dialogVisible2: false, |
| | | title:'', |
| | | dataForm: { |
| | | modelName: '', |
| | | modelState:'', |
| | | productId: '', |
| | | modelTag: '', |
| | | shipId: '', |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | |
| | | this.$refs.ProductModelTree.getProductList() |
| | | }, |
| | | components: { |
| | | ProductModelTree, |
| | |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.$refs.AddOrUpdate.$refs.dialog.init(null, this.dataForm.productId) |
| | | this.$refs.AddOrUpdate.$refs.dialog.init(null, {productId:this.dataForm.productId,shipId:this.dataForm.shipId}) |
| | | }, |
| | | onProductSelected(data) { |
| | | this.dataForm.productId = data.id |
| | | this.dataForm.shipId = data.shipId |
| | | console.log(data, 'onProductSelected(data)') |
| | | this.$refs.tableObj.query() |
| | | }, |
| | |
| | | }, |
| | | drawRBD(row) { |
| | | this.dialogVisible2 = true |
| | | this.title=row.modelName + '模型设计' |
| | | this.$nextTick(() => { |
| | | this.$refs.rbdEditImg.init(row) |
| | | }) |