|
|
@@ -11,10 +11,15 @@
|
|
|
<el-button @click="openComponent('Roles')">查看</el-button>
|
|
|
</el-form-item>
|
|
|
</fieldset>
|
|
|
- <fieldset class="g-fieldset el-form--horizontal">
|
|
|
+ <fieldset class="g-fieldset el-form--vertical">
|
|
|
<legend class="g-fieldset__legend">权限信息</legend>
|
|
|
- 会员市场:
|
|
|
- </fieldset>
|
|
|
+ <el-form-item label="会员市场:" prop="marketid" >
|
|
|
+ <el-checkbox-group v-model="formData.marketids">
|
|
|
+ <el-checkbox v-for="item in data?.markets" v-bind:key="item.marketid"
|
|
|
+ :label="item.marketname" :value="item.marketid"/>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </fieldset>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<el-button @click="onCancel(false)">{{ t('operation.cancel') }}</el-button>
|
|
|
@@ -45,6 +50,11 @@ const props = defineProps({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+const componentMap = new Map<string, unknown>([
|
|
|
+ ['Roles', defineAsyncComponent(() => import('@pc/components/modules/roles/index.vue'))], // 角色权限信息
|
|
|
+])
|
|
|
+const { componentRef, componentId, openComponent, closeComponent } = useComponent()
|
|
|
+
|
|
|
const { data, loading } = useRequest(initAdd, {
|
|
|
params: {
|
|
|
role: 'industry'
|
|
|
@@ -54,20 +64,13 @@ const { data, loading } = useRequest(initAdd, {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-const componentMap = new Map<string, unknown>([
|
|
|
- ['Roles', defineAsyncComponent(() => import('@pc/components/modules/roles/index.vue'))], // 角色权限信息
|
|
|
-])
|
|
|
-const { componentRef, componentId, openComponent, closeComponent } = useComponent()
|
|
|
-
|
|
|
const formData = ref<Partial<Member.RoleAddReq>>({
|
|
|
roleid: 9
|
|
|
})
|
|
|
|
|
|
// 表单验证规则
|
|
|
const formRules: FormRules = {
|
|
|
- userid: [{ required: true }],
|
|
|
- marketid: [{ required: true }],
|
|
|
- goodsid: [{ required: true }],
|
|
|
+ userid: [{ required: true }]
|
|
|
}
|
|
|
|
|
|
const onSubmit = () => {
|