|
|
@ -66,7 +66,10 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item label="名称" prop="displayName"> |
|
|
<el-form-item label="名称" prop="displayName"> |
|
|
<el-input v-model="form.displayName" ref="refinput"></el-input> |
|
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="form.displayName" |
|
|
|
|
|
ref="refinput" |
|
|
|
|
|
></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
@ -297,6 +300,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
<span style="margin-left: 10%; padding: 5px">搜索选择</span> |
|
|
<span style="margin-left: 10%; padding: 5px">搜索选择</span> |
|
|
<el-select |
|
|
<el-select |
|
|
|
|
|
value-key="id" |
|
|
@change="selectitem" |
|
|
@change="selectitem" |
|
|
filterable |
|
|
filterable |
|
|
v-model="flitvalues" |
|
|
v-model="flitvalues" |
|
|
@ -307,7 +311,7 @@ |
|
|
v-for="item in filetelists" |
|
|
v-for="item in filetelists" |
|
|
:key="item.id" |
|
|
:key="item.id" |
|
|
:label="item.displayName" |
|
|
:label="item.displayName" |
|
|
:value="item.id" |
|
|
|
|
|
|
|
|
:value="item" |
|
|
> |
|
|
> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
@ -604,7 +608,7 @@ export default { |
|
|
rightobj: {}, |
|
|
rightobj: {}, |
|
|
nums: 0, |
|
|
nums: 0, |
|
|
itemid: "", //项目id |
|
|
itemid: "", //项目id |
|
|
curRow:{} |
|
|
|
|
|
|
|
|
curRow: {}, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
@ -624,7 +628,15 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//搜索选择 |
|
|
//搜索选择 |
|
|
selectitem(v) { |
|
|
selectitem(v) { |
|
|
this.itemid = v; |
|
|
|
|
|
|
|
|
this.itemid = v.id; |
|
|
|
|
|
// this.rightdata.forEach((item) => { |
|
|
|
|
|
// if (v.id != item.id) { |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.rightdata.push({ displayName: v.displayName }); |
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
this.rightdata.push({ displayName: v.displayName }); |
|
|
|
|
|
console.log(v); |
|
|
}, |
|
|
}, |
|
|
Onsubmit() { |
|
|
Onsubmit() { |
|
|
let sampleGroupId = this.form.id; |
|
|
let sampleGroupId = this.form.id; |
|
|
@ -659,13 +671,14 @@ export default { |
|
|
this.isdislob = false; |
|
|
this.isdislob = false; |
|
|
this.rightdata.splice(this.num, 1); |
|
|
this.rightdata.splice(this.num, 1); |
|
|
this.leftdata.push(item); |
|
|
this.leftdata.push(item); |
|
|
this.isdislob = true; |
|
|
|
|
|
|
|
|
this.isdislob = false; |
|
|
this.updatedate(); |
|
|
this.updatedate(); |
|
|
}, |
|
|
}, |
|
|
//右侧点击选中 |
|
|
//右侧点击选中 |
|
|
rightindex(item, index) { |
|
|
rightindex(item, index) { |
|
|
this.nums = index; |
|
|
this.nums = index; |
|
|
this.leftobj = item; |
|
|
this.leftobj = item; |
|
|
|
|
|
|
|
|
console.log(this.leftobj); |
|
|
console.log(this.leftobj); |
|
|
}, |
|
|
}, |
|
|
//左侧添加按钮 |
|
|
//左侧添加按钮 |
|
|
@ -681,7 +694,7 @@ export default { |
|
|
if (this.rightdata.length > 0) { |
|
|
if (this.rightdata.length > 0) { |
|
|
this.rightdata.splice(this.num, 1); |
|
|
this.rightdata.splice(this.num, 1); |
|
|
this.leftdata.push(this.leftobj); |
|
|
this.leftdata.push(this.leftobj); |
|
|
this.isdislob = true; |
|
|
|
|
|
|
|
|
this.isdislob = false; |
|
|
// this.isdislob=false |
|
|
// this.isdislob=false |
|
|
this.updatedate(); |
|
|
this.updatedate(); |
|
|
} |
|
|
} |
|
|
@ -711,6 +724,7 @@ export default { |
|
|
console.log(item); |
|
|
console.log(item); |
|
|
this.leftdata.splice(index, 1); |
|
|
this.leftdata.splice(index, 1); |
|
|
this.rightdata.push(item); |
|
|
this.rightdata.push(item); |
|
|
|
|
|
this.isdislob = false; |
|
|
}, |
|
|
}, |
|
|
clickPaixu(item, index) { |
|
|
clickPaixu(item, index) { |
|
|
this.rightobj = item; |
|
|
this.rightobj = item; |
|
|
@ -797,7 +811,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//置底 |
|
|
//置底 |
|
|
setlow() { |
|
|
setlow() { |
|
|
this.form={...this.curRow} |
|
|
|
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
if (this.form.id == undefined) { |
|
|
if (this.form.id == undefined) { |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
} else { |
|
|
} else { |
|
|
@ -810,7 +824,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//置顶 |
|
|
//置顶 |
|
|
topping() { |
|
|
topping() { |
|
|
this.form={...this.curRow} |
|
|
|
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
if (this.form.id == undefined) { |
|
|
if (this.form.id == undefined) { |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
} else { |
|
|
} else { |
|
|
@ -822,7 +836,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//删除 |
|
|
//删除 |
|
|
deleteid() { |
|
|
deleteid() { |
|
|
this.form={...this.curRow} |
|
|
|
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
if (this.form.id == undefined) { |
|
|
if (this.form.id == undefined) { |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
} else { |
|
|
} else { |
|
|
@ -834,7 +848,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//编辑弹框 |
|
|
//编辑弹框 |
|
|
editpopup() { |
|
|
editpopup() { |
|
|
this.form={...this.curRow} |
|
|
|
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
if (this.form.id == undefined) { |
|
|
if (this.form.id == undefined) { |
|
|
this.$message.warning("请点击选择操作的数据"); |
|
|
this.$message.warning("请点击选择操作的数据"); |
|
|
} else { |
|
|
} else { |
|
|
@ -931,9 +945,9 @@ export default { |
|
|
addll() { |
|
|
addll() { |
|
|
this.dialogVisible = true; |
|
|
this.dialogVisible = true; |
|
|
this.title = 1; |
|
|
this.title = 1; |
|
|
this.$nextTick(()=>{ |
|
|
|
|
|
this.$refs.refinput.focus() |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.refinput.focus(); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
//性别 |
|
|
//性别 |
|
|
examinationgender().then((res) => { |
|
|
examinationgender().then((res) => { |
|
|
@ -956,7 +970,7 @@ this.$nextTick(()=>{ |
|
|
}, |
|
|
}, |
|
|
rowick(row) { |
|
|
rowick(row) { |
|
|
asbitemgetid(row.id).then((res) => { |
|
|
asbitemgetid(row.id).then((res) => { |
|
|
this.curRow={...res.data} |
|
|
|
|
|
|
|
|
this.curRow = { ...res.data }; |
|
|
// this.form = res.data; |
|
|
// this.form = res.data; |
|
|
}); |
|
|
}); |
|
|
getapi( |
|
|
getapi( |
|
|
|