mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 08:16:46 +08:00
fix:学员查看,模板和学员搜索·重置,添加考试样式,
This commit is contained in:
@@ -34,11 +34,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tmplh_btn">
|
||||
<div class="btn btn1">
|
||||
<div class="btn btn1" @click="searchLevel">
|
||||
<div class="search"></div>
|
||||
<div class="btnText btnText1">搜索</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="btn btn2" @click="resetLevel">
|
||||
<div class="search"></div>
|
||||
<div class="btnText btnText2">重置</div>
|
||||
</div>
|
||||
@@ -106,6 +106,7 @@ export default defineComponent({
|
||||
name: "TemplateLibrary",
|
||||
setup() {
|
||||
const state = reactive({
|
||||
value1:null,
|
||||
tableData1: [
|
||||
{
|
||||
key: "1",
|
||||
@@ -232,12 +233,39 @@ export default defineComponent({
|
||||
message.error(`模板操作失败`+error)
|
||||
})
|
||||
}
|
||||
|
||||
const searchLevel = () => {
|
||||
const result = state.tableData1.filter(item => item.name == state.value1)
|
||||
state.tableData1 = result;
|
||||
};
|
||||
const resetLevel = () => {
|
||||
state.value1 = '';
|
||||
// getLibraryList();
|
||||
state.tableData1 = [
|
||||
{
|
||||
key: "1",
|
||||
name: "测试模板1",
|
||||
status: "已发布",
|
||||
creator: "李部长",
|
||||
stutime: "2022-10-31 23:12:00",
|
||||
operation: "operation",
|
||||
},
|
||||
{
|
||||
key: "2",
|
||||
name: "测试模板2",
|
||||
status: "未发布",
|
||||
creator: "李部长",
|
||||
stutime: "2022-10-31 23:12:00",
|
||||
operation: "operation",
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
columns1,
|
||||
templateHadler,
|
||||
searchLevel,
|
||||
resetLevel,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user