浏览代码

导入模板

ggooalice 2 年之前
父节点
当前提交
2cb5660c56

+ 2 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/en.json

@@ -1500,5 +1500,6 @@
   "he-tong-dao-chu": "Contract Export",
   "que-ding-yao-shan-chu-ci-tiao-he-tong-lei-xing-ma": "Are you sure you want to delete this contract type ?",
   "que-ding-yao-shan-chu-gai-he-tong-ma": "Are you sure you want to delete this contract ?",
-  "que-ding-yao-shan-chu-gai-wen-jian-ma": "Are you sure you want to delete this file ?"
+  "que-ding-yao-shan-chu-gai-wen-jian-ma": "Are you sure you want to delete this file ?",
+  "he-tong-guan-li-dao-ru-mo-ban": "Contract Management Template"
 }

+ 2 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/zh.json

@@ -1500,5 +1500,6 @@
   "he-tong-dao-chu": "合同导出",
   "que-ding-yao-shan-chu-ci-tiao-he-tong-lei-xing-ma": "确定要删除此条合同类型吗?",
   "que-ding-yao-shan-chu-gai-he-tong-ma": "确定要删除该合同吗?",
-  "que-ding-yao-shan-chu-gai-wen-jian-ma": "确定要删除该文件吗?"
+  "que-ding-yao-shan-chu-gai-wen-jian-ma": "确定要删除该文件吗?",
+  "he-tong-guan-li-dao-ru-mo-ban": "合同管理导入模板"
 }

+ 5 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/contract/index.vue

@@ -261,9 +261,12 @@
 
     <el-dialog :title="$t('dao-ru-he-tong')" :visible.sync="importDialog" v-if="importDialog" width="30%">
       <!-- 模板? -->
-      <div slot="footer" class="dialog-footer" style="text-algin:center;">
+      <p>1. {{$t('other.download')}}
+        <el-link type="primary" style="margin-left:5px;" :underline="false" :href="'./upload/'+$t('he-tong-guan-li-dao-ru-mo-ban')+'.xlsx'" :download="$t('he-tong-guan-li-dao-ru-mo-ban')+'.xlsx'">{{$t('he-tong-guan-li-dao-ru-mo-ban')+ '.xlsx'}}</el-link>
+      </p>
+      <div slot="footer" class="dialog-footer" style="text-align:center;">
         <el-upload ref="upload" action="#" :limit="1" :http-request="importContract" :show-file-list="false">
-          <el-button type="primary" size="small" :loading="importLoading">{{ $t('dao-ru-he-tong') }}</el-button>
+          <el-button type="primary" :loading="importLoading">{{ $t('dao-ru-he-tong') }}</el-button>
         </el-upload>
       </div>
     </el-dialog>