|
|
export default {
|
|
|
name: 'machineRoomComponents',
|
|
|
template: '',
|
|
|
components: {
|
|
|
'GetMachineRoom': Vue.defineAsyncComponent(
|
|
|
() => myImport('views/commonComponents/getMachineRoom/index')
|
|
|
),
|
|
|
},
|
|
|
props: {
|
|
|
// 资源名称
|
|
|
textString: {
|
|
|
type: String,
|
|
|
default: 0
|
|
|
},
|
|
|
resId: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
},
|
|
|
resTypeId: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
},
|
|
|
resType: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
},
|
|
|
optionData: {
|
|
|
type: Array,
|
|
|
default: []
|
|
|
}
|
|
|
|
|
|
},
|
|
|
data() {
|
|
|
return {}
|
|
|
},
|
|
|
setup(props, {attrs, slots, emit}) {
|
|
|
|
|
|
const {proxy} = Vue.getCurrentInstance();
|
|
|
|
|
|
let dialogFlg = Vue.ref(false);
|
|
|
let commandNameData = Vue.ref([
|
|
|
{
|
|
|
name: '萧山IDC二号机房',
|
|
|
htmlName: 'xiaoshansecond',//html页面的名称
|
|
|
val: 'one'
|
|
|
},
|
|
|
{
|
|
|
name: '萧山IDC三号机房',
|
|
|
htmlName: 'xiaoshanthird',
|
|
|
val: 'two'
|
|
|
},
|
|
|
{
|
|
|
name: '萧山IDC七号机房',
|
|
|
htmlName: 'xiaoshanseven',
|
|
|
val: 'three'
|
|
|
}
|
|
|
]);
|
|
|
|
|
|
let showMachineRoomDialog = (flg) => {
|
|
|
dialogFlg.value = flg;
|
|
|
debugger
|
|
|
console.log(props.optionData);
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
dialogFlg,
|
|
|
commandNameData,
|
|
|
showMachineRoomDialog,
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|