| | |
| | | ></My-bread> |
| | | <el-divider /> |
| | | <div class="verSionContent"> |
| | | <div class="verSion_leftTree"> |
| | | <!-- <div class="verSion_leftTree"> |
| | | <ver-dir-tree></ver-dir-tree> |
| | | </div> |
| | | </div> --> |
| | | <div class="verSion_rightContent"> |
| | | <el-form ref="ruleForm" :model="ruleForm" :inline="true"> |
| | | <el-form-item :label="$t('dataManage.vmobj.keyword')" prop="name"> |
| | | <el-form-item> |
| | | <el-cascader |
| | | v-model="ruleForm.dirid" |
| | | :show-all-levels="false" |
| | | :options="companyOption" |
| | | @change="handleChange" |
| | | :props="{ |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'children', |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | | }" |
| | | ></el-cascader> |
| | | </el-form-item> |
| | | <el-form-item > |
| | | <el-input |
| | | v-model="ruleForm.name" |
| | | :placeholder="$t('common.pleaseInput')" |
| | |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="createUser" |
| | | prop="createName" |
| | | :label="$t('dataManage.vmobj.createonuser')" |
| | | /> |
| | | <el-table-column |
| | |
| | | ruleForm: {}, |
| | | insertform: {}, |
| | | tableData: [], |
| | | companyOption:[], |
| | | count: 0, |
| | | rowFlag: null, |
| | | listData: { |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getQueryDirTree(); |
| | | this.getRoleTabelData(); |
| | | this.showPermsBtn(); |
| | | }, |
| | |
| | | }, |
| | | upCatalogChange(val) { |
| | | this.upform.dirid == val; |
| | | }, |
| | | //目录列表获取 |
| | | async getQueryDirTree() { |
| | | const res = await selectdirTab(); |
| | | if (res.code != 200) { |
| | | this.$message.error('目录列表获取失败'); |
| | | return; |
| | | } |
| | | this.companyOption = this.treeData(res.result); |
| | | this.ruleForm.dirid= this.companyOption[0].id |
| | | |
| | | }, |
| | | handleChange(val){ |
| | | |
| | | this.ruleForm.dirid=val; |
| | | this.onSubmit(); |
| | | }, |
| | | //目录列表获取 |
| | | async getSelectdirTab() { |
| | |
| | | }, |
| | | resetForm() { |
| | | this.ruleForm = {}; |
| | | this.ruleForm.dirid= this.companyOption[0].id |
| | | this.$store.state.verCateNode = {}; |
| | | this.$bus.$emit('clearTressLabel', true); |
| | | this.getRoleTabelData(); |
| | |
| | | } |
| | | |
| | | this.listData.name = this.ruleForm.name; |
| | | this.listData.depName = this.$store.state.verCateNode.name; |
| | | this.listData.dirid = this.ruleForm.dirid; |
| | | |
| | | const data = await select_Ver_ByPageAndCount(this.listData); |
| | | |
| | |
| | | overflow-y: auto; |
| | | } |
| | | .verSion_rightContent { |
| | | width: 80%; |
| | | width: 98%; |
| | | height: 95%; |
| | | border: 1px solid white; |
| | | border-radius: 5px; |