|
@@ -33,7 +33,8 @@
|
|
|
<el-form-item :label="$t('适用介质') + ':'" prop="medium">
|
|
<el-form-item :label="$t('适用介质') + ':'" prop="medium">
|
|
|
<el-select
|
|
<el-select
|
|
|
v-model="form.medium"
|
|
v-model="form.medium"
|
|
|
- :placeholder="$t('请选择领域')"
|
|
|
|
|
|
|
+ multiple
|
|
|
|
|
+ :placeholder="$t('请选择适用介质')"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
@@ -79,7 +80,7 @@ export default {
|
|
|
form:{
|
|
form:{
|
|
|
"itemid": '',
|
|
"itemid": '',
|
|
|
"temperature":"10℃-50℃",
|
|
"temperature":"10℃-50℃",
|
|
|
- "medium":"油"
|
|
|
|
|
|
|
+ "medium":[]
|
|
|
},
|
|
},
|
|
|
rules:{
|
|
rules:{
|
|
|
temperature: [
|
|
temperature: [
|
|
@@ -92,7 +93,7 @@ export default {
|
|
|
medium: [
|
|
medium: [
|
|
|
{
|
|
{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: this.$t("请填写适用介质"),
|
|
|
|
|
|
|
+ message: this.$t("请选择适用介质"),
|
|
|
trigger: "blur",
|
|
trigger: "blur",
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
@@ -108,13 +109,22 @@ export default {
|
|
|
onShow(){
|
|
onShow(){
|
|
|
this.dialogFormVisible = true
|
|
this.dialogFormVisible = true
|
|
|
this.mediumList()
|
|
this.mediumList()
|
|
|
- this.form.medium = this.data.medium
|
|
|
|
|
|
|
+ this.form.medium = this.data.medium.split(',')
|
|
|
this.form.temperature = this.data.temperature
|
|
this.form.temperature = this.data.temperature
|
|
|
},
|
|
},
|
|
|
onSave(){
|
|
onSave(){
|
|
|
this.form.itemid = this.$route.query.id
|
|
this.form.itemid = this.$route.query.id
|
|
|
this.$refs.form.validate(async(valid)=>{
|
|
this.$refs.form.validate(async(valid)=>{
|
|
|
if (!valid) return false
|
|
if (!valid) return false
|
|
|
|
|
+ let newMedium = ''
|
|
|
|
|
+ this.form.medium.forEach((item,index)=>{
|
|
|
|
|
+ if (index == 0){
|
|
|
|
|
+ newMedium = item
|
|
|
|
|
+ }else {
|
|
|
|
|
+ newMedium = newMedium + ',' + item
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ this.form.medium = newMedium
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
const res = await this.$api.requested({
|
|
const res = await this.$api.requested({
|
|
|
id:2025101415125402,
|
|
id:2025101415125402,
|