| | |
| | | <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 size="small"> |
| | |
| | | v-model="ruleForm.dirid" |
| | | placeholder="请选择存储目录" |
| | | style="width: 200px" |
| | | ref="treeSelect" |
| | | > |
| | | <el-option |
| | | :value="ruleForm.dirid" |
| | |
| | | <el-input |
| | | v-model="ruleForm.name" |
| | | :placeholder="$t('shuJuGuanLi.lable5')" |
| | | ><i |
| | | ><i |
| | | slot="suffix" |
| | | class="el-icon-search" |
| | | @click="onSubmit('ruleForm')" |
| | | style="padding-right: 8px" |
| | | ></i></el-input> |
| | | ></i |
| | | ></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div> |
| | |
| | | @click="(InsertFormdialog = true), getSelectdirTab()" |
| | | icon="el-icon-plus" |
| | | size="small" |
| | | >{{ $t("common.append") }}</el-button> |
| | | >{{ $t("common.append") }}</el-button |
| | | > |
| | | <!-- <el-button |
| | | @click="onSubmit('ruleForm')" |
| | | icon="el-icon-search" |
| | |
| | | @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%" |
| | |
| | | :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" |
| | | style="margin-top: 15px" |
| | | > |
| | | <div class="pagination_box" style="margin-top: 15px"> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | |
| | | :before-close="handleClose" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | | :model="upform" |
| | | label-position="top" |
| | | > |
| | | <el-form :model="upform" label-position="top"> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.name')" |
| | | :label-width="formLabelWidth" |
| | |
| | | <el-input |
| | | v-model="upform.name" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | style="width: 85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | :popper-append-to-body="false" |
| | | v-model="upform.dirid" |
| | | :placeholder="$t('shuJuGuanLi.pselect.select')" |
| | | style="width:85%" |
| | | style="width: 85%" |
| | | > |
| | | <el-option |
| | | :value="upform.dirid" |
| | |
| | | <el-input |
| | | v-model="upform.descr" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | 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" |
| | | >{{ |
| | | <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> |
| | |
| | | :before-close="handleCloseadd" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | | :model="insertform" |
| | | label-position="top" |
| | | > |
| | | <el-form :model="insertform" label-position="top"> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.name')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | style="width:85%" |
| | | style="width: 85%" |
| | | v-model="insertform.name" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueName1')" |
| | |
| | | :popper-append-to-body="false" |
| | | v-model="insertform.dirName" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuedirectory')" |
| | | style="width:85%" |
| | | style="width: 85%" |
| | | > |
| | | <el-option |
| | | :value="insertform.path" |
| | |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | style="width:85%" |
| | | style="width: 85%" |
| | | v-model="insertform.descr" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuedescription')" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuedescription')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | @click="insertFromDataClose" |
| | | type="info" |
| | | size="small" |
| | | >{{ |
| | | <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> |
| | |
| | | upform: {}, |
| | | ruleForm: {}, |
| | | insertform: { |
| | | name:"" |
| | | name: "", |
| | | }, |
| | | tableData: [], |
| | | companyOption: [], |
| | |
| | | this.insertform.dirid = value; |
| | | }, |
| | | catalogChangeAdd(data, node, nodeData) { |
| | | |
| | | this.insertform.path = data.id |
| | | this.insertform.dirid = 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); |
| | | }, |
| | |
| | | editFromDataClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.dialogFormVisible = false |
| | | this.dialogFormVisible = false; |
| | | this.upform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | .catch((_) => {}); |
| | | // this.dialogFormVisible = false; |
| | | // this.upform = {}; |
| | | }, |
| | |
| | | insertFromDataClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | .catch((_) => {}); |
| | | // this.InsertFormdialog = false; |
| | | // this.insertform = {}; |
| | | }, |
| | | async insertFromData() { |
| | | |
| | | if (this.insertform.dirid == null) { |
| | | this.$message({ |
| | | message: "请选择角色所属单位", |
| | |
| | | handleClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.dialogFormVisible = false |
| | | this.dialogFormVisible = false; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | .catch((_) => {}); |
| | | }, |
| | | handleCloseadd() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | this.InsertFormdialog = false; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | .catch((_) => {}); |
| | | }, |
| | | }, |
| | | watch: { |
| | | pathId: { |
| | | immediate: true, |
| | | handler(val) { }, |
| | | handler(val) {}, |
| | | }, |
| | | "ruleForm.dirid"() { |
| | | this.$refs.treeSelect.visible = false; |
| | | }, |
| | | }, |
| | | }; |