| | |
| | | <!-- 文书种类 --> |
| | | <el-form-item label="文书种类:" prop="writType"> |
| | | <el-select v-model="book.writType" placeholder="请输入文书种类"> |
| | | <el-option v-for="item in kindList" :key="item.value" :label="item.label" |
| | | :value="item.value"> |
| | | <el-option v-for="item in kindList" :key="item.id" :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import {getCodeList} from '@/utils/helper' |
| | | export default { |
| | | data() { |
| | | const checkKind = (rule, value, callback) => { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.book.writPic) |
| | | const {getBookType} = this |
| | | getBookType(); |
| | | }, |
| | | props: ['caseId', 'closeDialog'], |
| | | methods: { |
| | | handleSuccess1(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | console.log(res); |
| | | // this.$set(this.book, 'writPic', baseUrl + res.data.url1); |
| | | // console.log(this.book.writPic); |
| | | if (this.book.writPic.length < 4) { |
| | | this.book.writPic.push(baseUrl + res.data.url1) |
| | | } |
| | | }, |
| | | handleSuccess2(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | console.log(res); |
| | | if (this.book.originalPic.length < 4) { |
| | | this.book.originalPic.push(baseUrl + res.data.url1) |
| | | } |
| | | }, |
| | | handleSuccess3(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | console.log(res); |
| | | if (this.book.rectifiedPic.length < 4) { |
| | | this.book.rectifiedPic.push(baseUrl + res.data.url1) |
| | | } |
| | | }, |
| | | handleSuccess4(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | console.log(res); |
| | | if (this.book.otherPic.length < 4) { |
| | | this.book.otherPic.push(baseUrl + res.data.url1) |
| | | } |
| | |
| | | this.book.otherPic.splice(index, 1); |
| | | } |
| | | |
| | | }, |
| | | // 获取文书种类 |
| | | async getBookType(){ |
| | | let arr |
| | | arr = await getCodeList('15'); |
| | | this.kindList = arr; |
| | | } |
| | | }, |
| | | watch: { |