Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
78439c97
Commit
78439c97
authored
Apr 26, 2022
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
b8a6e049
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
bigdata/app/front/vues/base/form/form.vue
+1
-1
bigdata/app/front/vues/base/select.vue
+9
-2
No files found.
bigdata/app/front/vues/base/form/form.vue
View file @
78439c97
...
...
@@ -19,7 +19,7 @@ var tmpl=`
<el-input
v-model
.
number=
"formModel[item.prop]"
size=
"small"
:disabled=
"item.disabled"
:placeholder=
"item.placeHolder"
:style=
"item.style"
></el-input>
</
template
>
<
template
v-else-if=
"isSelect(item.type)"
>
<gsb-select
:ref=
"item.prop"
v-model=
"formModel[item.prop]"
:refModel=
"item.refModel"
:refMethod=
"item.refMethod"
:placeHolder=
"item.placeHolder"
:dicKey=
"item.d
icKey"
:autoComplete=
"item.autoComplete"
:isMulti=
"item.isMulti"
:modelName=
"item.modelName"
:isFilter=
"item.isFilter"
:labelField=
"item.labelField"
:refwhere2=
"item.refwhere2"
@
change=
"onselchange(item.prop,formModel,item.target)"
:valueField=
"item.valueField"
></gsb-select>
<gsb-select
:ref=
"item.prop"
v-model=
"formModel[item.prop]"
:refModel=
"item.refModel"
:refMethod=
"item.refMethod"
:placeHolder=
"item.placeHolder"
:dicKey=
"item.dicKey"
:excludeDicKey=
"item.excludeD
icKey"
:autoComplete=
"item.autoComplete"
:isMulti=
"item.isMulti"
:modelName=
"item.modelName"
:isFilter=
"item.isFilter"
:labelField=
"item.labelField"
:refwhere2=
"item.refwhere2"
@
change=
"onselchange(item.prop,formModel,item.target)"
:valueField=
"item.valueField"
></gsb-select>
</
template
>
<
template
v-else-if=
"isCheck(item.type)"
>
<gsb-checkgroup
:max=
"group.max"
v-model=
"formModel[item.prop]"
:isButton=
"item.isButton"
:dicKey=
"item.dicKey"
></gsb-checkgroup>
...
...
bigdata/app/front/vues/base/select.vue
View file @
78439c97
...
...
@@ -39,7 +39,7 @@ module.exports=
prop: 'value',
event: 'change'
},
props:["cssStyle","refwhere2","parentcode","parentfield","level","levelfield","value","refMethod","dicKey","refModel","placeHolder","autoComplete","isGrouped","isFirstDefault","isFilter","isMulti","labelField","valueField", "isDisabled","allowcreate"],
props:["cssStyle","refwhere2","parentcode","parentfield","level","levelfield","value","refMethod","dicKey","
excludeDicKey","
refModel","placeHolder","autoComplete","isGrouped","isFirstDefault","isFilter","isMulti","labelField","valueField", "isDisabled","allowcreate"],
data:function(){
return {
dataSouce:[],
...
...
@@ -99,7 +99,14 @@ module.exports=
this.$root.getReq("/web/common/metaCtl/getDicConfig",{"dicKey":this.dicKey}).then(cfg=>{
console.log(JSON.stringify(cfg.data));
Object.keys(cfg.data).forEach(key=>{
this.dataSouce.push({"label":cfg.data[key],"value":key});
if(this.excludeDicKey){
if(this.excludeDicKey.indexOf(key)
<0
){
this
.
dataSouce
.
push
({"
label
"
:cfg
.
data
[
key
],"
value
"
:key
});
}
}
else
{
this
.
dataSouce
.
push
({"
label
"
:cfg
.
data
[
key
],"
value
"
:key
});
}
});
});
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment