更新2.1.2版本,优化部门、角色权限,增加上下级关系;增加登录、系统、短信日志;优化省市区编码

This commit is contained in:
孟帅
2023-01-25 11:49:21 +08:00
parent 11fad0132d
commit 93e0fe7250
190 changed files with 35896 additions and 7208 deletions

View File

@@ -4,7 +4,7 @@
v-model:show="isShowModal"
:show-icon="false"
preset="dialog"
:title="params?.id > 0 ? '编辑 #' + params?.id : '新建'"
:title="params?.id > 0 ? '编辑 #' + params?.id : '添加'"
:style="{
width: dialogWidth,
}"

View File

@@ -42,7 +42,7 @@
<PlusOutlined />
</n-icon>
</template>
新建
添加
</n-button>
<n-button
type="error"
@@ -246,4 +246,4 @@
}
</script>
<style lang="less" scoped></style>
<style lang="less" scoped></style>

View File

@@ -9,12 +9,11 @@ import { getFileExt } from '@/utils/urlUtils';
import { defRangeShortcuts, defShortcuts, formatToDate } from '@/utils/dateUtil';
import { validate } from '@/utils/validateUtil';
import { getOptionLabel, getOptionTag, Options } from '@/utils/hotgo';
import { errorImg } from '@/utils/hotgo';
import { usePermission } from '@/hooks/web/usePermission';
const { hasPermission } = usePermission();
const $message = window['$message'];
export interface State {
id: number;
categoryId: number;
@@ -62,8 +61,7 @@ export const options = ref<Options>({
sys_normal_disable: [],
});
export const rules = {
};
export const rules = {};
export const schemas = ref<FormSchema[]>([
{
@@ -141,6 +139,7 @@ export const columns = [
width: 32,
height: 32,
src: row.image,
onError: errorImg,
style: {
width: '32px',
height: '32px',
@@ -226,17 +225,15 @@ export const columns = [
async function loadOptions() {
options.value = await Dicts({
types: [
'sys_normal_disable',
],
types: ['sys_normal_disable'],
});
for (const item of schemas.value) {
switch (item.field) {
case 'status':
item.componentProps.options = options.value.sys_normal_disable;
break;
}
}
}
}
await loadOptions();
await loadOptions();