mirror of https://github.com/veops/cmdb.git
parent
4261f6fb57
commit
3faefbe8d3
|
@ -110,8 +110,8 @@ export default {
|
||||||
total: '{range0}-{range1} of {total} items'
|
total: '{range0}-{range1} of {total} items'
|
||||||
},
|
},
|
||||||
topMenu: {
|
topMenu: {
|
||||||
personalCenter: 'Personal Center',
|
personalCenter: 'My Profile',
|
||||||
logout: 'logout',
|
logout: 'Logout',
|
||||||
confirmLogout: 'Are you sure to log out?'
|
confirmLogout: 'Are you sure to log out?'
|
||||||
},
|
},
|
||||||
cmdbFilterComp: {
|
cmdbFilterComp: {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<template>
|
<template>
|
||||||
<CustomDrawer
|
<CustomDrawer
|
||||||
width="800px"
|
width="800px"
|
||||||
placement="left"
|
placement="left"
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<a-select-option v-for="type in resourceTypes" :value="type.id" :key="type.id">{{ type.name }}</a-select-option>
|
<a-select-option v-for="type in resourceTypes" :value="type.id" :key="type.id">{{ type.name }}</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<vxe-table
|
<ops-table
|
||||||
size="mini"
|
size="mini"
|
||||||
stripe
|
stripe
|
||||||
class="ops-stripe-table"
|
class="ops-stripe-table"
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
v-model="option.data"
|
v-model="option.data"
|
||||||
@input="$panel.changeOption($event, !!option.data, option)"
|
@input="$panel.changeOption($event, !!option.data, option)"
|
||||||
@keyup.enter="$panel.confirmFilter()"
|
@keyup.enter="$panel.confirmFilter()"
|
||||||
placeholder="按回车确认筛选"
|
:placeholder="$t('acl.pressEnter')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
@ -53,11 +53,7 @@
|
||||||
<a-tag color="cyan" v-for="(r, index) in row.permissions" :key="index">{{ r }}</a-tag>
|
<a-tag color="cyan" v-for="(r, index) in row.permissions" :key="index">{{ r }}</a-tag>
|
||||||
</template>
|
</template>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
<template slot="empty">
|
</ops-table>
|
||||||
<img :src="require(`@/assets/data_empty.png`)" />
|
|
||||||
<p style="font-size: 14px; line-height: 17px; color: rgba(0, 0, 0, 0.6)">暂无数据</p>
|
|
||||||
</template>
|
|
||||||
</vxe-table>
|
|
||||||
</CustomDrawer>
|
</CustomDrawer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -82,7 +78,7 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
windowHeight: state => state.windowHeight,
|
windowHeight: (state) => state.windowHeight,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -97,7 +93,7 @@ export default {
|
||||||
loadResourceTypes() {
|
loadResourceTypes() {
|
||||||
this.resourceTypes = []
|
this.resourceTypes = []
|
||||||
const appId = this.$route.name.split('_')[0]
|
const appId = this.$route.name.split('_')[0]
|
||||||
searchResourceType({ app_id: appId }).then(res => {
|
searchResourceType({ app_id: appId }).then((res) => {
|
||||||
this.resourceTypes = res.groups
|
this.resourceTypes = res.groups
|
||||||
if (res.groups && res.groups.length > 0) {
|
if (res.groups && res.groups.length > 0) {
|
||||||
this.typeSelected = res.groups[0].id
|
this.typeSelected = res.groups[0].id
|
||||||
|
@ -115,7 +111,7 @@ export default {
|
||||||
searchPermResourceByRoleId(this.rid, {
|
searchPermResourceByRoleId(this.rid, {
|
||||||
resource_type_id: this.typeSelected,
|
resource_type_id: this.typeSelected,
|
||||||
app_id: this.$route.name.split('_')[0],
|
app_id: this.$route.name.split('_')[0],
|
||||||
}).then(res => {
|
}).then((res) => {
|
||||||
this.records = res.resources
|
this.records = res.resources
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -133,8 +129,8 @@ export default {
|
||||||
},
|
},
|
||||||
copyResourceName() {
|
copyResourceName() {
|
||||||
const val = this.records
|
const val = this.records
|
||||||
.filter(item => item.name.toLowerCase().includes(this.filterName.toLowerCase()))
|
.filter((item) => item.name.toLowerCase().includes(this.filterName.toLowerCase()))
|
||||||
.map(item => item.name)
|
.map((item) => item.name)
|
||||||
.join('\n')
|
.join('\n')
|
||||||
|
|
||||||
this.copy(val, () => {
|
this.copy(val, () => {
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :label="$t('acl.enable') / $t('acl.disable')">
|
<a-form-item :label="`${$t('acl.enable')} / ${$t('acl.disable')}`">
|
||||||
<a-switch v-decorator="['enabled', { rules: [], valuePropName: 'checked', initialValue: true }]" />
|
<a-switch v-decorator="['enabled', { rules: [], valuePropName: 'checked', initialValue: true }]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<a-form-item :label="$t('acl.addUser')" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
<a-form-item :label="$t('acl.addUser')" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col span="15">
|
<a-col span="15">
|
||||||
<el-select v-model="selectedChildrenRole" multiple collapse-tags size="small" filterable>
|
<el-select v-model="selectedChildrenRole" multiple collapse-tags size="small" filterable :placeholder="$t('placeholder2')">
|
||||||
<el-option
|
<el-option
|
||||||
class="drop-down-render"
|
class="drop-down-render"
|
||||||
v-for="role in allRoles"
|
v-for="role in allRoles"
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<!-- 1 -->
|
<!-- 1 -->
|
||||||
<vxe-table-column
|
<vxe-table-column
|
||||||
field="name"
|
field="name"
|
||||||
:title="$t('acl.resoureType')"
|
:title="$t('acl.resourceType')"
|
||||||
:min-width="175"
|
:min-width="175"
|
||||||
fixed="left"
|
fixed="left"
|
||||||
show-overflow
|
show-overflow
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const cs_en = {
|
const cs_en = {
|
||||||
menu: {
|
menu: {
|
||||||
person: 'Personal Center',
|
person: 'My Profile',
|
||||||
companyInfo: 'Company Info',
|
companyInfo: 'Company Info',
|
||||||
companyStructure: 'Company Structure',
|
companyStructure: 'Company Structure',
|
||||||
notice: 'Notification Settings',
|
notice: 'Notification Settings',
|
||||||
|
|
Loading…
Reference in New Issue