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