fix(项目设置): 菜单路由切换到模板管理时表格数据错位
--bug=1015862 --user=宋昌昌 【项目设置】模版字段列表,操作列错位 https://www.tapd.cn/55049933/s/1228249
This commit is contained in:
parent
569a4f539f
commit
deb485d7ac
|
@ -176,9 +176,10 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getCustomFields();
|
this.initTableData();
|
||||||
this.fieldFilters = getTranslateOptions(CUSTOM_FIELD_TYPE_OPTION);
|
},
|
||||||
this.sceneFilters = getTranslateOptions(CUSTOM_FIELD_SCENE_OPTION);
|
activated() {
|
||||||
|
this.initTableData();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
fieldTypeMap() {
|
fieldTypeMap() {
|
||||||
|
@ -195,6 +196,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
initTableData() {
|
||||||
|
this.getCustomFields();
|
||||||
|
this.fieldFilters = getTranslateOptions(CUSTOM_FIELD_TYPE_OPTION);
|
||||||
|
this.sceneFilters = getTranslateOptions(CUSTOM_FIELD_SCENE_OPTION);
|
||||||
|
},
|
||||||
getCustomFields() {
|
getCustomFields() {
|
||||||
this.condition.projectId = getCurrentProjectID();
|
this.condition.projectId = getCurrentProjectID();
|
||||||
this.result = this.$post('custom/field/list/' + this.currentPage + '/' + this.pageSize, this.condition, (response) => {
|
this.result = this.$post('custom/field/list/' + this.currentPage + '/' + this.pageSize, this.condition, (response) => {
|
||||||
|
|
|
@ -136,6 +136,9 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
},
|
},
|
||||||
|
activated() {
|
||||||
|
this.initTableData();
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
fields() {
|
fields() {
|
||||||
return ISSUE_TEMPLATE_LIST;
|
return ISSUE_TEMPLATE_LIST;
|
||||||
|
|
|
@ -145,6 +145,9 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
},
|
},
|
||||||
|
activated() {
|
||||||
|
this.initTableData();
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
fields() {
|
fields() {
|
||||||
return CUSTOM_FIELD_LIST;
|
return CUSTOM_FIELD_LIST;
|
||||||
|
|
Loading…
Reference in New Issue