|
|
@@ -77,6 +77,7 @@ const state = reactive({
|
|
|
regionData: [] as Array<SysRegion>, // 列表数据
|
|
|
queryParams: {
|
|
|
id: -1,
|
|
|
+ pid: undefined,
|
|
|
name: undefined,
|
|
|
code: undefined,
|
|
|
},
|
|
|
@@ -116,6 +117,7 @@ const handleQuery = async () => {
|
|
|
// 重置操作
|
|
|
const resetQuery = () => {
|
|
|
state.queryParams.id = -1;
|
|
|
+ state.queryParams.pid = undefined;
|
|
|
state.queryParams.name = undefined;
|
|
|
state.queryParams.code = undefined;
|
|
|
handleQuery();
|
|
|
@@ -150,7 +152,7 @@ const delRegion = (row: any) => {
|
|
|
|
|
|
// 树组件点击
|
|
|
const nodeClick = async (node: any) => {
|
|
|
- state.queryParams.id = node.id;
|
|
|
+ state.queryParams.pid = node.id;
|
|
|
state.queryParams.name = undefined;
|
|
|
state.queryParams.code = undefined;
|
|
|
handleQuery();
|