fix : 台账更新权限
This commit is contained in:
@@ -94,7 +94,6 @@ const schema = computed(() => {
|
|||||||
const baseForm = ref()
|
const baseForm = ref()
|
||||||
const tableIns = ref()
|
const tableIns = ref()
|
||||||
const btns = ref([
|
const btns = ref([
|
||||||
{name: '表格更新', key: 'update', color: '#DED0B2', auth: ''},
|
|
||||||
{name: '导出', key: 'export', color: '#DED0B2', auth: ''}
|
{name: '导出', key: 'export', color: '#DED0B2', auth: ''}
|
||||||
])
|
])
|
||||||
const searchConfig = reactive([
|
const searchConfig = reactive([
|
||||||
@@ -221,10 +220,7 @@ const tableConfig = reactive({
|
|||||||
},
|
},
|
||||||
btns: btns.value
|
btns: btns.value
|
||||||
})
|
})
|
||||||
if (route.query.state !== '4') {
|
// const exportIds=ref([])
|
||||||
btns.value.push({name: '上传费用', key: 'add', color: '#DED0B2', auth: ''})
|
|
||||||
}
|
|
||||||
const exportIds=ref([])
|
|
||||||
const selectionChange=(data)=>{
|
const selectionChange=(data)=>{
|
||||||
console.log('data',data)
|
console.log('data',data)
|
||||||
console.log(' data.forEach(item=>item.id)', data.forEach(item=>item.id))
|
console.log(' data.forEach(item=>item.id)', data.forEach(item=>item.id))
|
||||||
@@ -248,6 +244,9 @@ const init = async () => {
|
|||||||
const {code, msg, data} = await searchUpdateLedgerData(route.query.id)
|
const {code, msg, data} = await searchUpdateLedgerData(route.query.id)
|
||||||
if (code===1000) {
|
if (code===1000) {
|
||||||
tableData.value = data
|
tableData.value = data
|
||||||
|
if(!data.view){
|
||||||
|
btns.value.push({name: '上传费用', key: 'add', color: '#DED0B2', auth: ''},{name: '表格更新', key: 'update', color: '#DED0B2', auth: ''},)
|
||||||
|
}
|
||||||
baseForm.value.setValues(data)
|
baseForm.value.setValues(data)
|
||||||
}
|
}
|
||||||
// if (code !== 1000) {
|
// if (code !== 1000) {
|
||||||
@@ -283,7 +282,7 @@ const handleUploadFee = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const exportExcelHandler = () => {
|
const exportExcelHandler = () => {
|
||||||
console.log('exportIds.value',exportIds.value)
|
// console.log('exportIds.value',exportIds.value)
|
||||||
let data = {
|
let data = {
|
||||||
projectId: route.query.id
|
projectId: route.query.id
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -347,8 +347,7 @@ const handleStandingBook = (row) => {
|
|||||||
router.push({
|
router.push({
|
||||||
name: 'Implementation/account',
|
name: 'Implementation/account',
|
||||||
query: {
|
query: {
|
||||||
id: row.projectId,
|
id: row.projectId
|
||||||
state:row.state
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
@click.stop="handleDeleteType" :disabled="disabledDelete" plain>删除
|
@click.stop="handleDeleteType" :disabled="disabledDelete" plain>删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-form :model="queryType">
|
<el-form :model="queryType" @submit.prevent="getTreeList">
|
||||||
<el-form-item prop="dictName">
|
<el-form-item prop="dictName">
|
||||||
<el-input v-model="queryType.dictName" placeholder="请输入字典类型" :suffix-icon="Search"
|
<el-input v-model="queryType.dictName" placeholder="请输入字典类型" :suffix-icon="Search"
|
||||||
clearable @clear="getTreeList" @input="getTreeList"></el-input>
|
clearable @clear="getTreeList" title="请按回车或enter键进行搜索!"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="scrollbar-dict">
|
<div class="scrollbar-dict">
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import {ElMessageBox, ElNotification} from "element-plus";
|
import {ElMessageBox, ElNotification} from "element-plus";
|
||||||
import {getMosrUser} from "@/api/workflow/process-user";
|
import {getMosrUser} from "@/api/workflow/process-user";
|
||||||
import {checkMatrix} from "../../../../api/user/user";
|
import {checkMatrix} from "@/api/user/user";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
value: {
|
value: {
|
||||||
|
|||||||
Reference in New Issue
Block a user