| | |
| | | <template> |
| | | <avue-crud :data="data" :option="option" @sort-change="sortChange" @row-update="addUpdate" |
| | | <avue-crud :data="ProData" :option="option" @sort-change="sortChange" @row-update="addUpdate" |
| | | @cell-click="handleRowClick"> |
| | | <template slot="menuLeft"> |
| | | <el-button v-if="attrEditVisible == false" size="small" type="primary" @click="addVisible=true">+ 添加</el-button> |
| | | <el-button v-if="attrEditVisible == false" size="small" type="primary" @click="addVisible=true">+ 添加 {{msg}}</el-button> |
| | | <el-dialog :visible.sync="addVisible" append-to-body title="从业务类型中选择属性"> |
| | | <avue-crud :data="businessData" :option="businessOption"></avue-crud> |
| | | </el-dialog> |
| | |
| | | <script> |
| | | export default { |
| | | name: "attrCrud .vue", |
| | | props: ['ProData'], |
| | | data() { |
| | | return { |
| | | |
| | | CascadeVisible: false, |
| | | attrEditVisible: false, |
| | | // 级联单选 |
| | |
| | | }, |
| | | mounted() { |
| | | console.log(this.attrEditVisible) |
| | | console.log(this.ProData) |
| | | }, |
| | | methods: { |
| | | addsHandler(){ |
| | |
| | | }, |
| | | // screenEdit(){ |
| | | // debugger |
| | | |
| | | // this.attrEditVisible=true; |
| | | // }, |
| | | // outEdit(){ |