diff --git a/src/components/PopupRight/index.vue b/src/components/PopupRight/index.vue index c3dd159..4cc7d28 100644 --- a/src/components/PopupRight/index.vue +++ b/src/components/PopupRight/index.vue @@ -22,7 +22,7 @@
-
+
- 指标名称 + 指标名称 考核标准 - 进度 - 权重 - 操作 + style="flex:1 0 auto;">考核标准 + 权重 + 操作
-
{{j.target}}
-
{{j.keyResult}}
-
- -
-
{{ Math.round((j.checkWeight * 100)*1000)/1000}}%
-
+
{{ Math.round((j.checkWeight * 100)*1000)/1000}}%
+
+ type="primary" plain + size="mini"> 添加任务 编辑 - 删除 @@ -72,14 +65,20 @@
-
{{kitem.name}}({{Math.round((kitem.processRate * 100)*1000)/1000|| 0}}%)
-
+
任务{{indexK+1}}:{{kitem.name.length>16?kitem.name.substring(0,12):kitem.name}}(当前进度:{{Math.round((kitem.processRate * 100)*1000)/1000|| 0}}%)
+
+ + 添加任务 + 编辑 删除 @@ -94,7 +93,7 @@ 业务指标权重:{{handleGetWeight(i)}}% /{{Math.round((i.weight * 100)*1000)/1000}}%
- 所有指标总权重: {{ handleGetWeight1()}}% + 所有指标总权重: {{ handleGetWeight1()}}%
@@ -139,6 +138,11 @@
+ 确定并继续添加 { if (v) { this.formTask.processRate = Number(this.formTask.processRate) / 100 @@ -310,7 +314,11 @@ export default { this.editItem.processRate = this.formTask.processRate || '0' } this.$forceUpdate() - this.handleCancelTask() + if (!type) this.handleCancelTask() + this.formTask = { + name: '', + processRate: '0' + } console.log(this.formTask) } }) @@ -520,6 +528,9 @@ export default {