| | |
| | | <template> |
| | | <div class="verSionBox"> |
| | | <My-bread |
| | | :list="[ |
| | | <My-bread :list="[ |
| | | `${$t('dataManage.dataManage')}`, |
| | | `${$t('dataManage.versionManage')}`, |
| | | ]" |
| | | ></My-bread> |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="inquire subpage_Div" ref="container"> |
| | | <el-form ref="ruleForm" :model="ruleForm" :inline="true"> |
| | | <div |
| | | class="inquire subpage_Div" |
| | | ref="container" |
| | | > |
| | | <el-form |
| | | ref="ruleForm" |
| | | :model="ruleForm" |
| | | :inline="true" |
| | | > |
| | | <div class="flex_box"> |
| | | <div style="margin-right: auto"> |
| | | <el-form-item> |
| | | <el-form-item size="small"> |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="ruleForm.dirid" |
| | | placeholder="请选择" |
| | | placeholder="请选择存储目录" |
| | | style="width: 200px" |
| | | > |
| | | <el-option |
| | |
| | | }" |
| | | ></el-cascader> --> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-form-item size="small"> |
| | | <el-input |
| | | v-model="ruleForm.name" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | suffix-icon="el-icon-edit" |
| | | /> |
| | | :placeholder="$t('shuJuGuanLi.lable5')" |
| | | ><i |
| | | slot="suffix" |
| | | class="el-icon-search" |
| | | @click="onSubmit('ruleForm')" |
| | | style="padding-right: 8px" |
| | | ></i></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div> |
| | |
| | | @click="(InsertFormdialog = true), getSelectdirTab()" |
| | | icon="el-icon-plus" |
| | | size="small" |
| | | >{{ $t("common.append") }}</el-button |
| | | > |
| | | <el-button |
| | | >{{ $t("common.append") }}</el-button> |
| | | <!-- <el-button |
| | | @click="onSubmit('ruleForm')" |
| | | icon="el-icon-search" |
| | | size="small" |
| | | class="primary" |
| | | >{{ $t("common.iquery") }}</el-button |
| | | > |
| | | >--> |
| | | <el-button |
| | | type="info" |
| | | @click="resetForm('ruleForm')" |
| | | icon="el-icon-delete" |
| | | size="small" |
| | | >{{ $t("common.empty") }}</el-button |
| | | > |
| | | >{{ $t("common.empty") }}</el-button> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | |
| | | <div class="dividing-line"></div> |
| | | <div class="table_box" :style="styleVar"> |
| | | <div |
| | | class="table_box" |
| | | :style="styleVar" |
| | | > |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | border |
| | | height="calc(100% - 57px)" |
| | | > |
| | | <el-table-column |
| | |
| | | :label="$t('dataManage.vmobj.index')" |
| | | width="70px" |
| | | /> |
| | | <el-table-column align="center" prop="id" v-if="false" /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="id" |
| | | v-if="false" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="name" |
| | |
| | | :label="$t('dataManage.vmobj.updateontime')" |
| | | :formatter="formatTime" |
| | | /> |
| | | <el-table-column min-width="150" :label="$t('common.operate')"> |
| | | <el-table-column |
| | | min-width="150" |
| | | :label="$t('common.operate')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | v-if="btnStatus.update" |
| | |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | >{{ $t("common.update") }}</el-button |
| | | > |
| | | >{{ $t("common.update") }}</el-button> |
| | | <el-button |
| | | v-if="btnStatus.delete" |
| | | @click="handleDelete(scope.$index, scope.row)" |
| | | type="danger" |
| | | size="small" |
| | | plain |
| | | >{{ $t("common.delete") }}</el-button |
| | | > |
| | | >{{ $t("common.delete") }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="pagination_box"> |
| | | <div |
| | | class="pagination_box" |
| | | style="margin-top: 15px" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | |
| | | <el-dialog |
| | | :title="$t('dataManage.vmobj.editVersion')" |
| | | :visible.sync="dialogFormVisible" |
| | | top="2vh" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form :model="upform" label-position="top"> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.name')" |
| | | :label-width="formLabelWidth" |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | | :model="upform" |
| | | label-position="top" |
| | | > |
| | | <el-input |
| | | v-model="upform.name" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.catalogue')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="upform.dirid" |
| | | :placeholder="$t('shuJuGuanLi.pselect')" |
| | | style="width:85%" |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.name')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | :value="upform.dirid" |
| | | :label="upform.depName" |
| | | style="height: auto" |
| | | <el-input |
| | | v-model="upform.name" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.catalogue')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="upform.dirid" |
| | | :placeholder="$t('shuJuGuanLi.pselect.select')" |
| | | style="width:85%" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editcatalogOption" |
| | | node-key="id" |
| | | :props="props" |
| | | @node-click="handlupCatalogChange" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | <el-option |
| | | :value="upform.dirid" |
| | | :label="upform.depName" |
| | | style="height: auto" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editcatalogOption" |
| | | node-key="id" |
| | | :props="props" |
| | | @node-click="handlupCatalogChange" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | style="width: 300px" |
| | | v-model="upform.dirid" |
| | | :options="editcatalogOption" |
| | | @change="upCatalogChange" |
| | | :props="cascader" |
| | | ></el-cascader> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.describe')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.descr" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div slot="footer" type="info" class="dialog-footer"> |
| | | <el-button size="small" @click="editFromDataClose">{{ |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.describe')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.descr" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div |
| | | slot="footer" |
| | | type="info" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | @click="editFromDataClose" |
| | | >{{ |
| | | $t("common.close") |
| | | }}</el-button> |
| | | <el-button size="small" @click="editFromData" class="primary">{{ |
| | | <el-button |
| | | size="small" |
| | | @click="editFromData" |
| | | class="primary" |
| | | >{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | | </div> |
| | |
| | | <el-dialog |
| | | :title="$t('dataManage.vmobj.addVersion')" |
| | | :visible.sync="InsertFormdialog" |
| | | top="2vh" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form :model="insertform" label-position="top"> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.name')" |
| | | :label-width="formLabelWidth" |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | | :model="insertform" |
| | | label-position="top" |
| | | > |
| | | <el-input |
| | | style="width:85%" |
| | | v-model="insertform.name" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.catalogue')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="insertform.path" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.name')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | :value="insertform.path" |
| | | :label="insertform.dirName" |
| | | style="height: auto" |
| | | <el-input |
| | | style="width:85%" |
| | | v-model="insertform.name" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.catalogue')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="insertform.dirName" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editcatalogOption" |
| | | node-key="id" |
| | | :props="props" |
| | | @node-click="catalogChangeAdd" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | <el-option |
| | | :value="insertform.path" |
| | | :label="insertform.dirName" |
| | | style="height: auto" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editcatalogOption" |
| | | node-key="id" |
| | | :props="props" |
| | | @node-click="catalogChangeAdd" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | style="width: 300px" |
| | | v-model="insertform.path" |
| | | :options="catalogOption" |
| | | @change="catalogChange" |
| | | :props="cascader" |
| | | ></el-cascader> --> |
| | | </el-form-item> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.describe')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | style="width:85%" |
| | | v-model="insertform.descr" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="insertFromDataClose" type="info" size="small">{{ |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.describe')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | style="width:85%" |
| | | v-model="insertform.descr" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | @click="insertFromDataClose" |
| | | type="info" |
| | | size="small" |
| | | >{{ |
| | | $t("common.close") |
| | | }}</el-button> |
| | | <el-button @click="insertFromData" class="primary" size="small">{{ |
| | | <el-button |
| | | @click="insertFromData" |
| | | class="primary" |
| | | size="small" |
| | | >{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | | </div> |
| | |
| | | this.getQueryDirTree(); |
| | | this.getRoleTabelData(); |
| | | this.showPermsBtn(); |
| | | this.$set(this.ruleForm, "depName", "请选择"); |
| | | this.$set(this.ruleForm, "depName", "请选择存储目录"); |
| | | }, |
| | | computed: { |
| | | pathId() { |
| | |
| | | this.$nextTick(() => { |
| | | const rect = this.$refs.container.getBoundingClientRect(); |
| | | this.tableHeight = `${rect.height + 97}px`; |
| | | this.styleVar["height"] = `calc(100% - ${rect.height + 97}px)`; |
| | | this.styleVar["height"] = `calc(100% - ${rect.height + 28}px)`; |
| | | }); |
| | | }, |
| | | //目录切换 |
| | |
| | | this.insertform.dirid = value; |
| | | }, |
| | | catalogChangeAdd(data, node, nodeData) { |
| | | this.$set(this.insertform, "path", data.id); |
| | | |
| | | this.insertform.path = data.id |
| | | this.insertform.dirid = data.id |
| | | // this.$set(this.insertform, "path", data.id); |
| | | this.$set(this.insertform, "dirName", data.name); |
| | | }, |
| | | upCatalogChange(val) { |
| | |
| | | return; |
| | | } |
| | | this.companyOption = this.treeData(res.result); |
| | | this.ruleForm.dirid = this.companyOption[0].id; |
| | | // this.ruleForm.dirid = this.companyOption[0].id; |
| | | }, |
| | | handleChange(data, node, nodeData) { |
| | | this.$set(this.ruleForm, "dirid", data.id); |
| | |
| | | return; |
| | | } |
| | | this.insertform.name = this.getYMD(); |
| | | this.insertform.path = 1; |
| | | this.insertform.dirid = 1; |
| | | this.upform.dirid == 1; |
| | | // this.insertform.path = 1; |
| | | // this.insertform.dirid = 1; |
| | | // this.upform.dirid == 1; |
| | | this.catalogOption = this.treeData(res.result); |
| | | this.editcatalogOption = this.treeData(res.result); |
| | | }, |
| | |
| | | }, |
| | | resetForm() { |
| | | this.ruleForm = {}; |
| | | this.ruleForm.dirid = this.companyOption[0].id; |
| | | // this.ruleForm.dirid = this.companyOption[0].id; |
| | | this.$store.state.verCateNode = {}; |
| | | this.$bus.$emit("clearTressLabel", true); |
| | | this.getRoleTabelData(); |
| | |
| | | this.insertform = {}; |
| | | }, |
| | | async insertFromData() { |
| | | |
| | | if (this.insertform.dirid == null) { |
| | | this.$message({ |
| | | message: "请选择角色所属单位", |
| | |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | const data = await insertVersion(this.insertform); |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | |
| | | watch: { |
| | | pathId: { |
| | | immediate: true, |
| | | handler(val) {}, |
| | | handler(val) { }, |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | .verSionBox { |
| | | height: 98%; |
| | | width: 98%; |
| | | padding: 1%; |
| | | padding: 0.5%; |
| | | .verSionContent { |
| | | width: 100%; |
| | | height: 92%; |
| | |
| | | } |
| | | .inquire { |
| | | padding: 8px; |
| | | margin-top: 20px; |
| | | //margin-top: 20px; |
| | | |
| | | border-radius: 5px; |
| | | |
| | | margin-bottom: 20px; |
| | | //margin-bottom: 20px; |
| | | .el-form-item { |
| | | margin: 5px; |
| | | } |