提交 1369d8d5 编写于 作者: huangwensu's avatar huangwensu

问题修改

上级 315b0d76
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</el-form-item> </el-form-item>
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="配置证书" prop="certificateId"> <el-form-item label="配置证书">
<el-radio-group v-model="certificateLable" @change="selectCertificate"> <el-radio-group v-model="certificateLable" @change="selectCertificate">
<el-radio label="是"></el-radio> <el-radio label="是"></el-radio>
<el-radio label="否"></el-radio> <el-radio label="否"></el-radio>
...@@ -320,7 +320,7 @@ let validateRepeatWord = function(rule, value, callback, message) { ...@@ -320,7 +320,7 @@ let validateRepeatWord = function(rule, value, callback, message) {
let validateModuleName = function(rule, value, callback, message) { let validateModuleName = function(rule, value, callback, message) {
const reg = /^[\u4e00-\u9fa5]{2,20}$/ const reg = /^[\u4e00-\u9fa5]{2,20}$/
if(!reg.test(value)) { if(!reg.test(value)) {
callback(new Error(message)) callback(new Error('输入长度为2-20个中文'))
return return
} }
for(let i = 0;i<vm.componentList.moduleModelList.length;i++) { for(let i = 0;i<vm.componentList.moduleModelList.length;i++) {
...@@ -369,8 +369,8 @@ export default { ...@@ -369,8 +369,8 @@ export default {
curmbThird: '新增项目组件', curmbThird: '新增项目组件',
jumPathThird: '/item-component', jumPathThird: '/item-component',
firstTab: '1', firstTab: '1',
hasCertificate: true, hasCertificate: false,
certificateLable: '', certificateLable: '',
portCertificateLable: '否', portCertificateLable: '否',
moduleIndex: '', moduleIndex: '',
editableTabs: [{ editableTabs: [{
...@@ -473,6 +473,9 @@ export default { ...@@ -473,6 +473,9 @@ export default {
if(!vm.portalComponent.certificateId) { if(!vm.portalComponent.certificateId) {
vm.hasCertificate = false vm.hasCertificate = false
vm.certificateLable = '否' vm.certificateLable = '否'
} else {
vm.hasCertificate = true
vm.certificateLable = '是'
} }
} }
}) })
...@@ -522,7 +525,9 @@ export default { ...@@ -522,7 +525,9 @@ export default {
vm.submitBasic(flag,url) vm.submitBasic(flag,url)
}else{ // 下一步 }else{ // 下一步
vm.isStorage = false vm.isStorage = false
vm.portalComponent.status = '' if(!vm.componentId) {
vm.portalComponent.status = 1
}
vm.$refs.basicInfoForm.validate((valid) => { vm.$refs.basicInfoForm.validate((valid) => {
if (valid) { if (valid) {
vm.submitBasic(flag,url) vm.submitBasic(flag,url)
...@@ -537,6 +542,7 @@ export default { ...@@ -537,6 +542,7 @@ export default {
}, },
submitBasic(flag,url) { submitBasic(flag,url) {
vm.portalComponent.idType = vm.idType vm.portalComponent.idType = vm.idType
vm.portalComponent.id = vm.componentId
vm.POST(url,{ model: vm.portalComponent }).then((res) => { vm.POST(url,{ model: vm.portalComponent }).then((res) => {
if( res.code == '000000') { if( res.code == '000000') {
if(!vm.componentId) { if(!vm.componentId) {
...@@ -951,7 +957,7 @@ export default { ...@@ -951,7 +957,7 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
vm.dialogData.moduleType = 2 vm.dialogData.moduleType = 2
vm.dialogData.mappingId = '' vm.dialogData.mappingId = null
vm.componentList.moduleModelList.push(vm.dialogData) vm.componentList.moduleModelList.push(vm.dialogData)
vm.firstTab = vm.componentList.moduleModelList.length + '' vm.firstTab = vm.componentList.moduleModelList.length + ''
}).catch(() => { }).catch(() => {
...@@ -965,7 +971,7 @@ export default { ...@@ -965,7 +971,7 @@ export default {
} }
if(flag) { if(flag) {
vm.dialogData.moduleType = 2 vm.dialogData.moduleType = 2
vm.dialogData.mappingId = '' vm.dialogData.mappingId = null
vm.componentList.moduleModelList.push(vm.dialogData) vm.componentList.moduleModelList.push(vm.dialogData)
vm.firstTab = vm.componentList.moduleModelList.length + '' vm.firstTab = vm.componentList.moduleModelList.length + ''
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册