no message
This commit is contained in:
parent
7706be0dee
commit
710d335190
@ -26,7 +26,7 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
@ -123,6 +123,8 @@
|
||||
left:0px !important;
|
||||
height: 100% !important;
|
||||
--el-dialog-width:100%;
|
||||
width: 100% !important;
|
||||
--el-dialog-margin-top:0 !important;
|
||||
}
|
||||
|
||||
.x-dialog:deep(.el-dialog).is-fullscreen {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Descripttion: 编辑
|
||||
-->
|
||||
<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" />
|
||||
<x-form ref="formref" :config="config" v-model="data" v-if="!loading" :loading="loading"> </x-form>
|
||||
<template #footer>
|
||||
@ -29,6 +29,7 @@
|
||||
edit: '编辑'
|
||||
},
|
||||
data: {},
|
||||
style: {},
|
||||
config: {
|
||||
column : this.column,
|
||||
labelPosition : "right",
|
||||
@ -91,7 +92,6 @@
|
||||
if (res.code == 200 ) {
|
||||
|
||||
this.loading = false;
|
||||
|
||||
if (res.data.config) {
|
||||
Object.assign(this.config, res.data.config);
|
||||
}
|
||||
@ -103,6 +103,10 @@
|
||||
if (res.data.token) {
|
||||
this.token = res.data.token
|
||||
}
|
||||
|
||||
if (res.data.style) {
|
||||
this.style = res.data.style;
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.$alert(res.message, "提示", {type: 'error'});
|
||||
|
@ -15,7 +15,7 @@
|
||||
<el-button @click="xupdate('message', '发送消息')" type="info" size="small" style="padding:5px">
|
||||
发送消息
|
||||
</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-group>
|
||||
@ -156,7 +156,7 @@
|
||||
xupdate(key, name){
|
||||
this.updateKey = key;
|
||||
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});
|
||||
})
|
||||
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user