diff --git a/src/api/home/1 b/src/api/home/1 deleted file mode 100644 index e69de29..0000000 --- a/src/api/home/1 +++ /dev/null diff --git a/src/api/home/1 b/src/api/home/1 deleted file mode 100644 index e69de29..0000000 --- a/src/api/home/1 +++ /dev/null diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts new file mode 100644 index 0000000..47914e0 --- /dev/null +++ b/src/api/home/filling/filling.ts @@ -0,0 +1,29 @@ +/** + * 填报相关接口 + */ +import request from '@/api/index' + +// 分页列表 +export function getListPage(params: object) { + return request({ + url: '/planQuotaRep/listPage', + method: 'get', + params, + }) +} +// 填报 +export function filling(data: object) { + return request({ + url: '/planQuotaRep/updateRep', + method: 'post', + data, + }) +} +// 提交 +export function batchSubmitApi(data: object) { + return request({ + url: '/planQuotaRep/batchSubmit', + method: 'post', + data, + }) +} diff --git a/src/api/home/1 b/src/api/home/1 deleted file mode 100644 index e69de29..0000000 --- a/src/api/home/1 +++ /dev/null diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts new file mode 100644 index 0000000..47914e0 --- /dev/null +++ b/src/api/home/filling/filling.ts @@ -0,0 +1,29 @@ +/** + * 填报相关接口 + */ +import request from '@/api/index' + +// 分页列表 +export function getListPage(params: object) { + return request({ + url: '/planQuotaRep/listPage', + method: 'get', + params, + }) +} +// 填报 +export function filling(data: object) { + return request({ + url: '/planQuotaRep/updateRep', + method: 'post', + data, + }) +} +// 提交 +export function batchSubmitApi(data: object) { + return request({ + url: '/planQuotaRep/batchSubmit', + method: 'post', + data, + }) +} diff --git a/src/api/home/rule/programme.ts b/src/api/home/rule/programme.ts index cbf5585..91e1dbe 100644 --- a/src/api/home/rule/programme.ts +++ b/src/api/home/rule/programme.ts @@ -51,4 +51,26 @@ data, }) } - +// 方案指标列表 +export function ProxyList(params: object) { + return request({ + url: '/assessmentPlan/planQuotaListPage', + method: 'get', + params, + }) +} +// 考核方案等级下拉 /assessmentLevel/list +export function getGradeSelectList() { + return request({ + url: '/assessmentLevel/list', + method: 'get', + }) +} +// 启用考核计划方案 +export function updatePlanEnabled(data: object) { + return request({ + url: '/assessmentPlan/updatePlanEnabled', + method: 'post', + data, + }) +} diff --git a/src/api/home/1 b/src/api/home/1 deleted file mode 100644 index e69de29..0000000 --- a/src/api/home/1 +++ /dev/null diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts new file mode 100644 index 0000000..47914e0 --- /dev/null +++ b/src/api/home/filling/filling.ts @@ -0,0 +1,29 @@ +/** + * 填报相关接口 + */ +import request from '@/api/index' + +// 分页列表 +export function getListPage(params: object) { + return request({ + url: '/planQuotaRep/listPage', + method: 'get', + params, + }) +} +// 填报 +export function filling(data: object) { + return request({ + url: '/planQuotaRep/updateRep', + method: 'post', + data, + }) +} +// 提交 +export function batchSubmitApi(data: object) { + return request({ + url: '/planQuotaRep/batchSubmit', + method: 'post', + data, + }) +} diff --git a/src/api/home/rule/programme.ts b/src/api/home/rule/programme.ts index cbf5585..91e1dbe 100644 --- a/src/api/home/rule/programme.ts +++ b/src/api/home/rule/programme.ts @@ -51,4 +51,26 @@ data, }) } - +// 方案指标列表 +export function ProxyList(params: object) { + return request({ + url: '/assessmentPlan/planQuotaListPage', + method: 'get', + params, + }) +} +// 考核方案等级下拉 /assessmentLevel/list +export function getGradeSelectList() { + return request({ + url: '/assessmentLevel/list', + method: 'get', + }) +} +// 启用考核计划方案 +export function updatePlanEnabled(data: object) { + return request({ + url: '/assessmentPlan/updatePlanEnabled', + method: 'post', + data, + }) +} diff --git a/src/components/showPhoto/index.vue b/src/components/showPhoto/index.vue index 5c765ed..a221af2 100644 --- a/src/components/showPhoto/index.vue +++ b/src/components/showPhoto/index.vue @@ -6,6 +6,10 @@ type: String, required: true, }, + minioFileId: { + type: String, + required: true, + }, height: { type: String, default: '100px', @@ -24,17 +28,20 @@ // url.value = res.data // }) const arr = props.minioFileName.split(',') - urlList.value = arr.map((item) => { + const ids = props.minioFileId.split(',') + console.log(ids, 'ids') + urlList.value = arr.map((item, index) => { + console.log(`${import.meta.env.VITE_APP_API_BASEURL}${ids[index]}`) return { minioFileName: item, - url: '', + url: `${import.meta.env.VITE_APP_API_BASEURL}/static/${ids[index]}`, } }) - urlList.value.forEach((item: any) => { - getFileUrl(item.minioFileName).then((res) => { - item.url = res.data - }) - }) + // urlList.value.forEach((item: any) => { + // getFileUrl(item.minioFileName).then((res) => { + // item.url = res.data + // }) + // }) } else { urlList.value = [] diff --git a/src/api/home/1 b/src/api/home/1 deleted file mode 100644 index e69de29..0000000 --- a/src/api/home/1 +++ /dev/null diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts new file mode 100644 index 0000000..47914e0 --- /dev/null +++ b/src/api/home/filling/filling.ts @@ -0,0 +1,29 @@ +/** + * 填报相关接口 + */ +import request from '@/api/index' + +// 分页列表 +export function getListPage(params: object) { + return request({ + url: '/planQuotaRep/listPage', + method: 'get', + params, + }) +} +// 填报 +export function filling(data: object) { + return request({ + url: '/planQuotaRep/updateRep', + method: 'post', + data, + }) +} +// 提交 +export function batchSubmitApi(data: object) { + return request({ + url: '/planQuotaRep/batchSubmit', + method: 'post', + data, + }) +} diff --git a/src/api/home/rule/programme.ts b/src/api/home/rule/programme.ts index cbf5585..91e1dbe 100644 --- a/src/api/home/rule/programme.ts +++ b/src/api/home/rule/programme.ts @@ -51,4 +51,26 @@ data, }) } - +// 方案指标列表 +export function ProxyList(params: object) { + return request({ + url: '/assessmentPlan/planQuotaListPage', + method: 'get', + params, + }) +} +// 考核方案等级下拉 /assessmentLevel/list +export function getGradeSelectList() { + return request({ + url: '/assessmentLevel/list', + method: 'get', + }) +} +// 启用考核计划方案 +export function updatePlanEnabled(data: object) { + return request({ + url: '/assessmentPlan/updatePlanEnabled', + method: 'post', + data, + }) +} diff --git a/src/components/showPhoto/index.vue b/src/components/showPhoto/index.vue index 5c765ed..a221af2 100644 --- a/src/components/showPhoto/index.vue +++ b/src/components/showPhoto/index.vue @@ -6,6 +6,10 @@ type: String, required: true, }, + minioFileId: { + type: String, + required: true, + }, height: { type: String, default: '100px', @@ -24,17 +28,20 @@ // url.value = res.data // }) const arr = props.minioFileName.split(',') - urlList.value = arr.map((item) => { + const ids = props.minioFileId.split(',') + console.log(ids, 'ids') + urlList.value = arr.map((item, index) => { + console.log(`${import.meta.env.VITE_APP_API_BASEURL}${ids[index]}`) return { minioFileName: item, - url: '', + url: `${import.meta.env.VITE_APP_API_BASEURL}/static/${ids[index]}`, } }) - urlList.value.forEach((item: any) => { - getFileUrl(item.minioFileName).then((res) => { - item.url = res.data - }) - }) + // urlList.value.forEach((item: any) => { + // getFileUrl(item.minioFileName).then((res) => { + // item.url = res.data + // }) + // }) } else { urlList.value = [] diff --git a/src/views/flling/already/index copy.vue b/src/views/flling/already/index copy.vue new file mode 100644 index 0000000..8ee5ca4 --- /dev/null +++ b/src/views/flling/already/index copy.vue @@ -0,0 +1,199 @@ + + + + + diff --git a/src/api/home/1 b/src/api/home/1 deleted file mode 100644 index e69de29..0000000 --- a/src/api/home/1 +++ /dev/null diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts new file mode 100644 index 0000000..47914e0 --- /dev/null +++ b/src/api/home/filling/filling.ts @@ -0,0 +1,29 @@ +/** + * 填报相关接口 + */ +import request from '@/api/index' + +// 分页列表 +export function getListPage(params: object) { + return request({ + url: '/planQuotaRep/listPage', + method: 'get', + params, + }) +} +// 填报 +export function filling(data: object) { + return request({ + url: '/planQuotaRep/updateRep', + method: 'post', + data, + }) +} +// 提交 +export function batchSubmitApi(data: object) { + return request({ + url: '/planQuotaRep/batchSubmit', + method: 'post', + data, + }) +} diff --git a/src/api/home/rule/programme.ts b/src/api/home/rule/programme.ts index cbf5585..91e1dbe 100644 --- a/src/api/home/rule/programme.ts +++ b/src/api/home/rule/programme.ts @@ -51,4 +51,26 @@ data, }) } - +// 方案指标列表 +export function ProxyList(params: object) { + return request({ + url: '/assessmentPlan/planQuotaListPage', + method: 'get', + params, + }) +} +// 考核方案等级下拉 /assessmentLevel/list +export function getGradeSelectList() { + return request({ + url: '/assessmentLevel/list', + method: 'get', + }) +} +// 启用考核计划方案 +export function updatePlanEnabled(data: object) { + return request({ + url: '/assessmentPlan/updatePlanEnabled', + method: 'post', + data, + }) +} diff --git a/src/components/showPhoto/index.vue b/src/components/showPhoto/index.vue index 5c765ed..a221af2 100644 --- a/src/components/showPhoto/index.vue +++ b/src/components/showPhoto/index.vue @@ -6,6 +6,10 @@ type: String, required: true, }, + minioFileId: { + type: String, + required: true, + }, height: { type: String, default: '100px', @@ -24,17 +28,20 @@ // url.value = res.data // }) const arr = props.minioFileName.split(',') - urlList.value = arr.map((item) => { + const ids = props.minioFileId.split(',') + console.log(ids, 'ids') + urlList.value = arr.map((item, index) => { + console.log(`${import.meta.env.VITE_APP_API_BASEURL}${ids[index]}`) return { minioFileName: item, - url: '', + url: `${import.meta.env.VITE_APP_API_BASEURL}/static/${ids[index]}`, } }) - urlList.value.forEach((item: any) => { - getFileUrl(item.minioFileName).then((res) => { - item.url = res.data - }) - }) + // urlList.value.forEach((item: any) => { + // getFileUrl(item.minioFileName).then((res) => { + // item.url = res.data + // }) + // }) } else { urlList.value = [] diff --git a/src/views/flling/already/index copy.vue b/src/views/flling/already/index copy.vue new file mode 100644 index 0000000..8ee5ca4 --- /dev/null +++ b/src/views/flling/already/index copy.vue @@ -0,0 +1,199 @@ + + + + + diff --git a/src/views/flling/already/index.vue b/src/views/flling/already/index.vue index 8ee5ca4..ca7731c 100644 --- a/src/views/flling/already/index.vue +++ b/src/views/flling/already/index.vue @@ -4,196 +4,10 @@ * @Date: 2023-09-14 --> diff --git a/src/api/home/1 b/src/api/home/1 deleted file mode 100644 index e69de29..0000000 --- a/src/api/home/1 +++ /dev/null diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts new file mode 100644 index 0000000..47914e0 --- /dev/null +++ b/src/api/home/filling/filling.ts @@ -0,0 +1,29 @@ +/** + * 填报相关接口 + */ +import request from '@/api/index' + +// 分页列表 +export function getListPage(params: object) { + return request({ + url: '/planQuotaRep/listPage', + method: 'get', + params, + }) +} +// 填报 +export function filling(data: object) { + return request({ + url: '/planQuotaRep/updateRep', + method: 'post', + data, + }) +} +// 提交 +export function batchSubmitApi(data: object) { + return request({ + url: '/planQuotaRep/batchSubmit', + method: 'post', + data, + }) +} diff --git a/src/api/home/rule/programme.ts b/src/api/home/rule/programme.ts index cbf5585..91e1dbe 100644 --- a/src/api/home/rule/programme.ts +++ b/src/api/home/rule/programme.ts @@ -51,4 +51,26 @@ data, }) } - +// 方案指标列表 +export function ProxyList(params: object) { + return request({ + url: '/assessmentPlan/planQuotaListPage', + method: 'get', + params, + }) +} +// 考核方案等级下拉 /assessmentLevel/list +export function getGradeSelectList() { + return request({ + url: '/assessmentLevel/list', + method: 'get', + }) +} +// 启用考核计划方案 +export function updatePlanEnabled(data: object) { + return request({ + url: '/assessmentPlan/updatePlanEnabled', + method: 'post', + data, + }) +} diff --git a/src/components/showPhoto/index.vue b/src/components/showPhoto/index.vue index 5c765ed..a221af2 100644 --- a/src/components/showPhoto/index.vue +++ b/src/components/showPhoto/index.vue @@ -6,6 +6,10 @@ type: String, required: true, }, + minioFileId: { + type: String, + required: true, + }, height: { type: String, default: '100px', @@ -24,17 +28,20 @@ // url.value = res.data // }) const arr = props.minioFileName.split(',') - urlList.value = arr.map((item) => { + const ids = props.minioFileId.split(',') + console.log(ids, 'ids') + urlList.value = arr.map((item, index) => { + console.log(`${import.meta.env.VITE_APP_API_BASEURL}${ids[index]}`) return { minioFileName: item, - url: '', + url: `${import.meta.env.VITE_APP_API_BASEURL}/static/${ids[index]}`, } }) - urlList.value.forEach((item: any) => { - getFileUrl(item.minioFileName).then((res) => { - item.url = res.data - }) - }) + // urlList.value.forEach((item: any) => { + // getFileUrl(item.minioFileName).then((res) => { + // item.url = res.data + // }) + // }) } else { urlList.value = [] diff --git a/src/views/flling/already/index copy.vue b/src/views/flling/already/index copy.vue new file mode 100644 index 0000000..8ee5ca4 --- /dev/null +++ b/src/views/flling/already/index copy.vue @@ -0,0 +1,199 @@ + + + + + diff --git a/src/views/flling/already/index.vue b/src/views/flling/already/index.vue index 8ee5ca4..ca7731c 100644 --- a/src/views/flling/already/index.vue +++ b/src/views/flling/already/index.vue @@ -4,196 +4,10 @@ * @Date: 2023-09-14 --> diff --git a/src/views/flling/treat/fillingDialog.vue b/src/views/flling/treat/fillingDialog.vue new file mode 100644 index 0000000..d3b0e54 --- /dev/null +++ b/src/views/flling/treat/fillingDialog.vue @@ -0,0 +1,179 @@ + + + + + + diff --git a/src/api/home/1 b/src/api/home/1 deleted file mode 100644 index e69de29..0000000 --- a/src/api/home/1 +++ /dev/null diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts new file mode 100644 index 0000000..47914e0 --- /dev/null +++ b/src/api/home/filling/filling.ts @@ -0,0 +1,29 @@ +/** + * 填报相关接口 + */ +import request from '@/api/index' + +// 分页列表 +export function getListPage(params: object) { + return request({ + url: '/planQuotaRep/listPage', + method: 'get', + params, + }) +} +// 填报 +export function filling(data: object) { + return request({ + url: '/planQuotaRep/updateRep', + method: 'post', + data, + }) +} +// 提交 +export function batchSubmitApi(data: object) { + return request({ + url: '/planQuotaRep/batchSubmit', + method: 'post', + data, + }) +} diff --git a/src/api/home/rule/programme.ts b/src/api/home/rule/programme.ts index cbf5585..91e1dbe 100644 --- a/src/api/home/rule/programme.ts +++ b/src/api/home/rule/programme.ts @@ -51,4 +51,26 @@ data, }) } - +// 方案指标列表 +export function ProxyList(params: object) { + return request({ + url: '/assessmentPlan/planQuotaListPage', + method: 'get', + params, + }) +} +// 考核方案等级下拉 /assessmentLevel/list +export function getGradeSelectList() { + return request({ + url: '/assessmentLevel/list', + method: 'get', + }) +} +// 启用考核计划方案 +export function updatePlanEnabled(data: object) { + return request({ + url: '/assessmentPlan/updatePlanEnabled', + method: 'post', + data, + }) +} diff --git a/src/components/showPhoto/index.vue b/src/components/showPhoto/index.vue index 5c765ed..a221af2 100644 --- a/src/components/showPhoto/index.vue +++ b/src/components/showPhoto/index.vue @@ -6,6 +6,10 @@ type: String, required: true, }, + minioFileId: { + type: String, + required: true, + }, height: { type: String, default: '100px', @@ -24,17 +28,20 @@ // url.value = res.data // }) const arr = props.minioFileName.split(',') - urlList.value = arr.map((item) => { + const ids = props.minioFileId.split(',') + console.log(ids, 'ids') + urlList.value = arr.map((item, index) => { + console.log(`${import.meta.env.VITE_APP_API_BASEURL}${ids[index]}`) return { minioFileName: item, - url: '', + url: `${import.meta.env.VITE_APP_API_BASEURL}/static/${ids[index]}`, } }) - urlList.value.forEach((item: any) => { - getFileUrl(item.minioFileName).then((res) => { - item.url = res.data - }) - }) + // urlList.value.forEach((item: any) => { + // getFileUrl(item.minioFileName).then((res) => { + // item.url = res.data + // }) + // }) } else { urlList.value = [] diff --git a/src/views/flling/already/index copy.vue b/src/views/flling/already/index copy.vue new file mode 100644 index 0000000..8ee5ca4 --- /dev/null +++ b/src/views/flling/already/index copy.vue @@ -0,0 +1,199 @@ + + + + + diff --git a/src/views/flling/already/index.vue b/src/views/flling/already/index.vue index 8ee5ca4..ca7731c 100644 --- a/src/views/flling/already/index.vue +++ b/src/views/flling/already/index.vue @@ -4,196 +4,10 @@ * @Date: 2023-09-14 --> diff --git a/src/views/flling/treat/fillingDialog.vue b/src/views/flling/treat/fillingDialog.vue new file mode 100644 index 0000000..d3b0e54 --- /dev/null +++ b/src/views/flling/treat/fillingDialog.vue @@ -0,0 +1,179 @@ + + + + + + diff --git a/src/views/flling/treat/index.vue b/src/views/flling/treat/index.vue index d08184a..44e356d 100644 --- a/src/views/flling/treat/index.vue +++ b/src/views/flling/treat/index.vue @@ -5,71 +5,102 @@ -->