|
@@ -4,9 +4,10 @@
|
|
v-if="isAfterRender" :column="tableColumn" :datas="tableData" :index-style="{ width: 60 }" is-check
|
|
v-if="isAfterRender" :column="tableColumn" :datas="tableData" :index-style="{ width: 60 }" is-check
|
|
:check-style="{ fixed: true, width: 29 }" class="hc-project-list-table" @selection-change="tableCheckChange"
|
|
:check-style="{ fixed: true, width: 29 }" class="hc-project-list-table" @selection-change="tableCheckChange"
|
|
>
|
|
>
|
|
- <template #key1="{ row }">
|
|
|
|
- <el-link type="primary" @click="rowNameClick(row)">{{ row.key1 }}</el-link>
|
|
|
|
|
|
+ <template #name="{ row }">
|
|
|
|
+ <el-link type="primary" @click="rowNameClick(row)">{{ row.name }}</el-link>
|
|
</template>
|
|
</template>
|
|
|
|
+
|
|
<template #action="{ row }">
|
|
<template #action="{ row }">
|
|
<el-link v-if="isAdminAuth" type="warning" @click="completion(row)">项目完成情况</el-link>
|
|
<el-link v-if="isAdminAuth" type="warning" @click="completion(row)">项目完成情况</el-link>
|
|
<el-link type="primary" @click="examine(row)">查看</el-link>
|
|
<el-link type="primary" @click="examine(row)">查看</el-link>
|
|
@@ -235,6 +236,14 @@ const props = defineProps({
|
|
type: Boolean,
|
|
type: Boolean,
|
|
default: false,
|
|
default: false,
|
|
},
|
|
},
|
|
|
|
+ loading: {
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: false,
|
|
|
|
+ },
|
|
|
|
+ datas: {
|
|
|
|
+ type: Array,
|
|
|
|
+ default: () => ([]),
|
|
|
|
+ },
|
|
})
|
|
})
|
|
|
|
|
|
//事件
|
|
//事件
|
|
@@ -258,34 +267,31 @@ onMounted(() => {
|
|
|
|
|
|
//表头
|
|
//表头
|
|
const tableColumn = ref([
|
|
const tableColumn = ref([
|
|
- { key: 'key01', name: '项目阶段' },
|
|
|
|
- { key: 'key2', name: '项目类型' },
|
|
|
|
- { key: 'key1', name: '项目名称' },
|
|
|
|
- { key: 'key3', name: '建设规模' },
|
|
|
|
- { key: 'key4', name: '开工年' },
|
|
|
|
- { key: 'key5', name: '完工年' },
|
|
|
|
- { key: 'key55', name: '总投资(亿元)' },
|
|
|
|
- { key: 'key56', name: '\'十四五\'计划投资(亿元)' },
|
|
|
|
- { key: 'key57', name: '市级重点项目' },
|
|
|
|
- { key: 'key58', name: '交通强国建设试点任务' },
|
|
|
|
- { key: 'key59', name: '完成投资金额(亿元)' },
|
|
|
|
- { key: 'key11', name: '项目进展比例(%)' },
|
|
|
|
- { key: 'key12', name: '完成情况填写比例(%)' },
|
|
|
|
- { key: 'key13', name: '牵头单位' },
|
|
|
|
- { key: 'key14', name: '配合单位' },
|
|
|
|
- { key: 'key15', name: '责任单位' },
|
|
|
|
|
|
+ { key: 'projectStageName', name: '项目阶段' },
|
|
|
|
+ { key: 'projectTypeName', name: '项目类型' },
|
|
|
|
+ { key: 'name', name: '项目名称' },
|
|
|
|
+ { key: 'buildScaleName', name: '建设规模' },
|
|
|
|
+ { key: 'startYear', name: '开工年' },
|
|
|
|
+ { key: 'endYear', name: '完工年' },
|
|
|
|
+ { key: 'allInvest', name: '总投资(亿元)' },
|
|
|
|
+ { key: 'fourteenFiveInvest', name: '\'十四五\'计划投资(亿元)' },
|
|
|
|
+ { key: 'isFocusProjectName', name: '市级重点项目' },
|
|
|
|
+ { key: 'isPilotPlanName', name: '交通强国建设试点任务' },
|
|
|
|
+ { key: 'finishedInvestMoney', name: '完成投资金额(亿元)' },
|
|
|
|
+ { key: 'progressRatio', name: '项目进展比例(%)' },
|
|
|
|
+ { key: 'finishedFillRatio', name: '完成情况填写比例(%)' },
|
|
|
|
+ { key: 'leaderUnit', name: '牵头单位' },
|
|
|
|
+ { key: 'assistUnit', name: '配合单位' },
|
|
|
|
+ { key: 'dutyUnit', name: '责任单位' },
|
|
{ key: 'action', name: '操作', width: isAdminAuth.value ? 220 : 100, fixed:'right', align: 'center' },
|
|
{ key: 'action', name: '操作', width: isAdminAuth.value ? 220 : 100, fixed:'right', align: 'center' },
|
|
])
|
|
])
|
|
|
|
|
|
-//表格数据
|
|
|
|
-const tableData = ref([
|
|
|
|
- { id: 1, key1: '名称1', key2: '-', key3: '-' },
|
|
|
|
- { id: 2, key1: '名称2', key2: '-', key3: '-' },
|
|
|
|
- { id: 3, key1: '名称3', key2: '-', key3: '-' },
|
|
|
|
- { id: 4, key1: '名称4', key2: '-', key3: '-' },
|
|
|
|
- { id: 5, key1: '名称5', key2: '-', key3: '-' },
|
|
|
|
-])
|
|
|
|
-
|
|
|
|
|
|
+//监听数据
|
|
|
|
+const tableData = ref(props.datas)
|
|
|
|
+watch(() => props.datas, (data) => {
|
|
|
|
+ console.log(data, 'data')
|
|
|
|
+ tableData.value = data
|
|
|
|
+})
|
|
//表格被选择
|
|
//表格被选择
|
|
const tableCheckKeys = ref([])
|
|
const tableCheckKeys = ref([])
|
|
const tableCheckChange = (rows) => {
|
|
const tableCheckChange = (rows) => {
|