| | |
| | | <el-container> |
| | | <el-aside> |
| | | <basic-container> |
| | | <div ref="TreeBox" style="height: calc(100vh - 154px);!important;"> |
| | | <div ref="TreeBox" style="height: calc(100vh - 164px);!important;"> |
| | | <!-- 左侧树 --> |
| | | <div style="height: calc(100vh - 190px);"> |
| | | <div style="height: calc(100vh - 200px);"> |
| | | <avue-tree :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | |
| | | <form-dialog ref="formRef" @refresh="getTemp"></form-dialog> |
| | | </basic-container> |
| | | </el-main> |
| | | <div style="width: 300px;">111</div> |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import {gridLink} from "@/api/modeling/linkType/api"; |
| | | import { gridTemplate, saveTemplate, updateTemplate} from "@/api/queryTemplate/queryDefine"; |
| | | import {getObjTypeQTs,deleteLinkTemplate} from "@/api/queryTemplate/linkTypeQuery"; |
| | | import func from "@/util/func"; |
| | | import {dateFormat} from "@/util/date"; |
| | | import basicOption from "@/util/basic-option"; |
| | | import FormDialog from "./formDialog.vue" |
| | | |
| | |
| | | formatter:function (row, value) { |
| | | return row.queryTemplate.btmType; |
| | | } |
| | | }, { |
| | | label: '版本版次', |
| | | prop: 'version', |
| | | formatter:function (row, value) { |
| | | if(row.queryTemplate.version==1){ |
| | | return '当前版本当前版次' |
| | | }else if(row.queryTemplate.version==2){ |
| | | return '当前版本最新版次' |
| | | }else if(row.queryTemplate.version==3){ |
| | | return '最新版本最新版次' |
| | | }else if(row.queryTemplate.version==7){ |
| | | return '已发布的最新版本' |
| | | }else { |
| | | return '' |
| | | } |
| | | } |
| | | }, { |
| | | label: '查询是否有下级', |
| | | prop: 'queryISLeaf', |
| | | formatter:function (row, value) { |
| | | return row.queryTemplate.queryISLeaf |
| | | } |
| | | }, { |
| | | label: '子节点层次数', |
| | | prop: 'level', |
| | | formatter:function (row, value) { |
| | | return row.queryTemplate.level; |
| | | } |
| | | }] |
| | | }, |
| | | selectionRow: [], |
| | |
| | | let names=this.selectionRow.map(item=>{ |
| | | return item.qtName |
| | | }) |
| | | deleteLinkTemplate(names).then(res => { |
| | | deleteLinkTemplate({names:names.join(',')}).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.getTemp(); |
| | | } |
| | | }) |
| | | }).catch(() => { |