[update] 标准选择改成回显用value
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
</a-col>
|
||||
<a-col :span="12" v-if="['1', '2', '3'].includes(form.getFieldValue('level'))">
|
||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('standardNumber')">
|
||||
<standard-model-selection
|
||||
<standard-selection
|
||||
v-decorator.trim="[ 'standardNumber', validatorRules.standardNumber]"
|
||||
:placeholder="$t('pleaseEnterOrSelect') + $t('standardNumber')"
|
||||
:source="form.getFieldValue('level')"
|
||||
@@ -90,12 +90,12 @@
|
||||
import { postAction } from '@/api/manage'
|
||||
import { getCarTypeProjectList } from '@/api/api'
|
||||
// 双向绑定的标准选择器
|
||||
import StandardModelSelection from '@/components/selection/StandardModelSelection'
|
||||
import StandardSelection from '@/components/selection/StandardSelection'
|
||||
import pick from 'lodash.pick'
|
||||
|
||||
export default {
|
||||
name: 'QuizModal',
|
||||
components: { StandardModelSelection },
|
||||
components: { StandardSelection },
|
||||
data () {
|
||||
return {
|
||||
title: '',
|
||||
|
||||
@@ -222,7 +222,7 @@ export default {
|
||||
importUrl: '', // 导入
|
||||
exportXlsUrl: '/laws/standard/enterprise/exportData', // 导出
|
||||
exportZipUrl: '/laws/standard/enterprise/exportDataWithFile', // 带文件导出
|
||||
downTemplateUrl: '' // 下载导入模板
|
||||
downTemplateUrl: '/laws/standard/enterprise/templateDownload' // 下载导入模板
|
||||
},
|
||||
showAction: true, // 是否显示操作列
|
||||
currentShare: {}
|
||||
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
url = this.url.add
|
||||
}
|
||||
const param = Object.assign({}, formInline)
|
||||
param.checkList = this.dataSource
|
||||
// param.checkList = this.dataSource
|
||||
postAction(url, param).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
|
||||
Reference in New Issue
Block a user