This commit is contained in:
熊成强 2020-11-04 14:17:42 +08:00
parent a9f8011a62
commit 0273196aaf
6 changed files with 14 additions and 15 deletions

View File

@ -113,7 +113,7 @@ export default {
},
rqAssessmentParameter: {
currPage: 1,
pageSize: 1,
pageSize: 10,
searchName: '',
totalCount: 1,
totalPage: 1

View File

@ -32,14 +32,12 @@ const options = {
// request拦截器
service.interceptors.request.use(config => {
console.log(`request.config=>`, config)
Loading.service(options)
// 是否需要设置 token
// const isToken = (config.headers || {}).isToken === false
// if (getToken() && !isToken) {
// config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
// }
console.log('Vue: ', Vue)
config.headers['token'] = Vue.cookie.get('token') || ''
return config
}, error => {
@ -49,7 +47,6 @@ service.interceptors.request.use(config => {
// 响应拦截器
service.interceptors.response.use(res => {
console.log(`response.res=>`, res)
const id = setTimeout(() => {
Loading.service(options).close()
clearTimeout(id)

View File

@ -36,9 +36,12 @@ export default {
computed: {},
beforeMount () {},
mounted () {
this.form = Object.assign({}, this.info, this.form)
console.log('his.info: ', this.info)
console.log('this.form: ', this.form)
this.form = Object.assign({}, this.info)
this.form.chartDetails.recordSimpleDtos = [
{
optType: -1
}
]
},
methods: {},
watch: {

View File

@ -8,7 +8,7 @@
<script>
export default {
prop: ['info'],
props: ['info'],
data () {
return {
form: {
@ -19,11 +19,9 @@ export default {
computed: {},
beforeMount () {},
mounted () {
this.$emit('update:info', Object.assign({}, this.info, {
chartDetails: {
recordSimpleDtos: [this.form]
}
}))
const params = JSON.parse(JSON.stringify(this.info))
params.chartDetails.recordSimpleDtos = [this.form]
this.$emit('update:info', params)
},
methods: {},
watch: {

View File

@ -116,7 +116,7 @@ export default {
this.info[i.componment + 'Info'] = this.processLsit.filter(j => j.name === i.name)[0]
if (groupId === 0) {
this.info[i.componment + 'Info'].chartDetails = {
id: i.id,
id: this.info[i.componment + 'Info'].id,
status: 0,
recordSimpleDtos: []
}

View File

@ -71,7 +71,8 @@ export default {
},
async handSaveBasisc () {
console.log('this.templateForm: ', this.templateForm)
console.log('this.templateForm: ', this.processInfo)
if (!this.basisForm.name) {
return this.$message.error('请输入考评组名称')
}