From eef1cd4c6ffd669d43fd525918bda9ed3db7e25a Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期六, 30 十一月 2024 15:53:05 +0800
Subject: [PATCH] 修改bug
---
ruoyi-ui/src/views/system/family/index.vue | 25 ++++++++++---------------
1 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/ruoyi-ui/src/views/system/family/index.vue b/ruoyi-ui/src/views/system/family/index.vue
index 23e196b..de5de6f 100644
--- a/ruoyi-ui/src/views/system/family/index.vue
+++ b/ruoyi-ui/src/views/system/family/index.vue
@@ -71,13 +71,13 @@
@click="handleUpdate(scope.row)"
v-hasPermi="['system:role:edit']"
>淇敼</el-button>
- <el-button
+ <!-- <el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:role:remove']"
- >鍒犻櫎</el-button>
+ >鍒犻櫎</el-button> -->
</template>
</el-table-column>
@@ -98,17 +98,6 @@
<el-input v-model="form.name" placeholder="璇疯緭鍏ュ搴悕绉�" @blur="chongf()"/>
</el-form-item>
- <el-form-item label="鏈鎴愬憳" prop="fid">
- <el-select v-model="form.fid" :disabled="ts" placeholder="璇烽�夋嫨" @change="handleChange">
- <el-option
- v-for="item in fatherInfo"
- :key="item.id"
- :label="item.label"
- :value="item.id"
- ></el-option>
- </el-select>
-
- </el-form-item>
@@ -207,7 +196,8 @@
id: undefined,
name: undefined,
mid: undefined,
- fid: undefined
+ fid: undefined,
+ clanId: undefined
},
defaultProps: {
children: "children",
@@ -233,8 +223,9 @@
methods: {
chongf(){
//alert(2)
+ let clanId = this.$store.state.user.clanId
if(this.form.name!=""){
- findByFname(this.form.name).then(response => {
+ findByFname(this.form.name, clanId).then(response => {
console.log(response.data)
// alert(response.data!=null)
if(response.data!=null)
@@ -268,6 +259,7 @@
},
getAllUser(){
let clanId = this.$store.state.user.clanId
+
getAllInfo(clanId).then(response=>{
let fams = response.data
let _this = this;
@@ -288,6 +280,7 @@
this.loading = true;
let clanId = this.$store.state.user.clanId
// alert(clanId)
+ //alert(clanId)
this.queryParams.clanId = clanId;
listFamily(this.queryParams).then(response => {
console.log(response)
@@ -483,6 +476,8 @@
/** 鎻愪氦鎸夐挳 */
submitForm: function() {
let _this = this
+ let clanId = this.$store.state.user.clanId
+ this.form.clanId = clanId
this.$refs["form"].validate(valid => {
if (valid) {
// alert(this.form.id)
--
Gitblit v1.9.1