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 @@ 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 @@ - 搜索 - 重置 + 搜索 + 重置
- {{ isExpand ? '全部收起' : '全部展开' }} + {{ isExpand ? '全部收起' : '全部展开' }}
- 提交 - 返回 + 提交 + 返回
@@ -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 @@