|
|
|
@ -149,10 +149,7 @@ |
|
|
|
|
:props="props" |
|
|
|
|
:show-all-levels="false" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
:before-filter="beforeFilter" |
|
|
|
|
:options="rangeList" |
|
|
|
|
@input.native="rangeSearch"></el-cascader> |
|
|
|
|
filterable></el-cascader> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button size="small" @click="rangeVisible = false">取 消</el-button> |
|
|
|
|
<el-button size="small" type="primary" @click="rangeSubmit">确 定</el-button> |
|
|
|
@ -215,9 +212,6 @@ export default { |
|
|
|
|
checkStrictly: true, |
|
|
|
|
lazy: true, |
|
|
|
|
lazyLoad (node, resolve) { |
|
|
|
|
// 如果是在模糊搜索中,则不再用懒加载请求数据 |
|
|
|
|
const input = document.querySelector('.el-cascader__search-input') |
|
|
|
|
if (input && input.value) return false |
|
|
|
|
const { level, value } = node |
|
|
|
|
// 省份 |
|
|
|
|
if (!level) { |
|
|
|
@ -309,7 +303,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.getData() |
|
|
|
|
this.getSchool() |
|
|
|
|
// this.getSchool() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getData() { |
|
|
|
@ -430,7 +424,7 @@ export default { |
|
|
|
|
const data = { |
|
|
|
|
contestId: id || '', |
|
|
|
|
fileName: this.fileName, |
|
|
|
|
filePath: file.fileUrl |
|
|
|
|
filePath: file.fileUrl || file.fileId |
|
|
|
|
} |
|
|
|
|
this.form.contestAnnexList.push(data) |
|
|
|
|
// 编辑的时候需要调新增附件接口 |
|
|
|
|