Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default {
name: 'TaskTableView',
data () {
return {
// setInterval handle
handle: undefined
}
},
props: {
title: String
},
computed: {
...mapState('spider', [
'spiderForm'
]),
...mapState('task', [
'taskList'
])
},
methods: {
onClickSpider (row) {
this.$router.push(`/spiders/${row.spider_id}`)
},
onClickNode (row) {
this.$router.push(`/nodes/${row.node_id}`)
},
onClickTask (row) {
this.$router.push(`/tasks/${row._id}`)
},
onRefresh () {
if (this.$route.path.split('/')[1] === 'spiders') {
this.$store.dispatch('spider/getTaskList', this.$route.params.id)
import { mapActions, mapState } from 'vuex'
import btn from '../directives/btn'
export default {
name: 'LockPage',
directives: { btn },
data() {
return {
password: '',
wrongPassword: false,
storeKey: 'PASSWORD'
};
},
computed: {
...mapState('storage', [
'confirmationTx'
]),
},
methods: {
...mapActions('storage', [
'unLock'
]),
async encryptingAccaunt() {
const status = await this.unLock(this.password);
this.wrongPassword = !status;
if (!this.wrongPassword) {
if (this.confirmationTx.length > 0) {
this.$router.push({ name: 'confirmation' });
alertOption: {
title: '',
message: this.$i18n.t('alert.pledgeSuccess'),
type: 'info',
customIconUrl: '/images/success-icon.png',
onClose: this.onClose,
customCloseBtnText: this.$i18n.t('button.close'),
customCloseBtnClass: 'el-button el-button--primary full-btn'
}
}
},
computed: {
...mapState([
'currentAccount'
]),
...mapState('account', [
'cpu',
'bandWidth',
'frozenExpires'
]),
...mapState('account', {
tronPower (state) {
return utils.getTokenAmount(state.tronPower)
}
})
},
created () {
this.loadAccount()
},
methods: {
...mapActions('account', [
'loadAccount'