Commit 868946a7 authored by wangxl's avatar wangxl

3333

parent 65d85750
......@@ -511,7 +511,7 @@ export default {
return fetch(`/v1/science-admin/com-project-task/getCount`, params)
},
},
checkReport: {
check: {
getListByPage (params) {
return fetch(`/v1/science-admin/com-project-check/getListByPage`, params)
},
......
......@@ -137,7 +137,7 @@ export default {
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize
}
this.$api.checkReport.getListByPage(par).then(({ data = {} }) => {
this.$api.check.getListByPage(par).then(({ data = {} }) => {
if (data) {
const { dataList = [], total = 0 } = data
this.tableData = dataList
......
......@@ -152,7 +152,7 @@ export default {
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize
}
this.$api.checkReport.getListByPage(par).then(({ data = {} }) => {
this.$api.check.getListByPage(par).then(({ data = {} }) => {
if (data) {
const { dataList = [], total = 0 } = data
this.tableData = dataList
......@@ -165,7 +165,7 @@ export default {
},
getCount () {
let pars = isEmptyParams({ checkYear: this.searchForm.checkYear });
this.$api.checkReport.getCount(pars).then(({ data = {} }) => {
this.$api.check.getCount(pars).then(({ data = {} }) => {
if (data) {
this.panes = data
}
......@@ -241,7 +241,7 @@ export default {
exportData () {
let pars = isEmptyParams(this.searchForm)
let par = { ...pars, pageIndex: -1, pageSize: -1 }
this.$api.checkReport.getListByPage(par).then(({ data = {} }) => {
this.$api.check.getListByPage(par).then(({ data = {} }) => {
if (data) {
const { dataList = [], total = 0 } = data
this.$ToDoExcel(`中期考核列表`, tableColumnsName(this.columns), filterExportExcelData(this.columns, dataList))
......
......@@ -201,7 +201,7 @@ export default {
moment,
getCheckInfoById () {
let pars = { id: this.value }
this.$api.checkReport.getCheckInfoById(pars).then(({ data = {} }) => {
this.$api.check.getCheckInfoById(pars).then(({ data = {} }) => {
if (data) {
this.formData = data
this.formData.startDate = moment(this.formData.startDate).format('YYYY年MM月DD日')
......@@ -216,7 +216,7 @@ export default {
this.formData.endDate = null
let pars = isEmptyParams(this.formData)
let par = { ...pars }
this.$api.checkReport.save(par).then(({ data = {} }) => {
this.$api.check.save(par).then(({ data = {} }) => {
if (data) {
this.$message.success('保存成功!')
this.loading = false
......@@ -232,7 +232,7 @@ export default {
this.formData.endDate = null
let pars = isEmptyParams(this.formData)
let par = { ...pars }
this.$api.checkReport.saveAndReport(par).then(({ data = {} }) => {
this.$api.check.saveAndReport(par).then(({ data = {} }) => {
if (data) {
this.$message.success('上报成功!')
this.$emit('close', 'edit')
......
......@@ -61,7 +61,7 @@ export default {
moment,
getCheckInfoById () {
let pars = { id: this.value }
this.$api.checkReport.getCheckInfoById(pars).then(({ data = {} }) => {
this.$api.check.getCheckInfoById(pars).then(({ data = {} }) => {
if (data) {
this.checkInfo = data
this.checkInfo.startDate = moment(this.checkInfo.startDate).format('YYYY年MM月DD日')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment