Browse Source

修改

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

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

@ -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-popconfirm
icon="el-icon-info"
icon-color="green"
title="确定绑定吗"
@confirm="handleAdd"
>
<el-button <el-button
slot="reference"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleAdd"
v-hasPermi="['bind:project:add']" v-hasPermi="['bind:project:add']"
>绑定新项目</el-button >绑定新项目</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,13 +167,28 @@
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 <el-button
slot="reference"
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 === '0'"
>绑定</el-button >绑定</el-button
> >
</el-popconfirm>
<el-button
size="mini"
type="text"
icon="el-icon-connection"
v-if="scope.row.bindStatus === '1'"
>已绑定</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -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) => {

Loading…
Cancel
Save