28307
This commit is contained in:
		| @@ -37,7 +37,7 @@ | |||||||
|                 <template v-else-if="item.type === 'gird'"> |                 <template v-else-if="item.type === 'gird'"> | ||||||
|                   <el-input disabled :value="girdName" size="small" placeholder="请选择网格"> |                   <el-input disabled :value="girdName" size="small" placeholder="请选择网格"> | ||||||
|                     <template slot="append"> |                     <template slot="append"> | ||||||
|                       <el-button size="small" @click="showGrid = true, treeObj.checkedKeys = formData[item.fieldDbName] ? [formData[item.fieldDbName]] : [], gridFieldName = item.fieldDbName" :disabled="!!(formData.resident_id && item.isInit)">选择网格</el-button> |                       <el-button size="small" @click="showGrid = true, treeObj.checkedKeys = formData[item.fieldDbName] ? [formData[item.fieldDbName]] : [], gridFieldName = item.fieldDbName">选择网格</el-button> | ||||||
|                     </template> |                     </template> | ||||||
|                   </el-input> |                   </el-input> | ||||||
|                 </template> |                 </template> | ||||||
| @@ -48,7 +48,7 @@ | |||||||
|                     <template slot="append"> |                     <template slot="append"> | ||||||
|                       <ai-person-select |                       <ai-person-select | ||||||
|                         :instance="instance" |                         :instance="instance" | ||||||
|                         :disabled="params.id" |                         :disabled="!!params.id" | ||||||
|                         :url="'/app/appresident/list?auditType=1&areaId=' + user.info.areaId" |                         :url="'/app/appresident/list?auditType=1&areaId=' + user.info.areaId" | ||||||
|                         :isMultiple="false" dialogTitle="选择" @selectPerson="onChange"> |                         :isMultiple="false" dialogTitle="选择" @selectPerson="onChange"> | ||||||
|                         <template name="option" v-slot:option="{ item }"> |                         <template name="option" v-slot:option="{ item }"> | ||||||
| @@ -93,7 +93,7 @@ | |||||||
|                 </template> |                 </template> | ||||||
|                 <!-- 附件 --> |                 <!-- 附件 --> | ||||||
|                 <template v-else-if="item.type == 'upload'"> |                 <template v-else-if="item.type == 'upload'"> | ||||||
|                   <ai-uploader :instance="instance" isShowTip fileType="file" v-model="formData[item.fieldDbName]" :disabled="item.disable == 1 || !!(formData.resident_id && item.isInit)" |                   <ai-uploader :instance="instance" isShowTip fileType="file" v-model="formData[item.fieldDbName]" :disabled="item.disable == 1" | ||||||
|                                acceptType=".zip,.rar,.doc,.docx,.xls,.ppt,.pptx,.pdf,.txt,.jpg,.png,.xlsx" |                                acceptType=".zip,.rar,.doc,.docx,.xls,.ppt,.pptx,.pdf,.txt,.jpg,.png,.xlsx" | ||||||
|                                :limit="item.fileMaxCount" :maxSize="item.fileChoseSize"></ai-uploader> |                                :limit="item.fileMaxCount" :maxSize="item.fileChoseSize"></ai-uploader> | ||||||
|                 </template> |                 </template> | ||||||
| @@ -389,6 +389,15 @@ export default { | |||||||
|             if (item.type === 'upload' && !this.formData[item.fieldDbName]) { |             if (item.type === 'upload' && !this.formData[item.fieldDbName]) { | ||||||
|               this.formData[item.fieldDbName] = [] |               this.formData[item.fieldDbName] = [] | ||||||
|             } |             } | ||||||
|  |  | ||||||
|  |             if (item.type === 'upload' && this.formData[item.fieldDbName]) { | ||||||
|  |               console.log(this.formData[item.fieldDbName]) | ||||||
|  |               this.formData[item.fieldDbName] = this.formData[item.fieldDbName].split(',').map(v => { | ||||||
|  |                 return { | ||||||
|  |                   url: v | ||||||
|  |                 } | ||||||
|  |               }) | ||||||
|  |             } | ||||||
|           }) |           }) | ||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user