From ac5603d127ea37513055a2ef87d960902c3993b8 Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期三, 05 一月 2022 10:20:10 +0800
Subject: [PATCH] 默认更改列表
---
src/views/your/area-manage/areaManage.vue | 30 +++++++++++++++++-------------
1 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/src/views/your/area-manage/areaManage.vue b/src/views/your/area-manage/areaManage.vue
index 8b49c36..640243c 100644
--- a/src/views/your/area-manage/areaManage.vue
+++ b/src/views/your/area-manage/areaManage.vue
@@ -84,10 +84,8 @@
<Button @click="addEquipment" type="primary" icon="md-add">娣诲姞鐗囧尯娈�</Button>
<Button @click="init" icon="md-refresh">鍒锋柊</Button>
</Row>
- <Table :loading="loading" border :columns="columns2" :data="data2" ref="table"
- sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
-
-
+ <Table :loading="loading" border :columns="columns2" :data="data2" ref="table" style="height: 400px" >
+ sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect" >
</Table>
</Modal>
<Modal :title="modalTitle3" v-model="customerVisible" :mask-closable="false" :width="1050">
@@ -97,7 +95,7 @@
<Input v-model="searchForm.name" suffix="ios-search" @on-change="getCustList" placeholder="杈撳叆鍟嗘埛鍚嶇О鎼滅储" clearable style="width: 250px"
/>
</Row>
- <Table :loading="loading" border :columns="columns3" :data="data3" ref="table"
+ <Table :loading="loading" border :columns="columns3" :data="data3" ref="table" style="height: 350px"
sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
</Table>
<Row type="flex" justify="end" class="page">
@@ -113,10 +111,10 @@
></Page>
</Row>
</Modal>
- <Modal :title="modalTitle" v-model="addEquipmentVisible" :mask-closable="false" :width="500">
+ <Modal :title="modalTitle" v-model="addEquipmentVisible" :mask-closable="false" :width="500" >
<Form ref="areaSectionForm" :model="areaSectionForm" :label-width="80" :rules="areaSectionFormValidate">
<FormItem label="鐗囧尯鍚嶇О" prop="code">
- <Input v-model="areaSectionForm.code" />
+ <Input v-model="areaSectionForm.name" />
</FormItem>
</Form>
@@ -128,7 +126,7 @@
</div>
</Modal>
<Modal :title="modalTitle" v-model="addCustomerVisible" :mask-closable="false" :width="550">
- <Form ref="customerForm" :model="customerForm" :label-width="80" :rules="areaSectionFormValidate">
+ <Form ref="customerForm" :model="customerForm" :label-width="120" :rules="areaSectionFormValidate">
<FormItem label="鍟嗘埛鍚嶇О" prop="name">
<Input v-model="customerForm.name" />
</FormItem>
@@ -171,7 +169,7 @@
<FormItem label="鑱旂郴浜�" prop="linker">
<Input v-model="customerForm.linker" />
</FormItem>
- <FormItem label="闆跺敭璁稿彲璇佷俊鎭�" prop="licence">
+ <FormItem label="闆跺敭璁稿彲璇佷俊鎭�" prop="licence" >
<Input v-model="customerForm.licence" />
</FormItem>
</Form>
@@ -279,6 +277,7 @@
addCar,
getCarList,
getUser,
+ getDriver,
addArea,
deleteArea,
getAreaSection,
@@ -434,8 +433,8 @@
align: "center",
},
{
- title: "鍒嗘缂栧彿鎴栧悕绉�",
- key: "code",
+ title: "鍒嗘鍚嶇О",
+ key: "name",
},
{
title: "鎿嶄綔",
@@ -602,7 +601,9 @@
data2: [],
data3: [],
total: 0,
-
+ type: {
+ type : 1
+ },
total2: 0,
permData: [],
editRolePermId: "",
@@ -708,7 +709,7 @@
});
},
getAllUser(){
- getUser().then((res)=>{
+ getDriver({type:1}).then((res)=>{
if (res.success){
this.userList=res.result;
}
@@ -774,16 +775,19 @@
this.$Message.success("鎿嶄綔鎴愬姛");
this.getDataList();
this.roleModalVisible = false;
+ this.areaForm={};
}
});
} else {
this.submitLoading = true;
+ this.$delete(this.areaForm,'children')
addArea(this.areaForm).then((res) => {
this.submitLoading = false;
if (res.success) {
this.$Message.success("鎿嶄綔鎴愬姛");
this.getDataList();
this.roleModalVisible = false;
+ this.areaForm={};
}
});
}
--
Gitblit v1.9.1