|
10 | 10 | <body>
|
11 | 11 | <div id="vapp" v-cloak>
|
12 | 12 | <div class="toolsbar">
|
13 |
| - <btngroup show="新增,修改,删除" ref='btngroup' @delete="deleteData" path="OrganModify" width="600" height="500" |
| 13 | + <btngroup show="新增,修改" ref='btngroup' @delete="deleteData" path="OrganModify" width="600" height="500" |
14 | 14 | :selects='selects' idkey='Org_ID' table="datatables"></btngroup>
|
15 | 15 | <query_panel :model="form" :loading="loading" @search="handleCurrentChange(1)">
|
16 | 16 | <el-form-item label="等级">
|
|
40 | 40 | <span>{{(form.index - 1) * form.size + scope.$index + 1}}</span>
|
41 | 41 | </template>
|
42 | 42 | </el-table-column>
|
| 43 | + <el-table-column label="名称" align="center"> |
43 | 44 | <el-table-column label="机构名称" min-width="200">
|
44 | 45 | <template slot-scope="scope">
|
45 | 46 | <el-tooltip v-if='scope.row.Org_IsRoot' effect="light" content="根机构" placement="left-start">
|
|
49 | 50 | <span class="def" icon="ꀆ" style="font-size: 16px;"></span>
|
50 | 51 | </el-tooltip>
|
51 | 52 |
|
52 |
| - <span v-html='showsearch(scope.row.Org_Name,form.search)'></span> |
| 53 | + <span v-html='showsearch(scope.row.Org_Name,form.search)' class="large"></span> |
53 | 54 | </template>
|
54 | 55 | </el-table-column>
|
55 | 56 | <el-table-column label="平台名称" min-width="180">
|
56 | 57 | <template slot-scope="scope">
|
57 |
| - <el-tooltip v-if='scope.row.Org_ID==current.Org_ID' effect="light" content="当前机构" |
58 |
| - placement="left-start"> |
59 |
| - <span class="root" icon="ꀠ" style="font-size: 16px;"></span> |
60 |
| - </el-tooltip> |
61 | 58 | <span v-html='scope.row.Org_PlatformName'></span>
|
62 | 59 | </template>
|
63 | 60 | </el-table-column>
|
| 61 | + </el-table-column> |
| 62 | + <el-table-column label="类型" align="center"> |
| 63 | + <el-table-column label="当前机构" width="80" align="center"> |
| 64 | + <template slot-scope="scope"> |
| 65 | + <el-tooltip v-if='scope.row.Org_ID==current.Org_ID' effect="light" content="当前机构" |
| 66 | + placement="left-start"> |
| 67 | + <span class="root" icon="ꀠ">当前机构</span> |
| 68 | + </el-tooltip> |
| 69 | + </template> |
| 70 | + </el-table-column> |
| 71 | + <el-table-column label="默认机构" width="80" align="center"> |
| 72 | + <template slot-scope="scope"> |
| 73 | + <el-tooltip v-if='scope.row.Org_IsDefault' effect="light" content="默认机构" |
| 74 | + placement="left-start"> |
| 75 | + <span class="def" icon="ꀆ">默认机构</span> |
| 76 | + </el-tooltip> |
| 77 | + </template> |
| 78 | + </el-table-column> |
| 79 | + |
| 80 | + <el-table-column label="根机构" width="80" align="center"> |
| 81 | + <template slot-scope="scope"> |
| 82 | + <el-tooltip v-if='scope.row.Org_IsRoot' effect="light" content="根机构" placement="left-start"> |
| 83 | + <span class="root" icon="ꀃ">根机构</span> |
| 84 | + </el-tooltip> |
| 85 | + </template> |
| 86 | + </el-table-column> |
| 87 | + </el-table-column> |
| 88 | + |
64 | 89 | <el-table-column label="二级域名" width="80" align="center">
|
65 | 90 | <template slot-scope="scope">
|
66 | 91 | <el-link :href="domainLink(scope.row.Org_TwoDomain)" target="_blank"
|
|
72 | 97 | <span v-html='scope.row.Olv_Name'></span>
|
73 | 98 | </template>
|
74 | 99 | </el-table-column>
|
| 100 | + |
| 101 | + <el-table-column label="状态" align="center"> |
| 102 | + |
75 | 103 | <el-table-column label="审核" width="80" align="center">
|
76 | 104 | <template slot-scope="scope">
|
77 | 105 | <span class="el-icon-loading" v-show="loadingid==scope.row.Org_ID"></span>
|
78 | 106 | <el-switch v-model="scope.row.Org_IsPass" @change="changeUse(scope.row,'Org_IsPass')"
|
79 |
| - v-show="loadingid!=scope.row.Org_ID" :disabled='scope.row.Org_IsRoot'> |
| 107 | + v-show="loadingid!=scope.row.Org_ID" |
| 108 | + :disabled='scope.row.Org_IsPass && (scope.row.Org_IsRoot || scope.row.Org_IsDefault)'> |
80 | 109 | </el-switch>
|
81 | 110 | </template>
|
82 | 111 | </el-table-column>
|
83 | 112 | <el-table-column label="启用" width="80" align="center">
|
84 | 113 | <template slot-scope="scope">
|
85 | 114 | <span class="el-icon-loading" v-show="loadingid==scope.row.Org_ID"></span>
|
86 | 115 | <el-switch v-model="scope.row.Org_IsUse" @change="changeUse(scope.row,'Org_IsUse')"
|
87 |
| - v-show="loadingid!=scope.row.Org_ID" :disabled='scope.row.Org_IsRoot'> |
| 116 | + v-show="loadingid!=scope.row.Org_ID" |
| 117 | + :disabled='scope.row.Org_IsUse && (scope.row.Org_IsRoot || scope.row.Org_IsDefault)'> |
88 | 118 | </el-switch>
|
89 | 119 | </template>
|
90 | 120 | </el-table-column>
|
91 | 121 | <el-table-column label="显示" width="80" align="center">
|
92 | 122 | <template slot-scope="scope">
|
93 | 123 | <span class="el-icon-loading" v-show="loadingid==scope.row.Org_ID"></span>
|
94 | 124 | <el-switch v-model="scope.row.Org_IsShow" @change="changeUse(scope.row,'Org_IsShow')"
|
95 |
| - v-show="loadingid!=scope.row.Org_ID" :disabled='scope.row.Org_IsRoot'> |
| 125 | + v-show="loadingid!=scope.row.Org_ID" |
| 126 | + :disabled='scope.row.Org_IsShow && (scope.row.Org_IsRoot || scope.row.Org_IsDefault)'> |
96 | 127 | </el-switch>
|
97 | 128 | </template>
|
98 | 129 | </el-table-column>
|
| 130 | + </el-table-column> |
99 | 131 | <el-table-column label="操作" width="80" align="center">
|
100 | 132 | <template slot-scope="scope">
|
101 | 133 | <el-dropdown>
|
|
122 | 154 | 修改
|
123 | 155 | </el-dropdown-item>
|
124 | 156 | <el-dropdown-item type="danger" icon="el-icon-delete" style="color:#F56C6C"
|
| 157 | + v-if='!scope.row.Org_IsRoot && !scope.row.Org_IsDefault' |
125 | 158 | @click.native='$refs.btngroup.delete(scope.row.Org_ID,{})'>
|
126 | 159 | 删除
|
127 | 160 | </el-dropdown-item>
|
|
0 commit comments