Browse Source

修改

dev_kxc
xzt 1 year ago
parent
commit
59d22624a1
  1. 57
      jwtech-admin-page/src/views/projectAndEnterpriseBindingMange/projectBinding/index.vue

57
jwtech-admin-page/src/views/projectAndEnterpriseBindingMange/projectBinding/index.vue

@ -55,15 +55,22 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
icon="el-icon-plus"
size="mini"
:disabled="multiple"
@click="handleAdd"
v-hasPermi="['bind:project:add']"
>绑定新项目</el-button
<el-popconfirm
icon="el-icon-info"
icon-color="green"
title="确定绑定吗"
@confirm="handleAdd"
>
<el-button
slot="reference"
type="primary"
icon="el-icon-plus"
size="mini"
:disabled="multiple"
v-hasPermi="['bind:project:add']"
>绑定新项目</el-button
>
</el-popconfirm>
</el-col>
<!-- <el-col :span="1.5">
<el-button
@ -87,7 +94,13 @@
:data="infoList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" fixed />
<el-table-column
type="selection"
width="55"
align="center"
fixed
:selectable="checkSelectable"
/>
<el-table-column
label="序号"
type="index"
@ -103,9 +116,9 @@
min-width="120"
/>
<el-table-column
label="项目编"
label="项目编"
align="center"
prop="proCode"
prop="proNo"
min-width="120"
/>
<el-table-column
@ -154,12 +167,27 @@
fixed="right"
>
<template slot-scope="scope">
<el-popconfirm
icon="el-icon-info"
icon-color="green"
title="确定绑定吗"
@confirm="handleAdd(scope.row)"
>
<el-button
slot="reference"
size="mini"
type="text"
icon="el-icon-connection"
v-if="scope.row.bindStatus === '0'"
>绑定</el-button
>
</el-popconfirm>
<el-button
size="mini"
type="text"
icon="el-icon-connection"
@click="handleAdd(scope.row)"
>绑定</el-button
v-if="scope.row.bindStatus === '1'"
>绑定</el-button
>
</template>
</el-table-column>
@ -329,6 +357,9 @@ export default {
this.getTreeData();
},
methods: {
checkSelectable(row) {
return row.bindStatus === "0";
},
getList() {
this.loading = true;
legalProjectList(this.queryParams).then((res) => {

Loading…
Cancel
Save