|
@@ -569,25 +569,14 @@
|
|
|
placeholder="请输入备注信息,不超过200字"
|
|
|
maxlength="200"
|
|
|
/>
|
|
|
-
|
|
|
- <el-upload
|
|
|
- class="upload-demo"
|
|
|
- action="https://www.zthymaoyi.com/upload/admin"
|
|
|
- :on-success="
|
|
|
- (res, file) => {
|
|
|
- uploadSuccessHandle(res)
|
|
|
- }
|
|
|
- "
|
|
|
- multiple
|
|
|
- :limit="3"
|
|
|
- :file-list="fileList"
|
|
|
- >
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <div slot="tip" class="el-upload__tip">
|
|
|
- 推荐格式.jpg, .jpeg, .png, .gif, .pdf, .doc, .zip,
|
|
|
- .rar,单个文件大小不超过10M
|
|
|
- </div>
|
|
|
- </el-upload>
|
|
|
+ <ws-upload
|
|
|
+ ref="upload"
|
|
|
+ :comp-id="compId"
|
|
|
+ :appendix-ids="deptBudgetList.addressUrl"
|
|
|
+ :size-limit="size"
|
|
|
+ @onChange="onChange"
|
|
|
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
|
|
|
+ />
|
|
|
</ws-form>
|
|
|
<div style="text-align: right; padding: 10px" class="center">
|
|
|
<el-button
|
|
@@ -618,6 +607,18 @@ import {
|
|
|
editInfo,
|
|
|
getstaff,
|
|
|
} from '@/model/contarct/index'
|
|
|
+import {
|
|
|
+ findTreeList,
|
|
|
+ findFileUnderFolder,
|
|
|
+ removeAll,
|
|
|
+ addInfo,
|
|
|
+ findFileType,
|
|
|
+ fileRename,
|
|
|
+ changeInfo,
|
|
|
+ addFile,
|
|
|
+ moveFile,
|
|
|
+ removeInfo
|
|
|
+} from '@/model/dataManageMent'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
|
import { EventBus, dayjs } from 'base-core-lib'
|
|
|
export default {
|
|
@@ -835,8 +836,18 @@ export default {
|
|
|
},
|
|
|
// 上传附件
|
|
|
uploadSuccessHandle(e) {
|
|
|
- this.addressUrl += e.url + ''
|
|
|
- this.addressUrls.push(this.addressUrl.split(','))
|
|
|
+ },
|
|
|
+ // 上传附件
|
|
|
+ onChange () {
|
|
|
+ this.$refs.upload
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async response => {
|
|
|
+ this.deptBudgetList.addressUrl = response
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+ })
|
|
|
},
|
|
|
getUnitList() {
|
|
|
xiala({
|