Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit 2602221

Browse files
authored
Merge pull request #493 from FlowzPlatform/469_FormPermissionFIx
show all data if permission is not available
2 parents f9f3b55 + 3649192 commit 2602221

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

client/src/components/SchemaSubForm.vue

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,28 @@
187187
</Row>
188188
</FormItem>
189189
</Col>
190+
<Col :span="24" style="padding:0px 20px 0px 2px" v-else>
191+
<FormItem :key="inx" :rules="createRules(field)" style="margin-bottom:10px;">
192+
<Row>
193+
<Col :span="2">
194+
<b>{{field.name}}</b>
195+
</Col>
196+
<Col :span="21" >
197+
<input class="form-control" type="file" v-if="field.type == 'file'" @change="handleFileChange($event, index, field.name)" :multiple="(field.property.isMultiple)? field.property.isMultiple: false"/>
198+
<div v-if="schemainstance.data[index][field.name]" >
199+
<Progress v-if="stratProgress" v-bind:percent="fileUploadProgress" :success-percent="30" />
200+
<div class="" v-for="(val, i) in schemainstance.data[index][field.name]">
201+
<Row>
202+
<Col :span="23"> <a :href="val" class="list-group-item" target="_blank" style="color:blue;padding:2px 2px;" >{{val}}</a></Col>
203+
<Col :span="1"><a href="#" style="color:red;float:right" @click="removeSection(i, schemainstance.data[index][field.name])">&#10005;&nbsp;</a></Col>
204+
</Row>
205+
</div>
206+
</div>
207+
</Col>
208+
<Col :span="1">&nbsp;&nbsp;{{fileNumber}} / {{fileSize}}</Col>
209+
</Row>
210+
</FormItem>
211+
</Col>
190212
</div>
191213
</template>
192214
</div>

0 commit comments

Comments
 (0)