mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-27 11:10:51 +00:00
perf: 修改一些组件路径,原来的太难找了
This commit is contained in:
parent
11698255f6
commit
8492882633
@ -8,12 +8,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AutoDataForm from '@/components/AutoDataForm'
|
import AutoDataForm from '@/components/Form/AutoDataForm/index.vue'
|
||||||
import { UpdateToken, UploadSecret } from '@/components/FormFields'
|
import { UpdateToken, UploadSecret } from '@/components/Form/FormFields'
|
||||||
import Select2 from '@/components/FormFields/Select2'
|
import Select2 from '@/components/Form/FormFields/Select2.vue'
|
||||||
import AssetSelect from '@/components/AssetSelect'
|
import AssetSelect from '@/components/Apps/AssetSelect/index.vue'
|
||||||
import { encryptPassword } from '@/utils/crypto'
|
import { encryptPassword } from '@/utils/crypto'
|
||||||
import { Required, RequiredChange } from '@/components/DataForm/rules'
|
import { Required, RequiredChange } from '@/components/Form/DataForm/rules'
|
||||||
import AutomationParamsForm from '@/views/assets/Platform/AutomationParamsSetting.vue'
|
import AutomationParamsForm from '@/views/assets/Platform/AutomationParamsSetting.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -24,8 +24,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import AccountCreateUpdateForm from '@/components/AccountCreateUpdateForm'
|
import AccountCreateUpdateForm from '@/components/Apps/AccountCreateUpdateForm/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CreateAccountDialog',
|
name: 'CreateAccountDialog',
|
@ -41,11 +41,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ListTable from '@/components/ListTable/index'
|
import ListTable from '@/components/Table/ListTable/index.vue'
|
||||||
import { ActionsFormatter } from '@/components/TableFormatters'
|
import { ActionsFormatter } from '@/components/Table/TableFormatters'
|
||||||
import ViewSecret from './ViewSecret'
|
import ViewSecret from './ViewSecret.vue'
|
||||||
import UpdateSecretInfo from './UpdateSecretInfo'
|
import UpdateSecretInfo from './UpdateSecretInfo.vue'
|
||||||
import AccountCreateUpdate from './AccountCreateUpdate'
|
import AccountCreateUpdate from './AccountCreateUpdate.vue'
|
||||||
import { connectivityMeta } from './const'
|
import { connectivityMeta } from './const'
|
||||||
import { openTaskPage } from '@/utils/jms'
|
import { openTaskPage } from '@/utils/jms'
|
||||||
import ResultDialog from './BulkCreateResultDialog.vue'
|
import ResultDialog from './BulkCreateResultDialog.vue'
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog/index.vue'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import DataTable from '@/components/DataTable/index.vue'
|
import DataTable from '@/components/Table/DataTable/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ResultDialog',
|
name: 'ResultDialog',
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { GenericListTableDialog } from '@/layout/components'
|
import { GenericListTableDialog } from '@/layout/components'
|
||||||
import { ShowKeyCopyFormatter } from '@/components/TableFormatters'
|
import { ShowKeyCopyFormatter } from '@/components/Table/TableFormatters'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
@ -29,8 +29,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import { UpdateToken, UploadKey } from '@/components/FormFields'
|
import { UpdateToken, UploadKey } from '@/components/Form/FormFields'
|
||||||
import { encryptPassword } from '@/utils/crypto'
|
import { encryptPassword } from '@/utils/crypto'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -65,10 +65,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import PasswordHistoryDialog from './PasswordHistoryDialog'
|
import PasswordHistoryDialog from './PasswordHistoryDialog.vue'
|
||||||
import UserConfirmDialog from '@/components/UserConfirmDialog'
|
import UserConfirmDialog from '@/components/Apps/UserConfirmDialog/index.vue'
|
||||||
import { ShowKeyCopyFormatter } from '@/components/TableFormatters'
|
import { ShowKeyCopyFormatter } from '@/components/Table/TableFormatters'
|
||||||
import { encryptPassword } from '@/utils/crypto'
|
import { encryptPassword } from '@/utils/crypto'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -1,5 +1,5 @@
|
|||||||
import i18n from '@/i18n/i18n'
|
import i18n from '@/i18n/i18n'
|
||||||
import { ChoicesFormatter } from '@/components/TableFormatters'
|
import { ChoicesFormatter } from '@/components/Table/TableFormatters'
|
||||||
|
|
||||||
export const connectivityMeta = {
|
export const connectivityMeta = {
|
||||||
label: i18n.t('assets.Connectivity'),
|
label: i18n.t('assets.Connectivity'),
|
@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<IBox :fa="icon" :type="type" :title="title" v-bind="$attrs">
|
<IBox :fa="icon" :title="title" :type="type" v-bind="$attrs">
|
||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<AssetSelect ref="assetSelect" :disabled="disabled" :can-select="canSelect" />
|
<AssetSelect ref="assetSelect" :can-select="canSelect" :disabled="disabled" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<el-button :type="type" size="small" :disabled="disabled" @click="addObjects">{{ $t('common.Add') }}</el-button>
|
<el-button :disabled="disabled" :type="type" size="small" @click="addObjects">{{ $t('common.Add') }}</el-button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -16,8 +16,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import IBox from '@/components/IBox'
|
import IBox from '@/components/IBox/index.vue'
|
||||||
import AssetSelect from '@/components/AssetSelect'
|
import AssetSelect from '@/components/Apps/AssetSelect/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AssetRelationCard',
|
name: 'AssetRelationCard',
|
@ -24,8 +24,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AssetTreeTable from '@/components/AssetTreeTable'
|
import AssetTreeTable from '@/components/Apps/AssetTreeTable/index.vue'
|
||||||
import Dialog from '@/components/Dialog'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
componentName: 'AssetSelectDialog',
|
componentName: 'AssetSelectDialog',
|
@ -25,7 +25,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Select2 from '@/components/FormFields/Select2'
|
import Select2 from '@/components/Form/FormFields/Select2.vue'
|
||||||
import AssetSelectDialog from './dialog.vue'
|
import AssetSelectDialog from './dialog.vue'
|
||||||
import { b } from 'css-color-function/lib/adjusters'
|
import { b } from 'css-color-function/lib/adjusters'
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<TreeTable
|
<TreeTable
|
||||||
ref="TreeList"
|
ref="TreeList"
|
||||||
component="TabTree"
|
|
||||||
:table-config="tableConfig"
|
|
||||||
:active-menu.sync="treeTableConfig.activeMenu"
|
:active-menu.sync="treeTableConfig.activeMenu"
|
||||||
|
:table-config="tableConfig"
|
||||||
:tree-tab-config="treeTableConfig"
|
:tree-tab-config="treeTableConfig"
|
||||||
|
component="TabTree"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
@ -12,13 +12,13 @@
|
|||||||
<slot name="table" />
|
<slot name="table" />
|
||||||
</template>
|
</template>
|
||||||
<div slot="rMenu" slot-scope="{data}">
|
<div slot="rMenu" slot-scope="{data}">
|
||||||
<slot name="rMenu" :data="data" />
|
<slot :data="data" name="rMenu" />
|
||||||
</div>
|
</div>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TreeTable from '../TreeTable'
|
import TreeTable from '../../Table/TreeTable/index.vue'
|
||||||
import { setRouterQuery, setUrlParam } from '@/utils/common'
|
import { setRouterQuery, setUrlParam } from '@/utils/common'
|
||||||
import $ from '@/utils/jquery-vendor'
|
import $ from '@/utils/jquery-vendor'
|
||||||
|
|
@ -33,7 +33,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import { openTaskPage } from '@/utils/jms'
|
import { openTaskPage } from '@/utils/jms'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -3,8 +3,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script type="text/jsx">
|
<script type="text/jsx">
|
||||||
import TreeTable from '../TreeTable'
|
import TreeTable from '../../Table/TreeTable/index.vue'
|
||||||
import { DetailFormatter } from '@/components/TableFormatters'
|
import { DetailFormatter } from '@/components/Table/TableFormatters'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GrantedAssets',
|
name: 'GrantedAssets',
|
@ -7,7 +7,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ListTable from '@/components/ListTable/index.vue'
|
import ListTable from '@/components/Table/ListTable/index.vue'
|
||||||
import { toM2MJsonParams } from '@/utils/jms'
|
import { toM2MJsonParams } from '@/utils/jms'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -7,7 +7,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ListTable from '@/components/ListTable/index.vue'
|
import ListTable from '@/components/Table/ListTable/index.vue'
|
||||||
import { toM2MJsonParams } from '@/utils/jms'
|
import { toM2MJsonParams } from '@/utils/jms'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -30,8 +30,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import IBox from '@/components/IBox'
|
import IBox from '@/components/IBox/index.vue'
|
||||||
import DiffDetail from '@/components/Dialog/DiffDetail'
|
import DiffDetail from '@/components/Dialog/DiffDetail.vue'
|
||||||
import { openTaskPage } from '@/utils/jms'
|
import { openTaskPage } from '@/utils/jms'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -1,24 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<Dialog
|
<Dialog
|
||||||
:title="title"
|
|
||||||
:width="'36%'"
|
|
||||||
:show-confirm="false"
|
|
||||||
:show-cancel="false"
|
|
||||||
:visible.sync="visible"
|
|
||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
v-bind="$attrs"
|
:show-cancel="false"
|
||||||
|
:show-confirm="false"
|
||||||
|
:title="title"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:width="'36%'"
|
||||||
class="dialog-content"
|
class="dialog-content"
|
||||||
|
v-bind="$attrs"
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
<div v-if="ConfirmType === 'relogin'">
|
<div v-if="ConfirmType === 'relogin'">
|
||||||
<el-row :gutter="24" style="margin: 0 auto;">
|
<el-row :gutter="24" style="margin: 0 auto;">
|
||||||
<el-col :md="24" :sm="24">
|
<el-col :md="24" :sm="24">
|
||||||
<el-alert
|
<el-alert
|
||||||
:title="$tc('auth.ReLoginTitle')"
|
|
||||||
type="info"
|
|
||||||
center
|
|
||||||
:closable="false"
|
:closable="false"
|
||||||
|
:title="$tc('auth.ReLoginTitle')"
|
||||||
|
center
|
||||||
style="margin-bottom: 20px;"
|
style="margin-bottom: 20px;"
|
||||||
|
type="info"
|
||||||
/>
|
/>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -26,8 +26,8 @@
|
|||||||
<el-col :md="24" :sm="24">
|
<el-col :md="24" :sm="24">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
|
||||||
style="width: 100%; line-height:20px;"
|
style="width: 100%; line-height:20px;"
|
||||||
|
type="primary"
|
||||||
@click="logOut"
|
@click="logOut"
|
||||||
>
|
>
|
||||||
{{ this.$t('auth.ReLogin') }}
|
{{ this.$t('auth.ReLogin') }}
|
||||||
@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-row :gutter="24" style="margin: 0 auto;">
|
<el-row :gutter="24" style="margin: 0 auto;">
|
||||||
<el-col :span="24" :md="24" :sm="24" class="add">
|
<el-col :md="24" :sm="24" :span="24" class="add">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="Select"
|
v-model="Select"
|
||||||
:disabled="ConfirmType === 'password'"
|
:disabled="ConfirmType === 'password'"
|
||||||
@ -47,22 +47,22 @@
|
|||||||
<el-option
|
<el-option
|
||||||
v-for="(item, i) of Content"
|
v-for="(item, i) of Content"
|
||||||
:key="i"
|
:key="i"
|
||||||
|
:disabled="item.disabled"
|
||||||
:label="item.display_name"
|
:label="item.display_name"
|
||||||
:value="item.name"
|
:value="item.name"
|
||||||
:disabled="item.disabled"
|
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24" style="margin: 0 auto;">
|
<el-row :gutter="24" style="margin: 0 auto;">
|
||||||
<el-col :md="24" :sm="24" style="display: flex; margin-bottom: 20px;">
|
<el-col :md="24" :sm="24" style="display: flex; margin-bottom: 20px;">
|
||||||
<el-input v-model="SecretKey" :show-password="showPassword" :placeholder="HelpText" />
|
<el-input v-model="SecretKey" :placeholder="HelpText" :show-password="showPassword" />
|
||||||
<span v-if="Select === 'sms'" style="margin: -1px 0 0 20px;">
|
<span v-if="Select === 'sms'" style="margin: -1px 0 0 20px;">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
|
||||||
type="primary"
|
|
||||||
style="line-height:20px; float: right;"
|
|
||||||
:disabled="smsBtndisabled"
|
:disabled="smsBtndisabled"
|
||||||
|
size="mini"
|
||||||
|
style="line-height:20px; float: right;"
|
||||||
|
type="primary"
|
||||||
@click="sendChallengeCode"
|
@click="sendChallengeCode"
|
||||||
>
|
>
|
||||||
{{ smsBtnText }}
|
{{ smsBtnText }}
|
||||||
@ -74,8 +74,8 @@
|
|||||||
<el-col :md="24" :sm="24">
|
<el-col :md="24" :sm="24">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
|
||||||
style="width: 100%; line-height:20px;"
|
style="width: 100%; line-height:20px;"
|
||||||
|
type="primary"
|
||||||
@click="userConfirm"
|
@click="userConfirm"
|
||||||
>
|
>
|
||||||
{{ this.$t('common.Confirm') }}
|
{{ this.$t('common.Confirm') }}
|
||||||
@ -86,7 +86,7 @@
|
|||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UserConfirmDialog',
|
name: 'UserConfirmDialog',
|
@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DetailCard from './index'
|
import DetailCard from './index.vue'
|
||||||
import { copy, toSafeLocalDateStr } from '@/utils/common'
|
import { copy, toSafeLocalDateStr } from '@/utils/common'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<IBox :title="title" :fa="fa">
|
<IBox :fa="fa" :title="title">
|
||||||
<el-form class="content" label-position="left" label-width="25%">
|
<el-form class="content" label-position="left" label-width="25%">
|
||||||
<el-form-item v-for="item in items" :key="item.key" :label="item.key">
|
<el-form-item v-for="item in items" :key="item.key" :label="item.key">
|
||||||
<ItemValue class="item-value" :value="item.value" v-bind="item" />
|
<ItemValue :value="item.value" class="item-value" v-bind="item" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<slot />
|
<slot />
|
||||||
@ -10,8 +10,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import IBox from '../IBox'
|
import IBox from '../../IBox/index.vue'
|
||||||
import ItemValue from './ItemValue'
|
import ItemValue from './ItemValue.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DetailCard',
|
name: 'DetailCard',
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<IBox :type="type" :title="title" v-bind="$attrs">
|
<IBox :title="title" :type="type" v-bind="$attrs">
|
||||||
<table style="width: 100%;table-layout:fixed;" class="CardTable">
|
<table class="CardTable" style="width: 100%;table-layout:fixed;">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<Select2 ref="select2" v-model="select2.value" :disabled="iDisabled" v-bind="select2" />
|
<Select2 ref="select2" v-model="select2.value" :disabled="iDisabled" v-bind="select2" />
|
||||||
@ -9,7 +9,7 @@
|
|||||||
<slot />
|
<slot />
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<el-button :type="type" size="small" :loading="submitLoading" :disabled="iDisabled" @click="addObjects">
|
<el-button :disabled="iDisabled" :loading="submitLoading" :type="type" size="small" @click="addObjects">
|
||||||
{{ $t('common.Add') }}
|
{{ $t('common.Add') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</td>
|
</td>
|
||||||
@ -17,12 +17,12 @@
|
|||||||
<template v-if="showHasObjects">
|
<template v-if="showHasObjects">
|
||||||
<tr v-for="obj of iHasObjects" :key="obj.value" class="item">
|
<tr v-for="obj of iHasObjects" :key="obj.value" class="item">
|
||||||
<td style="width: 100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
|
<td style="width: 100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
|
||||||
<el-tooltip style="margin: 4px;" effect="dark" :content="obj.label" placement="left">
|
<el-tooltip :content="obj.label" effect="dark" placement="left" style="margin: 4px;">
|
||||||
<b>{{ obj.label }}</b>
|
<b>{{ obj.label }}</b>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<el-button size="mini" :disabled="iDisabled" type="danger" style="float: right" @click="removeObject(obj)">
|
<el-button :disabled="iDisabled" size="mini" style="float: right" type="danger" @click="removeObject(obj)">
|
||||||
<i class="fa fa-minus" />
|
<i class="fa fa-minus" />
|
||||||
</el-button>
|
</el-button>
|
||||||
</td>
|
</td>
|
||||||
@ -30,7 +30,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<tr v-if="params.hasMore && showHasMore" class="item">
|
<tr v-if="params.hasMore && showHasMore" class="item">
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<el-button :type="type" :disabled="iDisabled" size="small" style="width: 100%" @click="loadMore">
|
<el-button :disabled="iDisabled" :type="type" size="small" style="width: 100%" @click="loadMore">
|
||||||
<i class="fa fa-arrow-down" />
|
<i class="fa fa-arrow-down" />
|
||||||
{{ $t('common.More') }}
|
{{ $t('common.More') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -41,10 +41,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Select2 from '../FormFields/Select2'
|
import Select2 from '@/components/Form/FormFields/Select2.vue'
|
||||||
import IBox from '../IBox'
|
import IBox from '../../IBox/index.vue'
|
||||||
import { createSourceIdCache } from '@/api/common'
|
import { createSourceIdCache } from '@/api/common'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RelationCard',
|
name: 'RelationCard',
|
||||||
components: {
|
components: {
|
@ -13,7 +13,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DataForm from '@/components/DataForm'
|
import DataForm from '@/components/Form/DataForm/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NestedField',
|
name: 'NestedField',
|
@ -23,9 +23,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DataForm from '../DataForm'
|
import DataForm from '../DataForm/index.vue'
|
||||||
import FormGroupHeader from '@/components/FormGroupHeader'
|
import FormGroupHeader from '@/components/Form/FormGroupHeader/index.vue'
|
||||||
import { FormFieldGenerator } from '@/components/AutoDataForm/utils'
|
import { FormFieldGenerator } from '@/components/Form/AutoDataForm/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AutoDataForm',
|
name: 'AutoDataForm',
|
@ -1,13 +1,13 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Select2 from '@/components/FormFields/Select2'
|
import Select2 from '@/components/Form/FormFields/Select2.vue'
|
||||||
import ObjectSelect2 from '@/components/FormFields/NestedObjectSelect2'
|
import ObjectSelect2 from '@/components/Form/FormFields/NestedObjectSelect2.vue'
|
||||||
import NestedField from '@/components/AutoDataForm/components/NestedField'
|
import NestedField from '@/components/Form/AutoDataForm/components/NestedField.vue'
|
||||||
import Switcher from '@/components/FormFields/Switcher'
|
import Switcher from '@/components/Form/FormFields/Switcher.vue'
|
||||||
import rules from '@/components/DataForm/rules'
|
import rules from '@/components/Form/DataForm/rules'
|
||||||
import BasicTree from '@/components/FormFields/BasicTree'
|
import BasicTree from '@/components/Form/FormFields/BasicTree.vue'
|
||||||
import JsonEditor from '@/components/FormFields/JsonEditor'
|
import JsonEditor from '@/components/Form/FormFields/JsonEditor.vue'
|
||||||
import { assignIfNot } from '@/utils/common'
|
import { assignIfNot } from '@/utils/common'
|
||||||
import TagInput from '@/components/FormFields/TagInput.vue'
|
import TagInput from '@/components/Form/FormFields/TagInput.vue'
|
||||||
|
|
||||||
export class FormFieldGenerator {
|
export class FormFieldGenerator {
|
||||||
constructor(emit) {
|
constructor(emit) {
|
@ -18,9 +18,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DataForm from '@/components/DataForm/index.vue'
|
import DataForm from '@/components/Form/DataForm/index.vue'
|
||||||
import Dialog from '@/components/Dialog/index.vue'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import ValueField from '@/components/FormFields/JSONManyToManySelect/ValueField.vue'
|
import ValueField from '@/components/Form/FormFields/JSONManyToManySelect/ValueField.vue'
|
||||||
import { attrMatchOptions, typeMatchMapper } from './const'
|
import { attrMatchOptions, typeMatchMapper } from './const'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog/index.vue'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import ListTable from '@/components/ListTable/index.vue'
|
import ListTable from '@/components/Table/ListTable/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AttrMatchResultDialog',
|
name: 'AttrMatchResultDialog',
|
@ -8,9 +8,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TagInput from '@/components/FormFields/TagInput.vue'
|
import TagInput from '@/components/Form/FormFields/TagInput.vue'
|
||||||
import Select2 from '@/components/FormFields/Select2.vue'
|
import Select2 from '@/components/Form/FormFields/Select2.vue'
|
||||||
import Switcher from '@/components/FormFields/Switcher.vue'
|
import Switcher from '@/components/Form/FormFields/Switcher.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ValueField',
|
name: 'ValueField',
|
@ -9,7 +9,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import BaseFormatter from '@/components/TableFormatters/base.vue'
|
import BaseFormatter from '@/components/Table/TableFormatters/base.vue'
|
||||||
import { setUrlParam } from '@/utils/common'
|
import { setUrlParam } from '@/utils/common'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Select2 from '../Select2.vue'
|
import Select2 from '../Select2.vue'
|
||||||
import DataTable from '@/components/DataTable/index.vue'
|
import DataTable from '@/components/Table/DataTable/index.vue'
|
||||||
import ValueFormatter from './ValueFormatter.vue'
|
import ValueFormatter from './ValueFormatter.vue'
|
||||||
import AttrFormDialog from './AttrFormDialog.vue'
|
import AttrFormDialog from './AttrFormDialog.vue'
|
||||||
import AttrMatchResultDialog from './AttrMatchResultDialog.vue'
|
import AttrMatchResultDialog from './AttrMatchResultDialog.vue'
|
@ -60,7 +60,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "~@/styles/variables.scss";
|
@import "~@/styles/variables";
|
||||||
|
|
||||||
.json-editor {
|
.json-editor {
|
||||||
.resize {
|
.resize {
|
@ -9,7 +9,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Select2 from './Select2'
|
import Select2 from './Select2.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NestedObjectSelect2',
|
name: 'NestedObjectSelect2',
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { AutoDataForm, Dialog } from '@/components'
|
import { AutoDataForm, Dialog } from '@/components'
|
||||||
import JsonEditor from '@/components/FormFields/JsonEditor.vue'
|
import JsonEditor from '@/components/Form/FormFields/JsonEditor.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ProtocolSetting',
|
name: 'ProtocolSetting',
|
@ -71,7 +71,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProtocolSettingDialog from './ProtocolSettingDialog'
|
import ProtocolSettingDialog from './ProtocolSettingDialog.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
@ -23,7 +23,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Select2 from './Select2'
|
import Select2 from './Select2.vue'
|
||||||
import { hasUUID } from '@/utils/common'
|
import { hasUUID } from '@/utils/common'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -7,7 +7,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PasswordInput from './PasswordInput'
|
import PasswordInput from './PasswordInput.vue'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import i18n from '@/i18n/i18n'
|
import i18n from '@/i18n/i18n'
|
60
src/components/Form/FormFields/index.js
Normal file
60
src/components/Form/FormFields/index.js
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
import Link from './Link.vue'
|
||||||
|
import Text from './Text.vue'
|
||||||
|
import Select2 from './Select2.vue'
|
||||||
|
import TagInput from './TagInput.vue'
|
||||||
|
import Switcher from './Switcher.vue'
|
||||||
|
import UploadKey from './UploadKey.vue'
|
||||||
|
import JsonEditor from './JsonEditor.vue'
|
||||||
|
import PhoneInput from './PhoneInput.vue'
|
||||||
|
import UploadField from './UploadField.vue'
|
||||||
|
import UpdateToken from './UpdateToken.vue'
|
||||||
|
import UserPassword from './UserPassword.vue'
|
||||||
|
import DynamicInput from './DynamicInput.vue'
|
||||||
|
import PasswordInput from './PasswordInput.vue'
|
||||||
|
import UploadSecret from './UploadSecret.vue'
|
||||||
|
import WeekCronSelect from './WeekCronSelect.vue'
|
||||||
|
import NestedObjectSelect2 from './NestedObjectSelect2.vue'
|
||||||
|
import DatetimeRangePicker from './DatetimeRangePicker.vue'
|
||||||
|
import JSONManyToManySelect from './JSONManyToManySelect/index.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
Text,
|
||||||
|
Link,
|
||||||
|
Switcher,
|
||||||
|
Select2,
|
||||||
|
TagInput,
|
||||||
|
UploadKey,
|
||||||
|
JsonEditor,
|
||||||
|
UpdateToken,
|
||||||
|
PhoneInput,
|
||||||
|
UploadField,
|
||||||
|
UserPassword,
|
||||||
|
DynamicInput,
|
||||||
|
PasswordInput,
|
||||||
|
UploadSecret,
|
||||||
|
WeekCronSelect,
|
||||||
|
NestedObjectSelect2,
|
||||||
|
DatetimeRangePicker,
|
||||||
|
JSONManyToManySelect
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
Text,
|
||||||
|
Link,
|
||||||
|
Switcher,
|
||||||
|
Select2,
|
||||||
|
TagInput,
|
||||||
|
UploadKey,
|
||||||
|
JsonEditor,
|
||||||
|
UpdateToken,
|
||||||
|
PhoneInput,
|
||||||
|
UploadField,
|
||||||
|
UserPassword,
|
||||||
|
DynamicInput,
|
||||||
|
PasswordInput,
|
||||||
|
UploadSecret,
|
||||||
|
WeekCronSelect,
|
||||||
|
NestedObjectSelect2,
|
||||||
|
DatetimeRangePicker,
|
||||||
|
JSONManyToManySelect
|
||||||
|
}
|
@ -1,60 +0,0 @@
|
|||||||
import Link from './Link'
|
|
||||||
import Text from './Text'
|
|
||||||
import Select2 from './Select2'
|
|
||||||
import TagInput from './TagInput'
|
|
||||||
import Switcher from './Switcher'
|
|
||||||
import UploadKey from './UploadKey'
|
|
||||||
import JsonEditor from './JsonEditor'
|
|
||||||
import PhoneInput from './PhoneInput'
|
|
||||||
import UploadField from './UploadField'
|
|
||||||
import UpdateToken from './UpdateToken'
|
|
||||||
import UserPassword from './UserPassword'
|
|
||||||
import DynamicInput from './DynamicInput'
|
|
||||||
import PasswordInput from './PasswordInput'
|
|
||||||
import UploadSecret from './UploadSecret'
|
|
||||||
import WeekCronSelect from './WeekCronSelect'
|
|
||||||
import NestedObjectSelect2 from './NestedObjectSelect2'
|
|
||||||
import DatetimeRangePicker from './DatetimeRangePicker'
|
|
||||||
import JSONManyToManySelect from './JSONManyToManySelect/index.vue'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
Text,
|
|
||||||
Link,
|
|
||||||
Switcher,
|
|
||||||
Select2,
|
|
||||||
TagInput,
|
|
||||||
UploadKey,
|
|
||||||
JsonEditor,
|
|
||||||
UpdateToken,
|
|
||||||
PhoneInput,
|
|
||||||
UploadField,
|
|
||||||
UserPassword,
|
|
||||||
DynamicInput,
|
|
||||||
PasswordInput,
|
|
||||||
UploadSecret,
|
|
||||||
WeekCronSelect,
|
|
||||||
NestedObjectSelect2,
|
|
||||||
DatetimeRangePicker,
|
|
||||||
JSONManyToManySelect
|
|
||||||
}
|
|
||||||
|
|
||||||
export {
|
|
||||||
Text,
|
|
||||||
Link,
|
|
||||||
Switcher,
|
|
||||||
Select2,
|
|
||||||
TagInput,
|
|
||||||
UploadKey,
|
|
||||||
JsonEditor,
|
|
||||||
UpdateToken,
|
|
||||||
PhoneInput,
|
|
||||||
UploadField,
|
|
||||||
UserPassword,
|
|
||||||
DynamicInput,
|
|
||||||
PasswordInput,
|
|
||||||
UploadSecret,
|
|
||||||
WeekCronSelect,
|
|
||||||
NestedObjectSelect2,
|
|
||||||
DatetimeRangePicker,
|
|
||||||
JSONManyToManySelect
|
|
||||||
}
|
|
@ -24,9 +24,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Switcher from '../FormFields/Switcher'
|
import Switcher from '@/components/Form/FormFields/Switcher'
|
||||||
import Select2 from '../FormFields/Select2'
|
import Select2 from '@/components/Form/FormFields/Select2'
|
||||||
import UpdateSelect from '../FormFields/UpdateSelect'
|
import UpdateSelect from '@/components/Form/FormFields/UpdateSelect'
|
||||||
|
|
||||||
class Action {
|
class Action {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -3,8 +3,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TagSearch from '@/components/TagSearch'
|
import TagSearch from '@/components/Table/TagSearch/index.vue'
|
||||||
import i18n from '@/i18n/i18n'
|
import i18n from '@/i18n/i18n'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AutoDataSearch',
|
name: 'AutoDataSearch',
|
||||||
components: {
|
components: {
|
@ -36,7 +36,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog/index'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ColumnSettingPopover',
|
name: 'ColumnSettingPopover',
|
@ -20,19 +20,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script type="text/jsx">
|
<script type="text/jsx">
|
||||||
import DataTable from '../DataTable'
|
import DataTable from '@/components/Table/DataTable/index.vue'
|
||||||
import {
|
import {
|
||||||
ActionsFormatter,
|
ActionsFormatter, ArrayFormatter, ChoicesFormatter, DateFormatter, DetailFormatter, DisplayFormatter,
|
||||||
ArrayFormatter,
|
|
||||||
ChoicesFormatter,
|
|
||||||
DateFormatter,
|
|
||||||
DetailFormatter,
|
|
||||||
DisplayFormatter,
|
|
||||||
ObjectRelatedFormatter
|
ObjectRelatedFormatter
|
||||||
} from '@/components/TableFormatters'
|
} from '@/components/Table/TableFormatters'
|
||||||
import i18n from '@/i18n/i18n'
|
import i18n from '@/i18n/i18n'
|
||||||
import { newURL, replaceAllUUID } from '@/utils/common'
|
import { newURL, replaceAllUUID } from '@/utils/common'
|
||||||
import ColumnSettingPopover from './components/ColumnSettingPopover'
|
import ColumnSettingPopover from './components/ColumnSettingPopover.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AutoDataTable',
|
name: 'AutoDataTable',
|
@ -1216,7 +1216,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 树形table相关
|
// 树形table相关
|
||||||
// https://github.com/PanJiaChen/vue-element-admin/tree/master/src/components/TreeTable
|
// https://github.com/PanJiaChen/vue-element-admin/tree/master/@/components/TreeTable
|
||||||
tree2Array(data, expandAll, parent = null, level = null) {
|
tree2Array(data, expandAll, parent = null, level = null) {
|
||||||
let tmp = []
|
let tmp = []
|
||||||
data.forEach(record => {
|
data.forEach(record => {
|
@ -49,10 +49,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import UserConfirmDialog from '@/components/UserConfirmDialog'
|
import UserConfirmDialog from '@/components/Apps/UserConfirmDialog/index.vue'
|
||||||
import { createSourceIdCache } from '@/api/common'
|
import { createSourceIdCache } from '@/api/common'
|
||||||
import * as queryUtil from '@/components/DataTable/compenents/el-data-table/utils/query'
|
import * as queryUtil from '@/components/Table/DataTable/compenents/el-data-table/utils/query'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ExportDialog',
|
name: 'ExportDialog',
|
@ -6,8 +6,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ExportDialog from './ExportDialog'
|
import ExportDialog from './ExportDialog.vue'
|
||||||
import ImportDialog from './ImportDialog'
|
import ImportDialog from './ImportDialog.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ImExportDialog',
|
name: 'ImExportDialog',
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user