代码调整
This commit is contained in:
parent
7ed113aebb
commit
9968af2ecd
@ -17,7 +17,7 @@ import EditConfigGateway from './editConfigGateway';
|
||||
import EditConfig from './editConfig';
|
||||
import EditConfigScreen from './editConfigScreen';
|
||||
import EditConfigIbp from './editConfigIbp';
|
||||
import { getSessionStorage } from '@/utils/auth';
|
||||
import { getAllBackProjectConfig } from '@/api/projectConfig';
|
||||
import ConstConfig from '@/scripts/ConstConfig';
|
||||
export default {
|
||||
name: 'DeviceManage',
|
||||
@ -39,7 +39,8 @@ export default {
|
||||
},
|
||||
// projectCode:'',
|
||||
deviceTypeList:ConstConfig.ConstSelect.projectDeviceTypeList,
|
||||
projectList: ConstConfig.ConstSelect.projectList,
|
||||
// ConstConfig.ConstSelect.projectList
|
||||
projectList: [],
|
||||
queryForm: {
|
||||
labelWidth: '120px',
|
||||
reset: true,
|
||||
@ -60,7 +61,7 @@ export default {
|
||||
type: 'select',
|
||||
label: '所属项目',
|
||||
config: {
|
||||
data: ConstConfig.ConstSelect.projectList
|
||||
data: []
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -125,8 +126,17 @@ export default {
|
||||
currentModel: {}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
// this.projectCode = getSessionStorage('project') || '';
|
||||
mounted() {
|
||||
getAllBackProjectConfig().then(response => {
|
||||
const projectList = [];
|
||||
const data = response.data;
|
||||
data.forEach(element => {
|
||||
projectList.push({label:element.name, value: element.code});
|
||||
});
|
||||
this.projectList = projectList;
|
||||
this.queryForm.queryObject.projectCode.config.data = projectList;
|
||||
});
|
||||
|
||||
},
|
||||
methods: {
|
||||
beforeQuery(params) {
|
||||
|
Loading…
Reference in New Issue
Block a user