qianlishi 3 years ago
parent a576adff08
commit 731dd1d4e6

@ -4,7 +4,7 @@
* @Author: qianlishi * @Author: qianlishi
* @Date: 2021-12-11 14:48:27 * @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi * @LastEditors: qianlishi
* @LastEditTime: 2022-05-14 15:42:53 * @LastEditTime: 2022-05-15 10:44:58
--> -->
<template> <template>
<anji-crud ref="listPage" :option="crudOption"> <anji-crud ref="listPage" :option="crudOption">
@ -298,8 +298,12 @@ export default {
// fieldExtend select // fieldExtend select
formChange: (formData, fieldName, fieldVal, fieldExtend) => { formChange: (formData, fieldName, fieldVal, fieldExtend) => {
console.log(formData); console.log(formData);
if (fieldName == "reportImage" && fieldVal.length > 0) { if (fieldName == "reportImage") {
formData["reportImage"] = fieldVal && fieldVal[0].url; if (fieldVal.length > 0) {
formData["reportImage"] = fieldVal && fieldVal[0].url;
} else {
formData["reportImage"] = "";
}
} }
} }
} }

Loading…
Cancel
Save