|
@@ -20,7 +20,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #extra>
|
|
|
- <el-button size="large" type="primary" hc-btn @click="addRowClick">
|
|
|
+ <el-button size="large" type="primary" hc-btn :disabled="searchForm.areaId.length < 1" @click="addRowClick">
|
|
|
<HcIcon name="add" />
|
|
|
<span>新增</span>
|
|
|
</el-button>
|
|
@@ -35,7 +35,7 @@
|
|
|
</template>
|
|
|
<HcTable :column="tableColumn" :datas="tableData" :loading="tableLoading" is-check @selection-change="tableSelectionChange">
|
|
|
<template #action="{ row, index }">
|
|
|
- <el-button size="small" type="primary" @click="editRowClick(row)">
|
|
|
+ <el-button size="small" type="primary" :disabled="row?.isQuote === '1'" @click="editRowClick(row)">
|
|
|
修改
|
|
|
</el-button>
|
|
|
<el-button size="small" type="warning" @click="viewPdf(row)">
|
|
@@ -130,6 +130,7 @@ const tableSelectionChange = (rows) => {
|
|
|
|
|
|
//新增
|
|
|
const addRowClick = () => {
|
|
|
+if (searchForm.value.areaId) {
|
|
|
router.push({
|
|
|
name: 'lar-agree-land-form',
|
|
|
query:{
|
|
@@ -137,6 +138,10 @@ const addRowClick = () => {
|
|
|
areaId:areaId.value,
|
|
|
},
|
|
|
})
|
|
|
+} else {
|
|
|
+ window.$message.warning('请先选择左侧节点')
|
|
|
+}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//编辑
|