@@ -19,6 +17,13 @@

+
+
+
+ {{item.name}}
+
+
+
@@ -28,12 +33,15 @@
-
-
-
+
+
+
+
- {{item.employeeName}}
+ {{item.employeeName}}
+
diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue
index 3929722..01f600a 100644
--- a/src/layout/components/TagsView/index.vue
+++ b/src/layout/components/TagsView/index.vue
@@ -69,6 +69,7 @@ export default {
methods: {
generateTitle, // generateTitle by vue-i18n
isActive(route) {
+
return route.path === this.$route.path
},
isAffix(tag) {
diff --git a/src/main.js b/src/main.js
index 08ca5b6..b60add5 100644
--- a/src/main.js
+++ b/src/main.js
@@ -32,10 +32,19 @@ Vue.component('Node', Node)
*/
import func from '@/api/preload.js'
Vue.prototype.$func = func;
-import nodeWrap from '@/components/nodeWrap'
-Vue.component('nodeWrap', nodeWrap); //初始化组件
-import addNode from '@/components/addNode'
-Vue.component('addNode', addNode); //初始化组件
+// import nodeWrap from '@/components/nodeWrap'
+// Vue.component('nodeWrap', nodeWrap); //初始化组件
+// import addNode from '@/components/addNode'
+// Vue.component('addNode', addNode); //初始化组件
+
+/**
+ * 自定义工作流
+ */
+import nodeWrap from '@/customworkflow/nodeWrap.vue'
+Vue.component('nodeWrap', nodeWrap); //初始化执行框组件
+import addNode from '@/customworkflow/addNode.vue'
+Vue.component('addNode', addNode); //初始化添加按钮组件
+
/**
* If you don't want to use mock-server
* you want to use MockJs for mock api
@@ -77,7 +86,7 @@ new Vue({
store,
components: {
nodeWrap,
- addNode,
+ // addNode,
},
render: h => h(App)
})
diff --git a/src/router/index.js b/src/router/index.js
index 57ccb2b..d3e474d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -200,8 +200,8 @@ export const constantRoutes = [
},
{
path: 'mete',
- component: () => import('@/views/mete/index'),
- // component: () => import('@/views/mete/dingliang'),
+ // component: () => import('@/views/mete/index'),
+ component: () => import('@/views/mete/dingliang'),
meta: { title: '定量考核'}
},
],
@@ -508,10 +508,22 @@ export const constantRoutes = [
children: [
{
path: 'flow',
- // component: () => import('@/views/workflow/flow'),
+ // component: () => import('@/views/workflow/myFlow'),
component: () => import('@/views/workflow/flow'),
meta: { title: '设置工作时段'}
},
+ {
+ path: 'myflow',
+ component: () => import('@/views/workflow/myFlow'),
+ // component: () => import('@/views/workflow/flow'),
+ meta: { title: '设置工作时段'}
+ },
+ {
+ path: 'workflowlist',
+ component: () => import('@/views/workflow/workflowlist'),
+ // component: () => import('@/views/workflow/flow'),
+ meta: { title: '工作流管理'}
+ },
],
},
diff --git a/src/store/index.js b/src/store/index.js
index f6445aa..2c3a826 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -16,46 +16,52 @@ const store = new Vuex.Store({
},
getters,
state: {
- tableId: '',
+ tableId: '', //流程id
isTried: false,
- promoterDrawer: false,
- flowPermission1: {},
- approverDrawer: false,
- approverConfig1: {},
- copyerDrawer: false,
- copyerConfig1: {},
- conditionDrawer: false,
- conditionsConfig1: {
+ promoterDrawer: false, //开始节点抽屉默认值
+ flowPermission1: {}, //开始节点权限
+ approverDrawer: false, //执行节点抽屉默认值
+ approverConfig1: {}, //执行节点权限
+ copyerDrawer: false, //抄送人弹窗
+ copyerConfig1: {}, //抄送人数据
+ conditionDrawer: false, //条件设置弹窗
+ conditionsConfig1: { //条件数据
conditionNodes: [],
},
+ //执行人相关参数
+ appcarryoutDrawer:false,
+ appcarryoutConfig1: {},
},
mutations: {
setTableId(status, payload) {
- console.log("验证store----------------->",status, payload)
+ //设置工作流唯一识别符
status.tableId = payload
},
setIsTried(status, payload) {
status.isTried = payload
},
+ //设置开始节点信息
setPromoter(status, payload) {
- console.log("验证setPromoter----------------->",status, payload)
- status.promoterDrawer = payload
+ status.promoterDrawer = payload
},
setFlowPermission(status, payload) {
- status.flowPermission1 = payload
+ status.flowPermission1 = payload
},
+ //执行节点
setApprover(status, payload) {
status.approverDrawer = payload
},
setApproverConfig(status, payload) {
status.approverConfig1 = payload
},
+ //抄送人节点
setCopyer(status, payload) {
status.copyerDrawer = payload
},
setCopyerConfig(status, payload) {
status.copyerConfig1 = payload
},
+ //条件节点
setCondition(status, payload) {
console.log("Vuex.Store----------->setCondition",status, payload)
status.conditionDrawer = payload
@@ -63,6 +69,13 @@ const store = new Vuex.Store({
setConditionsConfig(status, payload) {
status.conditionsConfig1 = payload
},
+ //元新增节点
+ setAppCarryOut(status, payload) {
+ status.appcarryoutDrawer = payload
+ },
+ setAppCarryOutConfig(status, payload) {
+ status.appcarryoutConfig1 = payload
+ },
},
})
diff --git a/src/utils/request.js b/src/utils/request.js
index 6042527..64558b4 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -58,7 +58,7 @@ service.interceptors.response.use(
*/
response => {
const res = response.data
- console.log("res.code---------->")
+ // console.log("res.code---------->")
console.log(res.code)
// if the custom code is not 20000, it is judged as an error.
if (res.code !== 0) {
@@ -90,7 +90,7 @@ service.interceptors.response.use(
// return Promise.reject(Error).catch(Error=>{console.log(Error)})
// return Promise.reject(new Error(res.msg || 'Error'))
} else {
- console.log("成功---->",res)
+ // console.log("成功---->",res)
return res
}
},
diff --git a/src/views/basicInfo/target.vue b/src/views/basicInfo/target.vue
index d21fa43..500b6f0 100644
--- a/src/views/basicInfo/target.vue
+++ b/src/views/basicInfo/target.vue
@@ -4,7 +4,7 @@
-
+
-
-
-
+
+
+
{{scope.row.allprize}}
@@ -55,8 +55,8 @@
-
- {{scope.row.scoringscore}}
+
+ {{scope.row.reachscore}}
@@ -75,38 +75,96 @@
>查看流程
-
-
+
+
+ style="width:120px"
+ @change="searchYearAndMonth(scope)"
+ v-model="searchMonth"
+ type="month"
+ placeholder="请选择">
-
+
-
+
提交
+ 此数据已提交
+
+
+
+
+ 批量提交
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{a.workshopname}}-{{a.postname}}-{{a.name}}
+
+
+
已同意 ·
+
未操作 ·
+
驳回 ·
+
{{i.time}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/workflow/editflowcont.vue b/src/views/workflow/editflowcont.vue
new file mode 100644
index 0000000..4852e00
--- /dev/null
+++ b/src/views/workflow/editflowcont.vue
@@ -0,0 +1,220 @@
+
+
+
+
+
+
+ 名称:
+
+
+
+
+
+
+ 描述:
+
+
+
+
+
+
+ 版本:{{ item.version }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/workflow/flow.vue b/src/views/workflow/flow.vue
index 7cff3c2..226cc5b 100644
--- a/src/views/workflow/flow.vue
+++ b/src/views/workflow/flow.vue
@@ -21,6 +21,7 @@
+
@@ -28,9 +29,10 @@
+
\ No newline at end of file
diff --git a/src/views/workflow/lookflowcont.vue b/src/views/workflow/lookflowcont.vue
new file mode 100644
index 0000000..f2a019d
--- /dev/null
+++ b/src/views/workflow/lookflowcont.vue
@@ -0,0 +1,150 @@
+
+