Browse Source

【pc端 添加网格实体化指标详情】-【页面修改】-(魏凯)-2020/12/10

master
weikai 5 years ago
parent
commit
52e00d123d
  1. 46
      src/views/modules/kpi/kpisubpositiondetail.vue

46
src/views/modules/kpi/kpisubpositiondetail.vue

@ -223,6 +223,17 @@ export default {
if (this.status === '1'){
this.isAble = true;
this.pageDisabled = true;
this.hideUpload = true;
}
if (this.status === '2'){
this.isAble = true;
this.pageDisabled = true;
this.hideUpload = true;
}
if (this.status === '3'){
this.isAble = true;
this.pageDisabled = true;
this.hideUpload = true;
}
this.$nextTick(() => {
if (this.dataForm.id) {
@ -448,10 +459,27 @@ export default {
},
//
dataFormSubmitHandle: debounce(function () {
this.pageloading = true;
this.isAble = true;
// 0
let remindInfo = ''
for (var i = 0; i < this.checkDiction.length; i++) {
let childSub = this.checkDiction[i].childDiction;
if (childSub.length>0){
for (let b = 0; b <childSub.length ; b++) {
let cds = childSub[b].describe;
if (cds === undefined || cds === ''){
remindInfo += '第' + (i + 1) + '大项有的描述、'
break;
}
}
}else {
let ds = this.checkDiction[i].describe;
if (ds === undefined || ds === ''){
remindInfo += '第' + (i + 1) + '大项有的描述、'
}
}
}
//
let subChild =[];
for (let i of this.checkDiction){
@ -492,15 +520,9 @@ 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 + '描述未完善,请完善后提交!', '提示', {
this.$confirm(remindInfo + '未完善,请完善后提交!', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@ -526,6 +548,8 @@ export default {
infoDetail:subChild
}
console.log(pateDate);
this.pageloading = true;
this.isAble = true;
this.$http[!this.dataForm.id ? 'post' : 'put'](`kpi/subdetail/addDetail`,pateDate).then(({ data: res }) => {
this.pageloading = false;
this.isAble = false;
@ -545,5 +569,7 @@ export default {
</script>
<style scoped>
.hide .el-upload--picture-card {
display: none;
}
</style>
Loading…
Cancel
Save