From a5ba580dcafbdfc55b462df74c68ef5403b39332 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期四, 25 四月 2024 18:03:56 +0800
Subject: [PATCH] fix:修改代理
---
src/views/system/region/index.vue | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/src/views/system/region/index.vue b/src/views/system/region/index.vue
index 6caac60..e9027d9 100644
--- a/src/views/system/region/index.vue
+++ b/src/views/system/region/index.vue
@@ -20,12 +20,12 @@
/>
</el-form-item>
<el-form-item label="鍖哄幙" prop="county">
- <el-select v-model="queryParams.parentId" placeholder="璇烽�夋嫨鍖哄幙">
+ <el-select v-model="queryParams.parentId" clearable @change="handleQuery" placeholder="璇烽�夋嫨鍖哄幙">
<el-option v-for="item in countyList" :label="item.value" :value="item.id" :key="item.id"/>
</el-select>
</el-form-item>
<el-form-item label="鍦版柟绾у埆" prop="county">
- <el-select v-model="queryParams.regionLevel" clearable placeholder="璇烽�夋嫨鍖哄幙">
+ <el-select v-model="queryParams.regionLevel" clearable @change="handleQuery" placeholder="璇烽�夋嫨鍖哄幙">
<el-option label="甯�" value="city" />
<el-option label="鍖哄幙" value="county" />
<el-option label="琛楅亾" value="street" />
@@ -45,7 +45,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
- v-hasPermi="['system:region:add']"
+ v-hasPermi="['system:report:add']"
>鏂板</el-button>
</el-col>
<el-col :span="1.5">
@@ -56,7 +56,7 @@
size="mini"
:disabled="single"
@click="handleUpdate"
- v-hasPermi="['system:region:edit']"
+ v-hasPermi="['system:report:edit']"
>淇敼</el-button>
</el-col>
<el-col :span="1.5">
@@ -67,7 +67,7 @@
size="mini"
:disabled="multiple"
@click="handleDelete"
- v-hasPermi="['system:region:remove']"
+ v-hasPermi="['system:report:remove']"
>鍒犻櫎</el-button>
</el-col>
<el-col :span="1.5">
@@ -77,13 +77,19 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
- v-hasPermi="['system:region:export']"
+ v-hasPermi="['system:report:export']"
>瀵煎嚭</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
- <el-table v-loading="loading" :data="regionList" @selection-change="handleSelectionChange">
+ <el-table v-loading="loading"
+ :data="regionList"
+ row-key="id"
+ border
+ default-expand-all
+ :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
+ @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="鍖哄煙鍏ㄧО" align="center" prop="fullName" />
<el-table-column label="鍖哄煙绠�绉�" align="center" prop="simpleName" />
@@ -101,14 +107,14 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
- v-hasPermi="['system:region:edit']"
+ v-hasPermi="['system:report:edit']"
>淇敼</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
- v-hasPermi="['system:region:remove']"
+ v-hasPermi="['system:report:remove']"
>鍒犻櫎</el-button>
</template>
</el-table-column>
--
Gitblit v1.8.0