界面优化:去掉json格式,去掉转换按钮,去掉转换后区域
This commit is contained in:
@@ -257,6 +257,7 @@
|
|||||||
<a-col :span="10">
|
<a-col :span="10">
|
||||||
<!-- 原标题文字 -->
|
<!-- 原标题文字 -->
|
||||||
<a-label style="font-weight: bolder;" >新增岗位信息</a-label>
|
<a-label style="font-weight: bolder;" >新增岗位信息</a-label>
|
||||||
|
<!-- 暂时没有其他格式得,默认就是text
|
||||||
<a-button
|
<a-button
|
||||||
:type="btn1Type"
|
:type="btn1Type"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -273,8 +274,10 @@
|
|||||||
>
|
>
|
||||||
JSON
|
JSON
|
||||||
</a-button>
|
</a-button>
|
||||||
|
-->
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="14">
|
<a-col :span="14">
|
||||||
|
<!-- 在提交得时候自动进行转换 , 仅保留文字润色功能
|
||||||
<a-button
|
<a-button
|
||||||
type="default"
|
type="default"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -283,6 +286,7 @@
|
|||||||
>
|
>
|
||||||
转换
|
转换
|
||||||
</a-button>
|
</a-button>
|
||||||
|
-->
|
||||||
<a-button
|
<a-button
|
||||||
type="default"
|
type="default"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -307,7 +311,7 @@
|
|||||||
layout="horizontal"
|
layout="horizontal"
|
||||||
>
|
>
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :span="12">
|
<a-col :span="24">
|
||||||
<!-- 单行输入框 -->
|
<!-- 单行输入框 -->
|
||||||
<a-form-item label="" name="infoin">
|
<a-form-item label="" name="infoin">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
@@ -319,7 +323,7 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
<a-col :span="12">
|
<a-col :span="0">
|
||||||
<div style="width: 375px;height: 340px;overflow-y: scroll;">
|
<div style="width: 375px;height: 340px;overflow-y: scroll;">
|
||||||
<!-- 多行文本框 -->
|
<!-- 多行文本框 -->
|
||||||
<div v-for="(item, index) in formData.infoDetail"
|
<div v-for="(item, index) in formData.infoDetail"
|
||||||
@@ -608,12 +612,14 @@ const formRules = reactive({
|
|||||||
{ required: true, message: '请输入岗位信息', trigger: 'blur' },
|
{ required: true, message: '请输入岗位信息', trigger: 'blur' },
|
||||||
{ min: 20, max: 2000, message: '岗位信息长度需在 20-2000 个字符之间', trigger: 'blur' }
|
{ min: 20, max: 2000, message: '岗位信息长度需在 20-2000 个字符之间', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
|
/* 提交时自动进行得转换,就校验啦,保留字段是因为不向改变结构,其他地方都得动
|
||||||
gwName: [ //没有对应的form元素,验证不生效
|
gwName: [ //没有对应的form元素,验证不生效
|
||||||
{ required: true, message: '未进行转换', trigger: 'blur' }
|
{ required: true, message: '未进行转换', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
infoDetail: [ //动态列表,验证不生效
|
infoDetail: [ //动态列表,验证不生效
|
||||||
{ required: true, message: '未进行转换', trigger: 'blur' }
|
{ required: true, message: '未进行转换', trigger: 'blur' }
|
||||||
]
|
]
|
||||||
|
*/
|
||||||
})
|
})
|
||||||
const saveToLocalStorage = (data, key) => {
|
const saveToLocalStorage = (data, key) => {
|
||||||
try {
|
try {
|
||||||
@@ -664,12 +670,7 @@ const handleOk = async () => {
|
|||||||
try {
|
try {
|
||||||
// 1. 表单校验
|
// 1. 表单校验
|
||||||
await formRef.value.validate()
|
await formRef.value.validate()
|
||||||
if(formData.gwName && formData.gwName != ''){
|
transText();
|
||||||
confirmLoading.value = true;
|
|
||||||
}else{
|
|
||||||
message.error('请先进行转换!')
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let jsonData = getFromLocalStorage('gangweiList');
|
let jsonData = getFromLocalStorage('gangweiList');
|
||||||
if (jsonData == null) {
|
if (jsonData == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user