|
|
|
@ -15,9 +15,9 @@ |
|
|
|
<i class="el-icon-link" @click="append"></i><span> 项目类别</span> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 20px"> |
|
|
|
<el-button type="" @click="addll" class="commonbutton" |
|
|
|
<!-- <el-button type="" @click="addll" class="commonbutton" |
|
|
|
>新增同集</el-button |
|
|
|
> |
|
|
|
> --> |
|
|
|
</div> |
|
|
|
<el-tree |
|
|
|
:default-expand-all="true" |
|
|
|
@ -32,12 +32,19 @@ |
|
|
|
<span slot-scope="{ node, data }"> |
|
|
|
<span style="padding: 5px">{{ node.label }}</span> |
|
|
|
<span> |
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
size="mini" |
|
|
|
style="padding: 5px; font-size: 15px; margin-left: 10%" |
|
|
|
@click="addll(node, data)" |
|
|
|
>新增同级</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
size="mini" |
|
|
|
style="padding: 5px; font-size: 15px; margin-left: %" |
|
|
|
@click="append(node, data)" |
|
|
|
>新增子集</el-button |
|
|
|
>新增子级</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
type="danger" |
|
|
|
@ -69,8 +76,9 @@ |
|
|
|
width="40%" |
|
|
|
:close-on-click-modal="false" |
|
|
|
> |
|
|
|
<span>上级部门</span> |
|
|
|
<span v-if="title==2?true:false">上级部门</span> |
|
|
|
<el-cascader |
|
|
|
v-if="title==2" |
|
|
|
ref="depref" |
|
|
|
@change="cascaderchang" |
|
|
|
:show-all-levels="false" |
|
|
|
@ -180,7 +188,7 @@ |
|
|
|
</div> |
|
|
|
<!-- 按钮区域 --> |
|
|
|
<div style="margin-left: 10px" class="buttonarea"> |
|
|
|
<el-button type="" @click="addll" class="commonbutton">新增</el-button> |
|
|
|
<!-- <el-button type="" @click="addll" class="commonbutton">新增</el-button> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -267,10 +275,24 @@ export default { |
|
|
|
value: "", //指引类别选择的数据 |
|
|
|
dialogVisible: false, |
|
|
|
guideoptions: [], |
|
|
|
tableHeight: window.innerHeight - 220, //表格动态高度 |
|
|
|
screenHeight: window.innerHeight, //内容区域高度 |
|
|
|
}; |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
// 监听screenHeight从而改变table的高度 |
|
|
|
screenHeight(val) { |
|
|
|
this.screenHeight = val; |
|
|
|
this.tableHeight = this.screenHeight - 220; |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getlist(); |
|
|
|
return (() => { |
|
|
|
// window.innerHeight:浏览器的可用高度 |
|
|
|
window.screenHeight = window.innerHeight; |
|
|
|
this.screenHeight = window.screenHeight; |
|
|
|
})(); |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
window.onresize = () => { |
|
|
|
|