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

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

parent e916fa86
...@@ -10,6 +10,6 @@ VUE_APP_BASE_API = '/dev-api' ...@@ -10,6 +10,6 @@ VUE_APP_BASE_API = '/dev-api'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true 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' VUE_APP_CLIENT_API = 'http://10.12.48.78/vvmpapi'
...@@ -6,9 +6,9 @@ ENV = 'production' ...@@ -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' VUE_APP_CLIENT_API = 'http://10.12.48.78/vvmpapi'
...@@ -5,8 +5,8 @@ VUE_APP_TITLE = 标准应用数据库 ...@@ -5,8 +5,8 @@ VUE_APP_TITLE = 标准应用数据库
ENV = 'staging' 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' VUE_APP_CLIENT_API = 'https://10.12.48.78/vvmpapi'
...@@ -24,7 +24,6 @@ export default { ...@@ -24,7 +24,6 @@ export default {
default: false default: false
}, },
defaultValue: { defaultValue: {
default: '' default: ''
} }
}, },
...@@ -46,15 +45,19 @@ export default { ...@@ -46,15 +45,19 @@ export default {
mounted() { mounted() {
if (this.defaultValue) { if (this.defaultValue) {
this.value = 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 }) this.$emit('makeRecord', { name: this.prop, record: this.value })
} else { } else {
this.reset() this.reset()
} }
}, },
methods: { methods: {
input(val) { 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 }) this.$emit('makeRecord', { name: this.prop, record: val })
}, },
reset() { reset() {
......
...@@ -139,8 +139,8 @@ export default { ...@@ -139,8 +139,8 @@ export default {
}, },
methods: { methods: {
handleDownload() { handleDownload() {
location.href =
location.href = 'https://10.12.48.78/vehicle-quality-review-oss/2024/10/17/SchemeTemplate.zip' 'http://10.12.48.78:443/vehicle-quality-review-oss/2024/10/17/SchemeTemplate.zip'
}, },
handleCilck(key) { handleCilck(key) {
this.$refs.queryForm.clearValidate(key) this.$refs.queryForm.clearValidate(key)
...@@ -148,6 +148,8 @@ export default { ...@@ -148,6 +148,8 @@ export default {
changeVal(data) { changeVal(data) {
const { name, val } = data const { name, val } = data
this.form[name] = val this.form[name] = val
console.log(this.form)
this.$emit('input', this.form) this.$emit('input', this.form)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.queryForm.clearValidate(name) this.$refs.queryForm.clearValidate(name)
...@@ -169,6 +171,8 @@ export default { ...@@ -169,6 +171,8 @@ export default {
} }
this.record[name].defaultValue = record this.record[name].defaultValue = record
console.log(this.record)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.queryForm.clearValidate(name) this.$refs.queryForm.clearValidate(name)
}) })
...@@ -194,6 +198,8 @@ export default { ...@@ -194,6 +198,8 @@ export default {
i.record = this.record[i.key] i.record = this.record[i.key]
codes.push(this.form[i.key]) codes.push(this.form[i.key])
} }
console.log(i)
arr.push(i) arr.push(i)
}) })
codes = codes.filter(item => item && item !== '') codes = codes.filter(item => item && item !== '')
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
> >
</el-image> </el-image>
<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 v-else
class="img" class="img"
> >
......
...@@ -132,7 +132,6 @@ Vue.config.productionTip = false ...@@ -132,7 +132,6 @@ Vue.config.productionTip = false
// 全局使用 // 全局使用
Vue.use(VueApollo)
// 全局导入Echarts // 全局导入Echarts
import * as echarts from 'echarts' import * as echarts from 'echarts'
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</el-image> </el-image>
<el-image <el-image
v-else 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" class="img"
> >
</el-image> </el-image>
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
> >
</el-image> </el-image>
<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 v-else
class="img" class="img"
> >
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
> >
</el-image> </el-image>
<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 v-else
class="img" class="img"
> >
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</el-image> </el-image>
<el-image <el-image
v-else 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" class="img"
> >
</el-image> </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