Commit 12f4810f by 史敦盼

修改

1 parent baee9210
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-03-12 14:55:59 * @Date: 2024-03-12 14:55:59
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-02 10:49:45 * @LastEditTime: 2024-04-02 13:59:42
--> -->
<!-- /** <!-- /**
* 搜索栏公共组件 * 搜索栏公共组件
...@@ -152,7 +152,9 @@ export default { ...@@ -152,7 +152,9 @@ export default {
}) })
}, },
onReset() { onReset() {
this.$refs.formRef.resetFields() this.$nextTick(() => {
this.$refs.formRef.resetFields()
})
}, },
// 添加初始值 // 添加初始值
addInitValue() { addInitValue() {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-03-12 15:11:47 * @Date: 2024-03-12 15:11:47
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-02 10:13:55 * @LastEditTime: 2024-04-02 12:39:00
--> -->
<template> <template>
<div class="form-item"> <div class="form-item">
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
v-model="currentVal" v-model="currentVal"
v-bind="bindProps" v-bind="bindProps"
v-on="bindEvents" v-on="bindEvents"
clearable
:placeholder="itemOptions.placeholder" :placeholder="itemOptions.placeholder"
></el-input> ></el-input>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-04-01 14:39:48 * @Date: 2024-04-01 14:39:48
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-02 11:36:03 * @LastEditTime: 2024-04-02 13:55:25
--> -->
<template> <template>
<el-dialog <el-dialog
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
if (Object.keys(this.rowData).length) { if (Object.keys(this.rowData).length) {
this.formOptions.forEach((v) => { this.formOptions.forEach((v) => {
if (v.prop === 'professionalField') { if (v.prop === 'professionalField') {
v.initValue = this.rowData[v.prop].split(',') v.initValue = this.rowData[v.prop]?.split(',')
} else { } else {
v.initValue = this.rowData[v.prop] v.initValue = this.rowData[v.prop]
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-04-01 14:38:41 * @Date: 2024-04-01 14:38:41
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-02 11:36:10 * @LastEditTime: 2024-04-02 13:55:40
--> -->
<template> <template>
<el-dialog <el-dialog
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
if (Object.keys(this.rowData).length) { if (Object.keys(this.rowData).length) {
this.formOptions.forEach((v) => { this.formOptions.forEach((v) => {
if (v.prop === 'professionalField') { if (v.prop === 'professionalField') {
v.initValue = this.rowData[v.prop].split(',') v.initValue = this.rowData[v.prop]?.split(',')
} else { } else {
v.initValue = this.rowData[v.prop] v.initValue = this.rowData[v.prop]
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-04-01 14:05:50 * @Date: 2024-04-01 14:05:50
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-02 11:35:11 * @LastEditTime: 2024-04-02 13:54:03
--> -->
<template> <template>
<div class="searchTable"> <div class="searchTable">
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
{ label: '成果简介', prop: 'remark', width: '200px' }, { label: '成果简介', prop: 'remark', width: '200px' },
{ {
label: '专家状态', label: '专家状态',
prop: 'state_', prop: 'state',
options: this.talentStatusOptions, options: this.talentStatusOptions,
collectionType: true, collectionType: true,
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!