Compare commits
	
		
			No commits in common. "9b881fa370010edf9fbc3cb5827e419d51fb6669" and "8d2cfa59a6d90ea7a35f17ab7938ecb7712759b4" have entirely different histories. 
		
	
	
		
			9b881fa370
			...
			8d2cfa59a6
		
	
		| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 | 
			
		||||
        <div class="main-table common-box">
 | 
			
		||||
            <div class="tab-hed">
 | 
			
		||||
                <el-select v-model="formInline.region" placeholder="分类" clearable style="width: 200px;">
 | 
			
		||||
                <el-select v-model="formInline.region" placeholder="分类" clearable>
 | 
			
		||||
                    <el-option label="所有" value="shanghai" />
 | 
			
		||||
                    <el-option label="成品" value="shanghai" />
 | 
			
		||||
                    <el-option label="成品非追溯" value="shanghai" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,7 +67,7 @@
 | 
			
		|||
 | 
			
		||||
        <div class="main-table common-box">
 | 
			
		||||
            <div class="tab-hed">
 | 
			
		||||
                <el-select v-model="formInline.region" placeholder="分类" clearable  style="width: 200px;">
 | 
			
		||||
                <el-select v-model="formInline.region" placeholder="分类" clearable>
 | 
			
		||||
                    <el-option label="所有" value="shanghai" />
 | 
			
		||||
                    <el-option label="成品" value="shanghai" />
 | 
			
		||||
                    <el-option label="成品非追溯" value="shanghai" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -209,7 +209,7 @@ let option = ref({
 | 
			
		|||
                        color: rgb(210, 217, 222);
 | 
			
		||||
                    }
 | 
			
		||||
                    &>p:nth-child(2){
 | 
			
		||||
                    font-size: 20px;
 | 
			
		||||
                        font-size: 20px;
 | 
			
		||||
                        color: #4093f9;
 | 
			
		||||
                        margin-left: auto;
 | 
			
		||||
                    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -157,7 +157,7 @@ let option2  = {
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const handleChange = (value: any) => {
 | 
			
		||||
const handleChange = (value) => {
 | 
			
		||||
    console.log(value)
 | 
			
		||||
}
 | 
			
		||||
const formInline = reactive({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,13 +1,13 @@
 | 
			
		|||
<template>
 | 
			
		||||
	<div class="sys-menu-container">
 | 
			
		||||
		<el-dialog v-model="state.isShowDialog" draggable :close-on-click-modal="false" width="769px">
 | 
			
		||||
		<el-dialog v-model="state.isShowDialog" draggable :close-on-click-modal="false" width="700px">
 | 
			
		||||
			<template #header>
 | 
			
		||||
				<div style="color: #fff">
 | 
			
		||||
					<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"> <ele-Edit /> </el-icon>
 | 
			
		||||
					<span> {{ props.title }} </span>
 | 
			
		||||
				</div>
 | 
			
		||||
			</template>
 | 
			
		||||
			<el-form :model="state.ruleForm" ref="ruleFormRef" label-width="80px">
 | 
			
		||||
			<el-form :model="state.ruleForm" ref="ruleFormRef" label-width="auto">
 | 
			
		||||
				<el-row :gutter="35">
 | 
			
		||||
					<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
 | 
			
		||||
						<el-form-item label="上级菜单">
 | 
			
		||||
| 
						 | 
				
			
			@ -29,9 +29,9 @@
 | 
			
		|||
					<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
 | 
			
		||||
						<el-form-item label="菜单类型" prop="type" :rules="[{ required: true, message: '菜单类型不能为空', trigger: 'blur' }]">
 | 
			
		||||
							<el-radio-group v-model="state.ruleForm.type">
 | 
			
		||||
								<el-radio :label="1">目录</el-radio>
 | 
			
		||||
								<el-radio :label="2">菜单</el-radio>
 | 
			
		||||
								<el-radio :label="3">按钮</el-radio>
 | 
			
		||||
								<el-radio :value="1">目录</el-radio>
 | 
			
		||||
								<el-radio :value="2">菜单</el-radio>
 | 
			
		||||
								<el-radio :value="3">按钮</el-radio>
 | 
			
		||||
							</el-radio-group>
 | 
			
		||||
						</el-form-item>
 | 
			
		||||
					</el-col>
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +58,7 @@
 | 
			
		|||
						</el-col>
 | 
			
		||||
						<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
 | 
			
		||||
							<el-form-item label="菜单图标">
 | 
			
		||||
								<IconSelector v-model="state.ruleForm.icon" placeholder="菜单图标" type="all" />
 | 
			
		||||
								<IconSelector v-model="state.ruleForm.icon" :size="getGlobalComponentSize" placeholder="菜单图标" type="all" />
 | 
			
		||||
							</el-form-item>
 | 
			
		||||
						</el-col>
 | 
			
		||||
						<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
 | 
			
		||||
| 
						 | 
				
			
			@ -79,32 +79,32 @@
 | 
			
		|||
						<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
 | 
			
		||||
							<el-form-item label="是否隐藏">
 | 
			
		||||
								<el-radio-group v-model="state.ruleForm.isHide">
 | 
			
		||||
									<el-radio :label="true">隐藏</el-radio>
 | 
			
		||||
									<el-radio :label="false">不隐藏</el-radio>
 | 
			
		||||
									<el-radio :value="true">隐藏</el-radio>
 | 
			
		||||
									<el-radio :value="false">不隐藏</el-radio>
 | 
			
		||||
								</el-radio-group>
 | 
			
		||||
							</el-form-item>
 | 
			
		||||
						</el-col>
 | 
			
		||||
						<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
 | 
			
		||||
							<el-form-item label="是否缓存">
 | 
			
		||||
								<el-radio-group v-model="state.ruleForm.isKeepAlive">
 | 
			
		||||
									<el-radio :label="true">缓存</el-radio>
 | 
			
		||||
									<el-radio :label="false">不缓存</el-radio>
 | 
			
		||||
									<el-radio :value="true">缓存</el-radio>
 | 
			
		||||
									<el-radio :value="false">不缓存</el-radio>
 | 
			
		||||
								</el-radio-group>
 | 
			
		||||
							</el-form-item>
 | 
			
		||||
						</el-col>
 | 
			
		||||
						<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
 | 
			
		||||
							<el-form-item label="是否固定">
 | 
			
		||||
								<el-radio-group v-model="state.ruleForm.isAffix">
 | 
			
		||||
									<el-radio :label="true">固定</el-radio>
 | 
			
		||||
									<el-radio :label="false">不固定</el-radio>
 | 
			
		||||
									<el-radio :value="true">固定</el-radio>
 | 
			
		||||
									<el-radio :value="false">不固定</el-radio>
 | 
			
		||||
								</el-radio-group>
 | 
			
		||||
							</el-form-item>
 | 
			
		||||
						</el-col>
 | 
			
		||||
						<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
 | 
			
		||||
							<el-form-item label="是否内嵌">
 | 
			
		||||
								<el-radio-group v-model="state.ruleForm.isIframe">
 | 
			
		||||
									<el-radio :label="true">内嵌</el-radio>
 | 
			
		||||
									<el-radio :label="false">不内嵌</el-radio>
 | 
			
		||||
									<el-radio :value="true">内嵌</el-radio>
 | 
			
		||||
									<el-radio :value="false">不内嵌</el-radio>
 | 
			
		||||
								</el-radio-group>
 | 
			
		||||
							</el-form-item>
 | 
			
		||||
						</el-col>
 | 
			
		||||
| 
						 | 
				
			
			@ -124,8 +124,8 @@
 | 
			
		|||
					<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
 | 
			
		||||
						<el-form-item label="是否启用">
 | 
			
		||||
							<el-radio-group v-model="state.ruleForm.status">
 | 
			
		||||
								<el-radio :label="1">启用</el-radio>
 | 
			
		||||
								<el-radio :label="2">不启用</el-radio>
 | 
			
		||||
								<el-radio :value="1">启用</el-radio>
 | 
			
		||||
								<el-radio :value="2">不启用</el-radio>
 | 
			
		||||
							</el-radio-group>
 | 
			
		||||
						</el-form-item>
 | 
			
		||||
					</el-col>
 | 
			
		||||
| 
						 | 
				
			
			@ -147,10 +147,11 @@
 | 
			
		|||
</template>
 | 
			
		||||
 | 
			
		||||
<script lang="ts" setup name="sysEditMenu">
 | 
			
		||||
import { reactive, ref } from 'vue';
 | 
			
		||||
import { computed, reactive, ref } from 'vue';
 | 
			
		||||
import IconSelector from '/@/components/iconSelector/index.vue';
 | 
			
		||||
 | 
			
		||||
import { getAPI } from '/@/utils/axios-utils';
 | 
			
		||||
import other from '/@/utils/other';
 | 
			
		||||
import { SysMenuApi } from '/@/api-services/api';
 | 
			
		||||
import { SysMenu, UpdateMenuInput } from '/@/api-services/models';
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -165,10 +166,16 @@ const state = reactive({
 | 
			
		|||
	ruleForm: {} as UpdateMenuInput,
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
// 获取全局组件大小
 | 
			
		||||
const getGlobalComponentSize = computed(() => {
 | 
			
		||||
	return other.globalComponentSize();
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
// 打开弹窗
 | 
			
		||||
const openDialog = (row: any) => {
 | 
			
		||||
	state.ruleForm = JSON.parse(JSON.stringify(row));
 | 
			
		||||
	state.isShowDialog = true;
 | 
			
		||||
	ruleFormRef.value?.resetFields();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// 关闭弹窗
 | 
			
		||||
| 
						 | 
				
			
			@ -197,4 +204,4 @@ const submit = () => {
 | 
			
		|||
 | 
			
		||||
// 导出对象
 | 
			
		||||
defineExpose({ openDialog });
 | 
			
		||||
</script>
 | 
			
		||||
</script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue