Commit 51d31a58 authored by wangxl's avatar wangxl

111

parent d7879617
...@@ -136,16 +136,16 @@ export default { ...@@ -136,16 +136,16 @@ export default {
}, },
created () { created () {
this.userInfo = JSON.parse(window.sessionStorage.getItem('user')) this.userInfo = JSON.parse(window.sessionStorage.getItem('user'))
if (this.userInfo.projType && this.userInfo.type === '3') { if (this.userInfo.systemType && this.userInfo.type === '3') {
this.isKeyPoint = (this.userInfo.projType == '2' ? true : false) this.isKeyPoint = (this.userInfo.systemType == '2' ? true : false)
this.systemTitle = process.env.VUE_APP_SYSTEM_TITLE this.systemTitle = process.env.VUE_APP_SYSTEM_TITLE
} else } else
this.systemTitle = process.env.VUE_APP_SYSTEM_TITLE this.systemTitle = process.env.VUE_APP_SYSTEM_TITLE
}, },
computed: { computed: {
projType: { systemType: {
get () { get () {
return this.$store.state.app.projType return this.$store.state.app.systemType
}, },
set () { set () {
} }
...@@ -171,14 +171,14 @@ export default { ...@@ -171,14 +171,14 @@ export default {
toUpdatePwd () { toUpdatePwd () {
this.visibleEdit = true this.visibleEdit = true
}, },
switchType (projType) { switchType (systemType) {
if (this.$store.state.app.projType != projType) { if (this.$store.state.app.systemType != systemType) {
this.$changeProjType(projType) this.$changeSystemType(systemType)
} }
} }
}, },
watch: { watch: {
projType: { systemType: {
handler (value) { handler (value) {
if (value) { if (value) {
this.isKeyPoint = (value == '2' ? true : false) this.isKeyPoint = (value == '2' ? true : false)
......
...@@ -42,9 +42,9 @@ export default { ...@@ -42,9 +42,9 @@ export default {
set () { set () {
} }
}, },
projType: { systemType: {
get () { get () {
return this.$store.state.app.projType return this.$store.state.app.systemType
}, },
set () { set () {
} }
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
}, },
}, },
watch: { watch: {
projType: { systemType: {
handler (value) { handler (value) {
if (value) { if (value) {
this.menuList = JSON.parse(window.sessionStorage.getItem('menuList')) this.menuList = JSON.parse(window.sessionStorage.getItem('menuList'))
......
// @ts-nocheck // @ts-nocheck
import Vue from 'vue' import Vue from 'vue'
import App from './App.vue' import App from './App.vue'
import router, { changeProjType } from './router' import router, { changeSystemType } from './router'
import store from './store' import store from './store'
// import 'ant-design-vue/dist/antd.less' // import 'ant-design-vue/dist/antd.less'
import '../static/css/antd.css' import '../static/css/antd.css'
...@@ -34,7 +34,7 @@ Vue.prototype.$ToDoExcel = ToDoExcel; ...@@ -34,7 +34,7 @@ Vue.prototype.$ToDoExcel = ToDoExcel;
// 系统配置 // 系统配置
// 云南省卫生健康科技项目管理系统 // 云南省卫生健康科技项目管理系统
Vue.prototype.$defaultLength = 5 Vue.prototype.$defaultLength = 5
Vue.prototype.$changeProjType = changeProjType Vue.prototype.$changeSystemType = changeSystemType
// 定义全局时间戳过滤器 // 定义全局时间戳过滤器
......
...@@ -309,12 +309,12 @@ export function resetRouter () { ...@@ -309,12 +309,12 @@ export function resetRouter () {
router.matcher = newRouter.matcher router.matcher = newRouter.matcher
} }
export function changeProjType (type) { export function changeSystemType (type) {
new Promise(async (resolve, reject) => { new Promise(async (resolve, reject) => {
try { try {
this.$store.commit('app/clearStore') this.$store.commit('app/clearStore')
setType(type + '') setType(type + '')
this.$store.commit('app/setProjType', type) this.$store.commit('app/setsystemType', type)
let menuList = JSON.parse(window.sessionStorage.getItem('menuList')) let menuList = JSON.parse(window.sessionStorage.getItem('menuList'))
this.$store.commit('app/initStore', [menuList[0].id]) this.$store.commit('app/initStore', [menuList[0].id])
this.$router.push('/') this.$router.push('/')
...@@ -340,7 +340,7 @@ router.beforeEach(async (to, from, next) => { ...@@ -340,7 +340,7 @@ router.beforeEach(async (to, from, next) => {
const hasUser = JSON.parse(window.sessionStorage.getItem('user')) const hasUser = JSON.parse(window.sessionStorage.getItem('user'))
const hasMenu = JSON.parse(window.sessionStorage.getItem('menuList')) const hasMenu = JSON.parse(window.sessionStorage.getItem('menuList'))
if (hasUser && hasMenu) { if (hasUser && hasMenu) {
if (hasUser.type === '3' && !!!hasUser.projType && hasUser.roles != '4') { if (hasUser.type === '3' && !!!hasUser.systemType && hasUser.roles != '4') {
if (to.path === '/sys') { if (to.path === '/sys') {
next() next()
NProgress.done() NProgress.done()
......
...@@ -9,7 +9,7 @@ const state = { ...@@ -9,7 +9,7 @@ const state = {
tabsArray: [], tabsArray: [],
tabsActive: '', tabsActive: '',
cachedViews: [], cachedViews: [],
projType: null, systemType: null,
} }
const mutations = { const mutations = {
setTabsActive: (state, payload) => { setTabsActive: (state, payload) => {
...@@ -18,8 +18,8 @@ const mutations = { ...@@ -18,8 +18,8 @@ const mutations = {
setTabsArray: (state, payload) => { setTabsArray: (state, payload) => {
state.tabsArray = payload state.tabsArray = payload
}, },
setProjType: (state, payload) => { setsystemType: (state, payload) => {
state.projType = payload state.systemType = payload
}, },
addTabs: (state, payload) => { addTabs: (state, payload) => {
if (state.tabsArray.some(v => v.key === payload.key)) { if (state.tabsArray.some(v => v.key === payload.key)) {
...@@ -142,7 +142,7 @@ const mutations = { ...@@ -142,7 +142,7 @@ const mutations = {
this.commit('app/setTabsArray', []) this.commit('app/setTabsArray', [])
this.commit('app/setTabsActive', '') this.commit('app/setTabsActive', '')
this.commit('app/setCachedViews', []) this.commit('app/setCachedViews', [])
this.commit('app/setProjType', null) this.commit('app/setsystemType', null)
}, },
} }
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
data () { data () {
return { return {
form: this.$form.createForm(this, { name: 'assign_search' }), form: this.$form.createForm(this, { name: 'assign_search' }),
searchForm: { projName: null, groupId: "", assignYear: null, appUnitName: null, appPersonName: null, personName: null, auditState: "", projType: getType() }, searchForm: { projName: null, groupId: "", assignYear: null, appUnitName: null, appPersonName: null, personName: null, auditState: "", systemType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projName' }, ellipsis: true, width: 300, }, { title: "项目名称", scopedSlots: { customRender: 'projName' }, ellipsis: true, width: 300, },
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.searchForm.assignYear = data.year this.searchForm.assignYear = data.year
this.getListByPage() this.getListByPage()
......
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
for (let j = 0; j < this.expertSelectKeys.length; j++) { for (let j = 0; j < this.expertSelectKeys.length; j++) {
this.expertSelectedRowKeys.push(this.expertSelectKeys[j].key) this.expertSelectedRowKeys.push(this.expertSelectKeys[j].key)
} }
let pars = { type: '1', projects: this.projSelectedRowKeys, experts: this.expertSelectedRowKeys, projType: getType() } let pars = { type: '1', projects: this.projSelectedRowKeys, experts: this.expertSelectedRowKeys, systemType: getType() }
this.$api.projectAssign.assignProject(pars).then(({ data = {} }) => { this.$api.projectAssign.assignProject(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.$message.success('分配成功!') this.$message.success('分配成功!')
......
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
for (let j = 0; j < this.expertSelectKeys.length; j++) { for (let j = 0; j < this.expertSelectKeys.length; j++) {
this.expertSelectedRowKeys.push(this.expertSelectKeys[j].key) this.expertSelectedRowKeys.push(this.expertSelectKeys[j].key)
} }
let pars = { projType: getType(), groupIds: this.projGroupSelectedRowKeys, expertIds: this.expertSelectedRowKeys } let pars = { systemType: getType(), groupIds: this.projGroupSelectedRowKeys, expertIds: this.expertSelectedRowKeys }
this.$api.projectAssign.assignProjectGroup(pars).then(({ data = {} }) => { this.$api.projectAssign.assignProjectGroup(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.$message.success('分配成功!') this.$message.success('分配成功!')
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
data () { data () {
return { return {
form: this.$form.createForm(this, { name: 'assign_search' }), form: this.$form.createForm(this, { name: 'assign_search' }),
searchForm: { projId: null, personName: null, certId: null, sex: "", projType: getType() }, searchForm: { projId: null, personName: null, certId: null, sex: "", systemType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "姓名", scopedSlots: { customRender: 'personName' }, align: 'center' }, { title: "姓名", scopedSlots: { customRender: 'personName' }, align: 'center' },
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ 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: { auditType: 4, auditResult: 1, projName: null, projNo: null, appUnitName: null, appPersonName: null, projClass: null, projType: getType() }, searchForm: { auditType: 4, auditResult: 1, projName: null, projNo: null, appUnitName: null, appPersonName: null, projClass: null, systemType: getType() },
activekey: '1', activekey: '1',
tabDate: [ tabDate: [
{ key: "1", tab: "待审核" }, { key: "1", tab: "待审核" },
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 4, projType: getType() }); let pars = isEmptyParams({ auditType: 4, systemType: getType() });
this.$api.audit.getConclusionAuditCount(pars).then(({ data = {} }) => { this.$api.audit.getConclusionAuditCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
......
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
knowledgeId: null, knowledgeId: null,
projClass: null, projClass: null,
reportYear: null, reportYear: null,
projType: getType() systemType: getType()
}, },
activekey: '1', activekey: '1',
tabDate: [ tabDate: [
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
this.getListByPage() this.getListByPage()
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 1, reportYear: this.searchForm.reportYear, projType: getType() }); let pars = isEmptyParams({ auditType: 1, reportYear: this.searchForm.reportYear, systemType: getType() });
this.$api.audit.getCount(pars).then(({ data = {} }) => { this.$api.audit.getCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
</div> </div>
<div style="width: 100%;height: calc(100% - 50px);overflow: auto;" ref="main"> <div style="width: 100%;height: calc(100% - 50px);overflow: auto;" ref="main">
<div class="x_modal_content"> <div class="x_modal_content">
<project-info v-model="formData" :tabsData.sync="tabsData" v-if="projType=='1'" /> <project-info v-model="formData" :tabsData.sync="tabsData" v-if="systemType=='1'" />
<project-info-Key v-model="formData" :tabsData.sync="tabsData" v-if="projType=='2'" /> <project-info-Key v-model="formData" :tabsData.sync="tabsData" v-if="systemType=='2'" />
<a-form-model ref="form" :model="auditObj" :rules="rules" class="from-table font-line-space"> <a-form-model ref="form" :model="auditObj" :rules="rules" class="from-table font-line-space">
<audit-edit :auditObj.sync="auditObj" /> <audit-edit :auditObj.sync="auditObj" />
</a-form-model> </a-form-model>
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
auditResult: { required: true, message: '请选择审核结果', trigger: 'change' }, auditResult: { required: true, message: '请选择审核结果', trigger: 'change' },
}, },
loading: false, loading: false,
projType: getType() systemType: getType()
}; };
}, },
props: { props: {
......
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
treeCode: JSON.parse(window.sessionStorage.getItem('user')).unitCode, treeCode: JSON.parse(window.sessionStorage.getItem('user')).unitCode,
projClass: null, projClass: null,
reportYear: null, reportYear: null,
projType: getType() systemType: getType()
}, },
activekey: '1', activekey: '1',
tabDate: [ tabDate: [
...@@ -286,7 +286,7 @@ export default { ...@@ -286,7 +286,7 @@ export default {
this.getListByPage() this.getListByPage()
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
...@@ -330,7 +330,7 @@ export default { ...@@ -330,7 +330,7 @@ export default {
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 1, reportYear: this.searchForm.reportYear, projType: getType() }); let pars = isEmptyParams({ auditType: 1, reportYear: this.searchForm.reportYear, systemType: getType() });
this.$api.audit.getFinalCount(pars).then(({ data = {} }) => { this.$api.audit.getFinalCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
......
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
methods: { methods: {
isEmptyParams, isEmptyParams,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
......
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
this.getListByPage() this.getListByPage()
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 2, projType: getType(), timeType: 2 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 2, systemType: getType(), timeType: 2 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
......
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ 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: { auditType: 5, auditResult: 1, projName: null, projNo: null, appUnitName: null, appPersonName: null, projClass: null, projType: getType() }, searchForm: { auditType: 5, auditResult: 1, projName: null, projNo: null, appUnitName: null, appPersonName: null, projClass: null, systemType: getType() },
activekey: '1', activekey: '1',
tabDate: [ tabDate: [
{ key: "1", tab: "待审核" }, { key: "1", tab: "待审核" },
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 5, projType: getType() }); let pars = isEmptyParams({ auditType: 5, systemType: getType() });
this.$api.audit.getConclusionAuditCount(pars).then(({ data = {} }) => { this.$api.audit.getConclusionAuditCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
......
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
this.loadValue() this.loadValue()
}, },
getReportYearList () { getReportYearList () {
this.$api.batch.getCurrentReportYearList({ projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentReportYearList({ systemType: getType() }).then(({ data = {} }) => {
if (data) { if (data) {
this.selectArray = data.list this.selectArray = data.list
this.selected = data.value + '' this.selected = data.value + ''
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
], ],
itemCount: [0, 0, 0, 0, 0], itemCount: [0, 0, 0, 0, 0],
// 表单 // 表单
searchForm: { projName: null, projNo: null, reportYear: null, state: 1, projType: getType() }, searchForm: { projName: null, projNo: null, reportYear: null, state: 1, systemType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projName' } }, { title: "项目名称", scopedSlots: { customRender: 'projName' } },
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
}, },
methods: { methods: {
getCount () { getCount () {
this.$api.conclusion.getCount({ reportYear: this.searchForm.reportYear, projType: getType() }).then(({ data = {} }) => { this.$api.conclusion.getCount({ reportYear: this.searchForm.reportYear, systemType: getType() }).then(({ data = {} }) => {
if (data) { if (data) {
this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5] this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5]
} }
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
<div class="page-footer"> <div class="page-footer">
<!-- 申报项目详情 --> <!-- 申报项目详情 -->
<!-- <a-button type="primary" @click="onExport">导出</a-button> --> <!-- <a-button type="primary" @click="onExport">导出</a-button> -->
<project-info v-model="formData" :tabsData.sync="tabsData" v-if="projType=='1'" /> <project-info v-model="formData" :tabsData.sync="tabsData" v-if="systemType=='1'" />
<project-info-Key v-model="formData" :tabsData.sync="tabsData" v-if="projType=='2'" /> <project-info-Key v-model="formData" :tabsData.sync="tabsData" v-if="systemType=='2'" />
</div> </div>
</a-spin> </a-spin>
</div> </div>
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
managerDept: "", managerDept: "",
}, },
loading: false, loading: false,
projType: getType() systemType: getType()
}; };
}, },
props: { props: {
......
...@@ -277,7 +277,7 @@ export default { ...@@ -277,7 +277,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 5, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 5, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.comBatch = data this.comBatch = data
} }
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 5, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 5, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
......
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
data () { data () {
return { return {
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
searchForm: { projName: null, appNo: null, assignYear: null, personId: null, projType: getType(), isShow: 1 }, searchForm: { projName: null, appNo: null, assignYear: null, personId: null, systemType: getType(), isShow: 1 },
tableData: [], tableData: [],
columns: [ columns: [
{ title: '申请编号', dataIndex: 'appNo', align: 'center' }, { title: '申请编号', dataIndex: 'appNo', align: 'center' },
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 5, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 5, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
getListByPage () { getListByPage () {
this.searchForm.projType = getType() this.searchForm.systemType = getType()
let pars = isEmptyParams(this.searchForm) let pars = isEmptyParams(this.searchForm)
let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize } let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize }
this.$api.projectAssign.getAuditListByPage(par).then(({ data = {} }) => { this.$api.projectAssign.getAuditListByPage(par).then(({ data = {} }) => {
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
this.getListByPage() this.getListByPage()
}, },
reset () { reset () {
this.searchForm = { projName: null, projNo: null, assignYear: null, projType: getType(), isShow: 1 } this.searchForm = { projName: null, projNo: null, assignYear: null, systemType: getType(), isShow: 1 }
this.pagination.pageIndex = 1 this.pagination.pageIndex = 1
this.getListByPage() this.getListByPage()
}, },
......
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
data () { data () {
return { return {
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
searchForm: { projName: null, projNo: null, assignYear: null, personId: null, projType: getType() }, searchForm: { projName: null, projNo: null, assignYear: null, personId: null, systemType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projectName', colName: 'projName' }, align: 'left' }, { title: "项目名称", scopedSlots: { customRender: 'projectName', colName: 'projName' }, align: 'left' },
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
methods: { methods: {
moment, moment,
getYearInfo () { getYearInfo () {
let pars = { batch: 1, projType: getType() } let pars = { batch: 1, systemType: getType() }
this.$api.batch.getBatchList({ ...pars }).then(({ data = {} }) => { this.$api.batch.getBatchList({ ...pars }).then(({ data = {} }) => {
if (data) { if (data) {
this.YearData = data this.YearData = data
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
}) })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
this.getListByPage() this.getListByPage()
......
...@@ -82,9 +82,9 @@ export default { ...@@ -82,9 +82,9 @@ export default {
this.changeType() this.changeType()
}, },
computed: { computed: {
projType: { systemType: {
get () { get () {
return this.$store.state.app.projType return this.$store.state.app.systemType
}, },
set () { set () {
} }
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
} }
}, },
geAuditCount () { geAuditCount () {
this.$api.statistical.geFirstAuditCount({ auditType: 1, projType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => { this.$api.statistical.geFirstAuditCount({ auditType: 1, systemType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => {
if (data) { if (data) {
this.setCardDataList(0, data.count5, data.count1, data.count2, data.count3) this.setCardDataList(0, data.count5, data.count1, data.count2, data.count3)
} }
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
}, },
}, },
watch: { watch: {
projType: { systemType: {
handler (value) { handler (value) {
if (!!value) { if (!!value) {
this.changeType() this.changeType()
......
...@@ -65,8 +65,8 @@ export default { ...@@ -65,8 +65,8 @@ export default {
}, },
created () { created () {
// this.cardData = this.list1 // this.cardData = this.list1
// let projType = getType() // let systemType = getType()
// if (projType && projType == '2') { // if (systemType && systemType == '2') {
// this.cardData = this.list2 // this.cardData = this.list2
// } else { // } else {
// this.cardData = this.list1 // this.cardData = this.list1
...@@ -74,9 +74,9 @@ export default { ...@@ -74,9 +74,9 @@ export default {
// this.changeType() // this.changeType()
}, },
computed: { computed: {
// projType: { // systemType: {
// get () { // get () {
// return this.$store.state.app.projType // return this.$store.state.app.systemType
// }, // },
// set () { // set () {
// } // }
...@@ -92,28 +92,28 @@ export default { ...@@ -92,28 +92,28 @@ export default {
} }
}, },
geFirstAuditCount () { geFirstAuditCount () {
this.$api.statistical.geFirstAuditCount({ auditType: 1, projType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => { this.$api.statistical.geFirstAuditCount({ auditType: 1, systemType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => {
if (data) { if (data) {
this.setCardDataList(0, data.count5, data.count1, data.count2, data.count3) this.setCardDataList(0, data.count5, data.count1, data.count2, data.count3)
} }
}).catch(() => { }) }).catch(() => { })
}, },
getFirstAuditPassCount () { getFirstAuditPassCount () {
this.$api.statistical.getFirstAuditPassCount({ auditType: 1, projType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => { this.$api.statistical.getFirstAuditPassCount({ auditType: 1, systemType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => {
if (data) { if (data) {
this.setCardDataList(1, data.count5, data.count1, data.count2, data.count3) this.setCardDataList(1, data.count5, data.count1, data.count2, data.count3)
} }
}).catch(() => { }) }).catch(() => { })
}, },
getAssignPersonCount () { getAssignPersonCount () {
this.$api.statistical.getAssignPersonCount({ auditType: 1, projType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => { this.$api.statistical.getAssignPersonCount({ auditType: 1, systemType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => {
if (data) { if (data) {
this.setCardDataList(2, data.count1, data.count2, data.count3, data.count4) this.setCardDataList(2, data.count1, data.count2, data.count3, data.count4)
} }
}).catch(() => { }) }).catch(() => { })
}, },
geLastAuditCount () { geLastAuditCount () {
this.$api.statistical.geLastAuditCount({ auditType: 1, projType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => { this.$api.statistical.geLastAuditCount({ auditType: 1, systemType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => {
if (data) { if (data) {
this.setCardDataList(3, data.count5, data.count1, data.count2, data.count3) this.setCardDataList(3, data.count5, data.count1, data.count2, data.count3)
} }
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
}, },
}, },
watch: { watch: {
// projType: { // systemType: {
// handler (value) { // handler (value) {
// if (!!value) { // if (!!value) {
// this.changeType() // this.changeType()
......
...@@ -75,9 +75,9 @@ export default { ...@@ -75,9 +75,9 @@ export default {
this.getYear() this.getYear()
}, },
computed: { computed: {
projType: { systemType: {
get () { get () {
return this.$store.state.app.projType return this.$store.state.app.systemType
}, },
set () { set () {
} }
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.changeType() this.changeType()
...@@ -104,14 +104,14 @@ export default { ...@@ -104,14 +104,14 @@ export default {
this.getKnowledgeCount() this.getKnowledgeCount()
}, },
getTreeCodeProjectCount () { getTreeCodeProjectCount () {
this.$api.statistical.getTreeCodeProjectCount({ auditType: 1, projType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => { this.$api.statistical.getTreeCodeProjectCount({ auditType: 1, systemType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => {
if (data) { if (data) {
this.setBarData(data) this.setBarData(data)
} }
}).catch(() => { }) }).catch(() => { })
}, },
getKnowledgeCount () { getKnowledgeCount () {
this.$api.statistical.getKnowledgeCount({ auditType: 1, projType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => { this.$api.statistical.getKnowledgeCount({ auditType: 1, systemType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => {
if (data) { if (data) {
this.setPieData(data) this.setPieData(data)
} }
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
} }
}, },
watch: { watch: {
projType: { systemType: {
handler (value) { handler (value) {
if (value) { if (value) {
this.changeType() this.changeType()
......
...@@ -75,9 +75,9 @@ export default { ...@@ -75,9 +75,9 @@ export default {
this.getYear() this.getYear()
}, },
computed: { computed: {
projType: { systemType: {
get () { get () {
return this.$store.state.app.projType return this.$store.state.app.systemType
}, },
set () { set () {
} }
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.changeType() this.changeType()
...@@ -104,14 +104,14 @@ export default { ...@@ -104,14 +104,14 @@ export default {
this.getKnowledgeCount() this.getKnowledgeCount()
}, },
getTreeCodeProjectCount () { getTreeCodeProjectCount () {
this.$api.statistical.getTreeCodeProjectCount({ auditType: 1, projType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => { this.$api.statistical.getTreeCodeProjectCount({ auditType: 1, systemType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => {
if (data) { if (data) {
this.setBarData(data) this.setBarData(data)
} }
}).catch(() => { }) }).catch(() => { })
}, },
getKnowledgeCount () { getKnowledgeCount () {
this.$api.statistical.getKnowledgeCount({ auditType: 1, projType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => { this.$api.statistical.getKnowledgeCount({ auditType: 1, systemType: getType(), reportYear: this.reportYear }).then(({ data = {} }) => {
if (data) { if (data) {
this.setPieData(data) this.setPieData(data)
} }
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
} }
}, },
watch: { watch: {
projType: { systemType: {
handler (value) { handler (value) {
if (value) { if (value) {
this.changeType() this.changeType()
......
...@@ -50,9 +50,9 @@ export default { ...@@ -50,9 +50,9 @@ export default {
this.getYear() this.getYear()
}, },
computed: { computed: {
projType: { systemType: {
get () { get () {
return this.$store.state.app.projType return this.$store.state.app.systemType
}, },
set () { set () {
} }
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() , timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType() , timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
} }
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
} }
}, },
watch: { watch: {
projType: { systemType: {
handler (value) { handler (value) {
} }
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
return { return {
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
// 表单 // 表单
searchForm: { projName: null, projNo: null, appUnitName: null, appPersonName: null, projClass: null, reportYear: null, projState: null, projType: null }, searchForm: { projName: null, projNo: null, appUnitName: null, appPersonName: null, projClass: null, reportYear: null, projState: null, systemType: null },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projName' } }, { title: "项目名称", scopedSlots: { customRender: 'projName' } },
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.getEvaluationStatistic() this.getEvaluationStatistic()
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.formData.groupYear = data.year + '' this.formData.groupYear = data.year + ''
} }
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.totalTitle = this.reportYear + '项目二级学科选择' this.totalTitle = this.reportYear + '项目二级学科选择'
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
getKnowledgeSelectedList () { getKnowledgeSelectedList () {
this.$api.statistical.getKnowledgeSelectedList({ reportYear: this.reportYear, auditType: 1, projType: getType() }).then(({ data = {} }) => { this.$api.statistical.getKnowledgeSelectedList({ reportYear: this.reportYear, auditType: 1, systemType: getType() }).then(({ data = {} }) => {
if (data) { if (data) {
this.tableData = data this.tableData = data
} }
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.searchForm.reportYear = data.year this.searchForm.reportYear = data.year
this.getListByPage() this.getListByPage()
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
{ title: '证件号', dataIndex: 'certId', align: 'center', width: 150 }, { title: '证件号', dataIndex: 'certId', align: 'center', width: 150 },
{ title: '申报人', dataIndex: 'appPersonName', align: 'center', width: 80 } { title: '申报人', dataIndex: 'appPersonName', align: 'center', width: 80 }
], ],
searchForm: { groupId: null, appPersonName: null, reportYear: null, knowledgeCode: null, knowledgeId: null, knowledgeParentId: null, projName: null, appNo: null, projType: getType(), appUnitName: null, projClass: "" }, searchForm: { groupId: null, appPersonName: null, reportYear: null, knowledgeCode: null, knowledgeId: null, knowledgeParentId: null, projName: null, appNo: null, systemType: getType(), appUnitName: null, projClass: "" },
pagination: { pagination: {
pageIndex: 1, pageIndex: 1,
pageSize: this.$defaultPageSize, pageSize: this.$defaultPageSize,
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.searchForm.reportYear = data.year this.searchForm.reportYear = data.year
this.getListByPage() this.getListByPage()
......
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.getProjectExpertGroupStatistic() this.getProjectExpertGroupStatistic()
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
getProjectExpertGroupStatistic () { getProjectExpertGroupStatistic () {
this.$api.statistical.getProjectExpertGroupStatistic({ reportYear: this.reportYear, auditType: 1, projType: getType() }).then(({ data = {} }) => { this.$api.statistical.getProjectExpertGroupStatistic({ reportYear: this.reportYear, auditType: 1, systemType: getType() }).then(({ data = {} }) => {
if (data) { if (data) {
this.tableData = data this.tableData = data
} }
......
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
methods: { methods: {
isEmptyParams, isEmptyParams,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
...@@ -182,7 +182,7 @@ export default { ...@@ -182,7 +182,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
getKnowledgeStatistic () { getKnowledgeStatistic () {
this.$api.statistical.getKnowledgeStatistic({ reportYear: this.reportYear, auditType: 1, projType: getType() }).then(({ data = {} }) => { this.$api.statistical.getKnowledgeStatistic({ reportYear: this.reportYear, auditType: 1, systemType: getType() }).then(({ data = {} }) => {
if (data) { if (data) {
this.tableData1 = data this.tableData1 = data
} }
......
<template> <template>
<div class="app-content"> <div class="app-content">
<proj-key-assign v-if="projType"/> <proj-key-assign v-if="systemType"/>
<proj-knowledge-assign v-else/> <proj-knowledge-assign v-else/>
</div> </div>
</template> </template>
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
}, },
data() { data() {
return { return {
projType: getType() == "1" systemType: getType() == "1"
}; };
}, },
}; };
......
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
methods: { methods: {
isEmptyParams, isEmptyParams,
getYearInfo () { getYearInfo () {
let pars = { batch: 1, projType: getType() } let pars = { batch: 1, systemType: getType() }
this.$api.batch.getBatchList({ ...pars }).then(({ data = {} }) => { this.$api.batch.getBatchList({ ...pars }).then(({ data = {} }) => {
if (data) { if (data) {
this.YearData = data this.YearData = data
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
}) })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
......
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
methods: { methods: {
isEmptyParams, isEmptyParams,
getYearInfo () { getYearInfo () {
let pars = { batch: 1, projType: getType() } let pars = { batch: 1, systemType: getType() }
this.$api.batch.getBatchList({ ...pars }).then(({ data = {} }) => { this.$api.batch.getBatchList({ ...pars }).then(({ data = {} }) => {
if (data) { if (data) {
this.YearData = data this.YearData = data
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
}) })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() , timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType() , timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
return { return {
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
// 表单 // 表单
searchForm: { projName: null, projNo: null, projClass: null, reportYear: null, projState: null, projType: getType() }, searchForm: { projName: null, projNo: null, projClass: null, reportYear: null, projState: null, systemType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projName' } }, { title: "项目名称", scopedSlots: { customRender: 'projName' } },
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
return { return {
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
// 表单 // 表单
searchForm: { projName: null, projNo: null, projClass: null, reportYear: null, taskState: null, projType: getType() }, searchForm: { projName: null, projNo: null, projClass: null, reportYear: null, taskState: null, systemType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: '项目名称', dataIndex: 'projName', align: 'center' }, { title: '项目名称', dataIndex: 'projName', align: 'center' },
......
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
], ],
itemCount: [0, 0, 0, 0, 0], itemCount: [0, 0, 0, 0, 0],
// 表单 // 表单
searchForm: { projName: null, projNo: null, projState: 1, reportYear: null, projType: getType(), knowledgeId: null }, searchForm: { projName: null, projNo: null, projState: 1, reportYear: null, systemType: getType(), knowledgeId: null },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projName' } }, { title: "项目名称", scopedSlots: { customRender: 'projName' } },
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
this.visibleEdit = true this.visibleEdit = true
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
getCount () { getCount () {
this.$api.project.getCount({ reportYear: this.searchForm.reportYear, projType: getType() }).then(({ data = {} }) => { this.$api.project.getCount({ reportYear: this.searchForm.reportYear, systemType: getType() }).then(({ data = {} }) => {
if (data) { if (data) {
this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5] this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5]
} }
......
...@@ -1091,7 +1091,7 @@ export default { ...@@ -1091,7 +1091,7 @@ export default {
this.$emit('load', false) this.$emit('load', false)
}) })
} else { } else {
this.$api.project.getNewProject({ projType: getType() }).then(({ data = {} }) => { this.$api.project.getNewProject({ systemType: getType() }).then(({ data = {} }) => {
if (data) { if (data) {
this.formData = data this.formData = data
this.loadList() this.loadList()
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
data () { data () {
return { return {
loading: false, loading: false,
projType: getType() == "1", systemType: getType() == "1",
current: 10, current: 10,
currSteps: 0, currSteps: 0,
stepsArray: [ stepsArray: [
......
...@@ -838,7 +838,7 @@ export default { ...@@ -838,7 +838,7 @@ export default {
this.$emit('load', false) this.$emit('load', false)
}) })
} else { } else {
this.$api.project.getNewProject({ projType: getType() }).then(({ data = {} }) => { this.$api.project.getNewProject({ systemType: getType() }).then(({ data = {} }) => {
if (data) { if (data) {
this.formData = data this.formData = data
this.$emit('onStepChange', { step: 0, state: data.completeStatus }) this.$emit('onStepChange', { step: 0, state: data.completeStatus })
...@@ -914,7 +914,7 @@ export default { ...@@ -914,7 +914,7 @@ export default {
switch (step) { switch (step) {
case 0: { case 0: {
obj = { obj = {
id: null, reportYear: null, batch: null, projState: null, appPersonId: null, appUnitId: null, projType: null, id: null, reportYear: null, batch: null, projState: null, appPersonId: null, appUnitId: null, systemType: null,
jobTime: null, address: null, mainResearchAreas: null, jobTime: null, address: null, mainResearchAreas: null,
unitLinkName: null, unitLinkMobile: null, unitLinkEmail: null, unitLinkFax: null, unitLinkName: null, unitLinkMobile: null, unitLinkEmail: null, unitLinkFax: null,
projName: null, knowledgeId: null, startDate: null, endDate: null, projName: null, knowledgeId: null, startDate: null, endDate: null,
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<div class="page-footer"> <div class="page-footer">
<!-- 申报项目详情 --> <!-- 申报项目详情 -->
<a-button type="primary" @click="onProjectExport">导出</a-button> <a-button type="primary" @click="onProjectExport">导出</a-button>
<project-info v-model="formData" :tabsData.sync="tabsData" v-if="projType=='1'" /> <project-info v-model="formData" :tabsData.sync="tabsData" v-if="systemType=='1'" />
<project-info-Key v-model="formData" :tabsData.sync="tabsData" v-if="projType=='2'" /> <project-info-Key v-model="formData" :tabsData.sync="tabsData" v-if="systemType=='2'" />
</div> </div>
</a-spin> </a-spin>
</div> </div>
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
managerDept: "", managerDept: "",
}, },
loading: false, loading: false,
projType: getType() systemType: getType()
}; };
}, },
props: { props: {
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
managerDept: "", managerDept: "",
}, },
loading: false, loading: false,
projType: getType() systemType: getType()
}; };
}, },
props: { props: {
......
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 2 }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, systemType: getType(), timeType: 2 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
managerDept: "", managerDept: "",
}, },
loading: false, loading: false,
projType: getType() systemType: getType()
}; };
}, },
props: { props: {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
return { return {
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
// 表单 // 表单
searchForm: { projName: null, projNo: null, appUnitName: null, appPersonName: null, treeCode: JSON.parse(window.sessionStorage.getItem('user')).unitCode, projClass: null, reportYear: null, projState: null, auditType: 1, knowledgeId: null, knowledgeParentId: null, projType: getType() }, searchForm: { projName: null, projNo: null, appUnitName: null, appPersonName: null, treeCode: JSON.parse(window.sessionStorage.getItem('user')).unitCode, projClass: null, reportYear: null, projState: null, auditType: 1, knowledgeId: null, knowledgeParentId: null, systemType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projName' } }, { title: "项目名称", scopedSlots: { customRender: 'projName' } },
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
</a-radio> </a-radio>
</a-radio-group> </a-radio-group>
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="申报项目类型" prop="projType" class="text_line"> <a-form-model-item label="申报项目类型" prop="systemType" class="text_line">
<a-radio-group v-model="formData.projType"> <a-radio-group v-model="formData.systemType">
<a-radio value="1" name="type"> <a-radio value="1" name="type">
科研项目 科研项目
</a-radio> </a-radio>
...@@ -62,14 +62,14 @@ export default { ...@@ -62,14 +62,14 @@ export default {
// imgPath: null, // imgPath: null,
SMSApiUrl: null, SMSApiUrl: null,
loginType: null, loginType: null,
projType: null, systemType: null,
}, },
rules: { rules: {
// filePath: [{ required: true, message: '请输入文件上传路径', trigger: 'blur' },], // filePath: [{ required: true, message: '请输入文件上传路径', trigger: 'blur' },],
// imgPath: [{ required: true, message: '请输入图片上传路径', trigger: 'blur' },], // imgPath: [{ required: true, message: '请输入图片上传路径', trigger: 'blur' },],
SMSApiUrl: [{ required: true, message: '请输入短信发送接口地址', trigger: 'blur' },], SMSApiUrl: [{ required: true, message: '请输入短信发送接口地址', trigger: 'blur' },],
loginType: [{ required: true, message: '请选择登录设置', trigger: 'change' }], loginType: [{ required: true, message: '请选择登录设置', trigger: 'change' }],
projType: [{ required: true, message: '请选择申报项目类型', trigger: 'change' }], systemType: [{ required: true, message: '请选择申报项目类型', trigger: 'change' }],
}, },
loading: true loading: true
} }
......
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
methods: { methods: {
onChangeType (type) { onChangeType (type) {
this.loading = true this.loading = true
this.$changeProjType(type) this.$changeSystemType(type)
this.loading = false this.loading = false
}, },
logout () { logout () {
......
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
return { return {
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
// 表单 // 表单
searchForm: { projName: null, projNo: null, projType: getType() }, searchForm: { projName: null, projNo: null, systemType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "论文名称", scopedSlots: { customRender: 'name' } }, { title: "论文名称", scopedSlots: { customRender: 'name' } },
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
components: { batchEdit }, components: { batchEdit },
data () { data () {
return { return {
searchForm: { projType: getType(), timeType: 1, }, searchForm: { systemType: getType(), timeType: 1, },
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
tableData: [], tableData: [],
columns: [ columns: [
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
reportRange: [], reportRange: [],
auditRange: [], auditRange: [],
expertRange: [], expertRange: [],
projType: getType() systemType: getType()
}, },
formRules: { formRules: {
id: [{ required: false }], id: [{ required: false }],
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
this.formData.id = data.id this.formData.id = data.id
this.formData.year = data.year + '' this.formData.year = data.year + ''
this.formData.timeType = data.timeType this.formData.timeType = data.timeType
this.formData.projType = data.projType this.formData.systemType = data.systemType
this.formData.reportStart = data.reportStart this.formData.reportStart = data.reportStart
this.formData.reportEnd = data.reportEnd this.formData.reportEnd = data.reportEnd
this.formData.auditStart = data.auditStart this.formData.auditStart = data.auditStart
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
reportRange: [], reportRange: [],
auditRange: [], auditRange: [],
expertRange: [], expertRange: [],
projType: null, systemType: null,
}, },
formRules: { formRules: {
id: [{ required: false }], id: [{ required: false }],
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
this.formData.id = data.id this.formData.id = data.id
this.formData.year = data.year + '' this.formData.year = data.year + ''
this.formData.timeType = data.timeType this.formData.timeType = data.timeType
this.formData.projType = null this.formData.systemType = null
this.formData.reportStart = data.reportStart this.formData.reportStart = data.reportStart
this.formData.reportEnd = data.reportEnd this.formData.reportEnd = data.reportEnd
this.formData.auditStart = data.auditStart this.formData.auditStart = data.auditStart
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
components: { timeEdit }, components: { timeEdit },
data () { data () {
return { return {
searchForm: { projType: getType(), timeType: 2, }, searchForm: { systemType: getType(), timeType: 2, },
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
tableData: [], tableData: [],
columns: [ columns: [
......
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
remark: '', remark: '',
reportRange: [], reportRange: [],
auditRange: [], auditRange: [],
projType: getType() systemType: getType()
}, },
formRules: { formRules: {
id: [{ required: false }], id: [{ required: false }],
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
this.formData.id = data.id this.formData.id = data.id
this.formData.year = data.year + '' this.formData.year = data.year + ''
this.formData.timeType = data.timeType this.formData.timeType = data.timeType
this.formData.projType = data.projType this.formData.systemType = data.systemType
this.formData.reportStart = data.reportStart this.formData.reportStart = data.reportStart
this.formData.reportEnd = data.reportEnd this.formData.reportEnd = data.reportEnd
this.formData.auditStart = data.auditStart this.formData.auditStart = data.auditStart
......
...@@ -18,7 +18,7 @@ export function getType () { ...@@ -18,7 +18,7 @@ export function getType () {
let type = '' let type = ''
let user = window.sessionStorage.getItem('user') let user = window.sessionStorage.getItem('user')
if (user) if (user)
type = JSON.parse(user).projType type = JSON.parse(user).systemType
return type return type
} }
...@@ -26,7 +26,7 @@ export function setType (type) { ...@@ -26,7 +26,7 @@ export function setType (type) {
let user = window.sessionStorage.getItem('user') let user = window.sessionStorage.getItem('user')
if (user) { if (user) {
let obj = JSON.parse(user) let obj = JSON.parse(user)
obj.projType = type obj.systemType = type
window.sessionStorage.setItem('user', JSON.stringify(obj)) window.sessionStorage.setItem('user', JSON.stringify(obj))
} }
return type return type
......
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