|
|
@@ -28,10 +28,10 @@
|
|
|
<el-col :xs="23" :sm="23" :md="23" :lg="23" :xl="15">
|
|
|
<el-form-item style="text-align:center;margin-top:20px;">
|
|
|
<el-button v-show="form.id && productInfo.status != 2" type="primary" @click="submitForm">
|
|
|
- {{ t('sip.sipConfig998537-11') }}
|
|
|
+ 更新
|
|
|
</el-button>
|
|
|
<el-button v-show="!form.id && productInfo.status != 2" type="primary" @click="submitForm">
|
|
|
- {{ t('sip.sipConfig998537-12') }}
|
|
|
+ 添加
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -130,10 +130,12 @@ watch(
|
|
|
)
|
|
|
|
|
|
// 获取产品下第一条SIP配置
|
|
|
-const getSipconfigData = () => {
|
|
|
+function getSipconfigData() {
|
|
|
getSipconfig(productInfo.value.productId).then(response => {
|
|
|
- Object.assign(form, response.data)
|
|
|
+ Object.assign(form, response)
|
|
|
})
|
|
|
+
|
|
|
+ console.log('form>>>>>>>>>>>>>>>>>>', form)
|
|
|
}
|
|
|
|
|
|
// 提交按钮
|
|
|
@@ -162,6 +164,8 @@ onMounted(() => {
|
|
|
if (productInfo.value && productInfo.value.productId != 0) {
|
|
|
getSipconfigData()
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
})
|
|
|
</script>
|
|
|
|