提交 11b567d4 authored 作者: 龙菲's avatar 龙菲

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

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