|
@@ -21,14 +21,17 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="设备类型">
|
|
<a-form-item label="设备类型">
|
|
|
- <a-tree-select style="width: 100%" :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }" :treeData="treeData" :treeNodeFilterProp="'title'" :showSearch="true" v-model="queryParam.typeId" placeholder="请选择">
|
|
|
|
|
|
|
+ <a-tree-select style="width: 100%" :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
|
|
+ :treeData="treeData" :treeNodeFilterProp="'title'" :showSearch="true" v-model="queryParam.typeId"
|
|
|
|
|
+ placeholder="请选择">
|
|
|
</a-tree-select>
|
|
</a-tree-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="设备等级">
|
|
<a-form-item label="设备等级">
|
|
|
<a-select mode="multiple" v-model="queryParam.sbLevelList" placeholder="请选择">
|
|
<a-select mode="multiple" v-model="queryParam.sbLevelList" placeholder="请选择">
|
|
|
- <a-select-option v-for="(label,value) in sbLevelMap" :key="value" :label="label" :value="parseInt(value)">{{ label }}
|
|
|
|
|
|
|
+ <a-select-option v-for="(label, value) in sbLevelMap" :key="value" :label="label"
|
|
|
|
|
+ :value="parseInt(value)">{{ label }}
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -36,7 +39,8 @@
|
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="维护等级">
|
|
<a-form-item label="维护等级">
|
|
|
<a-select mode="multiple" v-model="queryParam.levelList" placeholder="请选择">
|
|
<a-select mode="multiple" v-model="queryParam.levelList" placeholder="请选择">
|
|
|
- <a-select-option v-for="(label,value) in levelMap" :key="value" :label="label" :value="parseInt(value)">{{ label }}
|
|
|
|
|
|
|
+ <a-select-option v-for="(label, value) in levelMap" :key="value" :label="label"
|
|
|
|
|
+ :value="parseInt(value)">{{ label }}
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -44,7 +48,8 @@
|
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="计划周期">
|
|
<a-form-item label="计划周期">
|
|
|
<a-select mode="multiple" v-model="queryParam.periodTypeList" placeholder="请选择">
|
|
<a-select mode="multiple" v-model="queryParam.periodTypeList" placeholder="请选择">
|
|
|
- <a-select-option v-for="(label,value) in periodTypeMap" :key="value" :label="label" :value="parseInt(value)">{{ label }}
|
|
|
|
|
|
|
+ <a-select-option v-for="(label, value) in periodTypeMap" :key="value" :label="label"
|
|
|
|
|
+ :value="parseInt(value)">{{ label }}
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -60,11 +65,14 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<a-space class="table-operator">
|
|
<a-space class="table-operator">
|
|
|
- <a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))" type="primary" icon="plus" @click="$refs.baseModal.base()">新增
|
|
|
|
|
|
|
+ <a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))" type="primary"
|
|
|
|
|
+ icon="plus" @click="$refs.baseModal.base()">新增
|
|
|
</a-button>
|
|
</a-button>
|
|
|
- <a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))" type="primary" icon="plus" @click="handleBatchAdd">批量新增
|
|
|
|
|
|
|
+ <a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))" type="primary"
|
|
|
|
|
+ icon="plus" @click="handleBatchAdd">批量新增
|
|
|
</a-button>
|
|
</a-button>
|
|
|
- <a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))" :disabled="selectedRowKeys.length === 0" type="primary" icon="plus" @click="handleBatchEdit">批量调整标准
|
|
|
|
|
|
|
+ <a-button v-if="($auth('check-spot-standards-add') || $auth('check-polling-standards-add'))"
|
|
|
|
|
+ :disabled="selectedRowKeys.length === 0" type="primary" icon="plus" @click="handleBatchEdit">批量调整标准
|
|
|
</a-button>
|
|
</a-button>
|
|
|
<!-- <a-button style="margin-left:8px;" type="primary" @click="doImport">
|
|
<!-- <a-button style="margin-left:8px;" type="primary" @click="doImport">
|
|
|
<a-icon type="upload"/>
|
|
<a-icon type="upload"/>
|
|
@@ -78,13 +86,15 @@
|
|
|
<a-icon type="upload"/>
|
|
<a-icon type="upload"/>
|
|
|
修改导入
|
|
修改导入
|
|
|
</a-button> -->
|
|
</a-button> -->
|
|
|
- <a-button v-if="($auth('check-spot-standards-export')||$auth('check-polling-standards-export'))" type="primary" icon="download" @click="doExport">导出
|
|
|
|
|
|
|
+ <a-button v-if="($auth('check-spot-standards-export') || $auth('check-polling-standards-export'))" type="primary"
|
|
|
|
|
+ icon="download" @click="doExport">导出
|
|
|
</a-button>
|
|
</a-button>
|
|
|
<a-button :confirmLoading="confirmLoading" type="primary" @click="doUpdateNo">
|
|
<a-button :confirmLoading="confirmLoading" type="primary" @click="doUpdateNo">
|
|
|
<a-icon type="upload" />
|
|
<a-icon type="upload" />
|
|
|
初始化编码
|
|
初始化编码
|
|
|
</a-button>
|
|
</a-button>
|
|
|
- <a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && ($auth('check-spot-standards-del')||$auth('check-polling-standards-del'))">
|
|
|
|
|
|
|
+ <a-dropdown v-action:edit
|
|
|
|
|
+ v-if="selectedRowKeys.length > 0 && ($auth('check-spot-standards-del') || $auth('check-polling-standards-del'))">
|
|
|
<a-menu slot="overlay">
|
|
<a-menu slot="overlay">
|
|
|
<a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
|
|
<a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
|
|
|
<a-menu-item key="1">
|
|
<a-menu-item key="1">
|
|
@@ -99,7 +109,9 @@
|
|
|
</a-dropdown>
|
|
</a-dropdown>
|
|
|
</a-space>
|
|
</a-space>
|
|
|
|
|
|
|
|
- <s-table ref="table" size="default" rowKey="id" :columns="columns" :scroll="{x: 1500, y: BaseTool.Constant.scrollY }" :data="loadData" :alert="options.alert" :rowSelection="options.rowSelection" showPagination="auto">
|
|
|
|
|
|
|
+ <s-table ref="table" size="default" rowKey="id" :columns="columns"
|
|
|
|
|
+ :scroll="{ x: 1500, y: BaseTool.Constant.scrollY }" :data="loadData" :alert="options.alert"
|
|
|
|
|
+ :rowSelection="options.rowSelection" showPagination="auto">
|
|
|
<span slot="enable" slot-scope="text">
|
|
<span slot="enable" slot-scope="text">
|
|
|
<badge :status="DictCache.COLOR.YES_NO[text]" :text="enableMap[text]" />
|
|
<badge :status="DictCache.COLOR.YES_NO[text]" :text="enableMap[text]" />
|
|
|
</span>
|
|
</span>
|
|
@@ -109,9 +121,11 @@
|
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
|
<a @click="handleViewCheckJob(record)">保养任务</a>
|
|
<a @click="handleViewCheckJob(record)">保养任务</a>
|
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
|
- <a v-if="($auth('check-spot-standards-edit')||$auth('check-polling-standards-edit'))" @click="handleEdit(record)">修改</a>
|
|
|
|
|
|
|
+ <a v-if="($auth('check-spot-standards-edit') || $auth('check-polling-standards-edit'))"
|
|
|
|
|
+ @click="handleEdit(record)">修改</a>
|
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
|
- <a-popconfirm v-if="($auth('check-spot-standards-del')||$auth('check-polling-standards-del'))" title="是否要删除该条数据?" @confirm="batchDelete(record.id)">
|
|
|
|
|
|
|
+ <a-popconfirm v-if="($auth('check-spot-standards-del') || $auth('check-polling-standards-del'))"
|
|
|
|
|
+ title="是否要删除该条数据?" @confirm="batchDelete(record.id)">
|
|
|
<a>删除</a>
|
|
<a>删除</a>
|
|
|
</a-popconfirm>
|
|
</a-popconfirm>
|
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
@@ -181,9 +195,8 @@ export default {
|
|
|
width: '100px',
|
|
width: '100px',
|
|
|
checked: true,
|
|
checked: true,
|
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
|
- return `${
|
|
|
|
|
- (this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize + index + 1
|
|
|
|
|
- }`
|
|
|
|
|
|
|
+ return `${(this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize + index + 1
|
|
|
|
|
+ }`
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -261,7 +274,7 @@ export default {
|
|
|
{
|
|
{
|
|
|
title: '操作',
|
|
title: '操作',
|
|
|
key: 'action',
|
|
key: 'action',
|
|
|
- width: '250px',
|
|
|
|
|
|
|
+ width: '300px',
|
|
|
checked: true,
|
|
checked: true,
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
align: 'center',
|
|
align: 'center',
|