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-select>
</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 -->
<template v-else-if="item.component == 'checkboxGroup'">
<el-checkbox-group v-model="data[item.name]">
@ -105,7 +113,7 @@
<el-tab-pane v-for="t in item.options.items" :key="t.value" :label="t.label" :name="t.value">
<template #label>
<el-badge is-dot v-if="data[item.name][t.value]"> </el-badge>
<span>{{ t.label }}</span>
<span>{{ t.label }}</span>
</template>
<el-input v-model="data[item.name][t.value]" type="textarea" :rows="item.options.rows || 6" show-word-limit></el-input>
</el-tab-pane>

View File

@ -24,7 +24,7 @@
<el-button @click="xupdate('message', '发送消息', 'drawer')" type="info" size="small">
系统消息
</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>
</div>

View File

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