站点的修改

This commit is contained in:
熊丽君
2022-01-19 13:41:07 +08:00
parent a35876764c
commit 122a16e856
4 changed files with 35 additions and 12 deletions

View File

@ -1,9 +1,10 @@
import request from '@/utils/request'
// 专家审核列表
export function getCache() {
export function expertList(data) {
return request({
url: '/monitor/cache',
method: 'get',
url: '/admin/v1/manage/expert',
method: 'post',
data,
})
}

View File

@ -1,7 +1,7 @@
<template>
<el-cascader
size="small"
style="width: 240px"
:size="size"
:style="{ width: limitWidth ? '240px' : '100%' }"
v-model="tenant_id"
clearable
separator="-"
@ -16,6 +16,14 @@ import { tenantSelect } from "@/api/subPlatform/tenant";
export default {
props: {
value: String,
size: {
type: String,
default: "small",
},
limitWidth: {
type: Boolean,
default: true,
},
},
data() {
return {
@ -24,13 +32,16 @@ export default {
};
},
watch: {
value(newVal, oldVal) {
value: {
handler(newVal, oldVal) {
if (newVal == "") {
this.tenant_id = undefined;
} else {
this.tenant_id = newVal;
}
},
immediate: true,
},
tenant_id(newVal, oldVal) {
this.$emit("handleChange", newVal);
},

View File

@ -20,7 +20,7 @@ import './permission' // permission control
import { getDicts } from '@/api/system/dict/data'
import { getConfigKey } from '@/api/system/config'
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from '@/utils/ruoyi'
import { modeOptions } from '@/utils/parameter'
import { modeOptions, educationOptions } from '@/utils/parameter'
// 分页组件
import Pagination from '@/components/Pagination'
// 自定义表格工具组件
@ -54,6 +54,7 @@ Vue.prototype.download = download
Vue.prototype.handleTree = handleTree
Vue.prototype.md5 = md5
Vue.prototype.modeOptions = modeOptions
Vue.prototype.educationOptions = educationOptions
// 全局组件挂载
Vue.component('DictTag', DictTag)

View File

@ -17,3 +17,13 @@ export const modeOptions = [
label: '科研院所服务',
},
]
// 学历
export const educationOptions = [
{ key: 1, text: '小学' },
{ key: 2, text: '初中' },
{ key: 3, text: '高中' },
{ key: 4, text: '大专' },
{ key: 5, text: '本科' },
{ key: 6, text: '研究生' },
{ key: 7, text: '博士' },
]