|
@@ -10,7 +10,8 @@
|
|
|
<el-breadcrumb-item :to="{ path: '/system/userrole' }">角色管理</el-breadcrumb-item>
|
|
<el-breadcrumb-item :to="{ path: '/system/userrole' }">角色管理</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
</el-breadcrumb>
|
|
|
<span style="float: right;">
|
|
<span style="float: right;">
|
|
|
- <el-button size="mini" type="primary" style="margin-left:10px; margin-top: -4px;" @click="opendialog(null)">添加</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" type="primary" style="margin-left:10px; margin-top: -4px;" @click="opendialog(null)">添加
|
|
|
|
|
+ </el-button>
|
|
|
</span>
|
|
</span>
|
|
|
<el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
<el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
|
<el-form-item label="角色名">
|
|
<el-form-item label="角色名">
|
|
@@ -29,16 +30,18 @@
|
|
|
<el-table :data="list" bordertooltip-effect="dark" border height="calc(100vh - 230px)" style="width: 100%;">
|
|
<el-table :data="list" bordertooltip-effect="dark" border height="calc(100vh - 230px)" style="width: 100%;">
|
|
|
<el-table-column label="操作" width="140px" align="center">
|
|
<el-table-column label="操作" width="140px" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="small" @click="opendialog(scope.row)" type="text" icon="el-icon-edit" title="编辑"></el-button>
|
|
|
|
|
- <el-button size="small" type="text" style="margin-left:3px" icon="el-icon-delete" title="删除" @click="deleteroledata(scope.row)"></el-button>
|
|
|
|
|
|
|
+ <el-button size="small" @click="opendialog(scope.row)" type="text" icon="el-icon-edit" title="编辑">
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button size="small" type="text" style="margin-left:3px" icon="el-icon-delete" title="删除"
|
|
|
|
|
+ @click="deleteroledata(scope.row)"></el-button>
|
|
|
<el-button size="small" type="text" style="margin-left:3px" title="用户列表" @click="showUserList(scope.row)"><i
|
|
<el-button size="small" type="text" style="margin-left:3px" title="用户列表" @click="showUserList(scope.row)"><i
|
|
|
class="icon icon-user"></i></el-button>
|
|
class="icon icon-user"></i></el-button>
|
|
|
<el-button size="small" type="text" style="margin-left:3px" title="菜单权限" @click="setpower(scope.row)"><i
|
|
<el-button size="small" type="text" style="margin-left:3px" title="菜单权限" @click="setpower(scope.row)"><i
|
|
|
class="icon icon-file-text"></i></el-button>
|
|
class="icon icon-file-text"></i></el-button>
|
|
|
<el-button size="small" type="text" style="margin-left:3px" title="操作权限" @click="getItemPower(scope.row)"><i
|
|
<el-button size="small" type="text" style="margin-left:3px" title="操作权限" @click="getItemPower(scope.row)"><i
|
|
|
class="icon icon-lock"></i></el-button>
|
|
class="icon icon-lock"></i></el-button>
|
|
|
- <el-button size="small" type="text" style="margin-left:3px" title="容器权限" @click="setequipmentpower(scope.row)"
|
|
|
|
|
- v-if="appclient != 'lims'"><i class="icon icon-cog"></i></el-button>
|
|
|
|
|
|
|
+ <el-button size="small" type="text" style="margin-left:3px" title="容器权限"
|
|
|
|
|
+ @click="setequipmentpower(scope.row)" v-if="appclient != 'lims'"><i class="icon icon-cog"></i></el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="Realname" align="center" label="角色名" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="Realname" align="center" label="角色名" show-overflow-tooltip></el-table-column>
|
|
@@ -50,7 +53,8 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
- :page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount">
|
|
|
|
|
|
|
+ :page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
+ :total="currentItemCount">
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
|
@@ -72,13 +76,16 @@
|
|
|
|
|
|
|
|
<!-- 用户列表 -->
|
|
<!-- 用户列表 -->
|
|
|
<el-dialog title="包含用户列表" :visible.sync="userDialogVisible">
|
|
<el-dialog title="包含用户列表" :visible.sync="userDialogVisible">
|
|
|
- <el-button type="primary" size="mini" style="float: right; margin-top: -10px;margin-left :5px" @click="deleteuserdataall()">删除所有关联用户</el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" style="float: right; margin-top: -10px" @click="roleadduser()">添加</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="float: right; margin-top: -10px;margin-left :5px"
|
|
|
|
|
+ @click="deleteuserdataall()">删除所有关联用户</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="float: right; margin-top: -10px" @click="roleadduser()">添加
|
|
|
|
|
+ </el-button>
|
|
|
<br />
|
|
<br />
|
|
|
<el-table :data="userList" border>
|
|
<el-table :data="userList" border>
|
|
|
<el-table-column label="操作" width="70" align="center">
|
|
<el-table-column label="操作" width="70" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="small" type="text" style="margin-left:3px" icon="el-icon-delete" title="删除" @click="deleteuserdata(scope.row)"></el-button>
|
|
|
|
|
|
|
+ <el-button size="small" type="text" style="margin-left:3px" icon="el-icon-delete" title="删除"
|
|
|
|
|
+ @click="deleteuserdata(scope.row)"></el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="Username" align="center" label="账号" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="Username" align="center" label="账号" show-overflow-tooltip></el-table-column>
|
|
@@ -87,8 +94,9 @@
|
|
|
<el-table-column prop="Telephone" align="center" label="手机" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="Telephone" align="center" label="手机" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="座机" align="center" prop="Mobile" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="座机" align="center" prop="Mobile" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- <el-pagination @size-change="handleUserSizeChange" @current-change="handleUserCurrentChange" :current-page="currentUserPage"
|
|
|
|
|
- :page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="currentUserItemCount">
|
|
|
|
|
|
|
+ <el-pagination @size-change="handleUserSizeChange" @current-change="handleUserCurrentChange"
|
|
|
|
|
+ :current-page="currentUserPage" :page-sizes="[10, 15, 20, 25]" :page-size="size"
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper" :total="currentUserItemCount">
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="userDialogVisible = false">取 消</el-button>
|
|
<el-button @click="userDialogVisible = false">取 消</el-button>
|
|
@@ -101,8 +109,8 @@
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item label="用户">
|
|
<el-form-item label="用户">
|
|
|
- <el-select ref="selectOfficer" multiple filterable default-first-option v-model="OfficerList" placeholder="请选择"
|
|
|
|
|
- style="width: 100%">
|
|
|
|
|
|
|
+ <el-select ref="selectOfficer" multiple filterable default-first-option v-model="OfficerList"
|
|
|
|
|
+ placeholder="请选择" style="width: 100%">
|
|
|
<el-option v-for="item in selectuserlist" :key="item.Id" :label="item.Realname" :value="item.Id">
|
|
<el-option v-for="item in selectuserlist" :key="item.Id" :label="item.Realname" :value="item.Id">
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -119,7 +127,8 @@
|
|
|
|
|
|
|
|
<!-- 菜单权限 -->
|
|
<!-- 菜单权限 -->
|
|
|
<el-dialog :title="powerdialogtitle" :visible.sync="powerdialogVisible">
|
|
<el-dialog :title="powerdialogtitle" :visible.sync="powerdialogVisible">
|
|
|
- <el-tree style="border: 0" show-checkbox node-key="id" :data="modulepowerdata" :props="modulepowerProps" ref="modulepowertree">
|
|
|
|
|
|
|
+ <el-tree style="border: 0" show-checkbox node-key="id" :data="modulepowerdata" :props="modulepowerProps"
|
|
|
|
|
+ ref="modulepowertree">
|
|
|
</el-tree>
|
|
</el-tree>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="powerdialogVisible = false">取 消</el-button>
|
|
<el-button @click="powerdialogVisible = false">取 消</el-button>
|
|
@@ -129,11 +138,12 @@
|
|
|
|
|
|
|
|
<!-- 容器权限 -->
|
|
<!-- 容器权限 -->
|
|
|
<el-dialog title="容器权限" :visible.sync="powerequipmentdialogVisible">
|
|
<el-dialog title="容器权限" :visible.sync="powerequipmentdialogVisible">
|
|
|
- <el-checkbox :indeterminate="isequpicheckall" v-model="equipCheckAll" @change="handleCheckAllChange">全选</el-checkbox>
|
|
|
|
|
|
|
+ <el-checkbox :indeterminate="isequpicheckall" v-model="equipCheckAll" @change="handleCheckAllChange">全选
|
|
|
|
|
+ </el-checkbox>
|
|
|
<div style="margin-top:10px;" class="rowequippower">
|
|
<div style="margin-top:10px;" class="rowequippower">
|
|
|
<el-checkbox-group v-model="selectedequip">
|
|
<el-checkbox-group v-model="selectedequip">
|
|
|
- <el-checkbox v-for="item in equipalllist" :key="item.Id" @change="handlecheckedequpichange" :label="item.Id"
|
|
|
|
|
- :value="item.Id"> {{item.Name}}</el-checkbox>
|
|
|
|
|
|
|
+ <el-checkbox v-for="item in equipalllist" :key="item.Id" @change="handlecheckedequpichange"
|
|
|
|
|
+ :label="item.label" :value="item.value"> {{item.label}}</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -144,7 +154,8 @@
|
|
|
|
|
|
|
|
<!-- 操作权限 -->
|
|
<!-- 操作权限 -->
|
|
|
<el-dialog title="操作权限" :visible.sync="operationPowerDialogVisible">
|
|
<el-dialog title="操作权限" :visible.sync="operationPowerDialogVisible">
|
|
|
- <el-tree style="border: 0" show-checkbox node-key="id" :data="operationPowerData" :props="modulepowerProps" ref="operationPowerTree">
|
|
|
|
|
|
|
+ <el-tree style="border: 0" show-checkbox node-key="id" :data="operationPowerData" :props="modulepowerProps"
|
|
|
|
|
+ ref="operationPowerTree">
|
|
|
</el-tree>
|
|
</el-tree>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="operationPowerDialogVisible = false">取 消</el-button>
|
|
<el-button @click="operationPowerDialogVisible = false">取 消</el-button>
|
|
@@ -233,20 +244,17 @@
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.appclient = process.env.appclient
|
|
this.appclient = process.env.appclient
|
|
|
- // initial data
|
|
|
|
|
this.initData()
|
|
this.initData()
|
|
|
this.getallequipmentlist()
|
|
this.getallequipmentlist()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
initData() {
|
|
initData() {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
- // paginate
|
|
|
|
|
const params = {
|
|
const params = {
|
|
|
_currentPage: this.currentPage,
|
|
_currentPage: this.currentPage,
|
|
|
_size: this.size,
|
|
_size: this.size,
|
|
|
keyword: this.searchform.name
|
|
keyword: this.searchform.name
|
|
|
}
|
|
}
|
|
|
- // request
|
|
|
|
|
this.$axios.get('role/list', {
|
|
this.$axios.get('role/list', {
|
|
|
params
|
|
params
|
|
|
})
|
|
})
|
|
@@ -397,7 +405,6 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.$axios.put('role/savepower?id=' + _this.operationid + '&moduleids=' + orgids, {})
|
|
_this.$axios.put('role/savepower?id=' + _this.operationid + '&moduleids=' + orgids, {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -423,7 +430,6 @@
|
|
|
_this.operationid = val.Id
|
|
_this.operationid = val.Id
|
|
|
_this.$axios.get('role/getItemPower?id=' + _this.operationid, null)
|
|
_this.$axios.get('role/getItemPower?id=' + _this.operationid, null)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
_this.operationPowerData = window.toolfun_gettreejson(res.data.Operation, 'id', 'pId', 'id,name,scope')
|
|
_this.operationPowerData = window.toolfun_gettreejson(res.data.Operation, 'id', 'pId', 'id,name,scope')
|
|
|
let selectmodels = []
|
|
let selectmodels = []
|
|
|
if (res.data.Selecteoperation) {
|
|
if (res.data.Selecteoperation) {
|
|
@@ -446,7 +452,6 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.$axios.put('role/saveOperationPower?id=' + this.operationid + '&operids=' + orgids, {})
|
|
_this.$axios.put('role/saveOperationPower?id=' + this.operationid + '&operids=' + orgids, {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -468,12 +473,16 @@
|
|
|
//容器权限
|
|
//容器权限
|
|
|
getallequipmentlist() {
|
|
getallequipmentlist() {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
- _this.$axios.get('/equipment/equipalllist', {})
|
|
|
|
|
|
|
+ _this.$axios.get('/equipment/elist', {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- _this.equipalllist = res.data.items
|
|
|
|
|
|
|
+ for (var i = 0; i < res.data.items.length / 2; i++) {
|
|
|
|
|
+ _this.equipalllist.push({
|
|
|
|
|
+ label: res.data.items[2 * i],
|
|
|
|
|
+ value: res.data.items[2 * i + 1]
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -485,24 +494,24 @@
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
var arr = res.data.split(",");
|
|
var arr = res.data.split(",");
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
for (let i = 0; i < arr.length; i++) {
|
|
|
- if (parseInt(arr[i]) > 0) {
|
|
|
|
|
- _this.selectedequip.push(parseInt(arr[i]))
|
|
|
|
|
|
|
+ if (arr[i] != '') {
|
|
|
|
|
+ _this.selectedequip.push(arr[i])
|
|
|
}
|
|
}
|
|
|
|
|
+ // if (parseInt(arr[i]) > 0) {
|
|
|
|
|
+ // _this.selectedequip.push(parseInt(arr[i]))
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
_this.handlecheckedequpichange()
|
|
_this.handlecheckedequpichange()
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
_this.powerequipmentdialogVisible = true
|
|
_this.powerequipmentdialogVisible = true
|
|
|
},
|
|
},
|
|
|
saveequiptmentpower() {
|
|
saveequiptmentpower() {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
- // request
|
|
|
|
|
this.$axios.put('/role/saveequpipower?id=' + this.operationid + '&selectedids=' + this.selectedequip, {})
|
|
this.$axios.put('/role/saveequpipower?id=' + this.operationid + '&selectedids=' + this.selectedequip, {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -519,7 +528,6 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -532,22 +540,18 @@
|
|
|
},
|
|
},
|
|
|
initUserList(rid) {
|
|
initUserList(rid) {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
- // paginate
|
|
|
|
|
const params = {
|
|
const params = {
|
|
|
_currentPage: this.currentUserPage,
|
|
_currentPage: this.currentUserPage,
|
|
|
_size: this.userSize
|
|
_size: this.userSize
|
|
|
}
|
|
}
|
|
|
- // request
|
|
|
|
|
this.$axios.get('role/getusersforrole/' + rid, {
|
|
this.$axios.get('role/getusersforrole/' + rid, {
|
|
|
params
|
|
params
|
|
|
})
|
|
})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
_this.userList = res.data.items
|
|
_this.userList = res.data.items
|
|
|
_this.currentUserItemCount = res.data.currentItemCount
|
|
_this.currentUserItemCount = res.data.currentItemCount
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -560,13 +564,11 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
this.$axios.get('users/list', {})
|
|
this.$axios.get('users/list', {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
_this.partuserlist = res.data.items
|
|
_this.partuserlist = res.data.items
|
|
|
console.log(this.partuserlist, '====')
|
|
console.log(this.partuserlist, '====')
|
|
|
this.userlistfilter()
|
|
this.userlistfilter()
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -586,10 +588,8 @@
|
|
|
}
|
|
}
|
|
|
let useridlist = tempOfficers.join(',');
|
|
let useridlist = tempOfficers.join(',');
|
|
|
let useridliststring = useridlist.toString()
|
|
let useridliststring = useridlist.toString()
|
|
|
- // request
|
|
|
|
|
this.$axios.put('role/setuserrole/' + useridliststring + '_' + this.selectRoleId, {})
|
|
this.$axios.put('role/setuserrole/' + useridliststring + '_' + this.selectRoleId, {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -606,7 +606,6 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -643,7 +642,6 @@
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
_this.$axios.delete('role/deleteuser/' + val.Id + '_' + this.selectRoleId, null)
|
|
_this.$axios.delete('role/deleteuser/' + val.Id + '_' + this.selectRoleId, null)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -670,7 +668,6 @@
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
_this.$axios.delete('role/deletealluser/' + this.selectRoleId + '', null)
|
|
_this.$axios.delete('role/deletealluser/' + this.selectRoleId + '', null)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -702,12 +699,13 @@
|
|
|
this.selectedequip = []
|
|
this.selectedequip = []
|
|
|
if (val) {
|
|
if (val) {
|
|
|
for (let i = 0; i < this.equipalllist.length; i++) {
|
|
for (let i = 0; i < this.equipalllist.length; i++) {
|
|
|
- this.selectedequip.push(this.equipalllist[i].Id)
|
|
|
|
|
|
|
+ this.selectedequip.push(this.equipalllist[i].label)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
this.isequpicheckall = false
|
|
this.isequpicheckall = false
|
|
|
},
|
|
},
|
|
|
handlecheckedequpichange() {
|
|
handlecheckedequpichange() {
|
|
|
|
|
+ console.log("wwwwwwwwwwwww", this.selectedequip)
|
|
|
let checkedCount = this.selectedequip.length
|
|
let checkedCount = this.selectedequip.length
|
|
|
this.equipCheckAll = checkedCount === this.equipalllist.length
|
|
this.equipCheckAll = checkedCount === this.equipalllist.length
|
|
|
this.isequpicheckall = checkedCount > 0 && checkedCount < this.equipalllist.length
|
|
this.isequpicheckall = checkedCount > 0 && checkedCount < this.equipalllist.length
|