szh_zidingyibiaoti
lilu 2 years ago
commit 855ba8a15e

@ -64,7 +64,7 @@ service.interceptors.response.use(response => {
return response return response
} }
const code = response.data.code const code = response.data.code
if (code === 1011006 || code === 1011007 || code === 1011008 || code === 1011009) { if (code === 1011006 || code === 1011007 || code === 1011008 || code === 1011009 || code === 401) {
Modal.error({ Modal.error({
title: '提示:', title: '提示:',
content: response.data.message, content: response.data.message,

@ -508,10 +508,12 @@ export default {
} }
} }
</script> </script>
<style scoped lang="less" scoped> <style scoped lang="less">
.CsForm { .CsForm {
background: #fff; background: #fff;
padding: 25px; padding: 25px;
height: 760px;
overflow-y: auto !important;
} }
.CsForm .ant-form-item { .CsForm .ant-form-item {
margin-bottom: 10px; margin-bottom: 10px;

@ -544,6 +544,8 @@ export default {
.CsForm { .CsForm {
background: #fff; background: #fff;
padding: 25px; padding: 25px;
height: 760px;
overflow-y: auto !important;
} }
.CsFormTitle { .CsFormTitle {
border-bottom: 1px solid #c9c9c9; border-bottom: 1px solid #c9c9c9;

@ -76,10 +76,13 @@ export default {
BookingOrderGetFieldName().then(res => { BookingOrderGetFieldName().then(res => {
let FieldNameList = [] let FieldNameList = []
Object.keys(res.data.order).forEach(item => {
FieldNameList.push({ Object.keys(res.data).forEach(item => {
code: item, Object.keys(res.data[item]).forEach(item2 => {
name: res.data.order[item] FieldNameList.push({
code: item2,
name: res.data[item][item2]
})
}) })
}) })
this.FieldNameList = FieldNameList this.FieldNameList = FieldNameList
@ -120,7 +123,7 @@ export default {
Changetype = true Changetype = true
} }
}) })
console.log(this.data)
if (Changetype) { if (Changetype) {
configJson = [...this.data] configJson = [...this.data]
} else { } else {

@ -73,20 +73,20 @@ export default {
methods: { methods: {
// //
edit(record, loadData) { edit(record, loadData) {
console.log(record)
this.data = loadData this.data = loadData
this.visible = true this.visible = true
BookingOrderGetFieldName().then(res => { BookingOrderGetFieldName().then(res => {
let FieldNameList = [] let FieldNameList = []
Object.keys(res.data.order).forEach(item => { Object.keys(res.data).forEach(item => {
FieldNameList.push({ Object.keys(res.data[item]).forEach(item2 => {
code: item, FieldNameList.push({
name: res.data.order[item] code: item2,
name: res.data[item][item2]
})
}) })
}) })
this.FieldNameList = FieldNameList this.FieldNameList = FieldNameList
this.FieldNameList2 = FieldNameList this.FieldNameList2 = FieldNameList
console.log(this.FieldNameList)
}) })
setTimeout(() => { setTimeout(() => {
this.form.setFieldsValue({ this.form.setFieldsValue({
@ -94,11 +94,9 @@ export default {
code: record.code, code: record.code,
remarks: record.remarks remarks: record.remarks
}) })
console.log(this.form.getFieldsValue())
}, 100) }, 100)
}, },
handleSearch(value) { handleSearch(value) {
console.log(value)
let Rdata = [] let Rdata = []
if (value) { if (value) {
this.FieldNameList2.forEach(item => { this.FieldNameList2.forEach(item => {

Loading…
Cancel
Save