This commit is contained in:
2023-10-09 19:47:09 +08:00
parent 2c0bc99c03
commit 6c71bccd83
7 changed files with 342 additions and 44 deletions

View File

@@ -81,7 +81,7 @@ export default {
components: {
QuestionForm, QuestionAddForm
},
data() {
data () {
return {
// 遮罩层
loading: false,
@@ -98,12 +98,12 @@ export default {
dialogAddVisible: false
};
},
created() {
created () {
// this.getList();
},
methods: {
/** 查询文件列表 */
getList() {
getList () {
this.loading = true;
searchQuestion(this.queryParams).then(response => {
this.tableList = response.data;
@@ -113,7 +113,7 @@ export default {
},
/** 搜索按钮操作 */
handleQuery() {
handleQuery () {
if (this.queryParams.question) {
this.getList();
} else {
@@ -121,17 +121,17 @@ export default {
}
},
/** 重置按钮操作 */
resetQuery() {
resetQuery () {
this.queryParams.question = '';
this.handleQuery();
},
handleEdit(item) {
handleEdit (item) {
this.dialogVisible = true;
this.$nextTick(() => {
this.$refs.dialogForm.init(item);
});
},
handleAdd(item) {
handleAdd (item) {
this.dialogAddVisible = true;
this.$nextTick(() => {
this.$refs.dialogAddForm.init(item);