Commit 4a0545ff authored by huyf's avatar huyf

fanyi

parent 20fd044a
This diff is collapsed.
...@@ -171,13 +171,13 @@ export const constantRoutes = [ ...@@ -171,13 +171,13 @@ export const constantRoutes = [
path: 'empAchievement', path: 'empAchievement',
component: (resolve) => require(['@/views/ecw/deptTarget/empAchievement'], resolve), component: (resolve) => require(['@/views/ecw/deptTarget/empAchievement'], resolve),
name: '员工业绩', name: '员工业绩',
meta: {title: '员工业绩', activeMenu: '/deptTarget/index'} meta: {title: '员工业绩',titleEn: 'Emp Achievement', activeMenu: '/deptTarget/index'}
}, },
{ {
path: 'myDeptAchievement', path: 'myDeptAchievement',
component: (resolve) => require(['@/views/ecw/deptTarget/myDeptAchievement'], resolve), component: (resolve) => require(['@/views/ecw/deptTarget/myDeptAchievement'], resolve),
name: '我的部门业绩', name: '我的部门业绩',
meta: {title: '我的部门业绩', activeMenu: '/deptTarget/myDeptAchievement'} meta: {title: '我的部门业绩',titleEn: 'My dept Achievement', activeMenu: '/deptTarget/myDeptAchievement'}
} }
] ]
}, },
......
...@@ -10,19 +10,19 @@ ...@@ -10,19 +10,19 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('中文名称')" prop="nameZh"> <el-form-item :label="$t('中文名称')" prop="nameZh">
<el-input v-model="form.nameZh" placeholder="请输入名称-中文" /> <el-input v-model="form.nameZh" :placeholder="$t('请输入名称-中文')" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('名称英文')" prop="nameEn"> <el-form-item :label="$t('名称英文')" prop="nameEn">
<el-input v-model="form.nameEn" placeholder="请输入名称-英文" /> <el-input v-model="form.nameEn" :placeholder="$t('请输入名称-英文')" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('内部名称中文')" prop="internalNameZh"> <el-form-item :label="$t('内部名称中文')" prop="internalNameZh">
<el-input <el-input
v-model="form.internalNameZh" v-model="form.internalNameZh"
placeholder="请输入内部名称-中文" :placeholder="$t('请输入内部名称-中文')"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<el-form-item :label="$t('内部名称英文')" prop="internalNameEn"> <el-form-item :label="$t('内部名称英文')" prop="internalNameEn">
<el-input <el-input
v-model="form.internalNameEn" v-model="form.internalNameEn"
placeholder="请输入内部名称-英文" :placeholder="$t('请输入内部名称-英文')"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -95,16 +95,16 @@ ...@@ -95,16 +95,16 @@
</el-col> --> </el-col> -->
</el-row> </el-row>
<el-form-item label="备注-中文" prop="remarksZh"> <el-form-item :label="$t('备注-中文')" prop="remarksZh">
<el-input <el-input
v-model="form.remarksZh" v-model="form.remarksZh"
placeholder="请输入备注-中文" :placeholder="$t('请输入备注-中文')"
/> />
</el-form-item> </el-form-item>
<el-form-item label="备注-英文" prop="remarksEn"> <el-form-item :label="$t('备注-英文')" prop="remarksEn">
<el-input <el-input
v-model="form.remarksEn" v-model="form.remarksEn"
placeholder="请输入备注-英文" :placeholder="$t('请输入备注-英文')"
/> />
</el-form-item> </el-form-item>
<!-- <el-form-item label="状态(0:禁用 1:启用)" prop="status"> <!-- <el-form-item label="状态(0:禁用 1:启用)" prop="status">
......
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const channelId = row.channelId; const channelId = row.channelId;
this.$modal.confirm('是否确认删除渠道管理编号为"' + channelId + '"的数据项?').then(function() { this.$modal.confirm(this.$t('是否确认删除渠道管理编号为{channelId}的数据项?'),{channelId} ).then(function() {
return deleteChannel(channelId); return deleteChannel(channelId);
}).then(() => { }).then(() => {
this.getList(); this.getList();
......
...@@ -444,13 +444,11 @@ ...@@ -444,13 +444,11 @@
// this.addBeginAndEndTime(params, this.dateRangeStartTime, 'startTime'); // this.addBeginAndEndTime(params, this.dateRangeStartTime, 'startTime');
// this.addBeginAndEndTime(params, this.dateRangeEndTime, 'endTime'); // this.addBeginAndEndTime(params, this.dateRangeEndTime, 'endTime');
// 执行导出 // 执行导出
this.$modal.confirm(this.$t('是否确认导出所有部门业绩数据项?')).then(() => { this.exportLoading = true;
this.exportLoading = true; exportDetailExcel(params).then(response => {
return exportDetailExcel(params); this.$download.excel(response, `${this.$t('业绩明细')}.xls`);
}).then(response => {
this.$download.excel(response, `${this.$t('业绩明细')}.xls`);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => { }).catch(() => {
}); });
}, },
...@@ -466,13 +464,11 @@ ...@@ -466,13 +464,11 @@
// this.addBeginAndEndTime(params, this.dateRangeStartTime, 'startTime'); // this.addBeginAndEndTime(params, this.dateRangeStartTime, 'startTime');
// this.addBeginAndEndTime(params, this.dateRangeEndTime, 'endTime'); // this.addBeginAndEndTime(params, this.dateRangeEndTime, 'endTime');
// 执行导出 // 执行导出
this.$modal.confirm(this.$t('是否确认导出所有部门业绩统计?')).then(() => { this.exportLoading = true;
this.exportLoading = true; exportStatisticsExcel(params).then(response => {
return exportStatisticsExcel(params); this.$download.excel(response, `${this.$t('业绩统计')}.xls`);
}).then(response => {
this.$download.excel(response, `${this.$t('业绩统计')}.xls`);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => { }).catch(() => {
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment