From 4ef06d948899e393515bd62819f4f773766f9449 Mon Sep 17 00:00:00 2001
From: 唐耀东 <18861537@qq.com>
Date: 星期六, 16 七月 2022 13:16:42 +0800
Subject: [PATCH] 提交代码
---
src/views/basics/building/index.vue | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/views/basics/building/index.vue b/src/views/basics/building/index.vue
index 6ebe0a9..3ec40ca 100644
--- a/src/views/basics/building/index.vue
+++ b/src/views/basics/building/index.vue
@@ -1,6 +1,6 @@
<template>
<div class="app-container">
- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+ <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px" @submit.native.prevent>
<!-- <el-form-item label="鍗曞厓缂栧彿" prop="code">-->
<!-- <el-input-->
<!-- v-model="queryParams.code"-->
@@ -42,19 +42,21 @@
v-loading="loading"
:data="buildingList"
row-key="id"
+ height="calc(100vh - 210px)"
default-expand-all
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
- <el-table-column label="鍗曞厓鍚嶇О" align="center" prop="name"/>
- <el-table-column label="鍗曞厓缂栧彿" prop="code"/>
- <el-table-column label="鏄剧ず椤哄簭" align="center" prop="orderNum"/>
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+ <el-table-column label="鍗曞厓鍚嶇О" align="left" prop="name" show-overflow-tooltip/>
+ <el-table-column label="鍗曞厓缂栧彿" align="left" width="150" prop="code"/>
+ <el-table-column label="鏄剧ず椤哄簭" align="center" width="80" prop="orderNum"/>
+ <el-table-column label="鎿嶄綔" align="center" width="180" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
+ v-hasPermi="['oa:building:edit']"
>淇敼
</el-button>
<el-button
@@ -70,6 +72,7 @@
class="del-btn"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
+ v-hasPermi="['oa:building:remove']"
>鍒犻櫎
</el-button>
</template>
@@ -277,7 +280,7 @@
},
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete(row) {
- this.$modal.confirm('鏄惁纭鍒犻櫎"' + row.detailedName + '"锛�').then(() => {
+ this.$modal.confirm('鏄惁纭鍒犻櫎锛�').then(() => {
this.loading = true;
return delBuilding(row.id);
}).then(() => {
--
Gitblit v1.9.1