Merge branch 'main' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
ea1bb7584f
|
@ -336,13 +336,13 @@ export default {
|
||||||
params.forEach((item) => {
|
params.forEach((item) => {
|
||||||
if (item) {
|
if (item) {
|
||||||
let line = item.split(/:|:/);
|
let line = item.split(/:|:/);
|
||||||
let values = item.split(line[0] + ':');
|
let values = item.substr(line[0].length + 1);
|
||||||
let required = false;
|
let required = false;
|
||||||
keyValues.push(
|
keyValues.push(
|
||||||
new KeyValue({
|
new KeyValue({
|
||||||
name: line[0],
|
name: line[0],
|
||||||
required: required,
|
required: required,
|
||||||
value: values[1],
|
value: values,
|
||||||
type: 'CONSTANT',
|
type: 'CONSTANT',
|
||||||
valid: false,
|
valid: false,
|
||||||
file: false,
|
file: false,
|
||||||
|
|
|
@ -19,7 +19,7 @@ export default {
|
||||||
let keyValues = [];
|
let keyValues = [];
|
||||||
params.forEach((item) => {
|
params.forEach((item) => {
|
||||||
let line = item.split(/:|:/);
|
let line = item.split(/:|:/);
|
||||||
let values = item.split(line[0] + ':');
|
let values = item.substr(line[0].length + 1);
|
||||||
let required = false;
|
let required = false;
|
||||||
if (line[1] === '必填' || line[1] === 'Required' || line[1] === 'true') {
|
if (line[1] === '必填' || line[1] === 'Required' || line[1] === 'true') {
|
||||||
required = true;
|
required = true;
|
||||||
|
@ -28,8 +28,7 @@ export default {
|
||||||
new KeyValue({
|
new KeyValue({
|
||||||
name: line[0],
|
name: line[0],
|
||||||
required: required,
|
required: required,
|
||||||
value: values[1],
|
value: values,
|
||||||
description: line[3],
|
|
||||||
type: 'text',
|
type: 'text',
|
||||||
valid: false,
|
valid: false,
|
||||||
file: false,
|
file: false,
|
||||||
|
|
|
@ -512,14 +512,14 @@ export default {
|
||||||
params.forEach((item) => {
|
params.forEach((item) => {
|
||||||
if (item) {
|
if (item) {
|
||||||
let line = item.split(/:|:/);
|
let line = item.split(/:|:/);
|
||||||
let values = item.split(line[0] + ':');
|
let values = item.substr(line[0].length +1);
|
||||||
|
|
||||||
let required = false;
|
let required = false;
|
||||||
keyValues.push(
|
keyValues.push(
|
||||||
new KeyValue({
|
new KeyValue({
|
||||||
name: line[0],
|
name: line[0],
|
||||||
required: required,
|
required: required,
|
||||||
value: values[1],
|
value: values,
|
||||||
type: 'text',
|
type: 'text',
|
||||||
valid: false,
|
valid: false,
|
||||||
file: false,
|
file: false,
|
||||||
|
|
|
@ -474,12 +474,12 @@ export default {
|
||||||
params.forEach(item => {
|
params.forEach(item => {
|
||||||
if (item) {
|
if (item) {
|
||||||
let line = item.split(/:|:/);
|
let line = item.split(/:|:/);
|
||||||
let values = item.split(line[0] + ":");
|
let values = item.substr(line[0].length + 1);
|
||||||
let required = false;
|
let required = false;
|
||||||
keyValues.push(new KeyValue({
|
keyValues.push(new KeyValue({
|
||||||
name: line[0],
|
name: line[0],
|
||||||
required: required,
|
required: required,
|
||||||
value: values[1],
|
value: values,
|
||||||
type: "text",
|
type: "text",
|
||||||
valid: false,
|
valid: false,
|
||||||
file: false,
|
file: false,
|
||||||
|
|
|
@ -403,13 +403,13 @@ export default {
|
||||||
params.forEach((item) => {
|
params.forEach((item) => {
|
||||||
if (item) {
|
if (item) {
|
||||||
let line = item.split(/:|:/);
|
let line = item.split(/:|:/);
|
||||||
let values = item.split(line[0] + ":");
|
let values = item.substr(line[0].length + 1);
|
||||||
let required = false;
|
let required = false;
|
||||||
keyValues.push(
|
keyValues.push(
|
||||||
new KeyValue({
|
new KeyValue({
|
||||||
name: line[0],
|
name: line[0],
|
||||||
required: required,
|
required: required,
|
||||||
value: values[1],
|
value: values,
|
||||||
type: "CONSTANT",
|
type: "CONSTANT",
|
||||||
valid: false,
|
valid: false,
|
||||||
file: false,
|
file: false,
|
||||||
|
|
Loading…
Reference in New Issue