add something

This commit is contained in:
shaohaojiecoder
2020-02-09 17:22:17 +08:00
parent bd82a0e27c
commit b3a058f908
7 changed files with 73 additions and 18 deletions

View File

@@ -14,7 +14,7 @@
</a-col>
<a-col :span="6">
<div style="min-height: 604px; background: white">
<a-card title="上传结果">
<a-card :title="$t('batch.uploadResult')">
<upload-result v-if="beginLoad" :upLoadData="needDataList" :ciType="ciType" :unique-field="uniqueField"></upload-result>
</a-card>
</div>

View File

@@ -3,9 +3,9 @@
<a-form :form="form" style="max-width: 500px; margin: 30px auto 0;">
<a-row>
<a-col :span="18">
<a-form-item label="模板类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-form-item :label="$t('batch.modelType')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select
placeholder="--请选择模板类型--"
:placeholder="$t('batch.pleaseSelectModelType')"
v-decorator="['ciTypes', { rules: [{required: true, message: '模板类型必须选择'}] }]"
@change="selectCiType"
>

View File

@@ -5,8 +5,8 @@
<p class="ant-upload-drag-icon">
<a-icon type="inbox" />
</p>
<p class="ant-upload-text">点击或拖拽文件至此上传</p>
<p class="ant-upload-hint">支持文件类型xls</p>
<p class="ant-upload-text">{{ $t('batch.dragFileHere') }}</p>
<p class="ant-upload-hint">{{ $t('batch.suportFileType') }} : xls</p>
</a-upload-dragger>
</a-form>
<a-divider>or</a-divider>

View File

@@ -23,7 +23,7 @@
</a-menu-item>
<a-menu-item key="batchDownload" @click="batchDownload">
<json-excel :fetch="batchDownload" name="cmdb.xls">
<a-icon type="download" />&nbsp;{{ $t('tip.download') }}
<a-icon type="download" />&nbsp;下载
</json-excel>
</a-menu-item>
<a-menu-item key="batchDelete" @click="batchDelete">
@@ -31,7 +31,7 @@
</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px">
批量操作
{{ $t('ci.batchOperate') }}
<a-icon type="down" />
</a-button>
</a-dropdown>

View File

@@ -31,15 +31,15 @@
<template>
<div>
<a-drawer
:title="'订阅模型: ' + typeName"
:title="$t('preference.subscribeModel') +':'+ typeName"
:width="600"
@close="onClose"
:visible="visible"
:wrapStyle="{height: 'calc(100% - 108px)', overflow: 'auto', paddingBottom: '108px'}"
>
<a-alert message="既可以定义树形视图, 也可以订阅资源视图, 资源视图会在SideBar单独呈现" type="info" showIcon />
<a-alert :message="$t('preference.subFormTip')" type="info" showIcon />
<a-divider>
树形视图
{{ $t('menu.treeViews') }}
<span
v-if="treeSubscribed"
style="font-weight: 500; font-size: 12px; color: green"
@@ -65,12 +65,12 @@
<br />
<a-divider>
资源视图
{{ $t('preference.resourceView') }}
<span
v-if="instanceSubscribed"
style="font-weight: 500; font-size: 12px; color: green"
>已订阅</span>
<span style="font-weight: 500; font-size: 12px; color: red" v-else>未订阅</span>
>{{ $t('tip.subscribed') }}</span>
<span style="font-weight: 500; font-size: 12px; color: red" v-else>{{ $t('tip.unsubscribed') }}</span>
</a-divider>
<template>
<a-transfer