|
@@ -27,13 +27,10 @@ const app = new Vue({
|
|
}
|
|
}
|
|
|
|
|
|
return {
|
|
return {
|
|
-
|
|
|
|
productId: 0,
|
|
productId: 0,
|
|
commodityType: 2, // 商品类型 1: 产品 2: 仪器
|
|
commodityType: 2, // 商品类型 1: 产品 2: 仪器
|
|
shopId: GLOBAL_SHOP_ID,
|
|
shopId: GLOBAL_SHOP_ID,
|
|
-
|
|
|
|
action: $('#coreServer').val() + '/tools/image/upload/multi',
|
|
action: $('#coreServer').val() + '/tools/image/upload/multi',
|
|
-
|
|
|
|
formData: {
|
|
formData: {
|
|
// 仪器名称
|
|
// 仪器名称
|
|
name: '',
|
|
name: '',
|
|
@@ -136,10 +133,8 @@ const app = new Vue({
|
|
// // 仪器状态
|
|
// // 仪器状态
|
|
// status: [{required: true, message: '请选择仪器状态', trigger: 'change'}],
|
|
// status: [{required: true, message: '请选择仪器状态', trigger: 'change'}],
|
|
},
|
|
},
|
|
-
|
|
|
|
// 仪器类别列表
|
|
// 仪器类别列表
|
|
typeList: [],
|
|
typeList: [],
|
|
-
|
|
|
|
// 仪器参数
|
|
// 仪器参数
|
|
// paramList: [],
|
|
// paramList: [],
|
|
paramEmptyList: [], // 占位
|
|
paramEmptyList: [], // 占位
|
|
@@ -155,7 +150,7 @@ const app = new Vue({
|
|
dialogImageUrl: '',
|
|
dialogImageUrl: '',
|
|
// 日期选择格式
|
|
// 日期选择格式
|
|
marketTimeType: 'year',
|
|
marketTimeType: 'year',
|
|
- nmpaTimeType: 'year'
|
|
|
|
|
|
+ nmpaTimeType: 'year',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -170,7 +165,7 @@ const app = new Vue({
|
|
const filter = this.questionEmptyList.filter(item => item.question !== '' && item.answer !== '')
|
|
const filter = this.questionEmptyList.filter(item => item.question !== '' && item.answer !== '')
|
|
if (filter.length > 0) return filter.map(item => ({question: item.question, answer: item.answer}))
|
|
if (filter.length > 0) return filter.map(item => ({question: item.question, answer: item.answer}))
|
|
return []
|
|
return []
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
mounted: function mounted() {
|
|
mounted: function mounted() {
|