diff --git a/src/api/user/user.js b/src/api/user/user.js
index 96d078f..e0a84c1 100644
--- a/src/api/user/user.js
+++ b/src/api/user/user.js
@@ -56,8 +56,8 @@ export const getUserDetail = (userId) => {
// 操作
export const operate = (data, type) => {
// console.log(type ,'type');
- if(data.userId && type !== '0') return editUser(data)
- else if(type == '0') return editUserOA(data)
+ if (data.userId && type !== '0') return editUser(data)
+ else if (type == '0') return editUserOA(data)
return addUser(data)
}
@@ -186,16 +186,23 @@ export const unbindAllUserByPost = (postId) => {
})
}
-export const bindAccount=(data)=>{
+export const bindAccount = (data) => {
return request({
url: '/admin/mosr/user/bind/account',
method: 'post',
data
})
}
-export const getBindAccount=(userId)=>{
+export const getBindAccount = (userId) => {
return request({
url: `/admin/mosr/user/bind/account/info/${userId}`,
method: 'get'
})
}
+
+export const checkMatrix = (userId) => {
+ return request({
+ url: `/admin/mosr/user/matrix?userId=` + userId,
+ method: 'get'
+ })
+}
diff --git a/src/assets/kylogo.png b/src/assets/kylogo.png
new file mode 100644
index 0000000..e318340
Binary files /dev/null and b/src/assets/kylogo.png differ
diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index 9713c8d..8627f0a 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -2,7 +2,7 @@
border-radius: 10px;
}
.logo {
- height: 106px;
+ height: 65px;
background-color: #BEA266;
color: #ffffff;
font-weight: bold;
@@ -10,6 +10,13 @@
display: flex;
justify-content: center;
align-items: center;
+ box-sizing: border-box;
+ padding: 10px;
+ & > img {
+ object-fit: scale-down;
+ width: 100%;
+ height: 40px;
+ }
}
.port-link{
display: block;
diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue
index 68101c4..70bb806 100644
--- a/src/components/AttachmentUpload.vue
+++ b/src/components/AttachmentUpload.vue
@@ -82,6 +82,10 @@ const props = defineProps({
labelPosition: {
type: String,
default: ''
+ },
+ tag: {
+ type: String,
+ default: ''
}
})
const emit = defineEmits(["getAttachment", "getOtherFile"])
@@ -219,35 +223,36 @@ const isSingleFile = ref(false)
const allFileList = ref([])
const deleteFileVal = ref({})
const singleFileList = ref([])
-if (props.formData.fileList !== null && props.formData.fileList?.length > 0) {
- allFileList.value = props.formData.fileList
-}
+// if (props.formData.fileList !== null && props.formData.fileList?.length > 0) {
+// allFileList.value = props.formData.fileList
+// }
watch(() => props.showSingleTable, (newVal) => {
props.showSingleTable = newVal
}, {deep: true})
watch(() => props.formData.fileList, (newVal) => {
- // console.log('newVal-fileList', newVal)
+ console.log('newVal-fileList', newVal)
if (props.preview) {
newVal?.forEach(item => {
allFileList.value.push(item)
})
}
-}, {deep: true})
-watch(() => props.otherFileList, (newVal) => {
- // console.log('newotherFileList', newVal)
- if (props.preview) {
- if (props.formData.fileList === null || props.formData.fileList?.length === 0) {
- allFileList.value = newVal
- } else {
- newVal?.forEach(item => {
- allFileList.value.push(item)
- })
- }
- } else {
- allFileList.value = newVal
- }
-}, {deep: true})
-
+}, {immediate: true})
+// watch(() => props.otherFileList, (newVal) => {
+// props.otherFileList=newVal
+ // if (props.preview) {
+ // console.log('newotherFileList', newVal,props.preview,props.formData.fileList)
+ // if (props.formData.fileList === null || props.formData.fileList?.length === 0) {
+ // allFileList.value = newVal
+ // } else {
+ // console.log('props.otherFileList',props.otherFileList)
+ // // props.otherFileList?.forEach(item => {
+ // // allFileList.value.push(item)
+ // // })
+ // }
+ // } else {
+ // allFileList.value = newVal
+ // }
+// }, {deep: true})
watch(() => props.showTable, (newVal) => {
props.showTable = newVal
}, {deep: true})
@@ -271,26 +276,42 @@ const handleDelete = (row, type) => {
})
if (res.code === 1000) {
if (type === 'single') {
- singleFileList.value.splice(singleFileList.value.findIndex((item) => item.id === row.fileId), 1);
+ singleFileList.value.splice(singleFileList.value.findIndex((item) => item.fileId === row.fileId), 1);
isSingleFile.value = false
} else {
- allFileList.value.splice(allFileList.value.findIndex((item) => item.id === row.fileId), 1);
+ allFileList.value.splice(allFileList.value.findIndex((item) => item.fileId === row.fileId), 1);
}
}
});
}
const handleSingleDelete = (row) => {
- console.log('row',row)
+ // console.log('row',row)
// fileUploadRef.value.handleRemove(deleteFileVal.value.id)
handleDelete(row, 'single')
}
const getAttachment = (val) => {
- console.log('getAttachment', val)
+ // console.log('getAttachment', val)
isSingleFile.value = true
// deleteFileVal.value=val
emit('getAttachment', val)
}
+const compositeParam = (item) => {
+ return {
+ fileId: item.id,
+ size: item.size,
+ originalFileName: item.originalFilename,
+ fileType: item.fileType,
+ url: item.url,
+ newFile: true,
+ tag:props.tag
+ }
+}
const getOtherFile = (val) => {
+ if (props.preview) {
+ allFileList.value.push(compositeParam(val))
+ } else {
+ allFileList.value = props.otherFileList
+ }
emit('getOtherFile', val)
}
const deleteAttachment = (val) => {
diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue
index 7463001..1e912d3 100644
--- a/src/components/DetailComponent/ProjectApply.vue
+++ b/src/components/DetailComponent/ProjectApply.vue
@@ -16,7 +16,7 @@
@@ -213,13 +213,13 @@ const getPreProcessList = () => {
searchArray.push(item)
}
})
- res.data.forEach((item) => {
- localFormData.value.preProcess.forEach((item1) => {
- if (item.requestId == item1.requestId) {
- preProcessTable.value.toggleRowSelection(item)
- }
- })
- })
+ // res.data.forEach((item) => {
+ // localFormData.value.preProcess.forEach((item1) => {
+ // if (item.requestId == item1.requestId) {
+ // preProcessTable.value.toggleRowSelection(item)
+ // }
+ // })
+ // })
total.value = searchArray.length
currentList.value = searchArray
preProcessList.value = currentList.value.slice(0, 10)
diff --git a/src/components/steps/index.vue b/src/components/steps/index.vue
index 24b2a05..5057855 100644
--- a/src/components/steps/index.vue
+++ b/src/components/steps/index.vue
@@ -118,7 +118,7 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
+ label: '征集公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
diff --git a/src/fvcomponents/fvTable/index.vue b/src/fvcomponents/fvTable/index.vue
index 0f37907..9cbaebe 100644
--- a/src/fvcomponents/fvTable/index.vue
+++ b/src/fvcomponents/fvTable/index.vue
@@ -227,10 +227,8 @@ const getList = async () => {
} else {
localData.list = data
}
- if (data.total) {
- localData.total = data.total
- emits('getTotal', localData.total)
- }
+ localData.total = data.total
+ emits('getTotal', localData.total)
localData.loading = false
} else {
ElNotification({
diff --git a/src/layout/navbar/Breadcrumb.vue b/src/layout/navbar/Breadcrumb.vue
index df7474a..1faaff6 100644
--- a/src/layout/navbar/Breadcrumb.vue
+++ b/src/layout/navbar/Breadcrumb.vue
@@ -1,10 +1,10 @@
-
+
{{ item.meta.title }}
-
+
{{ item.meta.title }}
@@ -47,3 +47,9 @@ const isDashboard = (meta) => {
getBreadcrumb()
+
+
diff --git a/src/layout/navbar/Hamburger.vue b/src/layout/navbar/Hamburger.vue
index 475c434..2b516d7 100644
--- a/src/layout/navbar/Hamburger.vue
+++ b/src/layout/navbar/Hamburger.vue
@@ -15,6 +15,8 @@ const toggleClick = () => {
diff --git a/src/views/project-management/filing/index.vue b/src/views/project-management/filing/index.vue
index dcae27b..fad0044 100644
--- a/src/views/project-management/filing/index.vue
+++ b/src/views/project-management/filing/index.vue
@@ -144,7 +144,7 @@ const tableConfig = reactive({
},
{
prop: 'affiliatedCompany',
- label: '所属公司',
+ label: '征集公司',
align: 'center'
},
{
diff --git a/src/views/project-management/filing/upload.vue b/src/views/project-management/filing/upload.vue
index 80198f4..e9a4163 100644
--- a/src/views/project-management/filing/upload.vue
+++ b/src/views/project-management/filing/upload.vue
@@ -54,7 +54,7 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
+ label: '征集公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
diff --git a/src/views/project-management/implementation/account.vue b/src/views/project-management/implementation/account.vue
index 5c24d7e..3a92081 100644
--- a/src/views/project-management/implementation/account.vue
+++ b/src/views/project-management/implementation/account.vue
@@ -1,12 +1,15 @@
-
- baseForm = e">
-
-
-
-
-
-
+
+
+ baseForm = e">
+
+
+
+
+
+
+
+
diff --git a/src/views/project-management/implementation/attachment.vue b/src/views/project-management/implementation/attachment.vue
index 45bb082..b1b62a0 100644
--- a/src/views/project-management/implementation/attachment.vue
+++ b/src/views/project-management/implementation/attachment.vue
@@ -64,7 +64,7 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
+ label: '征集公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
diff --git a/src/views/project-management/implementation/check.vue b/src/views/project-management/implementation/check.vue
deleted file mode 100644
index 1d10b04..0000000
--- a/src/views/project-management/implementation/check.vue
+++ /dev/null
@@ -1,237 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 提交
- 重新提交
- 返回
-
-
-
-
-
-
-
diff --git a/src/views/project-management/implementation/index.vue b/src/views/project-management/implementation/index.vue
index 170a57d..3798475 100644
--- a/src/views/project-management/implementation/index.vue
+++ b/src/views/project-management/implementation/index.vue
@@ -147,7 +147,7 @@ const tableConfig = reactive({
},
{
prop: 'affiliatedCompany',
- label: '所属公司',
+ label: '征集公司',
align: 'center'
},
{
diff --git a/src/views/project-management/implementation/phase.vue b/src/views/project-management/implementation/phase.vue
index e38b0e7..54ab532 100644
--- a/src/views/project-management/implementation/phase.vue
+++ b/src/views/project-management/implementation/phase.vue
@@ -10,7 +10,7 @@
@@ -83,7 +83,7 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
+ label: '征集公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
@@ -163,7 +163,8 @@ const selected = (select) => {
let userInfo = {
id: val.id,
name: val.name,
- avatar: val.avatar,
+ companyName: val.companyName,
+ accountType: val.accountType,
}
userInfoList.push(userInfo)
}
diff --git a/src/views/project-management/implementation/phaseDetail.vue b/src/views/project-management/implementation/phaseDetail.vue
index 93bf09c..f4469f9 100644
--- a/src/views/project-management/implementation/phaseDetail.vue
+++ b/src/views/project-management/implementation/phaseDetail.vue
@@ -47,7 +47,7 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
+ label: '征集公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
diff --git a/src/views/project-management/implementation/share.vue b/src/views/project-management/implementation/share.vue
index f8498e9..1215e8a 100644
--- a/src/views/project-management/implementation/share.vue
+++ b/src/views/project-management/implementation/share.vue
@@ -38,7 +38,7 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
+ label: '征集公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
diff --git a/src/views/project-management/implementation/updateTable.vue b/src/views/project-management/implementation/updateTable.vue
index f0155eb..eb4110a 100644
--- a/src/views/project-management/implementation/updateTable.vue
+++ b/src/views/project-management/implementation/updateTable.vue
@@ -10,7 +10,7 @@
{{ tableForm.projectChargePersonName }}
-
+
{{ tableForm.projectChargePersonName ? '更改' : '请选择项目负责人' }}
@@ -114,6 +114,8 @@ const selected = (select) => {
for (const selectElement of select) {
tableForm.value.projectChargePerson = selectElement.id
tableForm.value.projectChargePersonName = selectElement.name
+ tableForm.value.companyName = selectElement.companyName
+ tableForm.value.accountType = selectElement.accountType
}
userList.value = select
}
@@ -154,12 +156,15 @@ getBaseInfo()
const init = async () => {
const {code, msg, data} = await searchUpdateLedgerData(route.query.id)
tableForm.value = data
- let userObj = {
- id: data.projectChargePerson,
- name: data.projectChargePersonName,
- companyName: data.companyName,
+ if(data.projectChargePersonName){
+ let userObj = {
+ id: data.projectChargePerson,
+ name: data.projectChargePersonName,
+ companyName: data.companyName,
+ accountType: data.accountType,
+ }
+ userList.value.push(userObj)
}
- userList.value.push(userObj)
if (code !== 1000) {
ElNotification({
title: '提示',
diff --git a/src/views/project-management/implementation/upload.vue b/src/views/project-management/implementation/upload.vue
index 6a2a087..ba3c132 100644
--- a/src/views/project-management/implementation/upload.vue
+++ b/src/views/project-management/implementation/upload.vue
@@ -38,6 +38,7 @@ import {useTagsView} from '@/stores/tagsview.js'
import {uploadFileList} from "@/api/project-manage/attachment";
import {computed, ref} from "vue";
import {getBaseInfoApi} from "@/components/steps/api";
+import {downloadFile,deleteFile} from "@/api/project-demand";
const tagsViewStore = useTagsView()
const route = useRoute()
@@ -68,7 +69,7 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
+ label: '征集公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
@@ -110,10 +111,14 @@ const tableConfig = reactive({
prop: 'oper',
label: '操作',
align: 'center',
+ showOverflowTooltip: false,
currentRender: ({row, index}) => {
return (
handleDownload(row)}>下载
+
handleDelete(row)}/>
)
}
@@ -126,6 +131,28 @@ const name = ref(router.currentRoute.value.name)
const rules = reactive({
tagName: [{required: true, message: '请输入标签名称', trigger: ['blur', 'change']}],
})
+const handleDelete = (row) => {
+ deleteFile(row.fileId).then(res => {
+ ElNotification({
+ title: '提示',
+ message: res.msg,
+ type: res.code === 1000 ? 'success' : 'error'
+ })
+ if (res.code === 1000) {
+ fileList.value.splice(fileList.value.findIndex((item) => item.id === row.fileId), 1);
+ }
+ });
+}
+
+const handleDownload = (row) => {
+ downloadFile(row.fileId).then(res => {
+ const blob = new Blob([res])
+ let a = document.createElement('a')
+ a.href = URL.createObjectURL(blob)
+ a.download = row.originalFileName
+ a.click()
+ })
+}
const getBaseInfo = async () => {
try {
const {code, data} = await getBaseInfoApi(route.query.id)
@@ -183,11 +210,12 @@ const handleSubmit = async (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
let params = {
fileList: fileList.value,
diff --git a/src/views/project-management/implementation/uploadFee.vue b/src/views/project-management/implementation/uploadFee.vue
index 4ab7af2..65f766c 100644
--- a/src/views/project-management/implementation/uploadFee.vue
+++ b/src/views/project-management/implementation/uploadFee.vue
@@ -117,7 +117,7 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
+ label: '征集公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
@@ -173,11 +173,12 @@ const handleSubmit = (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
instance.clearValidate()
tableForm.tableData.forEach(item => {
diff --git a/src/views/project-management/initiation/apply.vue b/src/views/project-management/initiation/apply.vue
deleted file mode 100644
index 600263c..0000000
--- a/src/views/project-management/initiation/apply.vue
+++ /dev/null
@@ -1,276 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 提交
- 重新提交
- 返回
-
-
-
-
-
-
-
diff --git a/src/views/project-management/initiation/index.vue b/src/views/project-management/initiation/index.vue
index 1593ab8..d238277 100644
--- a/src/views/project-management/initiation/index.vue
+++ b/src/views/project-management/initiation/index.vue
@@ -141,7 +141,7 @@ const tableConfig = reactive({
},
{
prop: 'affiliatedCompany',
- label: '所属公司',
+ label: '征集公司',
align: 'center'
},
{
diff --git a/src/views/project-management/mobledetail/CollectionDetailMoblie.vue b/src/views/project-management/mobledetail/CollectionDetailMoblie.vue
index 41a3e89..95cbd3f 100644
--- a/src/views/project-management/mobledetail/CollectionDetailMoblie.vue
+++ b/src/views/project-management/mobledetail/CollectionDetailMoblie.vue
@@ -18,7 +18,7 @@
-
+
{{
getCompanyName(formData.companyIds)
}}
diff --git a/src/views/project-management/mobledetail/ProjectApplyMoblie.vue b/src/views/project-management/mobledetail/ProjectApplyMoblie.vue
index 5ce838e..993eb5e 100644
--- a/src/views/project-management/mobledetail/ProjectApplyMoblie.vue
+++ b/src/views/project-management/mobledetail/ProjectApplyMoblie.vue
@@ -16,7 +16,7 @@
diff --git a/src/views/project-management/mobledetail/StepsMoblie.vue b/src/views/project-management/mobledetail/StepsMoblie.vue
index 61f119d..91cbdf3 100644
--- a/src/views/project-management/mobledetail/StepsMoblie.vue
+++ b/src/views/project-management/mobledetail/StepsMoblie.vue
@@ -119,7 +119,7 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
+ label: '征集公司',
prop: 'affiliatedCompany',
colProps: {
span: 24
diff --git a/src/views/special-fund/add.vue b/src/views/special-fund/add.vue
index d287762..b37cd65 100644
--- a/src/views/special-fund/add.vue
+++ b/src/views/special-fund/add.vue
@@ -189,11 +189,12 @@ const handleSubmit = async (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
- return ElNotification({
+ ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
+ return;
}
const {msg, code} = await addFund(submitParam(formData.value))
ElNotification({
diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue
index f1ec30d..ea94ada 100644
--- a/src/views/system/config/index.vue
+++ b/src/views/system/config/index.vue
@@ -18,14 +18,13 @@
- 搜索
+ 搜索
重置
- 新增
+ 新增
删除
diff --git a/src/views/system/department/index.vue b/src/views/system/department/index.vue
index 4cd5e0c..1767e6a 100644
--- a/src/views/system/department/index.vue
+++ b/src/views/system/department/index.vue
@@ -10,12 +10,12 @@
- 搜索
- 重置
+ 搜索
+ 重置
- 搜索
- 重置
+ 搜索
+ 重置
- 提交
- 返回
+ 提交
+ 返回
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index bc7a9b7..84f417d 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -186,7 +186,7 @@ const tableConfig = reactive({
}
],
api: '/admin/role',
- btns: [{name: '新增', key: 'add', auth: auths.add, type: 'primary'}],
+ btns: [{name: '新增', key: 'add', auth: auths.add, color:"#DED0B2"}],
params: {}
})
diff --git a/src/views/system/subsidiary/index.vue b/src/views/system/subsidiary/index.vue
index 464310b..8371dcc 100644
--- a/src/views/system/subsidiary/index.vue
+++ b/src/views/system/subsidiary/index.vue
@@ -10,12 +10,12 @@
- 搜索
- 重置
+ 搜索
+ 重置
- 提交
- 返回
+ 提交
+ 返回
@@ -246,4 +246,4 @@ onMounted(async ()=>{
\ No newline at end of file
+
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 03b4764..d12a2ab 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -167,7 +167,7 @@ const tableConfig = reactive({
api: '/admin/mosr/user',
params: {},
btns: [
- {name: '新增', type: 'primary', auth: ['admin:user:add'], key: 'add'}
+ {name: '新增', color:"#DED0B2", auth: ['admin:user:add'], key: 'add'}
]
})
diff --git a/src/views/tool/dict/index.vue b/src/views/tool/dict/index.vue
index afc598b..410a0da 100644
--- a/src/views/tool/dict/index.vue
+++ b/src/views/tool/dict/index.vue
@@ -3,13 +3,13 @@
- 新增
+ 新增
- 修改
- 删除
@@ -40,7 +40,7 @@
- 新增
+ 新增
diff --git a/src/views/workflow/process/ProcessDesign.vue b/src/views/workflow/process/ProcessDesign.vue
index 323388e..b2ac0b8 100644
--- a/src/views/workflow/process/ProcessDesign.vue
+++ b/src/views/workflow/process/ProcessDesign.vue
@@ -1,14 +1,14 @@
-
- {{ scale }}%
+ {{ scale }}%
+
-
-
+
-
- 流程名称: {{ processData.deploymentName }}
+
+ 流程名称 : {{ processData.deploymentName }}
@@ -31,7 +31,9 @@ const processData = computed(() => {
const validate = () => {
return []
}
-
+onActivated(()=>{
+ init()
+})
const init = () => {
getTypeOption().then(res => {
optionList.value = res.data
diff --git a/src/views/workflow/process/common/UserPicker.vue b/src/views/workflow/process/common/UserPicker.vue
index 459236c..d168e91 100644
--- a/src/views/workflow/process/common/UserPicker.vue
+++ b/src/views/workflow/process/common/UserPicker.vue
@@ -70,8 +70,9 @@