提交 73b9875f authored 作者: 龙菲's avatar 龙菲

修复博物馆无法查询的问题

上级 cd5e71d8
......@@ -123,7 +123,7 @@ export default {
},
handleInputChange: Debounce(function(e) {
this.handleSearch();
}, 500),
}, 600),
},
};
</script>
......
......@@ -11,7 +11,7 @@
@selection-change="handleSelectionChange"
@current-change="handleCurrentChange"
>
<el-table-column type="index" width="50" label="序号"> </el-table-column>
<el-table-column type="index" width="50" label="序号" align="center"> </el-table-column>
<el-table-column v-if="hasMultiSelection" type="selection" width="55" />
<el-table-column
v-for="(item, index) in tableTitle"
......
......@@ -444,7 +444,7 @@ export default {
"culturalRelicType",
"culturalRelicSourceWay"
]);
console.log(this.dicts.culturalRelicSourceWay);
let res = await this.$store.dispatch("dict/getDictTree", [
"culturalRelicTextureType",
"culturalRelicYears",
......
......@@ -12,11 +12,12 @@
:tree-props="{ children: 'children' }"
fit
row-key="id"
:data="tabelData"
:data="orgTreeData"
border
stripe
default-expand-all
>
<el-table-column type="index" width="50" label="序号" align="center"> </el-table-column>
<el-table-column
align="center"
prop="name"
......@@ -156,7 +157,7 @@ export default {
loading: false,
orgTreeData: [],
expandRow: [],
tabelData: [],
tableData: [],
imgList: [],
imgViewerVisible: false,
};
......@@ -184,6 +185,11 @@ export default {
created() {
this.loadData(true);
},
watch:{
'searchForm.name':function(value){
console.log(value);
}
},
methods: {
async search(form) {
let searchValue = form.name;
......@@ -245,8 +251,8 @@ export default {
*/
loadData(isReload) {
this.$store.dispatch("org/getMuseumTreeData", isReload).then((res) => {
this.orgTreeData = res;
this.tabelData = res[0].children;
this.orgTreeData = res[0].children
this.tableData = res[0].children
});
},
......@@ -256,8 +262,6 @@ export default {
case "add":
this.drawerVisible = true;
break;
case "view":
break;
case "edit":
this.form = row;
this.drawerVisible = true;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论