diff --git a/.gitignore b/.gitignore
index 5845921..8d62e9b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,13 +1,16 @@
.DS_Store
node_modules
/dist
+
*.zip
# local env files
.env.local
.env.*.local
-
+vue.config.js
+.elslintignore
+.gitignore
# Log files
npm-debug.log*
yarn-debug.log*
@@ -15,6 +18,7 @@ yarn-error.log*
pnpm-debug.log*
# Editor directories and files
+
.idea
.vscode
*.suo
@@ -23,4 +27,5 @@ pnpm-debug.log*
*.sln
*.sw?
*.lock
-*-lock.json
\ No newline at end of file
+*-lock.json
+
diff --git a/package.json b/package.json
index 9fe9a00..5e0eb38 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
"vueui": "vue ui"
},
"dependencies": {
+ "@johmun/vue-tags-input": "^2.1.0",
"axios": "^0.24.0",
"core-js": "^3.19.1",
"echarts": "^5.2.2",
diff --git a/src/api/modules/permissionProcess.js b/src/api/modules/permissionProcess.js
new file mode 100644
index 0000000..d7a7641
--- /dev/null
+++ b/src/api/modules/permissionProcess.js
@@ -0,0 +1,12 @@
+
+import { instance as request } from '@/utils/request'
+
+export default {
+ getReportLisy (data) {
+ return request({
+ url: '/api/report/addReportPage',
+ method: 'post',
+ data: data
+ })
+ },
+}
diff --git a/src/api/modules/process.js b/src/api/modules/process.js
new file mode 100644
index 0000000..80f9b1d
--- /dev/null
+++ b/src/api/modules/process.js
@@ -0,0 +1,112 @@
+import { instance as request } from '@/utils/request'
+
+export default {
+ getRoleAndUserByOrgIdPage (data) {
+ return request({
+ url: '/api/sys/user/list',
+ method: 'get',
+ params: data
+ })
+ },
+
+ // 获取审批历史
+ getHistory (data) {
+ return request({
+ url: '/api/task/get_list_by_instance',
+ method: 'get',
+ params: data
+ })
+ },
+ //部署接口
+ deploy (data) {
+ return request({
+ url: '/api/deploy',
+ method: 'get',
+ params: data
+ })
+ },
+ //获取流程配置列表
+ getModelListPage (data){
+ return request({
+ url: '/api/modelListPage',
+ method: 'get',
+ params: data
+ })
+ },
+ //新增模板
+ addModel (data){
+ return request({
+ url: '/api/createModel',
+ method: 'get',
+ params: data
+ })
+ },
+ //删除模板
+ deleteModel (data){
+ return request({
+ url: '/api/deleteModel',
+ method: 'get',
+ params: data
+ })
+ },
+ //转办
+ changeAssignee (data){
+ return request({
+ url: '/api/changeAssigneeNew',
+ method: 'get',
+ params: data
+ })
+ },
+ // 获取一般的数据
+ getAlreadData(data) {
+ return request({
+ url: '/api/haveFinishedFlowDetail',
+ method: 'get',
+ params: data
+ })
+ },
+ // 催办
+ urgePerson(data) {
+ return request({
+ url: '/api/person/personMsg/saveNew',
+ method: 'post',
+ data: data
+ })
+ },
+ // 导出
+ exportStandard(data) {
+ return request({
+ url: '/api/task/historyExport',
+ method: 'get',
+ params: data ,
+ responseType:'blob'
+ })
+ },
+ // 通用流程提交
+ completeTask(data){
+ return request({
+ url: '/api/completeTask',
+ method: 'post',
+ data: data
+ })
+ },
+ // 通用流程详细信息查询
+ getProcessDetail( data ){
+ return request({
+ url: '/api/queryDetail',
+ method: 'get',
+ params: data
+
+ })
+ },
+ // 停用流程发起
+ startProcess(data) {
+ return request({
+ url: '/api/startProcess',
+ method: 'post',
+ data: data
+
+ })
+ }
+
+}
diff --git a/src/api/modules/processCenter.js b/src/api/modules/processCenter.js
index 156c7ec..e7543f5 100644
--- a/src/api/modules/processCenter.js
+++ b/src/api/modules/processCenter.js
@@ -1,19 +1,58 @@
import { instance as request } from '@/utils/request'
-export default{
- //查询
- search(data){
- return request({
- url: '',
- method: 'POST',
- data
- })
- },
- //重置
- reset(data){
- return request({
- url: '',
- method: 'POST',
- data
- })
- }
-}
\ No newline at end of file
+export default {
+ finishProcessPage (data) {
+ return request({
+ url: '/api/doneProcess',
+ method: 'post',
+ data: data
+ })
+ },
+ gencyProcessPage(data) {
+ return request({
+ url: '/api/todoTaskList',
+ method: 'post',
+ data: data
+ })
+ },
+ monitorProcessesPage(data) {
+ return request({
+ url: '/api/allProcess',
+ method: 'post',
+ data: data
+ })
+ },
+ sentProcessPage(data) {
+ return request({
+ url: '/api/issuedProcess',
+ method: 'post',
+ data: data
+ })
+ },
+
+
+ // 获取监控流程详情
+ getMonitorPageList(data){
+ return request({
+ url: '/api/task/get_list_by_instance',
+ method: 'GET',
+ params: data
+ })
+ },
+ // 获取监控流程详情
+ getMonitorImg(data){
+ return request({
+ url: '/api/instance/getImg',
+ method: 'GET',
+ params: data,
+ responseType: 'blob',
+ })
+ },
+ //强制撤回
+ getBack(data){
+ return request({
+ url: '/api/forceRecall',
+ method: 'GET',
+ params: data
+ })
+ }
+}
diff --git a/src/api/modules/report.js b/src/api/modules/report.js
index f590359..ee23838 100644
--- a/src/api/modules/report.js
+++ b/src/api/modules/report.js
@@ -18,10 +18,10 @@ export default {
params: data
})
},
- // 标签管理
+ // 标签增加
labelAdd (data) {
return request({
- url: '/api/label/add',
+ url: 'api/tree-label/add',
method: 'POST',
data
})
@@ -29,7 +29,7 @@ export default {
// 标签列表
labelList (data) {
return request({
- url: '/api/label/list',
+ url: 'api/tree-label/list',
method: 'GET',
params: data
})
@@ -37,10 +37,25 @@ export default {
// 标签删除|单个
labelDeleteId (data) {
return request({
- url: `/api/label/delete/${data.id}`,
+ url: `api/tree-label/delete/${data.id}`,
method: 'POST'
})
},
+ // 标签列表
+ labelNodeList (id) {
+ return request({
+ url: `api/tree-label/labelList/${id}`,
+ method: 'GET',
+ params: id
+ })
+ },
+labelUpdate(data){
+ return request({
+ url: 'api/tree-label/update',
+ method: 'POST',
+ data
+ })
+},
// 新增或编辑报告
reportAdd (data) {
@@ -85,6 +100,14 @@ export default {
data
})
},
+ // 报告管理列表
+ reportListManager (data) {
+ return request({
+ url: '/api/report/list-auth',
+ method: 'POST',
+ data
+ })
+ },
// 获取报告日期列表
reportDateList (data) {
return request({
@@ -129,4 +152,5 @@ export default {
params: data
})
}
+ //
}
diff --git a/src/assets/css/common.scss b/src/assets/css/common.scss
new file mode 100644
index 0000000..3434b9c
--- /dev/null
+++ b/src/assets/css/common.scss
@@ -0,0 +1,47 @@
+.tag-btns {
+ padding-right: 15px;
+}
+.search-area {
+ padding: 0;
+
+ .el-form-item__label {
+ line-height: 35px;
+ }
+
+ .el-form-item__content {
+ line-height: 35px;
+
+ .el-input__inner {
+ height: 25px;
+ line-height: 35px;
+ }
+ }
+}
+.search-new {
+ //width: 100%;
+ background: #FFF;
+ padding: 10px 10px 0;
+
+ .el-button + .el-button {
+ margin-left: 10px;
+ }
+
+ .el-form--inline .el-form-item {
+ display: flex;
+ margin-right: 0;
+
+ input.el-input__inner {
+ width: 100%;
+ }
+
+ .el-form-item__content {
+ //width: 100%;
+ flex: 1;
+
+ .el-select,
+ .el-range-editor {
+ width: 100% !important;
+ }
+ }
+ }
+}
diff --git a/src/assets/css/process.scss b/src/assets/css/process.scss
new file mode 100644
index 0000000..77daf1c
--- /dev/null
+++ b/src/assets/css/process.scss
@@ -0,0 +1,65 @@
+//流程样式
+.process{
+ background-color: #fff;
+ width:100%;
+ height: 100%;
+ padding: 10px 20px;
+ overflow: auto;
+}
+.process_box{
+ padding: 10px 30px;
+ border: 1px solid #e8f6fe;
+}
+.procedure{
+
+}
+.process_content{
+ margin-top: 25px;
+ width:100%;
+ padding: 10px 30px;
+ border: 1px solid rgb(242,242,242);
+}
+.base_title{
+ display: inline-block;
+ font-size: 18px;
+ font-weight: 700;
+ color: #555;
+ line-height: 40px;
+ border-bottom: 3px solid #409eff;
+ margin-bottom: 20px;
+}
+.pagination{
+ margin-top: 20px;
+}
+
+// 表单的样式
+.label-input-form{
+ padding-right: 80px;
+ .el-form-item .el-form-item__label{
+ line-height: 40px;
+ font-size: 15px;
+ color:#555 !important;
+ }
+ .el-form-item .el-input__inner {
+ height: 40px;
+ line-height: 40px;
+ font-size: 15px;
+ }
+ .el-select{
+ width: 100%;
+ }
+ .add-form-item{
+ .el-input{
+ width: 100%;
+ }
+ .el-input__inner{
+ height: 40px;
+ line-height: 40px;
+ }
+ }
+}
+.blurcolor{
+ color: #1890FF ;
+ cursor: pointer;
+}
+
diff --git a/src/components/Header.vue b/src/components/Header.vue
index 3f9db45..a257652 100644
--- a/src/components/Header.vue
+++ b/src/components/Header.vue
@@ -46,6 +46,7 @@
+
+
diff --git a/src/components/ProcessApprovalHistory.vue b/src/components/ProcessApprovalHistory.vue
new file mode 100644
index 0000000..26ac6e1
--- /dev/null
+++ b/src/components/ProcessApprovalHistory.vue
@@ -0,0 +1,200 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.assignee }}
+
+
+
+
+
+ 同意
+
+
+ 不同意
+
+
+
+
+
+
+
+
+ {{formatDate(scope.row.startTime,"yyyy-mm-dd hh:mm:ss")}}
+
+
+
+
+ {{formatDate(scope.row.endTime?scope.row.endTime:'',"yyyy-mm-dd hh:mm:ss")}}
+
+
+
+
+
+ {{scope.row.endTime ? scope.row.approvalTime : ''}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+ 下载
+
+
+
+
+
+
+
+
diff --git a/src/components/ProcessChooseTree.vue b/src/components/ProcessChooseTree.vue
new file mode 100644
index 0000000..4f40979
--- /dev/null
+++ b/src/components/ProcessChooseTree.vue
@@ -0,0 +1,771 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+ {{null}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.DEPARTMENT }}
+
+
+
+
+
+
+ 已选择
+
+ {{ item.uname || item.USNAME || item.name }}
+ 全部删除
+
+
+
+ 确 定
+ 取 消
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/ProcessFooter.vue b/src/components/ProcessFooter.vue
new file mode 100644
index 0000000..f037d29
--- /dev/null
+++ b/src/components/ProcessFooter.vue
@@ -0,0 +1,402 @@
+
+
+
+
+
+
+
+
diff --git a/src/components/ProcessHeader.vue b/src/components/ProcessHeader.vue
new file mode 100644
index 0000000..78b0ebe
--- /dev/null
+++ b/src/components/ProcessHeader.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/ProcessMixin.vue b/src/components/ProcessMixin.vue
new file mode 100644
index 0000000..49b7ceb
--- /dev/null
+++ b/src/components/ProcessMixin.vue
@@ -0,0 +1,129 @@
+
+
diff --git a/src/main.js b/src/main.js
index e116a79..26b2d10 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,7 +2,9 @@ import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
-
+// 流程公共样式
+import './assets/css/process.scss'
+import './assets/css/common.scss'
import config from '@/utils/config'
// VXETable
import 'xe-utils'
@@ -10,6 +12,7 @@ import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
// ElementUI
import ElementUI from 'element-ui'
+
import './assets/css/element-variables.scss'
// ECharts
import 'echarts'
@@ -27,6 +30,7 @@ import '@/utils/waterMark'
import JSEncrypt from '../src/assets/js/jsencrypt.min.js'
// 富文本引用
import VueQuillEditor from 'vue-quill-editor'
+
// require styles 引入样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
@@ -71,5 +75,8 @@ Vue.config.productionTip = false
new Vue({
router,
store,
+ beforeCreate(){
+ Vue.prototype.$bus = this //安装全局事件总线
+ },
render: h => h(App)
}).$mount('#app')
diff --git a/src/router/modules/permission.js b/src/router/modules/permission.js
new file mode 100644
index 0000000..63b2cdd
--- /dev/null
+++ b/src/router/modules/permission.js
@@ -0,0 +1,27 @@
+const routes = [
+ {
+ path: '/permission',
+ name: '',
+ component: () => import('../../views/Layout.vue'),
+ children: [
+ {
+ path: 'launch',
+ name: 'urlIndex',
+ component: () => import('../../views/permissionApplication/launch'),
+ meta: {
+ crumb: ['权限申请']
+ }
+ },
+ {
+ path: 'examine',
+ name: 'urlIndex',
+ component: () => import('../../views/permissionApplication/examine'),
+ meta: {
+ crumb: ['权限申请']
+ }
+ }
+ ]
+ }
+]
+
+export default routes
diff --git a/src/router/modules/processCenter.js b/src/router/modules/processCenter.js
new file mode 100644
index 0000000..6924959
--- /dev/null
+++ b/src/router/modules/processCenter.js
@@ -0,0 +1,42 @@
+const routes = [
+ // 用户中心管理
+ {
+ path: '/userCenter',
+ name: 'userCenter',
+ component: () => import('../../views/Layout.vue'),
+ children: [
+ // 流程中心
+ {
+ path: 'processCenter',
+ name: 'processCenter',
+ component: () => import('../../views/userCenter/processCenter.vue'),
+ meta: {
+ crumb: ['流程中心']
+ }
+ },
+ // 流程配置
+ {
+ path: 'processConfig',
+ name: 'processConfig',
+ component: () => import('../../views/userCenter/processConfig/index.vue'),
+ meta: {
+ crumb: ['流程配置']
+ }
+ },
+ {
+ path:'monitorViews',
+ name:'monitorViews',
+ component: () => import('../../views/userCenter/processCenter/monitorProcesses/monitorDetail.vue')
+ },
+
+ ],
+
+ },
+ {
+ path:'/processMapping',
+ name:'processMapping',
+ component: () => import('../../views/userCenter/processConfig/ProcessMapping')
+ }
+ ]
+
+ export default routes
diff --git a/src/router/modules/userCenter.js b/src/router/modules/userCenter.js
deleted file mode 100644
index f169ad5..0000000
--- a/src/router/modules/userCenter.js
+++ /dev/null
@@ -1,22 +0,0 @@
-const routes = [
- // 用户中心管理
- {
- path: '/userCenter',
- name: 'userCenter',
- component: () => import('../../views/Layout.vue'),
- children: [
- // 流程中心
- {
- path: 'processCenter',
- name: 'processCenter',
- component: () => import('../../views/userCenter/processCenter.vue'),
- meta: {
- crumb: ['流程中心']
- }
- },
- ]
- }
- ]
-
- export default routes
-
\ No newline at end of file
diff --git a/src/store/index.js b/src/store/index.js
index 8074c0e..ab2cfcb 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -11,13 +11,24 @@ export default new Vuex.Store({
rememberData: null,
menuData: [],
pathUrl: '',
- menuName: ''
+ menuName: '',
+ activeTab: '',
+ handleProcess: ''
},
getters: {
menuData: (state) => state.menuData,
- menuName: (state) => state.menuName
+ menuName: (state) => state.menuName,
+ userInfo: (state) => state.userInfo,
+ activeTab: (state) =>state.activeTab,
+ handleProcess: (state) =>state.handleProcess
},
mutations: {
+ setHandleProcess(state, data){
+ state.handleProcess = data
+ },
+ setActiveTabIndex(state, data){
+ state.activeTab = data
+ },
saveUserInfo (state, data) {
state.userInfo = data
},
diff --git a/src/utils/Enum/enum.js b/src/utils/Enum/enum.js
new file mode 100644
index 0000000..33f93ca
--- /dev/null
+++ b/src/utils/Enum/enum.js
@@ -0,0 +1,8 @@
+// 定义枚举
+import Esenum from './index.js'
+// 权限申请
+export const PERMISSION = new Esenum([
+ { label: '预览', value: "1" },
+ { label: '预览+下载', value: "2" }
+])
+
diff --git a/src/utils/Enum/index.js b/src/utils/Enum/index.js
new file mode 100644
index 0000000..e58e16b
--- /dev/null
+++ b/src/utils/Enum/index.js
@@ -0,0 +1,103 @@
+export default class EsEunm {
+ constructor (obj) {
+ if (!obj) {
+ return
+ }
+ Object.keys(obj).forEach(key => {
+ const item = obj[key]
+ this.addAll(key, item)
+ })
+ return this
+ }
+
+ /**
+ * 添加枚举
+ * @param key
+ * @param item
+ */
+ addAll (key, item) {
+ this[key] = item
+ }
+
+ /**
+ * 获取到所有的枚举值列表
+ * @return {Array} list集合
+ */
+ getItemList () {
+ const optionList = []
+ for (const key in this) {
+ const item = this[key]
+ const option = {}
+ Object.assign(option, item)
+ option.key = key
+ optionList.push(option)
+ }
+ optionList.sort((a, b) => {
+ const value1 = a.index
+ const value2 = b.index
+ return value1 - value2
+ })
+ return optionList
+ }
+
+ /**
+ * 过滤掉不需要的值
+ * @params {Array,String} val 需要过滤掉的枚举对象的name值
+ * @return {Array} list集合
+ */
+ getFilterItemList (val = []) {
+ let filterList = []
+ let valueArr = [] // 接受参数的整理
+ if (Array.isArray(val)) {
+ valueArr = val
+ } else {
+ valueArr.push(val)
+ }
+ const optionList = this.getItemList() // 得到的是list
+ filterList = optionList.filter(item => {
+ if (valueArr.includes(item.name)) {
+ return false
+ }
+ return true
+ })
+ return filterList
+ }
+
+ /**
+ * 根据name获取到index
+ * @params {String} name 枚举的name值
+ * @return {Number} name对应的index值
+ */
+ nameOfIndex (uname) {
+ if (!uname) {
+ return null
+ }
+ let index = ''
+ const optionList = this.getItemList()
+ optionList.forEach(item => {
+ if (uname.toString() === item.name.toString()) {
+ index = +item.index
+ }
+ })
+ return index
+ }
+
+ /**
+ * 根据index获取到name
+ * @params {Number} index 枚举的index值
+ * @return {String} index对应的name值
+ */
+ indexOfName (index) {
+ if (index == undefined) {
+ return null
+ }
+ let uname = ''
+ const optionList = this.getItemList()
+ optionList.forEach(item => {
+ if (item.index !== undefined && item.index !== null && item.index == index) {
+ uname = item.name
+ }
+ })
+ return uname
+ }
+}
diff --git a/src/utils/date.js b/src/utils/date.js
index 463ce10..6d7bb58 100644
--- a/src/utils/date.js
+++ b/src/utils/date.js
@@ -29,6 +29,7 @@ export function formatDate (value, fmt) {
return fmt
} else {
value = value.trim()
+ value = value.replace('T', ' ')
return value.substr(0, fmt.length)
}
}
diff --git a/src/utils/request.js b/src/utils/request.js
index caf522c..ce4c35d 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -46,8 +46,14 @@ instance.interceptors.response.use(function (response) {
// 登录超时
if (response.data.respCode === '401') {
store.commit('saveUserInfo', null)
+ store.commit('saveUserInfo', null)
+ store.commit('savePathUrl', null)
+ store.commit('saveMenuName', null)
+ store.commit('saveMenuData', null)
router.push('/login')
Message.error('登录超时过期')
+ //清除vuex
+
// var url = 'http://192.168.144.22:9966/login?loginType=1'
// // var url = 'http://10.64.23.30:7766/home'
//
@@ -81,6 +87,28 @@ instance.interceptors.response.use(function (response) {
// 登录过期
if (error.response.status === 401) {
store.commit('saveUserInfo', null)
+ store.commit('saveUserInfo', null)
+ store.commit('savePathUrl', null)
+ store.commit('saveMenuName', null)
+ store.commit('saveMenuData', null)
+ store.commit('setHandleProcess', null)
+ router.push('/login')
+ Message.error('登录超时过期')
+ // window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self');
+ // var url = 'http://192.168.144.22:9966/login?loginType=1'
+ // // var url = 'http://10.64.23.30:7766/home'
+ //
+ // return window.open('http://192.168.144.29:9090/cas/login?service='+url, '_self');
+ // // return window.open('https://caddmuat.changan.com.cn/cas/login?service='+url, '_self');
+ }
+ // 登录过期
+ if (error.response.status === 500) {
+ store.commit('saveUserInfo', null)
+ store.commit('saveUserInfo', null)
+ store.commit('savePathUrl', null)
+ store.commit('saveMenuName', null)
+ store.commit('saveMenuData', null)
+ store.commit('setHandleProcess', null)
router.push('/login')
Message.error('登录超时过期')
// window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self');
diff --git a/src/views/Layout.vue b/src/views/Layout.vue
index 6212af6..ed38b00 100644
--- a/src/views/Layout.vue
+++ b/src/views/Layout.vue
@@ -81,7 +81,7 @@ export default {
this.menuData = this.addLevel(treeData, 1)
},
getSysMenu () {
- this.$api.menu.getSysMenu({ roleId: this.$store.state.userInfo.roleIdList[0] }).then(({ data }) => {
+ this.$api.menu.getSysMenu({ roleId: this.$store.getters.userInfo.roleIdList[0] }).then(({ data }) => {
if (data === null) {
data = []
}
diff --git a/src/views/Login.vue b/src/views/Login.vue
index ff3026a..8fb29b8 100644
--- a/src/views/Login.vue
+++ b/src/views/Login.vue
@@ -107,6 +107,9 @@ export default {
this.verifyCode()
return this.$message.error(res.data.message)
}
+ res.data.roleIdList=res.data.roleEOList.map(item=>{
+ return item.id
+ })
this.$message.success('登录成功')
this.$store.commit('saveUserInfo', res.data)
this.$router.push({ path: '/report/list', query: { id: 'AEHJB8YNJ3' } })
diff --git a/src/views/Report/ReportList.vue b/src/views/Report/ReportList.vue
index eaf98bc..f046d9a 100644
--- a/src/views/Report/ReportList.vue
+++ b/src/views/Report/ReportList.vue
@@ -5,9 +5,15 @@
-
+
- 报告年份
+ 关键词:
+
+
+
+
+
+ 报告年份:
@@ -15,7 +21,18 @@
-
+
+
+ 报告名称:
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
{{ rowIndex + (q.pageNo - 1) * q.pageSize + 1 }}
@@ -111,12 +137,12 @@
{{row.year}}
-
{{row.labelOneName}}
-
{{getKeyContent(row.keyContent)}}
+
@@ -129,6 +155,7 @@
+
+
+
@@ -175,12 +204,10 @@ export default {
q: {
keyContent: '',
year: [],
- labelOneId: [],
- labelTwoId: [],
- labelThreeId: [],
+ name:'',
pageNo: 1,
- pageSize: 10
- },
+ pageSize: 10,
+ },
total: 0,
tableData: [],
yearList: [],
@@ -208,15 +235,52 @@ export default {
}
},
dialogPreview: false, // 预览
- content: ''
+ content: '',
+ filterText:'',
+ treeData: [
+ ],
+ checkedKeys:[]
}
},
+ watch: {
+ filterText(val) {
+ this.$refs.tree.filter(val);
+ }
+ },
methods: {
+ getKeyContent(list){
+ let keyContent=[]
+ list = JSON.parse(list)
+ list.forEach(item => {
+ keyContent.push(item.text)
+ })
+ keyContent = keyContent.toString().replace(/,/g, '/');
+ if(keyContent=='') keyContent='---'
+ // if(keyContent.length>15){
+ // keyContent=keyContent.slice(0,15) +'...'
+ // }
+ return keyContent
+ },
+ getHalfCheckedNode(node,data){
+ this.checkedKeys=data.checkedKeys
+ this.reportList()
+ },
+ filterNode(value, data) {
+ if (!value) return true;
+ return data.label.indexOf(value) !== -1;
+ },
init () {
+ this.getTreeLabel()
this.labelList()
this.reportDateList()
this.reportList()
},
+ getTreeLabel(){
+ this.$api.report.labelList().then(res => {
+ this.treeData=res.data
+ })
+ },
+
// 标签列表
labelList () {
this.$api.report.labelList().then(({ data }) => {
@@ -234,7 +298,7 @@ export default {
},
// 列表
reportList () {
- this.$api.report.reportList(this.q).then(({ data }) => {
+ this.$api.report.reportList({...this.q,labelId:this.checkedKeys}).then(({ data }) => {
this.tableData = data.records
this.total = data.total
this.q.pageNo = data.current
@@ -341,6 +405,22 @@ export default {
diff --git a/src/views/Report/reportManager/labelModal.vue b/src/views/Report/reportManager/labelModal.vue
new file mode 100644
index 0000000..bfce037
--- /dev/null
+++ b/src/views/Report/reportManager/labelModal.vue
@@ -0,0 +1,179 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/System/User.vue b/src/views/System/User.vue
index 9e991ff..75bc4d5 100644
--- a/src/views/System/User.vue
+++ b/src/views/System/User.vue
@@ -57,12 +57,12 @@
-
-
- sysUserIsUse(val, row)">
-
-
+
+
+
+
+
+
查看
@@ -210,21 +210,21 @@ export default {
this.repassword = ''
this.dialogUser = true
},
- // 启用/禁用
- sysUserIsUse (val, row) {
- this.$confirm(val === '0' ? '此操作将禁用所选用户, 是否继续?' : '此操作将启用所选用户, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.$api.user.sysUserIsUse({ USID: row.USID, type: val }).then(_ => {
- this.$message.success('操作成功')
- this.sysUserList()
- })
- }).catch(() => {
- row.ISUSE = val === '1' ? '0' : '1'
- })
- },
+ // // 启用/禁用
+ // sysUserIsUse (val, row) {
+ // this.$confirm(val === '0' ? '此操作将禁用所选用户, 是否继续?' : '此操作将启用所选用户, 是否继续?', '提示', {
+ // confirmButtonText: '确定',
+ // cancelButtonText: '取消',
+ // type: 'warning'
+ // }).then(() => {
+ // this.$api.user.sysUserIsUse({ USID: row.USID, type: val }).then(_ => {
+ // this.$message.success('操作成功')
+ // this.sysUserList()
+ // })
+ // }).catch(() => {
+ // row.ISUSE = val === '1' ? '0' : '1'
+ // })
+ // },
// 删除
deleteRow (row) {
this.deleteUser(row.USID)
diff --git a/src/views/permissionApplication/components/AuditOperation.vue b/src/views/permissionApplication/components/AuditOperation.vue
new file mode 100644
index 0000000..977b9c7
--- /dev/null
+++ b/src/views/permissionApplication/components/AuditOperation.vue
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 同意
+ 不同意
+
+
+
+
+
+
+
+ 审批意见:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/permissionApplication/components/reportDialog.vue b/src/views/permissionApplication/components/reportDialog.vue
new file mode 100644
index 0000000..6822ea6
--- /dev/null
+++ b/src/views/permissionApplication/components/reportDialog.vue
@@ -0,0 +1,311 @@
+
+
+
+
+
+
+
+
+ 关键词:
+
+
+
+
+
+ 报告年份:
+
+
+
+
+
+
+
+
+
+ 报告名称:
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+ 取消
+
+
+
+
+
+
+
diff --git a/src/views/permissionApplication/components/reportTable.vue b/src/views/permissionApplication/components/reportTable.vue
new file mode 100644
index 0000000..22edbab
--- /dev/null
+++ b/src/views/permissionApplication/components/reportTable.vue
@@ -0,0 +1,197 @@
+
+
+
添加报告
+
批量删除
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/permissionApplication/examine.vue b/src/views/permissionApplication/examine.vue
new file mode 100644
index 0000000..cad5239
--- /dev/null
+++ b/src/views/permissionApplication/examine.vue
@@ -0,0 +1,227 @@
+
+
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+ {tableData=newValue}" :disabled="formControl">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/permissionApplication/launch.vue b/src/views/permissionApplication/launch.vue
new file mode 100644
index 0000000..8c6236e
--- /dev/null
+++ b/src/views/permissionApplication/launch.vue
@@ -0,0 +1,394 @@
+
+
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+ {tableData=newValue}" :disabled="showTableD">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 指派信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/userCenter/processCenter.vue b/src/views/userCenter/processCenter.vue
index 4278428..5725e75 100644
--- a/src/views/userCenter/processCenter.vue
+++ b/src/views/userCenter/processCenter.vue
@@ -1,69 +1,85 @@
-
+
流程中心
-
\ No newline at end of file
+
+
diff --git a/src/views/userCenter/processCenter/finishProcess.vue b/src/views/userCenter/processCenter/finishProcess.vue
index 82d34ed..b40dbe8 100644
--- a/src/views/userCenter/processCenter/finishProcess.vue
+++ b/src/views/userCenter/processCenter/finishProcess.vue
@@ -1,77 +1,142 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查看
-
-
-
-
+
+
+
+
+ {{ rowIndex + (q.current - 1) * q.size + 1 }}
+
+
+
+
+ {{row.prcNum}}
+
+
+
+
+ {{getPrcName(row.prcType)}}
+
+
+
+
+
+ {{row.prcName}}
+
+
+
+
+
+
+
+
+
+ 未完成
+ 已完成
+
+
+
+
+
+ 查看
+
+
+
+
+
+
@@ -79,6 +144,13 @@ export default {
\ No newline at end of file
+.table {
+ margin: 0 14px 0 13px;
+ ::v-deep .el-pagination {
+ margin-top: 13px;
+ padding-left: 20px;
+ padding-bottom: 10px;
+ }
+}
+
diff --git a/src/views/userCenter/processCenter/gencyProcess.vue b/src/views/userCenter/processCenter/gencyProcess.vue
index 11cb72d..14f56ca 100644
--- a/src/views/userCenter/processCenter/gencyProcess.vue
+++ b/src/views/userCenter/processCenter/gencyProcess.vue
@@ -1,76 +1,129 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 办理
-
-
-
-
+
+
+
+
+ {{ rowIndex + (q.current - 1) * q.size + 1 }}
+
+
+
+
+ {{row.prcNum}}
+
+
+
+
+ {{getPrcName(row.prcType)}}
+
+
+
+
+ {{row.prcName}}
+
+
+
+
+
+
+
+ 办理
+
+
+
+
+
+
+
+
diff --git a/src/views/userCenter/processCenter/monitorProcesses/monitorModal.vue b/src/views/userCenter/processCenter/monitorProcesses/monitorModal.vue
new file mode 100644
index 0000000..2508d2f
--- /dev/null
+++ b/src/views/userCenter/processCenter/monitorProcesses/monitorModal.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/userCenter/processCenter/sentProcess.vue b/src/views/userCenter/processCenter/sentProcess.vue
index 46fd344..138690e 100644
--- a/src/views/userCenter/processCenter/sentProcess.vue
+++ b/src/views/userCenter/processCenter/sentProcess.vue
@@ -1,102 +1,199 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查看
-
+
+
+
+
+
+ {{ rowIndex + (q.current - 1) * q.size + 1 }}
+
+
+
+
+ {{row.prcNum}}
+
+
+
+
+ {{getPrcName(row.prcType)}}
+
+
-
- 强制撤回
-
-
-
-
+
+
+ {{row.prcName}}
+
+
+
+
+
+
+
+
+
+ 未完成
+ 已完成
+
+
+
+
+
+ 查看
+
+
+ 强制撤回
+
+
+
+
+
+
+
\ No newline at end of file
+
+.table {
+ margin: 0 14px 0 13px;
+
+ ::v-deep .el-pagination {
+ margin-top: 13px;
+ padding-left: 20px;
+ padding-bottom: 10px;
+ }
+}
+
diff --git a/src/views/userCenter/processCenter/tabs.vue b/src/views/userCenter/processCenter/tabs.vue
index 3fc4d23..96a0b0f 100644
--- a/src/views/userCenter/processCenter/tabs.vue
+++ b/src/views/userCenter/processCenter/tabs.vue
@@ -2,16 +2,16 @@
-
+
-
+
-
+
-
+
@@ -30,12 +30,6 @@ export default {
monitorProcesses,
sentProcess
},
- props:{
- tableData:{
- type:Array,
- default:[],
- }
- },
data() {
return {
activeName: 'first',
@@ -43,35 +37,38 @@ export default {
secondData:[],
thirdData:[],
fourthData:[],
+ form:[]
};
},
watch: {
- tableData(newValue, oldValue) {
- if(this.activeName == 'first'){
- this.firstData=newValue
- }else if(this.activeName == 'second'){
- this.secondData=newValue
- }else if(this.activeName == 'third'){
- this.thirdData=newValue
- }else{
- this.fourthData=newValue
- }
- }
+
},
created () {
- ;
},
mounted () {
- ;
+ this.$bus.$on('getSearchItem',(data)=>{
+ this.form = JSON.parse(JSON.stringify(data))
+ console.log(this.form,"hhh")
+ })
+ this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:'first'
},
methods: {
handleClick(tab, event) {
- // console.log(tab, event);
+ this.$emit('clearForm')
+ this.$store.commit('setActiveTabIndex','')
}
+ },
+ beforeDestroy(){
+ console.log("我不监听了")
+ this.$bus.$off('getSearchItem')
}
}
-
\ No newline at end of file
+
diff --git a/src/views/userCenter/processConfig/ProcessMapping.vue b/src/views/userCenter/processConfig/ProcessMapping.vue
new file mode 100644
index 0000000..01e4d1a
--- /dev/null
+++ b/src/views/userCenter/processConfig/ProcessMapping.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/userCenter/processConfig/basic-container/index.vue b/src/views/userCenter/processConfig/basic-container/index.vue
new file mode 100644
index 0000000..7dcac61
--- /dev/null
+++ b/src/views/userCenter/processConfig/basic-container/index.vue
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/userCenter/processConfig/components/EditProcess.vue b/src/views/userCenter/processConfig/components/EditProcess.vue
new file mode 100644
index 0000000..9ab07a6
--- /dev/null
+++ b/src/views/userCenter/processConfig/components/EditProcess.vue
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+ {{ opt.label}}
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
+
diff --git a/src/views/userCenter/processConfig/components/EditProcessClassification.vue b/src/views/userCenter/processConfig/components/EditProcessClassification.vue
new file mode 100644
index 0000000..2d191c7
--- /dev/null
+++ b/src/views/userCenter/processConfig/components/EditProcessClassification.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+ {{$t('m.cancel')}}
+ {{$t('m.confirm')}}
+
+
+
+
+
+
+
diff --git a/src/views/userCenter/processConfig/index.vue b/src/views/userCenter/processConfig/index.vue
new file mode 100644
index 0000000..78dde3a
--- /dev/null
+++ b/src/views/userCenter/processConfig/index.vue
@@ -0,0 +1,294 @@
+
+
+
+ 流程配置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+ {{row.createTime?formatDate(row.createTime,"yyyy-mm-dd HH:mm:ss"):''}}
+
+
+
+
+ 编辑
+ 部署
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vue.config.js b/vue.config.js
index d939209..41d24d5 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,5 +1,6 @@
const webpack = require('webpack')
module.exports = {
+ lintOnSave: false,
// publicPath: '/mi',
outputDir: 'dist', // 运行时生成的生产环境构建文件的目录(默认''dist'',构建之前会被清除)
assetsDir: 'static', // 放置生成的静态资源(s、css、img、fonts)的(相对于 outputDir 的)目录(默认'')
@@ -12,12 +13,12 @@ module.exports = {
proxy: {
// 配置跨域
'/api': {
- target: 'http://127.0.0.1:7060', // 服务器
+ target: 'http://localhost:7060', // 服务器
changeOrigin: true
},
// 请求静态图片配置项
'/api/home/pic': {
- target: 'http://10.94.1.164:7061', // 图片请求的nginx网址
+ target: 'http://localhost:7061', // 图片请求的nginx网址
changeOrigin: true
}