bug修改
This commit is contained in:
@@ -503,7 +503,8 @@ module.exports = {
|
|||||||
CannotExceed100characters:'cannot exceed 100 characters',
|
CannotExceed100characters:'cannot exceed 100 characters',
|
||||||
cantExeed:'cannot exceed ',
|
cantExeed:'cannot exceed ',
|
||||||
characters:' characters',
|
characters:' characters',
|
||||||
|
|
||||||
Processing:'Processing',
|
Processing:'Processing',
|
||||||
See:'See',
|
See:'See',
|
||||||
|
labelNameCannotDuplicate:'Label name cannot be duplicate',
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -509,4 +509,6 @@ module.exports = {
|
|||||||
characters:'字符',
|
characters:'字符',
|
||||||
Processing:'办理',
|
Processing:'办理',
|
||||||
See:'查看',
|
See:'查看',
|
||||||
|
labelNameCannotDuplicate:'标签名称不能重复',
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -335,6 +335,16 @@
|
|||||||
message: res.db_field_txt + '不能为空',
|
message: res.db_field_txt + '不能为空',
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
})
|
})
|
||||||
|
if(res.db_field_name=='standNumber'){
|
||||||
|
rule.push(
|
||||||
|
{ min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
|
||||||
|
)
|
||||||
|
}else if(res.db_field_name=='standName'){
|
||||||
|
rule.push(
|
||||||
|
{ min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
} else if (res.field_show_type === 'CHECKBOX' || res.field_show_type === 'list_multi' ||
|
} else if (res.field_show_type === 'CHECKBOX' || res.field_show_type === 'list_multi' ||
|
||||||
res.field_show_type === 'date' || res.field_show_type === 'file') {
|
res.field_show_type === 'date' || res.field_show_type === 'file') {
|
||||||
rule.push({
|
rule.push({
|
||||||
|
|||||||
@@ -176,6 +176,21 @@
|
|||||||
// this.loadData()
|
// this.loadData()
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.refresh()
|
||||||
|
},
|
||||||
|
watch:{
|
||||||
|
drawVisible(val){
|
||||||
|
if(val&&this.timer){
|
||||||
|
clearInterval(this.timer)
|
||||||
|
}else{
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.initSetTimeout(this.today)//调用每隔10秒刷新数据
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
// 定时刷新页面
|
||||||
|
refresh(){
|
||||||
const date = new Date(),
|
const date = new Date(),
|
||||||
year = date.getFullYear(),
|
year = date.getFullYear(),
|
||||||
month = date.getMonth()+1,
|
month = date.getMonth()+1,
|
||||||
@@ -188,8 +203,6 @@
|
|||||||
this.initSetTimeout(this.today)//调用每隔10秒刷新数据
|
this.initSetTimeout(this.today)//调用每隔10秒刷新数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods:{
|
|
||||||
//上传
|
//上传
|
||||||
handleUpload(){
|
handleUpload(){
|
||||||
// if(this.timer){
|
// if(this.timer){
|
||||||
@@ -200,6 +213,9 @@
|
|||||||
//调取已入库文件
|
//调取已入库文件
|
||||||
handleFileExport(){
|
handleFileExport(){
|
||||||
this.drawVisible=true
|
this.drawVisible=true
|
||||||
|
if(this.timer){
|
||||||
|
clearInterval(this.timer)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//批量删除
|
//批量删除
|
||||||
handleDel(){
|
handleDel(){
|
||||||
@@ -336,6 +352,7 @@
|
|||||||
},
|
},
|
||||||
docVisible(val){
|
docVisible(val){
|
||||||
this.drawVisible=val
|
this.drawVisible=val
|
||||||
|
|
||||||
},
|
},
|
||||||
//文件详情跳转
|
//文件详情跳转
|
||||||
detailClick(val){
|
detailClick(val){
|
||||||
|
|||||||
@@ -146,7 +146,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
afterVisibleChange(val) {
|
afterVisibleChange(val) {
|
||||||
console.log('visible', val);
|
// console.log('visible', val);
|
||||||
},
|
},
|
||||||
onClose() {
|
onClose() {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
|||||||
@@ -136,8 +136,8 @@
|
|||||||
width: 170
|
width: 170
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
labelCol: { span:4 },
|
labelCol: { span:6 },
|
||||||
wrapperCol: { span: 18 },
|
wrapperCol: { span: 16 },
|
||||||
form:{},
|
form:{},
|
||||||
rules:{
|
rules:{
|
||||||
dictName:[{ required: true, message: this.$t('PleaseEnterLabelName'), trigger: 'change' },
|
dictName:[{ required: true, message: this.$t('PleaseEnterLabelName'), trigger: 'change' },
|
||||||
@@ -209,10 +209,16 @@
|
|||||||
this.loadData()
|
this.loadData()
|
||||||
this.contentVisible=false
|
this.contentVisible=false
|
||||||
this.form={}
|
this.form={}
|
||||||
|
}else{
|
||||||
|
if(res.message='标签名称不能重复'){
|
||||||
|
this.$message.warning(this.$t('labelNameCannotDuplicate'))
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}else if(this.isEdit==0){
|
}else if(this.isEdit==0){
|
||||||
this.$delete(params,'isReadOnly')
|
this.$delete(params,'isReadOnly')
|
||||||
@@ -226,14 +232,10 @@
|
|||||||
this.form={}
|
this.form={}
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -356,8 +358,8 @@
|
|||||||
}
|
}
|
||||||
.tag-content{
|
.tag-content{
|
||||||
.tag-item{
|
.tag-item{
|
||||||
.ant-col-4{
|
.ant-col-6{
|
||||||
min-width: 100px;
|
min-width: 130px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user