|
@@ -26,6 +26,11 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #extra>
|
|
|
+ <HcTooltip keys="archives_tuning_btn_sort">
|
|
|
+ <el-button hc-btn :disabled="!searchForm.nodeIds" @click="tableSortClick">
|
|
|
+ 排序
|
|
|
+ </el-button>
|
|
|
+ </HcTooltip>
|
|
|
<el-tooltip
|
|
|
v-if="taskInfoList.length > 0"
|
|
|
class="box-item"
|
|
@@ -129,13 +134,6 @@
|
|
|
is-check is-new is-current-row
|
|
|
@selection-change="tableSelection" @row-click="tableRowClick"
|
|
|
>
|
|
|
- <template #table-column-header-num>
|
|
|
- <HcTooltip keys="archives_tuning_btn_sort">
|
|
|
- <span class="text-link text-lg" @click="tableSortClick">
|
|
|
- <HcIcon name="arrow-up-down" />
|
|
|
- </span>
|
|
|
- </HcTooltip>
|
|
|
- </template>
|
|
|
<template #name="{ row }">
|
|
|
<span class="text-link" :class="row.colourStatus === 2 ? 'text-orange' : ''" @click="viewPdf(row.id)">
|
|
|
<HcIcon v-if="row.isLock === 1" name="lock" style=" color:red;font-weight: bold;" />
|
|
@@ -393,6 +391,19 @@
|
|
|
|
|
|
<el-input v-model="startNumber" placeholder="请输入数值1、2、3" class="blue-text" @input="handleNumberInput" />
|
|
|
</hc-new-dialog>
|
|
|
+ <!-- 排序弹窗 -->
|
|
|
+ <hc-new-dialog v-model="sortModalDialog" :loading="sortModalDialogLoading" widths="20vw" @close="sortModalDialogClose" @save="sortModalDialogClick">
|
|
|
+ <template #header>
|
|
|
+ <div class="text-1xl mt-2 text-center font-bold">
|
|
|
+ 选择排序规则
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <el-radio-group v-model="sortTypeVal">
|
|
|
+ <el-radio value="1" size="large">按节点排序</el-radio>
|
|
|
+ <el-radio value="2" size="large">按流水号排序</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </hc-new-dialog>
|
|
|
</hc-body>
|
|
|
</template>
|
|
|
|
|
@@ -766,14 +777,7 @@ const movesModalClose = () => {
|
|
|
//表格排序
|
|
|
const sortModal = ref(false)
|
|
|
//显示
|
|
|
-const tableSortClick = () => {
|
|
|
-
|
|
|
- sortModal.value = true
|
|
|
- sortType.value = 1
|
|
|
- setsortTableColumn()
|
|
|
- getSortTableData()
|
|
|
|
|
|
-}
|
|
|
const intableSortClick = () => {
|
|
|
|
|
|
sortModal.value = true
|
|
@@ -1385,6 +1389,33 @@ const delClick = (item)=>{
|
|
|
resolve() //关闭弹窗的回调
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+//排序
|
|
|
+const sortModalDialog = ref(false)
|
|
|
+const sortModalDialogLoading = ref(false)
|
|
|
+const sortModalDialogClick = async () => {
|
|
|
+ const { error, code, msg } = await tuningApi.sortRule({
|
|
|
+ type: sortTypeVal.value,
|
|
|
+ projectId: projectId.value,
|
|
|
+
|
|
|
+ })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ window.$message?.success(msg)
|
|
|
+ sortModalDialogClose()
|
|
|
+ getTaskInfoList()
|
|
|
+ }
|
|
|
+}
|
|
|
+const sortModalDialogClose = ()=>{
|
|
|
+ sortModalDialog.value = false
|
|
|
+ sortTypeVal.value = '1' // 重置排序类型
|
|
|
+}
|
|
|
+const tableSortClick = () => {
|
|
|
+ console.log('排序')
|
|
|
+ sortModalDialog.value = true
|
|
|
+
|
|
|
+
|
|
|
+}
|
|
|
+const sortTypeVal = ref('1')
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|