| | |
| | | success: false, |
| | | list: [], |
| | | bg: require("@/static/banner_dati.jpg"), |
| | | title: '元气森林入厂安全知识考核', |
| | | content: '请仔细阅读并选择对应的答案,答题正确方可继续' |
| | | title: '', |
| | | content: '' |
| | | } |
| | | }, |
| | | |
| | | onLoad() { |
| | | this.getProblems() |
| | | this.getInfo() |
| | | }, |
| | | |
| | | methods: { |
| | | getInfo() { |
| | | // title |
| | | this.$u.api.getSystemDictData({ |
| | | dictCode: 'SYSTEM', |
| | | label: 'THEME' |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.title = res.data.code |
| | | } |
| | | }) |
| | | this.$u.api.getSystemDictData({ |
| | | dictCode: 'SYSTEM', |
| | | label: 'DESCRIPTION' |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.content = res.data.code |
| | | } |
| | | }) |
| | | }, |
| | | getProblems() { |
| | | this.$u.api.getProblemsVO({ useType: 1 }) |
| | | .then(res => { |