Commit d6c78e32 authored by jiaxu.yan's avatar jiaxu.yan

feat:生成表单修改输入显示错误问题

parent e916fa86
......@@ -10,6 +10,6 @@ VUE_APP_BASE_API = '/dev-api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
# 图片服务器地址
VUE_APP_IMAGE_API ='http://10.12.48.78:443'
VUE_APP_IMAGE_API ='http://10.12.48.78:443/vehicle-quality-review-oss'
VUE_APP_CLIENT_API = 'http://10.12.48.78/vvmpapi'
......@@ -6,9 +6,9 @@ ENV = 'production'
# 中汽研安全检测平台管理系统/生产环境
VUE_APP_BASE_API = 'http://106.3.99.64:22018'
VUE_APP_BASE_API = 'http://10.12.48.78:443/prod-api'
# 图片服务器地址
VUE_APP_IMAGE_API ='http://10.12.48.78:443'
VUE_APP_IMAGE_API ='http://10.12.48.78:443/vehicle-quality-review-oss'
VUE_APP_CLIENT_API = 'http://10.12.48.78/vvmpapi'
......@@ -5,8 +5,8 @@ VUE_APP_TITLE = 标准应用数据库
ENV = 'staging'
# 中汽研安全检测平台管理系统/开发环境
VUE_APP_BASE_API = 'http://106.3.99.64:22016'
VUE_APP_BASE_API = 'http://10.12.48.78:443/prod-api'
# 图片服务器地址
VUE_APP_IMAGE_API ='http://106.3.99.64:22013'
VUE_APP_IMAGE_API ='http://10.12.48.78:443/vehicle-quality-review-oss'
VUE_APP_CLIENT_API = 'https://10.12.48.78/vvmpapi'
......@@ -24,7 +24,6 @@ export default {
default: false
},
defaultValue: {
default: ''
}
},
......@@ -46,15 +45,19 @@ export default {
mounted() {
if (this.defaultValue) {
this.value = this.defaultValue
this.$emit('changeVal', { name: this.prop, val: this.result})
this.$emit('changeVal', { name: this.prop, val: this.items.options[0].useCaseNo })
this.$emit('makeRecord', { name: this.prop, record: this.value })
} else {
this.reset()
}
},
methods: {
input(val) {
this.$emit('changeVal', { name: this.prop, val: val })
this.$emit('changeVal', {
name: this.prop,
val: this.items.options[0].useCaseNo
})
this.$emit('makeRecord', { name: this.prop, record: val })
},
reset() {
......
......@@ -139,8 +139,8 @@ export default {
},
methods: {
handleDownload() {
location.href = 'https://10.12.48.78/vehicle-quality-review-oss/2024/10/17/SchemeTemplate.zip'
location.href =
'http://10.12.48.78:443/vehicle-quality-review-oss/2024/10/17/SchemeTemplate.zip'
},
handleCilck(key) {
this.$refs.queryForm.clearValidate(key)
......@@ -148,6 +148,8 @@ export default {
changeVal(data) {
const { name, val } = data
this.form[name] = val
console.log(this.form)
this.$emit('input', this.form)
this.$nextTick(() => {
this.$refs.queryForm.clearValidate(name)
......@@ -169,6 +171,8 @@ export default {
}
this.record[name].defaultValue = record
console.log(this.record)
this.$nextTick(() => {
this.$refs.queryForm.clearValidate(name)
})
......@@ -194,6 +198,8 @@ export default {
i.record = this.record[i.key]
codes.push(this.form[i.key])
}
console.log(i)
arr.push(i)
})
codes = codes.filter(item => item && item !== '')
......
......@@ -51,7 +51,7 @@
>
</el-image>
<el-image
src="https://10.12.48.78/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
src="http://10.12.48.78:443/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
v-else
class="img"
>
......
......@@ -132,7 +132,6 @@ Vue.config.productionTip = false
// 全局使用
Vue.use(VueApollo)
// 全局导入Echarts
import * as echarts from 'echarts'
......
......@@ -96,7 +96,7 @@
</el-image>
<el-image
v-else
src="https://10.12.48.78/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
src="http://10.12.48.78:443/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
class="img"
>
</el-image>
......
......@@ -81,7 +81,7 @@
>
</el-image>
<el-image
src="https://10.12.48.78/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
src="http://10.12.48.78:443/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
v-else
class="img"
>
......
......@@ -81,7 +81,7 @@
>
</el-image>
<el-image
src="https://10.12.48.78/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
src="http://10.12.48.78:443/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
v-else
class="img"
>
......
......@@ -96,7 +96,7 @@
</el-image>
<el-image
v-else
src="https://10.12.48.78/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
src="http://10.12.48.78:443/vehicle-quality-review-oss/2024/07/02/doc_d_20240702133702A019.png"
class="img"
>
</el-image>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment