|
@@ -51,8 +51,8 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="categoryName" :label="$t('projectclassification')" width="140"></el-table-column>
|
|
<el-table-column prop="categoryName" :label="$t('projectclassification')" width="140"></el-table-column>
|
|
- <el-table-column prop="isPublic" :label="'项目类型'" width="140">
|
|
|
|
- <template slot-scope="scope">{{scope.row.isPublic==0?"正式项目":"非项目"}}</template>
|
|
|
|
|
|
+ <el-table-column prop="isPublic" :label="$t('projecttype')" width="140">
|
|
|
|
+ <template slot-scope="scope">{{scope.row.isPublic==0?$t('zheng-shi-xiang-mu'):$t('fei-xiang-mu')}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="inchargerName" :label="$t('projectmanager')" min-width="150">
|
|
<el-table-column prop="inchargerName" :label="$t('projectmanager')" min-width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -73,7 +73,7 @@
|
|
<span v-else>{{importanceListLable[scope.row.level - 1]}}</span>
|
|
<span v-else>{{importanceListLable[scope.row.level - 1]}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="status" :label="'审核状态'" min-width="100" >
|
|
|
|
|
|
+ <el-table-column prop="status" :label="$t('other.approvalStatus')" min-width="100" >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.row.status == null?"-":approvalStatusStr[scope.row.status]}}
|
|
{{scope.row.status == null?"-":approvalStatusStr[scope.row.status]}}
|
|
</template>
|
|
</template>
|
|
@@ -255,7 +255,7 @@
|
|
<el-dialog :title="$t('selectingParticipants')" :visible.sync="chooseParticipVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
<el-dialog :title="$t('selectingParticipants')" :visible.sync="chooseParticipVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
<!-- <el-input style="width:100%" v-model="filterName" placeholder="请输入姓名搜索" @change="findUserInTree"></el-input> -->
|
|
<!-- <el-input style="width:100%" v-model="filterName" placeholder="请输入姓名搜索" @change="findUserInTree"></el-input> -->
|
|
<div v-if="user.userNameNeedTranslate == '1'">
|
|
<div v-if="user.userNameNeedTranslate == '1'">
|
|
- <el-input placeholder="请输入内容" v-model.trim="filterText" class="input-with-select" @keyup.enter.native="echartDepartment()">
|
|
|
|
|
|
+ <el-input :placeholder="$t('pleaseentercontent')" v-model.trim="filterText" class="input-with-select" @keyup.enter.native="echartDepartment()">
|
|
<el-button slot="append" icon="el-icon-search" @click="echartDepartment()"></el-button>
|
|
<el-button slot="append" icon="el-icon-search" @click="echartDepartment()"></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
</div>
|
|
</div>
|
|
@@ -352,26 +352,26 @@
|
|
</div>
|
|
</div>
|
|
<el-divider></el-divider>
|
|
<el-divider></el-divider>
|
|
<div class="line">
|
|
<div class="line">
|
|
- <span>成本基线</span>
|
|
|
|
|
|
+ <span>{{ $t('costbaseline') }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="line" v-for="(item,index) in projectApprocalDetail.projectApprovalBasecostList">
|
|
<div class="line" v-for="(item,index) in projectApprocalDetail.projectApprovalBasecostList">
|
|
<span>{{item.baseName+":"}}</span><span>{{item.baseAmount}}</span>
|
|
<span>{{item.baseName+":"}}</span><span>{{item.baseAmount}}</span>
|
|
</div>
|
|
</div>
|
|
<el-divider></el-divider>
|
|
<el-divider></el-divider>
|
|
<div class="line">
|
|
<div class="line">
|
|
- <span>操作记录</span>
|
|
|
|
|
|
+ <span>{{ $t('caoZuoJiLu') }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="line" v-for="(item,index) in approvalLogData">
|
|
<div class="line" v-for="(item,index) in approvalLogData">
|
|
- <span v-if="user.userNameNeedTranslate != 1">{{item.userName}} {{item.createTime}} {{approvalTypeStr[item.type]}}了日报</span>
|
|
|
|
- <span v-if="user.userNameNeedTranslate == 1"><TranslationOpenDataText type='userName' :openid='item.userName'></TranslationOpenDataText> {{item.createTime}}{{approvalTypeStr[item.type]}}了日报</span>
|
|
|
|
|
|
+ <span v-if="user.userNameNeedTranslate != 1">{{item.userName}} {{item.createTime}} {{approvalTypeStr[item.type]}}{{ $t('leRiBao') }}</span>
|
|
|
|
+ <span v-if="user.userNameNeedTranslate == 1"><TranslationOpenDataText type='userName' :openid='item.userName'></TranslationOpenDataText> {{item.createTime}}{{approvalTypeStr[item.type]}}{{ $t('leRiBao') }}</span>
|
|
</div>
|
|
</div>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="primary" @click="projectApprovalDetailVisible = false" >{{'关闭'}}</el-button>
|
|
<el-button type="primary" @click="projectApprovalDetailVisible = false" >{{'关闭'}}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <el-dialog :title="'立项导入'" v-if="importDialog" :visible.sync="importDialog" customClass="customWidth" width="500px">
|
|
|
|
|
|
+ <el-dialog :title="$t('liXiangDaoRu')" v-if="importDialog" :visible.sync="importDialog" customClass="customWidth" width="500px">
|
|
<p>1. {{$t('other.download')}}
|
|
<p>1. {{$t('other.download')}}
|
|
- <el-link type="primary" style="margin-left:5px;" :underline="false" :href="'./upload/立项导入模板.xlsx'" :download="'立项导入模板.xlsx'">{{'立项导入模板.xlsx'}}</el-link>
|
|
|
|
|
|
+ <el-link type="primary" style="margin-left:5px;" :underline="false" :href="'./upload/立项导入模板.xlsx'" :download="'立项导入模板.xlsx'">{{ $t('liXiangDaoRuMoBanXlsx') }}</el-link>
|
|
</p>
|
|
</p>
|
|
<p>2. {{$t('other.projectsAndPeopleInThetemplate')}}。</p>
|
|
<p>2. {{$t('other.projectsAndPeopleInThetemplate')}}。</p>
|
|
<p style="display: flex;justify-content: center;">
|
|
<p style="display: flex;justify-content: center;">
|
|
@@ -380,7 +380,7 @@
|
|
</el-upload>
|
|
</el-upload>
|
|
</p>
|
|
</p>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <el-dialog append-to-body :title="'立项导入结果'" v-if="showImportResult" :visible.sync="showImportResult" width="40%">
|
|
|
|
|
|
+ <el-dialog append-to-body :title="$t('liXiangDaoRuJieGuo')" v-if="showImportResult" :visible.sync="showImportResult" width="40%">
|
|
<div >
|
|
<div >
|
|
{{importResultMsg}}
|
|
{{importResultMsg}}
|
|
</div>
|
|
</div>
|
|
@@ -407,7 +407,7 @@ return {
|
|
page: 1,
|
|
page: 1,
|
|
size: localStorage.getItem("projectPageSize")==null?20:parseInt(localStorage.getItem("projectPageSize")),
|
|
size: localStorage.getItem("projectPageSize")==null?20:parseInt(localStorage.getItem("projectPageSize")),
|
|
listLoading:false,
|
|
listLoading:false,
|
|
- approvalStatusStr:["待审核","已通过","已驳回","已撤销"],
|
|
|
|
|
|
+ approvalStatusStr:[this.$t('state.WaitingAudit'),this.$t('state.alreadyPassed'),this.$t('state.rejected'),this.$t('state.undone')],
|
|
importanceList:[{id:1,label:this.$t('zheng-chang')},{id:2,label:this.$t('jin-ji')},{id:3,label:this.$t('zhong-yao')},{id:4,label:this.$t('zhong-yao-qie-jin-ji')}],
|
|
importanceList:[{id:1,label:this.$t('zheng-chang')},{id:2,label:this.$t('jin-ji')},{id:3,label:this.$t('zhong-yao')},{id:4,label:this.$t('zhong-yao-qie-jin-ji')}],
|
|
importanceListLable:[this.$t('zheng-chang'), this.$t('jin-ji'), this.$t('zhong-yao'), this.$t('zhong-yao-qie-jin-ji'), this.$t('di-feng-xian'), this.$t('zhong-feng-xian'), this.$t('gao-feng-xian')],
|
|
importanceListLable:[this.$t('zheng-chang'), this.$t('jin-ji'), this.$t('zhong-yao'), this.$t('zhong-yao-qie-jin-ji'), this.$t('di-feng-xian'), this.$t('zhong-feng-xian'), this.$t('gao-feng-xian')],
|
|
addFormVisible:false,
|
|
addFormVisible:false,
|
|
@@ -442,7 +442,7 @@ return {
|
|
code: [{ required: true, message: this.$t('qing-shu-ru-bian-hao'), trigger: "blur" }],
|
|
code: [{ required: true, message: this.$t('qing-shu-ru-bian-hao'), trigger: "blur" }],
|
|
projectStageName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
|
|
projectStageName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
|
|
projectLevelName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
|
|
projectLevelName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
|
|
- deptId: [{ required: true, message: '请选择所属部门', trigger: "blur" }]
|
|
|
|
|
|
+ deptId: [{ required: true, message: this.$t('qingXuanZeSuoShuBuMen'), trigger: "blur" }]
|
|
},
|
|
},
|
|
chosenMembCount:0,
|
|
chosenMembCount:0,
|
|
dataDetail:{},
|
|
dataDetail:{},
|
|
@@ -459,7 +459,7 @@ return {
|
|
projectApprocalDetail:{},
|
|
projectApprocalDetail:{},
|
|
importDialog:false,
|
|
importDialog:false,
|
|
approvalLogData:[],
|
|
approvalLogData:[],
|
|
- approvalTypeStr:["提交","编辑","通过","驳回","撤销"],
|
|
|
|
|
|
+ approvalTypeStr:[this.$t('btn.submit'),this.$t('bian-ji'),this.$t('btn.through'),this.$t('btn.rejected'),this.$t('btn.undo')],
|
|
addLoading:false,
|
|
addLoading:false,
|
|
importingData:false,
|
|
importingData:false,
|
|
showImportResult:false,
|
|
showImportResult:false,
|
|
@@ -1221,7 +1221,7 @@ methods: {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
deletePro(i, item) {
|
|
deletePro(i, item) {
|
|
- this.$confirm('确定要删除立项[' + item.name +'吗]','删除立项', {
|
|
|
|
|
|
+ this.$confirm(this.$t('queDingYaoShanChuLiXiang')+'[' + item.name +this.$t('ma')+']',this.$t('shanChuLiXiang'), {
|
|
confirmButtonText: this.$t('btn.determine'),
|
|
confirmButtonText: this.$t('btn.determine'),
|
|
cancelButtonText: this.$t('btn.cancel'),
|
|
cancelButtonText: this.$t('btn.cancel'),
|
|
type: "warning"
|
|
type: "warning"
|
|
@@ -1269,7 +1269,7 @@ methods: {
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
this.$message({
|
|
this.$message({
|
|
- message: "操作成功",
|
|
|
|
|
|
+ message: this.$t('operationissuccessful'),
|
|
type: "success"
|
|
type: "success"
|
|
});
|
|
});
|
|
this.addFormVisible=false
|
|
this.addFormVisible=false
|
|
@@ -1328,7 +1328,7 @@ methods: {
|
|
this.importingData = false;
|
|
this.importingData = false;
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
//换成弹出框,以免有人等了半天回来啥也没看到
|
|
//换成弹出框,以免有人等了半天回来啥也没看到
|
|
- this.importResultMsg = res.data+'立项数据'+(res.msg?res.msg:"");;
|
|
|
|
|
|
+ this.importResultMsg = res.data+this.$t('liXiangShuJu')+(res.msg?res.msg:"");;
|
|
this.showImportResult=true
|
|
this.showImportResult=true
|
|
this.getList();
|
|
this.getList();
|
|
this.importDialog = false;
|
|
this.importDialog = false;
|
|
@@ -1359,7 +1359,7 @@ methods: {
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
const a = document.createElement("a"); // 创建a标签
|
|
const a = document.createElement("a"); // 创建a标签
|
|
- a.setAttribute("download", "立项导出.xlsx"); // download属性
|
|
|
|
|
|
+ a.setAttribute("download", this.$t('liXiangDaoChuXlsx')); // download属性
|
|
a.setAttribute("href", res.data); // href链接
|
|
a.setAttribute("href", res.data); // href链接
|
|
a.click(); // 自执行点击事件
|
|
a.click(); // 自执行点击事件
|
|
a.remove();
|
|
a.remove();
|