|
|
@ -154,15 +154,15 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {httpAction, getAction} from '@/api/manage' |
|
|
|
import {httpAction, getAction} from '@/api/manage' |
|
|
|
import pick from 'lodash.pick' |
|
|
|
import pick from 'lodash.pick' |
|
|
|
import {validateDuplicateValue} from '@/utils/util' |
|
|
|
import {validateDuplicateValue} from '@/utils/util' |
|
|
|
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' |
|
|
|
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' |
|
|
|
import JDictSelectTag from '@/components/dict/JDictSelectTag' |
|
|
|
import JDictSelectTag from '@/components/dict/JDictSelectTag' |
|
|
|
import JMarkdownEditor from '@/components/jeecg/JMarkdownEditor/index' |
|
|
|
import JMarkdownEditor from '@/components/jeecg/JMarkdownEditor/index' |
|
|
|
import JEditor from '@/components/jeecg/JEditor' |
|
|
|
import JEditor from '@/components/jeecg/JEditor' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'PyBasicInfoModal', |
|
|
|
name: 'PyBasicInfoModal', |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
JSelectDepart, |
|
|
|
JSelectDepart, |
|
|
@ -206,24 +206,15 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
version: { |
|
|
|
version: { |
|
|
|
rules: [{required: true, message: '请输入版本!'}, |
|
|
|
rules: [{required: true, message: '请输入版本!'}, |
|
|
|
/*{ |
|
|
|
{ |
|
|
|
pattern: /(^[0-9]{1,2}$)|(^[0-9]{1,6}[\.]{1}[0-9]{1,1}$)/, |
|
|
|
pattern: /(^[0-9]{1,2}$)|(^[0-9]{1,6}[\.]{1}[0-9]{1,1}$)/, |
|
|
|
message: '版本整数部分输入长度最长为2位,小数点后最多一位!' |
|
|
|
message: '版本整数部分输入长度最长为2位,小数点后最多一位!' |
|
|
|
}*/ |
|
|
|
}], |
|
|
|
{ |
|
|
|
|
|
|
|
pattern: /(^[\u4e00-\u9fa5_a-zA-Z0-9_]{1,15}$)/, |
|
|
|
|
|
|
|
message: '版本不能为空且长度不能超过15!' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
trigger: 'blur' |
|
|
|
}, |
|
|
|
}, |
|
|
|
mainSubject: { |
|
|
|
mainSubject: { |
|
|
|
rules: [{required: true, message: '请输入主干学科名字!'}, |
|
|
|
rules: [{required: true, message: '请输入主干学科名字!'}, |
|
|
|
{ |
|
|
|
{pattern: /(^[\u4e00-\u9fa5_a-zA-Z0-9_]{1,15}$)/, message: '输入主干学科名字不能为空且长度不能超过15!'}], |
|
|
|
pattern: /(^[\u4e00-\u9fa5_a-zA-Z0-9_]{1,15}$)/, |
|
|
|
|
|
|
|
message: '输入主干学科名字不能为空且长度不能超过15!' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
trigger: 'blur' |
|
|
|
}, |
|
|
|
}, |
|
|
|
majorDirection: { |
|
|
|
majorDirection: { |
|
|
@ -405,7 +396,7 @@ |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<!--<style lang="stylus">--> |
|
|
|
<!--<style lang="stylus">--> |
|
|
|