mirror of https://github.com/veops/cmdb.git
feat(ui): lint
This commit is contained in:
parent
4ea947f741
commit
9894c77300
|
@ -30,7 +30,6 @@ export function getAuthDataEnable() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function testLDAP(test_type, data) {
|
export function testLDAP(test_type, data) {
|
||||||
return axios({
|
return axios({
|
||||||
url: `/common-setting/v1/auth_config/LDAP/test?test_type=${test_type}`,
|
url: `/common-setting/v1/auth_config/LDAP/test?test_type=${test_type}`,
|
||||||
|
|
|
@ -241,7 +241,7 @@ export default {
|
||||||
this.$nextTick(async () => {
|
this.$nextTick(async () => {
|
||||||
if (this.attr.is_list && !this.attr.is_choice) {
|
if (this.attr.is_list && !this.attr.is_choice) {
|
||||||
this.form.setFieldsValue({
|
this.form.setFieldsValue({
|
||||||
[`${this.attr.name}`]: this.ci[this.attr.name]|| null,
|
[`${this.attr.name}`]: this.ci[this.attr.name] || null,
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
<vxe-column field="type_id" title="模型" width="150px">
|
<vxe-column field="type_id" title="模型" width="150px">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
{{ row.operate_type === '删除模型' ? row.change.alias : row.type_id}}
|
{{ row.operate_type === '删除模型' ? row.change.alias : row.type_id }}
|
||||||
</template>
|
</template>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
<vxe-column field="changeDescription" title="描述">
|
<vxe-column field="changeDescription" title="描述">
|
||||||
|
|
|
@ -58,8 +58,12 @@
|
||||||
/>
|
/>
|
||||||
<div class="relation-views-right-bar">
|
<div class="relation-views-right-bar">
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button v-if="isLeaf" type="primary" size="small" @click="$refs.create.handleOpen(true, 'create')"
|
<a-button
|
||||||
>新建</a-button
|
v-if="isLeaf"
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
@click="$refs.create.handleOpen(true, 'create')"
|
||||||
|
>新建</a-button
|
||||||
>
|
>
|
||||||
|
|
||||||
<div class="ops-list-batch-action" v-if="isLeaf && isShowBatchIcon">
|
<div class="ops-list-batch-action" v-if="isLeaf && isShowBatchIcon">
|
||||||
|
|
|
@ -14,12 +14,16 @@
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
class="cmdb-views-header-metadata"
|
class="cmdb-views-header-metadata"
|
||||||
><a-icon type="info-circle" />
|
><a-icon type="info-circle" />
|
||||||
属性说明
|
属性说明
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<a-button size="small" icon="plus" type="primary" @click="$refs.create.handleOpen(true, 'create')"
|
<a-button
|
||||||
>新建</a-button
|
size="small"
|
||||||
|
icon="plus"
|
||||||
|
type="primary"
|
||||||
|
@click="$refs.create.handleOpen(true, 'create')"
|
||||||
|
>新建</a-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<SplitPane
|
<SplitPane
|
||||||
|
|
|
@ -1,29 +1,29 @@
|
||||||
<template>
|
<template>
|
||||||
<a-modal :visible="visible" @cancel="handleCancel" @ok="handleOK">
|
<a-modal :visible="visible" @cancel="handleCancel" @ok="handleOK">
|
||||||
<a-form :form="form" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
|
<a-form :form="form" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
|
||||||
<a-form-item label="用户名/邮箱">
|
<a-form-item label="用户名/邮箱">
|
||||||
<a-input
|
<a-input
|
||||||
v-decorator="[
|
v-decorator="[
|
||||||
'username',
|
'username',
|
||||||
{
|
{
|
||||||
rules: [{ required: true, message: '请输入用户名或邮箱' }],
|
rules: [{ required: true, message: '请输入用户名或邮箱' }],
|
||||||
validateTrigger: 'change',
|
validateTrigger: 'change',
|
||||||
},
|
},
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="密码">
|
<a-form-item label="密码">
|
||||||
<a-input
|
<a-input
|
||||||
type="password"
|
type="password"
|
||||||
autocomplete="false"
|
autocomplete="false"
|
||||||
v-decorator="['password', { rules: [{ required: true, message: '请输入密码' }], validateTrigger: 'blur' }]"
|
v-decorator="['password', { rules: [{ required: true, message: '请输入密码' }], validateTrigger: 'blur' }]"
|
||||||
>
|
>
|
||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
|
Loading…
Reference in New Issue