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