[update] 50782
This commit is contained in:
@@ -562,6 +562,9 @@
|
||||
isTableEdit:false,
|
||||
// 新增添加字段
|
||||
standardSelectionContent: [], // 所选择的标准选择的全部字段
|
||||
formArrayName: [], // 标准选择的名字
|
||||
formArrayId: [], // 标准选择的id
|
||||
valueItem: '' // 标准选择的自定义字段名
|
||||
}
|
||||
},
|
||||
props:{
|
||||
@@ -685,10 +688,25 @@
|
||||
},
|
||||
//保存
|
||||
splitSave(){
|
||||
// console.log('vallll',this.contentList)
|
||||
// todo
|
||||
this.$refs.splitEditForm.validate(valid=>{
|
||||
if(valid){
|
||||
|
||||
// 标准编号 -- 选取或者填写的
|
||||
let _formInlinevalueItem = this.formInline[this.valueItem].split(',')
|
||||
// 标准编号的id临时变量
|
||||
let _valueItemArr = []
|
||||
if(this.formArrayName.length > 0) {
|
||||
this.formArrayName.forEach((item, index) => {
|
||||
_formInlinevalueItem.forEach((itemlabel, indexlabel) => {
|
||||
if(itemlabel === item) {
|
||||
_valueItemArr.push(this.formArrayId[index])
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
if(_valueItemArr.length > 0) {
|
||||
this.formInline[this.valueItem + '_id'] = _valueItemArr.join(',')
|
||||
}
|
||||
this.loading = true
|
||||
if(!this.submitFlag){
|
||||
this.submitFlag=true
|
||||
@@ -1104,14 +1122,16 @@
|
||||
|
||||
},
|
||||
changeContent(val) {
|
||||
console.log(val,'kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk')
|
||||
this.standardSelectionContent = val
|
||||
console.log(this.standardSelectionContent,'vcalllll')
|
||||
},
|
||||
StandardselectionChange(value, id) {
|
||||
this.formInline[value + '_id'] = id
|
||||
// todo
|
||||
this.valueItem = value
|
||||
if(this.formInline[value] !== undefined) {
|
||||
this.formArrayName = this.formInline[value].split(',')
|
||||
this.formArrayId = id.split(',')
|
||||
}
|
||||
this.formInline = { ...this.formInline }
|
||||
console.log(this.formInline,'this.formInlinethis.formInlinethis.formInline')
|
||||
},
|
||||
PersonnelSelectionChange(value, id) {
|
||||
this.formInline[value + '_id'] = id
|
||||
|
||||
@@ -112,7 +112,7 @@ export default {
|
||||
dataSource: [],
|
||||
confirmLoading: false,
|
||||
url: {
|
||||
list: 'params/template/list',
|
||||
list: 'params/template/page',
|
||||
add: 'params/template/add',
|
||||
edit: 'params/template/edit',
|
||||
deleteBatch: 'params/template/delete',
|
||||
@@ -278,7 +278,7 @@ export default {
|
||||
this.getList()
|
||||
return
|
||||
}
|
||||
this.dataSource = res.result || []
|
||||
this.dataSource = res.result.records || []
|
||||
this.total = res.result.total
|
||||
this.loading = false
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user