Browse Source

统一提示框的风格。

feature/yujt_analysis_pc
zhangyuan 5 years ago
parent
commit
de974fc162
  1. 23
      src/views/modules/property/propertyproject.vue

23
src/views/modules/property/propertyproject.vue

@ -64,16 +64,6 @@
</el-pagination> </el-pagination>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
<el-dialog
title="提示"
:visible.sync="dialogVisible"
width="420px">
<span>是否确认解散物业项目群</span>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="deleteData"> </el-button>
</span>
</el-dialog>
</div> </div>
</el-card> </el-card>
</template> </template>
@ -98,7 +88,6 @@
projectName: '', projectName: '',
}, },
options: [], options: [],
dialogVisible: false,
deleteId: '' deleteId: ''
} }
}, },
@ -126,13 +115,15 @@
this.dataForm.gridId = value.slice(-1).shift(); this.dataForm.gridId = value.slice(-1).shift();
}, },
beforeDeleteHandle(id) { beforeDeleteHandle(id) {
this.$confirm("确定解散物业项目群?", this.$t('prompt.title'), {
confirmButtonText: this.$t('confirm'),
cancelButtonText: this.$t('cancel'),
type: 'warning'
}).then(() => {
this.deleteId = id; this.deleteId = id;
this.dialogVisible = true
},
deleteData() {
this.dialogVisible = false;
this.deleteHandle(this.deleteId); this.deleteHandle(this.deleteId);
} })
},
} }
} }
</script> </script>

Loading…
Cancel
Save