Commit 4c3fdc2a authored by wangxl's avatar wangxl

www

parent 53259896
...@@ -82,6 +82,8 @@ export default { ...@@ -82,6 +82,8 @@ export default {
searchForm: { searchForm: {
auditType: 1, auditType: 1,
auditResult: 1, auditResult: 1,
auditMethod: 1,
systemType: getType(),
projName: null, projName: null,
projNo: null, projNo: null,
appUnitName: null, appUnitName: null,
...@@ -90,7 +92,6 @@ export default { ...@@ -90,7 +92,6 @@ export default {
knowledgeId: null, knowledgeId: null,
projClass: null, projClass: null,
reportYear: null, reportYear: null,
systemType: getType()
}, },
activekey: '1', activekey: '1',
tabDate: [ tabDate: [
...@@ -103,7 +104,7 @@ export default { ...@@ -103,7 +104,7 @@ export default {
itemCount: [0, 0, 0, 0, 0], itemCount: [0, 0, 0, 0, 0],
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projName' }, width: 300, }, { title: "项目名称", scopedSlots: { customRender: 'projName' }, width: 300, },
//{ title: "项目编号", dataIndex: "projNo", align: 'center' }, //{ title: "项目编号", dataIndex: "projNo", align: 'center' },
{ title: '申请编号', dataIndex: 'appNo', align: 'center' }, { title: '申请编号', dataIndex: 'appNo', align: 'center' },
{ title: "开始时间", dataIndex: "startDate", align: 'center' }, { title: "开始时间", dataIndex: "startDate", align: 'center' },
...@@ -218,7 +219,7 @@ export default { ...@@ -218,7 +219,7 @@ export default {
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 1, reportYear: this.searchForm.reportYear, systemType: getType() }); let pars = isEmptyParams({ auditType: 1, auditMethod: 1, systemType: getType(), reportYear: this.searchForm.reportYear });
this.$api.audit.getCount(pars).then(({ data = {} }) => { this.$api.audit.getCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
...@@ -280,7 +281,7 @@ export default { ...@@ -280,7 +281,7 @@ export default {
exportData () { exportData () {
this.loading = true; this.loading = true;
let pars = isEmptyParams(this.searchForm); let pars = isEmptyParams(this.searchForm);
let par = { ...pars, pageIndex: -1, pageSize: -1, } let par = { ...pars, pageIndex: -1, pageSize: -1, }
this.$api.audit.getAuditListByPage(par).then(({ data = {} }) => { this.$api.audit.getAuditListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data; const { dataList = [], total = 0 } = data;
......
...@@ -156,12 +156,13 @@ export default { ...@@ -156,12 +156,13 @@ export default {
panes: { count1: 0, count2: 0, count3: 0, count4: 0, count5: 0, }, panes: { count1: 0, count2: 0, count3: 0, count4: 0, count5: 0, },
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
searchForm: { searchForm: {
scoreStart: null,
scoreEnd: null,
auditType: 1, auditType: 1,
auditResult: 1, auditResult: 1,
completed: 1,
auditMethod: 5, auditMethod: 5,
systemType: getType(),
completed: 1,
scoreStart: null,
scoreEnd: null,
projName: null, projName: null,
projNo: null, projNo: null,
appUnitName: null, appUnitName: null,
...@@ -332,7 +333,7 @@ export default { ...@@ -332,7 +333,7 @@ export default {
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 1, completed: 1, auditMethod: 5, reportYear: this.searchForm.reportYear, systemType: getType() }); let pars = isEmptyParams({ auditType: 1, auditMethod: 5, completed: 1, systemType: getType(), reportYear: this.searchForm.reportYear });
this.$api.audit.getCount(pars).then(({ data = {} }) => { this.$api.audit.getCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
......
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