...
|
...
|
@@ -5,25 +5,29 @@ |
|
|
|
|
|
<div class="set-add-div">
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-col :span="16">
|
|
|
<div class="flex-div-start margin-top-bottom-10">
|
|
|
<el-input :size="$global.elementConfig.size.input" style="width:160px;" class="margin-right-10" v-model="keyWords" placeholder="输入关键字" />
|
|
|
|
|
|
<div class="flex-div-start">
|
|
|
<el-button :size="$global.elementConfig.size.button" type="primary" @click="onReset()">重置</el-button>
|
|
|
<el-button :size="$global.elementConfig.size.button" type="primary" @click="onBtnSearch()" style="margin-left: 10px">查询</el-button>
|
|
|
<el-button :size="$global.elementConfig.size.button" type="primary" :disabled="isLoading" @click="saveAll()" style="margin-left: 10px">批量添加</el-button>
|
|
|
<el-button :size="$global.elementConfig.size.button" type="primary" :disabled="isLoading" @click="saveAlldata()" style="margin-left: 10px">全部添加</el-button>
|
|
|
<el-button :size="$global.elementConfig.size.button" type="primary" @click="addDialtest()">新增拨测</el-button>
|
|
|
<el-button :size="$global.elementConfig.size.button" type="primary" @click="deleteDialtest()" style="margin-left: 10px">删除</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="8" class="add-flex-right">
|
|
|
<el-button :size="$global.elementConfig.size.button" type="primary" :disabled="isLoading" @click="saveAll()" style="margin-left: 10px">批量选择</el-button>
|
|
|
<el-button :size="$global.elementConfig.size.button" type="primary" :disabled="isLoading" @click="saveAlldata()" style="margin-left: 10px">全部选择</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row class="margin-bottom-50">
|
|
|
<el-col :span="24" class="table-height">
|
|
|
<cm-table-page v-show="tableDataList" :columns="columns" :dataList="tableDataList" @loaddata="loadTableDataList" :multipleSelection="dialtestMonitorListChecked"
|
|
|
:showIndex="true" :total="count" :showSelection="true" @selectionChange="selectionChange"
|
|
|
:showBorder="true" :loading="false" :pageSize="pageSize"
|
|
|
:showPage="true" :showTools="true" :height="(height - 300)">
|
|
|
:showBorder="true" :loading="false" :pageSize="pageSize" :toolsWith="150"
|
|
|
:showPage="true" :showTools="true" :height="(height - 440)">
|
|
|
<template #default="{row,prop,column}">
|
|
|
<div v-if="prop == 'url'" class="text-overflow" :title="row.url">
|
|
|
<span class="">{{row.url }}</span>
|
...
|
...
|
@@ -32,7 +36,10 @@ |
|
|
</template>
|
|
|
<template #tools="{scope}">
|
|
|
<el-button type="text" size="small" @click.prevent="addRes(scope.row,scope.$index)">
|
|
|
<i class="el-icon-plus"/> 添加
|
|
|
<i class="el-icon-plus"/> 选择
|
|
|
</el-button>
|
|
|
<el-button type="text" size="small" @click.prevent="editDialtest(scope.row,scope.$index)">
|
|
|
<i class="el-icon-edit"/> 编辑
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</cm-table-page>
|
...
|
...
|
@@ -48,5 +55,42 @@ |
|
|
</div>
|
|
|
</template>
|
|
|
</cm-dialog>
|
|
|
<cm-dialog :title="dialtestTitleName" width="60%" :showDialogVisible="addDialtestMonitorVisible" @hidedialog="addCloseDialog" :showFooter="false">
|
|
|
<template v-slot>
|
|
|
<el-row style="min-height: 450px;">
|
|
|
<el-col :span="24">
|
|
|
<el-form :model="form" label-width="120px">
|
|
|
<el-form-item label="任务名称">
|
|
|
<el-input v-model="form.taskName" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="任务id">
|
|
|
<el-input v-model="form.taskId" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="拨测简称">
|
|
|
<el-input maxlength="5" show-word-limit v-model="form.shortName" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="任务类型">
|
|
|
<el-radio-group v-model="form.taskType">
|
|
|
<el-radio label="1">页面拨测</el-radio>
|
|
|
<el-radio label="2">实物拨测</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="URL地址">
|
|
|
<el-input v-model="form.url" type="textarea" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="备注">
|
|
|
<el-input v-model="form.remark" type="textarea" />
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
<div class="margin-top btn-faultDiagnosis flex-end-button">
|
|
|
<el-button @click="addCloseDialog(false)">取消</el-button>
|
|
|
<el-button @click="saveDialtest" type="primary">保存</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</cm-dialog>
|
|
|
|
|
|
|
...
|
...
|
|