star7th пре 6 година
родитељ
комит
06f283b64b

+ 2 - 2
web_src/src/components/page/edit/Index.vue

@@ -39,13 +39,13 @@
           <el-button type="" size="medium" @click="insert_api_template">{{$t('insert_apidoc_template')}}</el-button>
           <el-button type="" size="medium" @click="insert_database_template">{{$t('insert_database_doc_template')}}</el-button>
           <el-button type="" size="medium" @click.native="ShowTemplateList">{{$t('more_templ')}}</el-button>
-          <el-button type="" size="medium" @click.native="ShowPasteTable">{{$t('paste_insert_table')}}</el-button>
           
             <el-dropdown split-button type="" style="margin-left:100px;" size="medium" trigger="hover" >
-              {{$t('json_tools')}}
+              {{$t('format_tools')}}
               <el-dropdown-menu slot="dropdown">
                 <el-dropdown-item @click.native="ShowJsonToTable">{{$t('json_to_table')}}</el-dropdown-item>
                 <el-dropdown-item @click.native="ShowJsonBeautify">{{$t('beautify_json')}}</el-dropdown-item>
+                <el-dropdown-item @click.native="ShowPasteTable">{{$t('paste_insert_table')}}</el-dropdown-item>
               </el-dropdown-menu>
             </el-dropdown>
           <el-button type="" size="medium" @click="ShowRunApi">{{$t('http_test_api')}}</el-button>

+ 1 - 1
web_src/src/components/page/edit/PasteTable.vue

@@ -7,7 +7,7 @@
 
       <el-dialog :title="$t('paste_insert_table')" :modal="is_modal"  :visible.sync="dialogFormVisible">
         <el-form >
-		  	<el-input type="textarea" class="dialoContent" placeholder="Paste (Ctrl + V) below an existing table data copied (Ctrl + C) from a spreadsheet (e.g. Microsoft Excel), a text document, a Markdown code, or even a website." :rows="10" v-model="content"></el-input>
+		  	<el-input type="textarea" class="dialoContent" :placeholder="$t('paste_insert_table_tips')" :rows="10" v-model="content"></el-input>
 		  </el-form>
 		  <div slot="footer" class="dialog-footer">
 		    <el-button @click="dialogFormVisible = false">{{$t('cancel')}}</el-button>

+ 2 - 1
web_src/static/lang/en.js

@@ -164,6 +164,7 @@ exports.default = {
     'insert_apidoc_template':'Insert ApiDoc template',
     'insert_database_doc_template':'Insert DatabaseDoc template',
     'json_tools':'Json tools',
+    'format_tools':'Format tools',
     'json_to_table':'JSON to table',
     'beautify_json':'JSON beautify',
     'beautify_json_description':'Please paste a JSON script, the program will automatically format the display in an elegant way.',
@@ -197,7 +198,7 @@ exports.default = {
     'delete_templ':'Delete',
     'save_success':'Save success',
     'paste_insert_table': 'Insert table from paste',
-
+    'paste_insert_table_tips':'Paste (Ctrl + V) below an existing table data copied (Ctrl + C) from a spreadsheet (e.g. Microsoft Excel), a text document, a Markdown code, or even a website.',
     //catalog
     'add_cat':'Add catalog',
     'cat_name':'Catalog name',

+ 2 - 1
web_src/static/lang/zh-CN.js

@@ -169,6 +169,7 @@ exports.default = {
     'insert_apidoc_template':'插入API接口模板',
     'insert_database_doc_template':'插入数据字典模板',
     'json_tools':'JSON工具',
+    'format_tools':'格式工具',
     'json_to_table':'JSON转参数表格',
     'beautify_json':'JSON格式化',
     'beautify_json_description':'请粘贴一段json,程序将自动以美观的方式格式化显示',
@@ -202,7 +203,7 @@ exports.default = {
     'delete_templ':'删除模板',
     'save_success':'保存成功',
     'paste_insert_table': '粘贴插入表格',
-
+    'paste_insert_table_tips':'你可以从网页或者excel中复制表格,然后粘贴在此处。粘贴并确定后,程序将自动把源表格转为markdown格式的表格。注:复制excel后,请鼠标右击,粘贴为纯文本。否则会当做图片上传。',
 
     //catalog
     'add_cat':'添加目录',