参数模板管理-参数列表-新增-附件控件上传附件模板的文件类型
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
name="file"
|
name="file"
|
||||||
:file-list="myfileList"
|
:file-list="myfileList"
|
||||||
:multiple="true"
|
:multiple="true"
|
||||||
:action="uploadAction+'?state='+2+'&cut='+cut"
|
:action="actionUrl"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
@preview="preview"
|
@preview="preview"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
@@ -34,7 +34,7 @@ import { mapGetters } from 'vuex'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'file',
|
name: 'file',
|
||||||
props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile','detailDate','accept'],
|
props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'detailDate', 'accept', 'isParameter'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -50,6 +50,15 @@ export default {
|
|||||||
cut: ''
|
cut: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
actionUrl() {
|
||||||
|
if (this.isParameter) {
|
||||||
|
return this.uploadAction + '?state=' + 3 + '&cut=' + this.cut
|
||||||
|
} else {
|
||||||
|
return this.uploadAction + '?state=' + 2 + '&cut=' + this.cut
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
const token = Vue.ls.get(ACCESS_TOKEN)
|
const token = Vue.ls.get(ACCESS_TOKEN)
|
||||||
this.headers = { 'X-Access-Token': token }
|
this.headers = { 'X-Access-Token': token }
|
||||||
|
|||||||
@@ -317,7 +317,7 @@
|
|||||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<uploadFileChange ref="uploadFile" @uploadSuccess="uploadSuccess"></uploadFileChange>
|
<uploadFileChange :isParameter="true" ref="uploadFile" @uploadSuccess="uploadSuccess"></uploadFileChange>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user