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