diff --git a/src/views/modules/kpi/kpisubpositiondetail.vue b/src/views/modules/kpi/kpisubpositiondetail.vue
index b75b59cf..feea59b7 100644
--- a/src/views/modules/kpi/kpisubpositiondetail.vue
+++ b/src/views/modules/kpi/kpisubpositiondetail.vue
@@ -9,7 +9,7 @@
{{index1+1}}) {{item1.label}}
-
+
-
+
0) {
-
for (let j of childSub) {
-
//描述
console.log(j)
let childDesribe = j.describe;
@@ -478,6 +478,33 @@ export default {
}
}
+ for (var i = 0; i < subChild.length; i++) {
+ let x = subChild[i].desribe;
+ if (x === undefined || x === ''){
+ remindInfo += '第' + (i + 1) + '项、'
+ }
+ }
+ if (remindInfo.length > 0) {
+ remindInfo = remindInfo.substring(0, remindInfo.length - 1)
+ this.$confirm(remindInfo + '描述未完善,请完善后提交!', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ // 确定逻辑
+ }).catch(() => {})
+ return false
+ }
+ if ( this.dataForm.grids.length === 0){
+ this.$confirm('关联网格未完善,请完善后提交!', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ // 确定逻辑
+ }).catch(() => {})
+ return false
+ }
this.dataForm.subDetail =subChild
let pateDate={
infoId : this.dataForm.id,
@@ -492,7 +519,6 @@ export default {
}
this.backToUserRelationList();
}).catch(() => {})
-
}, 1000, { 'leading': true, 'trailing': false })
},
components: {