mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 06:50:51 +00:00
improve: modal调整
This commit is contained in:
parent
defc7ea505
commit
8ffb391e23
@ -4,7 +4,6 @@
|
||||
v-model="modals"
|
||||
width="700"
|
||||
scrollable
|
||||
footer-hide
|
||||
closable
|
||||
:title="titleFrom"
|
||||
:mask-closable="false"
|
||||
@ -60,9 +59,8 @@
|
||||
<FormItem label="路由地址:" prop="menu_path">
|
||||
<Input v-model="formValidate.menu_path" placeholder="请输入路由地址">
|
||||
<template #prepend>
|
||||
<span>{{$routeProStr}}</span>
|
||||
<span>{{ $routeProStr }}</span>
|
||||
</template>
|
||||
|
||||
</Input>
|
||||
</FormItem>
|
||||
</Col>
|
||||
@ -107,12 +105,12 @@
|
||||
</RadioGroup>
|
||||
</FormItem>
|
||||
</Col>
|
||||
|
||||
<Col span="24">
|
||||
<Button type="primary" long @click="handleSubmit('formValidate')" :disabled="valids">提交</Button>
|
||||
</Col>
|
||||
</Row>
|
||||
</Form>
|
||||
<template #footer>
|
||||
<Button @click="modals = false">取消</Button>
|
||||
<Button type="primary" @click="handleSubmit('formValidate')" :disabled="valids">提交</Button>
|
||||
</template>
|
||||
</Modal>
|
||||
<Modal v-model="modal12" scrollable width="600" title="图标选择" footer-hide>
|
||||
<Input
|
||||
|
||||
@ -951,31 +951,36 @@ export default {
|
||||
},
|
||||
// 赠送会员等级
|
||||
giveLevel(id) {
|
||||
giveLevelApi(id)
|
||||
.then(async (res) => {
|
||||
if (res.data.status === false) {
|
||||
return this.$authLapse(res.data);
|
||||
}
|
||||
this.FromData = res.data;
|
||||
this.$refs.edits.modals = true;
|
||||
})
|
||||
.catch((res) => {
|
||||
this.$Message.error(res.msg);
|
||||
});
|
||||
this.$modalForm(giveLevelApi(id)).then(() => this.getList(1));
|
||||
|
||||
// giveLevelApi(id)
|
||||
// .then(async (res) => {
|
||||
// if (res.data.status === false) {
|
||||
// return this.$authLapse(res.data);
|
||||
// }
|
||||
|
||||
// this.FromData = res.data;
|
||||
// this.$refs.edits.modals = true;
|
||||
// })
|
||||
// .catch((res) => {
|
||||
// this.$Message.error(res.msg);
|
||||
// });
|
||||
},
|
||||
// 赠送会员等级
|
||||
giveLevelTime(id) {
|
||||
giveLevelTimeApi(id)
|
||||
.then(async (res) => {
|
||||
if (res.data.status === false) {
|
||||
return this.$authLapse(res.data);
|
||||
}
|
||||
this.FromData = res.data;
|
||||
this.$refs.edits.modals = true;
|
||||
})
|
||||
.catch((res) => {
|
||||
this.$Message.error(res.msg);
|
||||
});
|
||||
this.$modalForm(giveLevelTimeApi(id)).then(() => this.getList(1));
|
||||
|
||||
// giveLevelTimeApi(id)
|
||||
// .then(async (res) => {
|
||||
// if (res.data.status === false) {
|
||||
// return this.$authLapse(res.data);
|
||||
// }
|
||||
// this.FromData = res.data;
|
||||
// this.$refs.edits.modals = true;
|
||||
// })
|
||||
// .catch((res) => {
|
||||
// this.$Message.error(res.msg);
|
||||
// });
|
||||
},
|
||||
// 删除
|
||||
del(row, tit, num, name) {
|
||||
@ -1131,32 +1136,9 @@ export default {
|
||||
this.$Message.error(res.msg);
|
||||
});
|
||||
},
|
||||
// getUserFrom(id) {
|
||||
// getUserData(id)
|
||||
// .then(async (res) => {
|
||||
// if (res.data.status === false) {
|
||||
// return this.$authLapse(res.data);
|
||||
// }
|
||||
// this.FromData = res.data;
|
||||
// this.$refs.edits.modals = true;
|
||||
// })
|
||||
// .catch((res) => {
|
||||
// this.$Message.error(res.msg);
|
||||
// });
|
||||
// },
|
||||
// 获取积分余额表单
|
||||
getOtherFrom(id) {
|
||||
editOtherApi(id)
|
||||
.then(async (res) => {
|
||||
if (res.data.status === false) {
|
||||
return this.$authLapse(res.data);
|
||||
}
|
||||
this.FromData = res.data;
|
||||
this.$refs.edits.modals = true;
|
||||
})
|
||||
.catch((res) => {
|
||||
this.$Message.error(res.msg);
|
||||
});
|
||||
this.$modalForm(editOtherApi(id)).then(() => this.getList(1));
|
||||
},
|
||||
// 修改状态
|
||||
onchangeIsShow(row) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user