Merge pull request 'master' (#450) from master into prod
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/450
This commit is contained in:
@@ -222,9 +222,6 @@ const singleFileList = ref([])
|
|||||||
if (props.formData.fileList !== null && props.formData.fileList?.length > 0) {
|
if (props.formData.fileList !== null && props.formData.fileList?.length > 0) {
|
||||||
allFileList.value = props.formData.fileList
|
allFileList.value = props.formData.fileList
|
||||||
}
|
}
|
||||||
watch(() => props.showTable, (newVal) => {
|
|
||||||
props.showTable = newVal
|
|
||||||
}, {deep: true})
|
|
||||||
watch(() => props.showSingleTable, (newVal) => {
|
watch(() => props.showSingleTable, (newVal) => {
|
||||||
props.showSingleTable = newVal
|
props.showSingleTable = newVal
|
||||||
}, {deep: true})
|
}, {deep: true})
|
||||||
@@ -237,7 +234,7 @@ watch(() => props.formData.fileList, (newVal) => {
|
|||||||
}
|
}
|
||||||
}, {deep: true})
|
}, {deep: true})
|
||||||
watch(() => props.otherFileList, (newVal) => {
|
watch(() => props.otherFileList, (newVal) => {
|
||||||
// console.log('newotherFileList', newVal, props.formData)
|
// console.log('newotherFileList', newVal)
|
||||||
if (props.preview) {
|
if (props.preview) {
|
||||||
if (props.formData.fileList === null || props.formData.fileList?.length === 0) {
|
if (props.formData.fileList === null || props.formData.fileList?.length === 0) {
|
||||||
allFileList.value = newVal
|
allFileList.value = newVal
|
||||||
@@ -250,6 +247,10 @@ watch(() => props.otherFileList, (newVal) => {
|
|||||||
allFileList.value = newVal
|
allFileList.value = newVal
|
||||||
}
|
}
|
||||||
}, {deep: true})
|
}, {deep: true})
|
||||||
|
|
||||||
|
watch(() => props.showTable, (newVal) => {
|
||||||
|
props.showTable = newVal
|
||||||
|
}, {deep: true})
|
||||||
watch(() => props.singleList, (newVal) => {
|
watch(() => props.singleList, (newVal) => {
|
||||||
// console.log('singleFile', newVal)
|
// console.log('singleFile', newVal)
|
||||||
singleFileList.value = newVal
|
singleFileList.value = newVal
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- <el-button color="#DED0B2" style="float: right;margin: 0 10px 10px 0" @click="exportTable">导出</el-button>-->
|
<el-button color="#DED0B2" style="float: right;margin: 0 10px 10px 0" @click="exportTable">导出</el-button>
|
||||||
<el-table ref="table" :data="tableData" style="width: 100%;height: 479px" :show-summary="true" border
|
<el-table ref="table" :data="tableData" style="width: 100%;height: 479px" :show-summary="true" border
|
||||||
:summary-method="getSummaries" v-loading="loading" :header-cell-style="{background:'#f5f7fa'}">
|
:summary-method="getSummaries" v-loading="loading" :header-cell-style="{background:'#f5f7fa'}">
|
||||||
<el-table-column type="index" label="序号" align="center" width="60"/>
|
<el-table-column type="index" label="序号" align="center" width="60"/>
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
<div v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
||||||
<el-tag effect="plain">{{scope.row.researchStage==1?'开发阶段':'研究阶段'}}</el-tag>
|
<el-tag effect="plain">{{scope.row.researchStage==1?'开发阶段':'研究阶段'}}</el-tag>
|
||||||
<!-- <Tag dictType="research_stage" :value="scope.row.researchStage"/>-->
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else>--</div>
|
<div v-else>--</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -30,6 +29,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
|
<!-- <Tag dictType="research_stage" :value="scope.row.researchStage"/>-->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const tableConfig = reactive({
|
|||||||
type: 'index',
|
type: 'index',
|
||||||
label: '序号',
|
label: '序号',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 90,
|
width: 85,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'originalFileName',
|
prop: 'originalFileName',
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ serveice.interceptors.response.use(response => {
|
|||||||
const status = response.status;
|
const status = response.status;
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 401:
|
case 401:
|
||||||
ElMessageBox.confirm('登录状态已过期,请重新登录', '系统提示', {
|
// ElMessageBox.confirm('登录状态已过期,请重新登录', '系统提示', {
|
||||||
confirmButtonText: '重新登录',
|
// confirmButtonText: '重新登录',
|
||||||
cancelButtonText: '取消',
|
// cancelButtonText: '取消',
|
||||||
type: 'warning',
|
// type: 'warning',
|
||||||
closeOnClickModal: false
|
// closeOnClickModal: false
|
||||||
}).then(() => {
|
// }).then(() => {
|
||||||
removeToken()
|
removeToken()
|
||||||
let path = window.location.pathname;
|
let path = window.location.pathname;
|
||||||
let query = window.location.search
|
let query = window.location.search
|
||||||
@@ -49,7 +49,7 @@ serveice.interceptors.response.use(response => {
|
|||||||
query: query
|
query: query
|
||||||
}))
|
}))
|
||||||
window.location.href = `${window.location.origin}/api/auth/cas/login`
|
window.location.href = `${window.location.origin}/api/auth/cas/login`
|
||||||
})
|
// })
|
||||||
return Promise.reject('会话已过期,请重新登录')
|
return Promise.reject('会话已过期,请重新登录')
|
||||||
case 402:
|
case 402:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- <el-button color="#DED0B2" style="float: right;margin: 0 10px 10px 0" @click="exportTable">导出</el-button>-->
|
<el-button color="#DED0B2" style="float: right;margin: 0 10px 10px 0" @click="exportTable">导出</el-button>
|
||||||
<el-table ref="table" :data="tableData" style="width: 100%;height: 479px" :show-summary="true" border
|
<el-table ref="table" :data="tableData" style="width: 100%;height: 479px" :show-summary="true" border
|
||||||
:summary-method="getSummaries" v-loading="loading" :header-cell-style="{background:'#f5f7fa'}">
|
:summary-method="getSummaries" v-loading="loading" :header-cell-style="{background:'#f5f7fa'}">
|
||||||
<el-table-column type="index" label="序号" align="center" width="60"/>
|
<el-table-column type="index" label="序号" align="center" width="60"/>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div
|
<div
|
||||||
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
||||||
<Tag dictType="research_stage" :value="scope.row.researchStage"/>
|
<el-tag effect="plain">{{scope.row.researchStage==1?'开发阶段':'研究阶段'}}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>--</div>
|
<div v-else>--</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -382,9 +382,11 @@ const getOtherFile = (val) => {
|
|||||||
showTable.value = true
|
showTable.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
watch(() => otherFileList.value, (newVal) => {
|
// watch(() => otherFileList.value, (newVal) => {
|
||||||
showTable.value = newVal.length !== 0;
|
// console.log('newVal',newVal)
|
||||||
}, {deep: true})
|
// showTable.value = newVal.length !== 0;
|
||||||
|
// console.log('showTable.value',showTable.value)
|
||||||
|
// }, {deep: true})
|
||||||
watch(() => singleList.value, (newVal) => {
|
watch(() => singleList.value, (newVal) => {
|
||||||
showSingleTable.value = newVal.length !== 0;
|
showSingleTable.value = newVal.length !== 0;
|
||||||
}, {deep: true})
|
}, {deep: true})
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div
|
<div
|
||||||
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
||||||
<Tag dictType="research_stage" :value="scope.row.researchStage"/>
|
<el-tag effect="plain">{{scope.row.researchStage==1?'开发阶段':'研究阶段'}}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>--</div>
|
<div v-else>--</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ const fileTable = reactive({
|
|||||||
type: 'index',
|
type: 'index',
|
||||||
label: '序号',
|
label: '序号',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '80',
|
width: 85,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'originalFileName',
|
prop: 'originalFileName',
|
||||||
@@ -169,6 +169,7 @@ const fileTable = reactive({
|
|||||||
prop: 'size',
|
prop: 'size',
|
||||||
label: '文件大小',
|
label: '文件大小',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 150,
|
||||||
currentRender: ({row, index}) => (parseInt(row.size / 1024) + 'KB')
|
currentRender: ({row, index}) => (parseInt(row.size / 1024) + 'KB')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<baseTitle title="基础信息"></baseTitle>
|
<baseTitle title="基础信息"></baseTitle>
|
||||||
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
|
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
|
||||||
<baseTitle title="各流程信息"></baseTitle>
|
|
||||||
<div class="steps-box">
|
<div class="steps-box">
|
||||||
<el-steps :active="localActive" finish-status="success">
|
<el-steps :active="localActive" finish-status="success">
|
||||||
<el-step
|
<el-step
|
||||||
@@ -22,6 +21,7 @@
|
|||||||
|
|
||||||
<!-- 步骤内容 -->
|
<!-- 步骤内容 -->
|
||||||
<div>
|
<div>
|
||||||
|
<baseTitle title="各流程信息"></baseTitle>
|
||||||
<slot name="content" :localActive="localActive"></slot>
|
<slot name="content" :localActive="localActive"></slot>
|
||||||
<!-- <template v-for="(item, index) in stepList" :key="item.key">
|
<!-- <template v-for="(item, index) in stepList" :key="item.key">
|
||||||
<component v-if="localActive == index" v-bind="item.props || {}" :is="item.component" />
|
<component v-if="localActive == index" v-bind="item.props || {}" :is="item.component" />
|
||||||
@@ -101,28 +101,28 @@ const schema = computed(() => {
|
|||||||
label: '征集名称',
|
label: '征集名称',
|
||||||
prop: 'requirementName',
|
prop: 'requirementName',
|
||||||
colProps: {
|
colProps: {
|
||||||
span: 12
|
span: 24
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '项目名称',
|
|
||||||
prop: 'projectName',
|
|
||||||
colProps: {
|
|
||||||
span: 12
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '征集描述',
|
label: '征集描述',
|
||||||
prop: 'collectExplain',
|
prop: 'collectExplain',
|
||||||
colProps: {
|
colProps: {
|
||||||
span: 12
|
span: 24
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '项目名称',
|
||||||
|
prop: 'projectName',
|
||||||
|
colProps: {
|
||||||
|
span: 24
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '所属公司',
|
label: '所属公司',
|
||||||
prop: 'affiliatedCompany',
|
prop: 'affiliatedCompany',
|
||||||
colProps: {
|
colProps: {
|
||||||
span: 12
|
span: 24
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -240,12 +240,24 @@ const _value = computed({
|
|||||||
const filterDict = (data, value) => {
|
const filterDict = (data, value) => {
|
||||||
if (data === undefined || value === undefined) return;
|
if (data === undefined || value === undefined) return;
|
||||||
let label = ''
|
let label = ''
|
||||||
if (data instanceof Array) {
|
let result = []
|
||||||
data.find(item => {
|
if (JSON.parse(value) instanceof Array) {
|
||||||
if (item.value == value) {
|
JSON.parse(value).forEach(item1 => {
|
||||||
label = item.label
|
data.find(item => {
|
||||||
}
|
if (item.value == item1) {
|
||||||
|
result.push(item.label)
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
label = result.map(item => item).join(',')
|
||||||
|
} else {
|
||||||
|
if (data instanceof Array) {
|
||||||
|
data.find(item => {
|
||||||
|
if (item.value == value) {
|
||||||
|
label = item.label
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return label
|
return label
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,11 @@
|
|||||||
<el-table-column prop="departmentMark" label="部门标志"/>
|
<el-table-column prop="departmentMark" label="部门标志"/>
|
||||||
<el-table-column prop="departmentCode" label="部门编码"/>
|
<el-table-column prop="departmentCode" label="部门编码"/>
|
||||||
<el-table-column prop="departmentName" label="部门名称"/>
|
<el-table-column prop="departmentName" label="部门名称"/>
|
||||||
|
<el-table-column prop="matrix" label="矩阵审批">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-tag :type="scope.row.matrix?'success':'danger'"> {{scope.row.matrix?'完备':'缺失'}}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="createTime" label="创建时间"/>
|
<el-table-column prop="createTime" label="创建时间"/>
|
||||||
<el-table-column prop="oper" label="操作">
|
<el-table-column prop="oper" label="操作">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
|
|||||||
Reference in New Issue
Block a user