no message

This commit is contained in:
小陌 2024-01-30 19:05:20 +08:00
parent e076c31650
commit 58c8f4f633
3 changed files with 10 additions and 6 deletions

View File

@ -28,6 +28,14 @@
<el-option v-for="option in item.options.items" :key="option.value" :label="option.label || option.name" :value="option.value"></el-option> <el-option v-for="option in item.options.items" :key="option.value" :label="option.label || option.name" :value="option.value"></el-option>
</el-select> </el-select>
</template> </template>
<!-- selectgroup -->
<template v-else-if="item.component == 'selectgroup'">
<el-select v-model="data[item.name]" v-bind="item.bind" clearable filterable style="width: 100%;">
<el-option-group v-for="group in item.options" :key="group.label" :label="group.label">
<el-option v-for="item in group.options" :key="item.value" :label="item.label" :value="item.value" />
</el-option-group>
</el-select>
</template>
<!-- checkboxGroup --> <!-- checkboxGroup -->
<template v-else-if="item.component == 'checkboxGroup'"> <template v-else-if="item.component == 'checkboxGroup'">
<el-checkbox-group v-model="data[item.name]"> <el-checkbox-group v-model="data[item.name]">

View File

@ -24,7 +24,7 @@
<el-button @click="xupdate('message', '发送消息', 'drawer')" type="info" size="small"> <el-button @click="xupdate('message', '发送消息', 'drawer')" type="info" size="small">
系统消息 系统消息
</el-button> </el-button>
<el-button @click="xupdate('user', '编辑信息')" type="info" color="#607d8b" size="small"> <el-button @click="xupdate('user.index@updateTable', '编辑信息')" type="info" color="#607d8b" size="small">
编辑资料 编辑资料
</el-button> </el-button>
</div> </div>

View File

@ -81,8 +81,6 @@
</div> </div>
</div> </div>
</template> </template>
<template #footer> <template #footer>
<el-button @click="dialogVisible = false"> </el-button> <el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="save"> </el-button> <el-button type="primary" @click="save"> </el-button>
@ -133,14 +131,12 @@
this.value = data||[] this.value = data||[]
this.selected = JSON.parse(JSON.stringify(data||[])) this.selected = JSON.parse(JSON.stringify(data||[]))
this.dialogVisible = true this.dialogVisible = true
if(this.type==1){ if(this.type==1){
this.getGroup() this.getGroup()
this.getUser() this.getUser()
}else if(this.type==2){ }else if(this.type==2){
this.getRole() this.getRole()
} }
}, },
// //
async getGroup(){ async getGroup(){