no message

This commit is contained in:
小陌 2023-07-14 19:02:55 +08:00
parent 7706be0dee
commit 710d335190
3 changed files with 11 additions and 5 deletions

View File

@ -26,7 +26,7 @@
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
@ -123,6 +123,8 @@
left:0px !important; left:0px !important;
height: 100% !important; height: 100% !important;
--el-dialog-width:100%; --el-dialog-width:100%;
width: 100% !important;
--el-dialog-margin-top:0 !important;
} }
.x-dialog:deep(.el-dialog).is-fullscreen { .x-dialog:deep(.el-dialog).is-fullscreen {

View File

@ -2,7 +2,7 @@
* @Descripttion: 编辑 * @Descripttion: 编辑
--> -->
<template> <template>
<x-dialog :title="(config.name || titleMap[mode]) || '编辑'" v-model="visible" :size="960" destroy-on-close @closed="$emit('closed')"> <x-dialog :title="(config.name || titleMap[mode]) || '编辑'" v-model="visible" :style="style" destroy-on-close @closed="$emit('closed')">
<el-skeleton v-if="loading" :rows="4" /> <el-skeleton v-if="loading" :rows="4" />
<x-form ref="formref" :config="config" v-model="data" v-if="!loading" :loading="loading"> </x-form> <x-form ref="formref" :config="config" v-model="data" v-if="!loading" :loading="loading"> </x-form>
<template #footer> <template #footer>
@ -29,6 +29,7 @@
edit: '编辑' edit: '编辑'
}, },
data: {}, data: {},
style: {},
config: { config: {
column : this.column, column : this.column,
labelPosition : "right", labelPosition : "right",
@ -91,7 +92,6 @@
if (res.code == 200 ) { if (res.code == 200 ) {
this.loading = false; this.loading = false;
if (res.data.config) { if (res.data.config) {
Object.assign(this.config, res.data.config); Object.assign(this.config, res.data.config);
} }
@ -103,6 +103,10 @@
if (res.data.token) { if (res.data.token) {
this.token = res.data.token this.token = res.data.token
} }
if (res.data.style) {
this.style = res.data.style;
}
return; return;
} }
this.$alert(res.message, "提示", {type: 'error'}); this.$alert(res.message, "提示", {type: 'error'});

View File

@ -15,7 +15,7 @@
<el-button @click="xupdate('message', '发送消息')" type="info" size="small" style="padding:5px"> <el-button @click="xupdate('message', '发送消息')" type="info" size="small" style="padding:5px">
发送消息 发送消息
</el-button> </el-button>
<el-button @click="xupdate('userinfo', '编辑信息')" type="info" color="#607d8b" size="small" style="padding:5px"> <el-button @click="xupdate('user', '编辑信息')" type="info" color="#607d8b" size="small" style="padding:5px">
编辑信息 编辑信息
</el-button> </el-button>
</el-button-group> </el-button-group>
@ -156,7 +156,7 @@
xupdate(key, name){ xupdate(key, name){
this.updateKey = key; this.updateKey = key;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.xupdate.open().setConfig({name:name, remoteurl:'fdsafsdaf/fdsaf/af/afa'}); this.$refs.xupdate.open().setConfig({name:name, remoteurl:'system/user/getUpdate?name='+key+'&token='+this.token});
}) })
}, },