修正字典数据
This commit is contained in:
@@ -23,7 +23,6 @@ const props = defineProps({
|
|||||||
|
|
||||||
/**遍历找到对应值数据项 */
|
/**遍历找到对应值数据项 */
|
||||||
const item = computed(() => {
|
const item = computed(() => {
|
||||||
console.log(props.options);
|
|
||||||
if (Array.isArray(props.options) && props.options.length > 0) {
|
if (Array.isArray(props.options) && props.options.length > 0) {
|
||||||
let option = props.options.find(
|
let option = props.options.find(
|
||||||
item => `${item[props.valueField]}` === `${props.value}`
|
item => `${item[props.valueField]}` === `${props.value}`
|
||||||
|
|||||||
@@ -592,8 +592,8 @@ const local: any = {
|
|||||||
},
|
},
|
||||||
log:{
|
log:{
|
||||||
logId:'Log ID',
|
logId:'Log ID',
|
||||||
module:'System Module',
|
module:'Module Title',
|
||||||
operType:'Operation Type',
|
operType:'Business Type',
|
||||||
operName:'Operator',
|
operName:'Operator',
|
||||||
operIp:'Operation Address',
|
operIp:'Operation Address',
|
||||||
operArea:'Operation Location',
|
operArea:'Operation Location',
|
||||||
@@ -603,6 +603,10 @@ const local: any = {
|
|||||||
backUser:'Back User',
|
backUser:'Back User',
|
||||||
phoneUser:'Phone User',
|
phoneUser:'Phone User',
|
||||||
other:'Other',
|
other:'Other',
|
||||||
|
operUrl:'Operation URL',
|
||||||
|
operParam:'Operation Parameters',
|
||||||
|
jsonResult:"Result",
|
||||||
|
title:"Log Management",
|
||||||
},
|
},
|
||||||
task:{
|
task:{
|
||||||
taskId:'ID',
|
taskId:'ID',
|
||||||
|
|||||||
@@ -592,8 +592,8 @@ const local:any = {
|
|||||||
},
|
},
|
||||||
log:{
|
log:{
|
||||||
logId:'日志编号',
|
logId:'日志编号',
|
||||||
module:'系统模块',
|
module:'模块标题',
|
||||||
operType:'操作类型',
|
operType:'业务类型',
|
||||||
operName:'操作人员',
|
operName:'操作人员',
|
||||||
operIp:'操作地址',
|
operIp:'操作地址',
|
||||||
operArea:'操作地点',
|
operArea:'操作地点',
|
||||||
@@ -603,6 +603,10 @@ const local:any = {
|
|||||||
backUser:'后台用户',
|
backUser:'后台用户',
|
||||||
phoneUser:'手机用户',
|
phoneUser:'手机用户',
|
||||||
other:'其他',
|
other:'其他',
|
||||||
|
operUrl:'请求URL',
|
||||||
|
operParam:'请求参数',
|
||||||
|
jsonResult:"结果",
|
||||||
|
title:"日志管理",
|
||||||
},
|
},
|
||||||
task:{
|
task:{
|
||||||
taskId:'编号',
|
taskId:'编号',
|
||||||
|
|||||||
@@ -36,7 +36,17 @@ export const doDeleteDict = (dictId: string | number) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询字典类型详细
|
||||||
|
* @param dictId 字典编号
|
||||||
|
* @returns object
|
||||||
|
*/
|
||||||
|
export function doGetType(dictId: string | number) {
|
||||||
|
return request({
|
||||||
|
url: `/system/dict/type/${dictId}`,
|
||||||
|
method: 'get',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
// 指定任务id数据列表
|
// 指定任务id数据列表
|
||||||
if (dictId && dictId !== '0') {
|
if (dictId && dictId !== '0') {
|
||||||
doGetDataInfo(dictId).then(res => {
|
doGetType(dictId).then(res => {
|
||||||
if (!res.error) {
|
if (!res.error) {
|
||||||
searchParams.dictType = res.data.dictType;
|
searchParams.dictType = res.data.dictType;
|
||||||
getData();
|
getData();
|
||||||
|
|||||||
Reference in New Issue
Block a user