fix : 修复细节
This commit is contained in:
@@ -36,7 +36,7 @@ export const rejectTask = (data) => {
|
|||||||
|
|
||||||
export const addRequirement = (data) => {
|
export const addRequirement = (data) => {
|
||||||
return request({
|
return request({
|
||||||
url: `/workflow/mosr/requirement`,
|
url: '/workflow/mosr/requirement',
|
||||||
method: "post",
|
method: "post",
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<h4>待办 ({{ todoNum }})</h4>
|
<h4>待办 ({{ todoNum }})</h4>
|
||||||
<fvTable ref="tableIns" class="home-table" :tableConfig="tableConfig" @headBtnClick="headBtnClick">
|
<fvTable ref="tableIns" class="home-table" :tableConfig="tableConfig">
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<el-empty description="暂无待办"/>
|
<el-empty description="暂无待办"/>
|
||||||
</template>
|
</template>
|
||||||
@@ -25,11 +25,6 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="24" :md="6" :lg="6" :xl="6">
|
<el-col :xs="24" :sm="24" :md="6" :lg="6" :xl="6">
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<!-- <div class="right-top">-->
|
|
||||||
<!-- <h3>欢迎回来, Sunshine</h3>-->
|
|
||||||
<!-- <div>科技创新项目需求征集中, 要求参见OA内部信!</div>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<!-- <div class="right-gap"></div>-->
|
|
||||||
<div class="right-top ">
|
<div class="right-top ">
|
||||||
<div>
|
<div>
|
||||||
<h3>帮助文档</h3>
|
<h3>帮助文档</h3>
|
||||||
@@ -56,6 +51,7 @@
|
|||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
import 'element-plus/theme-chalk/display.css'
|
import 'element-plus/theme-chalk/display.css'
|
||||||
|
|
||||||
|
const router = useRouter()
|
||||||
const list = ref([
|
const list = ref([
|
||||||
{
|
{
|
||||||
title: '待立项',
|
title: '待立项',
|
||||||
@@ -114,7 +110,7 @@ const tableConfig = reactive({
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'state',
|
prop: 'targetState',
|
||||||
label: '类型',
|
label: '类型',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflowTooltip: false,
|
showOverflowTooltip: false,
|
||||||
@@ -140,7 +136,7 @@ const tableConfig = reactive({
|
|||||||
currentRender: ({row, index}) => {
|
currentRender: ({row, index}) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" link onClick={() => handleEdit(row)}>查看</el-button>
|
<el-button type="primary" link onClick={() => handleView(row)}>查看</el-button>
|
||||||
<el-button type="primary" link onClick={() => handleEdit(row)}>已读</el-button>
|
<el-button type="primary" link onClick={() => handleEdit(row)}>已读</el-button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
@@ -150,14 +146,18 @@ const tableConfig = reactive({
|
|||||||
api: '/workflow/mosr/process/task',
|
api: '/workflow/mosr/process/task',
|
||||||
params: {},
|
params: {},
|
||||||
})
|
})
|
||||||
|
const handleView = (row) => {
|
||||||
const headBtnClick = (key) => {
|
console.log('row', row)
|
||||||
switch (key) {
|
if (row.requirementId) {
|
||||||
case 'add':
|
router.push({
|
||||||
handleAdd()
|
path: '/projectdemand/demanddetail',
|
||||||
break;
|
query: {
|
||||||
|
id: row.requirementId
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -166,29 +166,21 @@ const headBtnClick = (key) => {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
:deep(.el-table) {
|
:deep(.el-table) {
|
||||||
height: 300px!important;
|
height: 300px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 1000px) {
|
@media only screen and (max-width: 1000px) {
|
||||||
.right {
|
.right {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
:deep(.el-table) {
|
:deep(.el-table) {
|
||||||
height: 300px!important;
|
height: 300px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//.right-gap {
|
|
||||||
// background-color: #EFEFEF;
|
|
||||||
// width: 20px;
|
|
||||||
// //margin-right: -10px;
|
|
||||||
//}
|
|
||||||
:deep(.el-table) {
|
|
||||||
//height: 200px;
|
|
||||||
//max-height: 400px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.home-bg {
|
.home-bg {
|
||||||
height: calc(100vh - 130px);
|
height: calc(100vh - 130px);
|
||||||
@@ -277,21 +269,6 @@ const headBtnClick = (key) => {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
//.right-top {
|
|
||||||
// h3 {
|
|
||||||
// text-align: center;
|
|
||||||
// margin-bottom: 15px;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// div {
|
|
||||||
// color: #909399;
|
|
||||||
// font-size: 14px;
|
|
||||||
// margin: 0 20px;
|
|
||||||
// letter-spacing: 1px;
|
|
||||||
// line-height: 25px;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
.right-top {
|
.right-top {
|
||||||
flex: 0.5;
|
flex: 0.5;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ const processDiagramViewer = ref(false)
|
|||||||
const typeOption = ref([
|
const typeOption = ref([
|
||||||
{
|
{
|
||||||
label: "需求征集",
|
label: "需求征集",
|
||||||
value: '需求征集'
|
value: '00'
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
const companyOption = ref([
|
const companyOption = ref([
|
||||||
|
|||||||
@@ -56,17 +56,14 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<!-- <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="10">-->
|
|
||||||
<div class="approval-record">
|
<div class="approval-record">
|
||||||
<baseTitle title="审批记录"></baseTitle>
|
<baseTitle title="审批记录"></baseTitle>
|
||||||
<div class="process">
|
<div class="process">
|
||||||
<operation-render v-if="processDiagramViewer" :operation-list="processInstanceData.operationList"
|
<operation-render v-if="processDiagramViewer" :operation-list="processInstanceData.operationList"
|
||||||
:state="'4'"/>
|
:state="processInstanceData.state"/>
|
||||||
<process-diagram-viewer v-if="processDiagramViewer"/>
|
<process-diagram-viewer v-if="processDiagramViewer"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- </el-col>-->
|
|
||||||
<!-- </el-row>-->
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="oper-page-btn" v-if="processInstanceData.state === '1' && processInstanceData.taskId">
|
<div class="oper-page-btn" v-if="processInstanceData.state === '1' && processInstanceData.taskId">
|
||||||
<el-button @click="handleReject">驳回</el-button>
|
<el-button @click="handleReject">驳回</el-button>
|
||||||
@@ -86,7 +83,6 @@ const form = ref();
|
|||||||
const processStore = useProcessStore()
|
const processStore = useProcessStore()
|
||||||
const processInstanceData = ref({})
|
const processInstanceData = ref({})
|
||||||
const processDiagramViewer = ref(false)
|
const processDiagramViewer = ref(false)
|
||||||
|
|
||||||
const processTree = ref()
|
const processTree = ref()
|
||||||
const formData = ref({})
|
const formData = ref({})
|
||||||
const auditOpinion = ref('')
|
const auditOpinion = ref('')
|
||||||
@@ -123,7 +119,7 @@ const tableConfig = reactive({
|
|||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
let approve = {
|
let approve = {
|
||||||
taskId: processInstanceData.value.taskId,
|
taskId: processInstanceData.value.taskId,
|
||||||
auditOpinion : auditOpinion.value,
|
auditOpinion: auditOpinion.value,
|
||||||
formData: formData.value
|
formData: formData.value
|
||||||
}
|
}
|
||||||
agreeTask(approve).then(res => {
|
agreeTask(approve).then(res => {
|
||||||
@@ -133,7 +129,7 @@ const handleSubmit = () => {
|
|||||||
const handleReject = () => {
|
const handleReject = () => {
|
||||||
let approve = {
|
let approve = {
|
||||||
taskId: processInstanceData.value.taskId,
|
taskId: processInstanceData.value.taskId,
|
||||||
auditOpinion : auditOpinion.value,
|
auditOpinion: auditOpinion.value,
|
||||||
}
|
}
|
||||||
rejectTask(approve).then(res => {
|
rejectTask(approve).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
import Tag from '@/components/Tag.vue'
|
import Tag from '@/components/Tag.vue'
|
||||||
|
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const searchConfig = reactive([
|
const searchConfig = reactive([
|
||||||
@@ -22,22 +23,16 @@ const searchConfig = reactive([
|
|||||||
{
|
{
|
||||||
label: '征集类型',
|
label: '征集类型',
|
||||||
prop: 'collectType',
|
prop: 'collectType',
|
||||||
component: 'el-input',
|
component: shallowRef(fvSelect),
|
||||||
props: {
|
props: {
|
||||||
placeholder: '请输入名称查询',
|
placeholder: '请选择征集类型',
|
||||||
clearable: true,
|
clearable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
checkStrictly: true
|
cacheKey: 'todo_type'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
const tableIns = ref()
|
const tableIns = ref()
|
||||||
const auths = {
|
|
||||||
edit: ['admin:role:edit'],
|
|
||||||
add: ['admin:role:add'],
|
|
||||||
export: ['admin:role:export'],
|
|
||||||
}
|
|
||||||
|
|
||||||
const tableConfig = reactive({
|
const tableConfig = reactive({
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@@ -86,8 +81,8 @@ const tableConfig = reactive({
|
|||||||
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
|
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
|
||||||
if (row.state === '3' || row.state === '2') {
|
if (row.state === '3' || row.state === '2') {
|
||||||
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
|
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
|
||||||
btn.push({label: '删除', func: () => handleDel(row), type: 'danger'})
|
btn.push({label: '删除', func: () => handleDelete(row), type: 'danger'})
|
||||||
}else if (row.state === '4'){
|
} else if (row.state === '4') {
|
||||||
btn.push({label: '上报', func: () => handleReport(row), type: 'primary'})
|
btn.push({label: '上报', func: () => handleReport(row), type: 'primary'})
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
@@ -111,8 +106,8 @@ const tableConfig = reactive({
|
|||||||
],
|
],
|
||||||
api: '/workflow/mosr/requirement',
|
api: '/workflow/mosr/requirement',
|
||||||
btns: [
|
btns: [
|
||||||
{name: '新增', key: 'add', auth: auths.add, color: '#DED0B2'},
|
{name: '新增', key: 'add', color: '#DED0B2'},
|
||||||
{name: '导出', key: 'add', auth: auths.add, type: ''},
|
{name: '导出', key: 'add', type: ''},
|
||||||
],
|
],
|
||||||
params: {}
|
params: {}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user