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: { rqAssessmentParameter: {
currPage: 1, currPage: 1,
pageSize: 1, pageSize: 10,
searchName: '', searchName: '',
totalCount: 1, totalCount: 1,
totalPage: 1 totalPage: 1

View File

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

View File

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

View File

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

View File

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

View File

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