master
lion 6 days ago
parent 3fc011fd9a
commit 0254789b3a

@ -289,7 +289,7 @@ export default {
targetValue () {
return function(item) {
if (item.target?.unit_detail?.value !== '无') {
return `${item.target?.symbol_detail?.value}${this.type ? item.target?.half_target : item.target?.year_target}${item.target?.unit_detail?.value}`
return `${item.target?.symbol_detail?.value}${this.type === 1 ? item.target?.half_target : item.target?.year_target}${item.target?.unit_detail?.value}`
} else {
return this.type === 1 ? item.target?.half_target : item.target?.year_target
}

@ -107,17 +107,7 @@
</el-dropdown>
</template>
<el-dropdown @command="command => {
if (command === 'yearMiddle') {
detailType = 1;
$refs['detailAchievements'].setPlanId(scope.row.id);
$refs['detailAchievements'].show();
} else {
detailType = 2;
$refs['detailAchievements'].setPlanId(scope.row.id);
$refs['detailAchievements'].show();
}
}">
<el-dropdown @command="command => openDetailOverview(command, scope.row)">
<Button style="margin-left: 4px;" size="small" type="primary">
查看总览<i class="el-icon-arrow-down el-icon--right"></i>
</Button>
@ -399,6 +389,16 @@ export default {
};
},
methods: {
openDetailOverview(command, row) {
if (command === 'yearMiddle') {
this.detailType = 1;
} else {
this.detailType = 2;
}
this.$refs['detailAchievements'].setPlanId(row.id);
this.$refs['detailAchievements'].show();
},
sendExamine (command, row) {
this.$confirm("确认要送审?","提示",{
}).then(_ => {

Loading…
Cancel
Save