+
+
+
+ 申请
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row[column.prop], '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+
+
+
+ {{ scope.row[column.prop] }}
+
+
+
+
+
+
+ {{ action.text }}
+
+
+
+
+
+
+
+
diff --git a/src/store/getters.js b/src/store/getters.js
index 8adb1b6..9d80197 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -3,6 +3,8 @@ const getters = {
size: state => state.app.size,
device: state => state.app.device,
dict: state => state.dict.dict,
+ applyType:state => state.apply.applyType,
+ applyId:state => state.apply.applyId,
visitedViews: state => state.tagsView.visitedViews,
cachedViews: state => state.tagsView.cachedViews,
token: state => state.user.token,
diff --git a/src/store/index.js b/src/store/index.js
index 97aaef8..31cf42e 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -3,6 +3,7 @@ import Vuex from 'vuex'
import app from './modules/app'
import dict from './modules/dict'
import user from './modules/user'
+import apply from './modules/apply'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import settings from './modules/settings'
@@ -15,6 +16,7 @@ const store = new Vuex.Store({
app,
dict,
user,
+ apply,
tagsView,
permission,
settings
diff --git a/src/store/modules/apply.js b/src/store/modules/apply.js
new file mode 100644
index 0000000..c74355f
--- /dev/null
+++ b/src/store/modules/apply.js
@@ -0,0 +1,36 @@
+const state = {
+ applyType:'',
+ applyId:''
+}
+const mutations = {
+ SET_APPLYTYPE: (state, { key, value }) => {
+ if (key !== null && key !== "") {
+ state.applyType = value
+ }
+ },
+ SET_APPLYID: (state, { key, value }) => {
+ if (key !== null && key !== "") {
+ state.applyId = value
+ }
+ }
+}
+
+const actions = {
+ // 设置字典
+ setApplyType({ commit }, data) {
+ commit('SET_APPLYTYPE', data)
+ },
+ // 设置字典
+ setApplyId({ commit }, data) {
+ localStorage.setItem('applyId', data.value)
+ commit('SET_APPLYID', data)
+ },
+}
+
+export default {
+ namespaced: true,
+ state,
+ mutations,
+ actions
+}
+
diff --git a/src/views/reward/apply/index.vue b/src/views/reward/apply/index.vue
index a6ddf0a..b4d59dd 100644
--- a/src/views/reward/apply/index.vue
+++ b/src/views/reward/apply/index.vue
@@ -1,26 +1,27 @@