| | |
| | | <template> |
| | | <el-container> |
| | | <el-header class="businessHeader" style="height: 40px;"> |
| | | <el-header class="businessHeader" style="height: 40px;padding:0 8px"> |
| | | <el-button-group> |
| | | <el-button type="primary" @click="businessAdd" size="small"> <i class="el-icon-plus"></i> 新增</el-button> |
| | | <el-button type="primary" @click="businessEdit" size="small"><i class="el-icon-edit"></i> 修改</el-button> |
| | |
| | | <i :class="icons.domain"></i> |
| | | 所属领域 |
| | | </template> |
| | | <el-tag size="small"> |
| | | <el-tag v-if="obj.domainText" size="small"> |
| | | {{ obj.domainText }} |
| | | </el-tag> |
| | | <span v-else></span> |
| | | </el-descriptions-item> |
| | | <!-- <el-descriptions-item> |
| | | <template slot="label"> |
| | |
| | | <i :class="icons.view"></i> |
| | | 视图 |
| | | </template> |
| | | <el-tag size="small"> |
| | | <el-tag v-if="obj.viewText" size="small"> |
| | | {{ obj.viewText }} |
| | | </el-tag> |
| | | <span v-else></span> |
| | | </el-descriptions-item> |
| | | <!-- <el-descriptions-item> |
| | | <template slot="label"> |
| | |
| | | <div class="sep" style="height:7px"> |
| | | |
| | | </div> |
| | | <avue-crud class="businessCrud" v-model="ref.form" :option="ref.option" :data="ref.data" |
| | | <avue-crud class="businessCrud" ref="businessCrud" v-model="ref.form" :option="ref.option" :data="ref.data" |
| | | @selection-change="selectionChange"> |
| | | </avue-crud> |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | }, |
| | | loadOption: { |
| | | border: true, |
| | | height: 466, |
| | | height: 478, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | menu: false, |
| | |
| | | }) |
| | | }, |
| | | selectFromTable() { |
| | | console.log('获取'); |
| | | this.ref.visible = true; |
| | | }, |
| | | refOnLoad(domain) { |
| | |
| | | }, |
| | | dialoghandelfalse() { |
| | | this.ref.visible = false; |
| | | this.$refs.businessCrud.toggleSelection() |
| | | this.selectionList = []; |
| | | this.domain = null; |
| | | }, |
| | | dialoghandeltrue() { |
| | | if(this.selectionList.length<1){ |
| | | this.$message.warning('请选择数据'); |
| | | return false; |
| | | } |
| | | saveFromTable(this.selectionList, this.domain).then(res => { |
| | | this.$message.success('保存成功'); |
| | | this.dialoghandelfalse(); |