[参数项列表] 编辑

This commit is contained in:
zhaomeijing
2022-04-29 10:05:54 +08:00
parent 76a827344e
commit 4f3fdc0fbf
2 changed files with 1 additions and 7 deletions
@@ -287,10 +287,6 @@ export default {
props: ['url'], props: ['url'],
data() { data() {
return { return {
isRequired: [ // 是否必填
{value:'1', label: '是' },
{value:'0', label: '否' }
],
controlType: [ // 控件类型 controlType: [ // 控件类型
{value:'1', label: '文本' }, {value:'1', label: '文本' },
{value:'2', label: '下拉单选' }, {value:'2', label: '下拉单选' },
@@ -434,7 +430,6 @@ export default {
let url = '' let url = ''
let Action let Action
this.formInline.paramsTemplateId = this.$route.query.id this.formInline.paramsTemplateId = this.$route.query.id
console.log(this.formInline.paramsTemplateId,'this.formInline.paramsTemplateIdthis.formInline.paramsTemplateId')
if (this.formInline.id) { if (this.formInline.id) {
url = this.url.edit url = this.url.edit
Action = postAction Action = postAction
@@ -443,7 +438,6 @@ export default {
Action = postAction Action = postAction
} }
let query = JSON.parse(JSON.stringify(this.formInline)) let query = JSON.parse(JSON.stringify(this.formInline))
console.log(query,'queryqueryqueryquery')
Object.keys(query).forEach(res => { Object.keys(query).forEach(res => {
if (query[res] && query[res] instanceof Array) { if (query[res] && query[res] instanceof Array) {
query[res] = query[res].join(',') query[res] = query[res].join(',')
@@ -290,7 +290,7 @@ export default {
let query = { let query = {
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
cut: this.$route.query.id, paramsTemplateId: this.$route.query.id,
...this.queryParam ...this.queryParam
} }
this.loading = true this.loading = true