Browse Source

修改地区删除未空,添加报告失败

develop
caoyizhong 3 years ago
parent
commit
a4615caafd
  1. 8
      src/views/city/cityInterest/index.vue
  2. 11
      src/views/report/index.vue

8
src/views/city/cityInterest/index.vue

@ -670,8 +670,14 @@ export default {
//
delItemRim(row){
console.log(row);
let ss= null;
if(row.county === undefined || row.county === null){
ss = row.city;
}else{
ss = row.county;
}
let pasme = row ;
this.$modal.confirm('是否确认删除地区为"' + row.county + '"的数据项?').then(function() {
this.$modal.confirm('是否确认删除地区为"' + ss + '"的数据项?').then(function() {
return api.delInterestRim(pasme);
}).then(() => {

11
src/views/report/index.vue

@ -336,7 +336,16 @@ export default {
//
newItem() {
this.title = "新增报告";
this.$refs.myUpload.clearFiles()
const mainImg = this.$refs.myUpload;
if (mainImg && mainImg.length) {
mainImg.forEach(item => {
// item.uploadFiles.length = 0;
item.clearFiles();
});
}
// this.$refs.myUpload.clearFiles()
this.editForm = {};
this.dialogReadOnly = false;
this.dialogVisible = true;

Loading…
Cancel
Save