ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ruoyi-ui/src/assets/styles/element-variables.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ruoyi-ui/src/views/system/dict/data.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ruoyi-ui/src/views/system/user/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ruoyi-ui/src/views/tool/gen/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm
@@ -173,11 +173,13 @@ #set($dictType=$column.dictType) #if("" != $treeParentCode && $column.javaField == $treeParentCode) <el-form-item label="${comment}" prop="${treeParentCode}"> <tree-select v-model:value="form.${treeParentCode}" :options="${businessName}Options" :objMap="{ value: '${treeCode}', label: '${treeName}', children: 'children' }" <el-tree-select v-model="form.${treeParentCode}" :data="${businessName}Options" :props="{ value: '${treeCode}', label: '${treeName}', children: 'children' }" value-key="${treeCode}" placeholder="请选择${comment}" check-strictly /> </el-form-item> #elseif($column.htmlType == "input") @@ -353,8 +355,8 @@ } /** 查询${functionName}下拉树结构 */ async function getTreeselect() { await list${BusinessName}().then(response => { function getTreeselect() { list${BusinessName}().then(response => { ${businessName}Options.value = []; const data = { ${treeCode}: 0, ${treeName}: '顶级节点', children: [] }; data.children = proxy.handleTree(response.data, "${treeCode}", "${treeParentCode}"); @@ -403,9 +405,9 @@ } /** 新增按钮操作 */ async function handleAdd(row) { function handleAdd(row) { reset(); await getTreeselect(); getTreeselect(); if (row != null && row.${treeCode}) { form.value.${treeParentCode} = row.${treeCode}; } else { ruoyi-ui/src/assets/styles/element-variables.scss
@@ -17,7 +17,7 @@ $--border-color-light: #dfe4ed; $--border-color-lighter: #e6ebf5; $--table-border:1px solid#dfe6ec; $--table-border: 1px solid #dfe6ec; /* icon font path, required */ $--font-path: '~element-ui/lib/theme-chalk/fonts'; ruoyi-ui/src/views/system/dict/data.vue
@@ -191,7 +191,7 @@ <script> import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data"; import { listType, getType } from "@/api/system/dict/type"; import { optionselect as getDictOptionselect, getType } from "@/api/system/dict/type"; export default { name: "Data", @@ -287,8 +287,8 @@ }, /** 查询字典类型列表 */ getTypeList() { listType().then(response => { this.typeOptions = response.rows; getDictOptionselect().then(response => { this.typeOptions = response.data; }); }, /** 查询字典数据列表 */ ruoyi-ui/src/views/system/user/index.vue
@@ -21,6 +21,7 @@ :filter-node-method="filterNode" ref="tree" default-expand-all highlight-current @node-click="handleNodeClick" /> </div> ruoyi-ui/src/views/tool/gen/index.vue
@@ -316,7 +316,7 @@ return result.value || ' '; }, /** 复制代码成功 */ clipboardSuccess(){ clipboardSuccess() { this.$modal.msgSuccess("复制成功"); }, // 多选框选中数据