| | |
| | | <template> |
| | | <div class="verSionBox"> |
| | | <div class="verSionBox "> |
| | | <My-bread :list="[ |
| | | `${$t('dataManage.dataManage')}`, |
| | | `${$t('dataManage.projectManage')}`, |
| | |
| | | :inline="true" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item style="padding-bottom: 14px"> |
| | | <el-form-item> |
| | | <el-input |
| | | size="small" |
| | | v-model="filterInput" |
| | | style="width: 200px" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueone')" |
| | | suffix-icon="el-icon-search" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | icon="el-icon-plus" |
| | |
| | | :disabled="count1 != 0 ? true : false" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t("common.append") }}</el-button> |
| | | >{{ $t("common.increase") }}</el-button> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | <el-tree |
| | | ref="tree" |
| | |
| | | :default-expand-all="false" |
| | | draggable |
| | | @node-click="handleNodeClick" |
| | | :filter-node-method="filterNode" |
| | | > |
| | | </el-tree> |
| | | </div> |
| | |
| | | ref="filterTable" |
| | | :data="dbTableData" |
| | | height="100%" |
| | | border |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | |
| | | top="2vh" |
| | | :title=" |
| | | behavior == '新增项目' |
| | | ? `${$t('dataManage.projectObj.newProj')}` |
| | | : `${$t('dataManage.projectObj.editProj')}` |
| | | ? `${$t('dataManage.projectObj.lable1')}` |
| | | : `${$t('dataManage.projectObj.lable1')}` |
| | | " |
| | | :visible.sync="outerVisible" |
| | | :before-close="outerClose" |
| | |
| | | components: { MyBread, ProjectOl }, |
| | | data() { |
| | | return { |
| | | filterInput: "", |
| | | behavior: null, |
| | | outerVisible: false, |
| | | innerVisible: false, |
| | |
| | | computed: {}, |
| | | |
| | | methods: { |
| | | filterNode(value, data) { |
| | | if (!value) return true; |
| | | |
| | | return data.name.indexOf(value) !== -1; |
| | | }, |
| | | showPermsBtn() { |
| | | let currentPerms = this.$store.state.currentPerms; |
| | | let permsEntity = this.$store.state.permsEntity; |
| | |
| | | x: wkt.coordinates[0], |
| | | y: wkt.coordinates[1], |
| | | }); |
| | | console.log(data.result); |
| | | |
| | | if (data.code == 200) { |
| | | for (var i in data.result) { |
| | | var key = data.result[i].key; |
| | |
| | | //新增项目 |
| | | insertProject() { |
| | | if (this.dirId == null) { |
| | | this.$message.error("请选择需要新增的目录"); |
| | | this.$message.error("请选择需要添加的项目"); |
| | | return; |
| | | } |
| | | this.behavior = "新增项目"; |
| | |
| | | }); |
| | | }, |
| | | }, |
| | | watch: {}, |
| | | watch: { |
| | | |
| | | filterInput(val) { |
| | | this.$refs.tree.filter(val); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="less" scoped> |
| | |
| | | border-radius: 5px; |
| | | //border: 1px solid #dcdfe6; |
| | | //margin-bottom: 20px; |
| | | text-align: right; |
| | | // text-align: right; |
| | | .el-form-item { |
| | | margin: 5px; |
| | | } |