提交 5813a66e 编写于 作者: zhujiamin's avatar zhujiamin

debug数据回显问题

上级 bf81bdc6
......@@ -24,6 +24,17 @@ export default class AppSelectDropDown extends Vue {
*/
@Prop() public context!: any;
/**
* 监听context
* @memberof AppSelectDropDown
*/
@Watch('context')
onContextChange(){
if (Object.is(this.editortype, 'dropdown')) {
this.onSearch(null, true);
}
}
/**
* 视图参数
*
......@@ -259,20 +270,12 @@ export default class AppSelectDropDown extends Vue {
*
* @memberof AppSelectDropDown
*/
public created() {
if (Object.is(this.editortype, 'dropdown')) {
public mounted() {
if (Object.is(this.editortype, 'dropdown')) {
this.onSearch(null, true);
}
}
/**
* vue 生命周期
*
* @memberof AppSelectDropDown
*/
public mounted() {
}
/**
* 组件销毁
*
......
......@@ -122,6 +122,15 @@ export default class AppSelect extends Vue {
*/
@Prop({ default: {} }) protected context?: any;
/**
* 监听context
* @memberof AppSelect
*/
@Watch('context')
onContextChange(){
this.chooseData();
}
/**
* 导航参数
*
......@@ -188,6 +197,14 @@ export default class AppSelect extends Vue {
* mounted
*/
public mounted() {
this.chooseData();
}
/**
* 选择加载数据方式
* @memberof AppSelect
*/
public chooseData(){
if (Object.is(this.codeListType, "STATIC")) {
this.overload = true;
this.options = this.$store.getters.getCodeListItems(this.tag);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册