11<template >
22 <a-card :bordered =" false" >
3- <a-result status =" success" :sub- title =" description " :title =" title " >
3+ <a-result status =" success" :title =" result.title " :sub- title =" result.description " >
44 <template #extra >
5- <a-button type =" primary" >返回列表 </a-button >
6- <a-button style =" margin-left : 8px " >查看项目 </a-button >
7- <a-button style =" margin-left : 8px " >打印 </a-button >
5+ <a-button type =" primary" >{{ $t('result.success.btn-return') }} </a-button >
6+ <a-button style =" margin-left : 8px " >{{ $t('result.success.btn-project') }} </a-button >
7+ <a-button style =" margin-left : 8px " >{{ $t('result.success.btn-print') }} </a-button >
88 </template >
99 <div class =" content" >
10- <div style =" font-size : 16px ; color : rgba (0 , 0 , 0 , 0.85 ); font-weight : 500 ; margin-bottom : 20px ;" >项目名称 </div >
10+ <div style =" font-size : 16px ; color : rgba (0 , 0 , 0 , 0.85 ); font-weight : 500 ; margin-bottom : 20px ;" >{{ $t('result.success.operate-title') }} </div >
1111 <a-row style =" margin-bottom : 16px " >
1212 <a-col :xs =" 24" :sm =" 12" :md =" 12" :lg =" 12" :xl =" 6" >
13- <span style =" color : rgba (0 , 0 , 0 , 0.85 )" >项目 ID :</span >
13+ <span style =" color : rgba (0 , 0 , 0 , 0.85 )" >{{ $t('result.success.operate-id') }} :</span >
1414 20180724089
1515 </a-col >
1616 <a-col :xs =" 24" :sm =" 12" :md =" 12" :lg =" 12" :xl =" 6" >
17- <span style =" color : rgba (0 , 0 , 0 , 0.85 )" >负责人 :</span >
17+ <span style =" color : rgba (0 , 0 , 0 , 0.85 )" >{{ $t('result.success.principal') }} :</span >
1818 曲丽丽是谁?
1919 </a-col >
2020 <a-col :xs =" 24" :sm =" 24" :md =" 24" :lg =" 24" :xl =" 12" >
21- <span style =" color : rgba (0 , 0 , 0 , 0.85 )" >生效时间 :</span >
21+ <span style =" color : rgba (0 , 0 , 0 , 0.85 )" >{{ $t('result.success.operate-time') }} :</span >
2222 2016-12-12 ~ 2017-12-12
2323 </a-col >
2424 </a-row >
2525 <a-steps :current =" 1" :direction =" isMobile && directionType.vertical || directionType.horizontal" progressDot >
26- <a-step >
27- <span style =" font-size : 14px " slot =" title" >创建项目 </span >
26+ <a-step :title = " $t('result.success.step1-title') " >
27+ <span style =" font-size : 14px " slot =" title" >{{ $t('result.success.step1-title') }} </span >
2828 <template slot="description">
2929 <div style =" fontSize : 12px ; color : rgba (0 , 0 , 0 , 0.45 ); position : relative ; left : 42px ;text-align : left ;" slot =" description" >
3030 <div style =" margin : 8px 0 4px " >
3535 </div >
3636 </template >
3737 </a-step >
38- <a-step title =" 部门初审 " >
39- <span style =" font-size : 14px " slot =" title" >部门初审 </span >
38+ <a-step : title =" $t('result.success.step2-title') " >
39+ <span style =" font-size : 14px " slot =" title" >{{ $t('result.success.step2-title') }} </span >
4040 <template slot="description">
4141 <div style =" fontSize : 12px ; color : rgba (0 , 0 , 0 , 0.45 ); position : relative ; left : 42px ;text-align : left ;" slot =" description" >
4242 <div style =" margin : 8px 0 4px " >
4747 </div >
4848 </template >
4949 </a-step >
50- <a-step title =" 财务复核 " >
51- <span style =" font-size : 14px " slot =" title" >财务复核 </span >
50+ <a-step : title =" $t('result.success.step3-title') " >
51+ <span style =" font-size : 14px " slot =" title" >{{ $t('result.success.step3-title') }} </span >
5252 </a-step >
53- <a-step title =" 完成 " >
54- <span style =" font-size : 14px " slot =" title" >完成 </span >
53+ <a-step : title =" $t('result.success.step4-title') " >
54+ <span style =" font-size : 14px " slot =" title" >{{ $t('result.success.step4-title') }} </span >
5555 </a-step >
5656 </a-steps >
5757 </div >
@@ -73,11 +73,16 @@ export default {
7373 data () {
7474 this .directionType = directionType
7575 return {
76- title: ' 提交成功' ,
77- description: ' 提交结果页用于反馈一系列操作任务的处理结果,\n ' +
78- ' 如果仅是简单操作,使用 Message 全局提示反馈即可。\n ' +
79- ' 本文字区域可以展示简单的补充说明,如果有类似展示\n ' +
80- ' “单据”的需求,下面这个灰色区域可以呈现比较复杂的内容。'
76+ // title: this.$t('result.success.title'),
77+ // description: this.$t('result.success.description')
78+ }
79+ },
80+ computed: {
81+ result () {
82+ return {
83+ title: this .$t (' result.success.title' ),
84+ description: this .$t (' result.success.description' )
85+ }
8186 }
8287 }
8388}
0 commit comments