|
@@ -35,9 +35,8 @@
|
|
|
</HcDialog>
|
|
|
</div>
|
|
|
<div class="hc-page-content-box">
|
|
|
- <HcCard actionSize="lg" scrollbar>
|
|
|
+ <HcCard actionSize="lg" scrollbar >
|
|
|
<template #header>
|
|
|
-
|
|
|
<div class="ml-3">
|
|
|
任务明细:<HcTooltip keys="tentative_device_approach_menu_add">
|
|
|
<el-button _icon hc-btn size="small" type="primary" @click="openEdit(1)">
|
|
@@ -46,14 +45,16 @@
|
|
|
</HcTooltip>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
- <HcTable :column="tableColumn" :datas="tableData">
|
|
|
+ <template #action>
|
|
|
+ <HcPages :pages="searchForm" @change="pageChange" style="height:150px"></HcPages>
|
|
|
+ </template>
|
|
|
+ <HcTable :column="tableColumn" :datas="tableData" >
|
|
|
<template #action="{row, index}">
|
|
|
<el-button size="small" type="primary" @click="openEdit(2)">编辑</el-button>
|
|
|
<el-button size="small" type="primary" @click="delTask">删除</el-button>
|
|
|
</template>
|
|
|
</HcTable>
|
|
|
-
|
|
|
+
|
|
|
<HcDialog :show="editTaskModal" :title="taskTitle" @close="testModalClose">
|
|
|
<el-form
|
|
|
label-position="left"
|
|
@@ -97,6 +98,9 @@
|
|
|
<el-button size="small" type="primary" @click="delTasktype">删除</el-button>
|
|
|
</template>
|
|
|
</HcTable>
|
|
|
+ <template #action>
|
|
|
+ <HcPages :pages="searchForm" @change="pageChange"></HcPages>
|
|
|
+ </template>
|
|
|
<HcDialog :show="tasktypeModal" :title="taskTypeTitle" @close="taskTypeModalClose">
|
|
|
<el-form
|
|
|
label-position="left"
|
|
@@ -145,6 +149,9 @@
|
|
|
<el-button size="small" type="primary" @click="delTaskposition">删除</el-button>
|
|
|
</template>
|
|
|
</HcTable>
|
|
|
+ <template #action>
|
|
|
+ <HcPages :pages="searchForm" @change="pageChange"></HcPages>
|
|
|
+ </template>
|
|
|
<HcDialog :show="positonModal" :title="positonModalTitle" @close="positonModalClose">
|
|
|
<el-form
|
|
|
label-position="left"
|
|
@@ -187,7 +194,15 @@ const tabsData = ref([
|
|
|
{icon: 'sun-cloudy', label: '指标依据', key: 'indicator'},
|
|
|
{icon: 'sun-cloudy', label: '岗位单价', key: 'price'},
|
|
|
])
|
|
|
-
|
|
|
+const searchForm = ref({
|
|
|
+ postType: '', name:'',
|
|
|
+ current: 1, size: 20, total: 0
|
|
|
+})
|
|
|
+//分页被点击
|
|
|
+const pageChange = ({current, size}) => {
|
|
|
+ searchForm.value.current = current
|
|
|
+ searchForm.value.size = size
|
|
|
+}
|
|
|
const tabsClick = (key) => {
|
|
|
tabsKey.value = key
|
|
|
}
|
|
@@ -499,4 +514,5 @@ const positionEdit=(type)=>{
|
|
|
position: relative;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</style>
|