Browse Source

update

master_tdsql
awsl 1 month ago
parent
commit
945f70d295
  1. 2
      src/components/myUpload/index.vue
  2. 5
      src/views/dike/engineeringCondition/identificationPlate/components/markForm.vue
  3. 2
      src/views/dike/engineeringCondition/identificationPlate/index.vue
  4. 13
      src/views/dike/managementGuarantee/archivesManagement/index.vue
  5. 2
      src/views/dike/managementGuarantee/gzzdgl/gzsc/index.vue

2
src/components/myUpload/index.vue

@ -57,7 +57,7 @@ export default {
url: file.response.url,
uid: file.uid,
});
console.log("this.fileList", this.fileList);
console.log("myUpload", this.fileList);
},
handleRemove(file) {
// console.log(file, fileList1);

5
src/views/dike/engineeringCondition/identificationPlate/components/markForm.vue

@ -227,11 +227,16 @@ export default {
this.form.dikeName = this.comForm.dikeName;
this.form.dikeCode = this.comForm.dikeCode;
this.form.adcd = this.comForm.adcd;
console.log('editItem', newVal);
if (newVal.photo) {
console.log("文件列表", newVal.photo);
this.fileList = JSON.parse(newVal.photo);
console.log('if',this.fileList);
}
console.log('notif',this.fileList);
},
},
"comForm.dikeName": {

2
src/views/dike/engineeringCondition/identificationPlate/index.vue

@ -959,7 +959,7 @@ export default {
this.reset();
this.isEdit = false;
this.open = true;
this.title = "添加堤防标识标牌";
this.title = "添加堤防标识标牌11111";
},
/** 修改按钮操作 */
handleUpdate(row) {

13
src/views/dike/managementGuarantee/archivesManagement/index.vue

@ -233,7 +233,7 @@
</div>
</el-upload> -->
</el-form-item>
<el-form-item label="年度调度运用计划" prop="planAttachment">
<el-form-item label="资料附件" prop="planAttachment">
<myUpload :fileList="fileList2" />
<!-- <el-upload
class="upload-demo"
@ -369,7 +369,10 @@ export default {
},
methods: {
fileDateFormat(row) {
return this.selectDictLabel(this.fileDateTypeOptions, row.regulationsAttachment);
return this.selectDictLabel(
this.fileDateTypeOptions,
row.regulationsAttachment
);
},
/** 查询堤防档案管理列表 */
getList() {
@ -468,7 +471,9 @@ export default {
const id = row.id || this.ids;
getDagl(id).then((response) => {
this.form = response.data;
if (this.form.planAttachment) {
this.fileList2 = JSON.parse(this.form.planAttachment);
}
this.open = true;
this.title = "修改堤防档案管理";
});
@ -477,7 +482,7 @@ export default {
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
this.form.planAttachment = JSON.stringify(this.fileList2);
if (this.form.id != null) {
updateDagl(this.form).then((response) => {
if (response.code === 200) {

2
src/views/dike/managementGuarantee/gzzdgl/gzsc/index.vue

@ -271,7 +271,7 @@ export default {
getGzsc(id).then(response => {
this.form = response.data;
if (this.form.file) {
this.fileList1 = JSON.parse(this.form.file);
this.fileList = JSON.parse(this.form.file);
}
this.open = true;
this.title = "修改堤防工作手册";

Loading…
Cancel
Save