Commit 4229f75a authored by 李苏's avatar 李苏 💬

type 选择调整为 "src": "fme/ufmezbp/init/year",

parent af2dd810
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46 * @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com * @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 14:43:46 * @LastEditTime: 2024-12-06 15:53:14
* @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/biao/edit.vue * @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/biao/edit.vue
--> -->
<template> <template>
...@@ -35,13 +35,14 @@ ...@@ -35,13 +35,14 @@
prop: 'type', prop: 'type',
span: 12, span: 12,
"type": "RelSelect", "type": "RelSelect",
"value": "year", "value": "Y",
"typeConfig": { "typeConfig": {
"src": "fme/ufmezbp/init/year",
change: (v) => { change: (v) => {
console.log(this.editConfig.editColItemList) console.log(this.editConfig.editColItemList)
let changList = ['dbrwcq', 'yhrwcq', 'lhqx', 'sjtbyc', 'sjgbcq','month'] let changList = ['dbrwcq', 'yhrwcq', 'lhqx', 'sjtbyc', 'sjgbcq','month']
let changList2 = ['rlkkx'] let changList2 = ['rlkkx']
if (v.id == 'year') { if (v.id == 'Y') {
this.editConfig.editColItemList.forEach(item => { this.editConfig.editColItemList.forEach(item => {
if (changList.includes(item.prop)) { if (changList.includes(item.prop)) {
item.show = false item.show = false
...@@ -60,16 +61,7 @@ ...@@ -60,16 +61,7 @@
}, },
clearable: false, clearable: false,
"optionsData": [{
id: 'year',
name: '年'
},
{
id: 'month',
name: '月'
}
],
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
......
...@@ -120,18 +120,14 @@ ...@@ -120,18 +120,14 @@
prop: 'type', prop: 'type',
span: 6, span: 6,
type: 'RelSelect', type: 'RelSelect',
value: 'year', value: 'Y',
typeConfig: { typeConfig: {
clearable: false, clearable: false,
optionsData: [{ "src": "fme/ufmezbp/init/year",
id: 'year', "match": {
name: '年' "value": "id",
}, "label": "name"
{ }
id: 'month',
name: '月'
}
],
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment