|
@@ -59,18 +59,18 @@
|
|
|
<el-tab-pane label="列表页初始化" name="init">
|
|
|
<el-form ref="formInit" label-width="60px">
|
|
|
<el-row v-for="(row, index) in tabData.initList" :key="row.id" class="form-init-row">
|
|
|
- <el-col :span="9">
|
|
|
- <el-form-item label="动作" required class="pointer-input">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="动作JS" required class="pointer-input">
|
|
|
<el-input v-model="row.actionJs" readonly placeholder="click to input" @click="showEditActionCodeDialog(row, 'actionJs')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="9">
|
|
|
- <el-form-item label="检查" class="pointer-input">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="检查JS" class="pointer-input">
|
|
|
<el-input v-model="row.checkJs" readonly placeholder="click to input" @click="showEditActionCodeDialog(row, 'checkJs')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="3">
|
|
|
- <el-form-item label="超时" required>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="延迟(MS)" required label-width="90px">
|
|
|
<el-input v-model.trim="row.sleepTime"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -233,6 +233,7 @@
|
|
|
<CodeEditor v-model:show="codeEditorShow" ref="codeEditor" @save="onCodeEditorSave" />
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
+
|
|
|
<script setup>
|
|
|
import { ref, reactive, defineEmits, computed, watchEffect } from 'vue';
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
@@ -593,7 +594,6 @@ const showEditActionCodeDialog = (row, key) => {
|
|
|
}
|
|
|
|
|
|
const onCodeEditorSave = ({ text, key }) => {
|
|
|
- console.log(text, key, currentCodeEditingRow)
|
|
|
currentCodeEditingRow[key] = text
|
|
|
}
|
|
|
|
|
@@ -729,4 +729,12 @@ defineExpose({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.form-init-row {
|
|
|
+ ::v-deep {
|
|
|
+ .el-form-item__label {
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|