| | |
| | | setCookie('navTabId', res.data.usercode) |
| | | setCookie('usertype', res.data.usertype) |
| | | setCookie('userid', res.data.userid) |
| | | setCookie('rediskey', res.data.rediskey) |
| | | // } |
| | | // console.log(res.code === '302', 8989) |
| | | // if (res.code === '302') { |
| | |
| | | removeCookie('navTabId') |
| | | removeCookie('usertype') |
| | | removeCookie('userid') |
| | | removeCookie('rediskey') |
| | | removeCookie('code') |
| | | |
| | | // reset visited views and cached views |
| | |
| | | removeCookie('navTabId') |
| | | removeCookie('usertype') |
| | | removeCookie('userid') |
| | | removeCookie('rediskey') |
| | | removeCookie('code') |
| | | setTimeout(() => { |
| | | sessionStorage.removeItem('tabViews') |
| | |
| | | <el-table-column |
| | | prop="partspec" |
| | | label="产åè§æ ¼" |
| | | width="160" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | > |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="usermoney" |
| | | label="è®°ä»¶å·¥èµ" |
| | | width="110" |
| | | label="çç»è®°ä»¶å·¥èµ" |
| | | width="130" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | label="æ¥å·¥æ¶é´" |
| | | width="160" |
| | | sortable="custom" |
| | | fixed="right" |
| | | /> |
| | | |
| | | </el-table> |
| | |
| | | </el-row> |
| | | <el-row /> |
| | | </el-tabs> |
| | | <!-- {{ time_data }}--> |
| | | <!-- {{ bm_data }}--> |
| | | <div class="container" style="margin: 30px;"> |
| | | <v-gantt-chart |
| | | |
| | | :start-time="time_data[0]" |
| | | :end-time="time_data[1]" |
| | | :cell-width="cellWidth" |
| | |
| | | }, |
| | | 'rows': [ |
| | | { |
| | | 'YearDate': '2022-09-24', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | | 'AdvaDevicName': 'é鼿°æ§è½¦åº029', |
| | | 'AdvaDevicCropMob': '78', |
| | | 'AdvaDevicRhythm': '10', |
| | | 'OneStartDate': '08:00~11:30', |
| | | 'TwoStartDate': '12:30~17:00', |
| | | 'ThreeStartDate': '', |
| | | 'FourStartDate': '', |
| | | 'FiveStartDate': '' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-09-25', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | | 'AdvaDevicName': 'é鼿°æ§è½¦åº029', |
| | | 'AdvaDevicCropMob': '78', |
| | | 'AdvaDevicRhythm': '10', |
| | | 'OneStartDate': '08:00~11:30', |
| | | 'TwoStartDate': '12:30~17:00', |
| | | 'ThreeStartDate': '', |
| | | 'FourStartDate': '', |
| | | 'FiveStartDate': '' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-09-26', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | | 'AdvaDevicName': 'é鼿°æ§è½¦åº029', |
| | | 'AdvaDevicCropMob': '78', |
| | | 'AdvaDevicRhythm': '10', |
| | | 'OneStartDate': '08:00~11:30', |
| | | 'TwoStartDate': '12:30~17:00', |
| | | 'ThreeStartDate': '', |
| | | 'FourStartDate': '', |
| | | 'FiveStartDate': '' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-09-27', |
| | | 'children': [ |
| | | { |
| | |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | | 'AdvaDevicName': 'é鼿°æ§è½¦åº029', |
| | | 'AdvaDevicCropMob': '78', |
| | | 'AdvaDevicRhythm': '10', |
| | | 'OneStartDate': '08:00~11:30', |
| | | 'TwoStartDate': '12:30~17:00', |
| | | 'ThreeStartDate': '', |
| | | 'FourStartDate': '', |
| | | 'FiveStartDate': '' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-09-30', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | | 'AdvaDevicName': 'é鼿°æ§è½¦åº029', |
| | | 'AdvaDevicCropMob': '78', |
| | | 'AdvaDevicRhythm': '10', |
| | | 'OneStartDate': '08:00~11:30', |
| | | 'TwoStartDate': '12:30~17:00', |
| | | 'ThreeStartDate': '', |
| | | 'FourStartDate': '', |
| | | 'FiveStartDate': '' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-10-01', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | | 'AdvaDevicName': 'é鼿°æ§è½¦åº029', |
| | | 'AdvaDevicCropMob': '78', |
| | | 'AdvaDevicRhythm': '10', |
| | | 'OneStartDate': '08:00~11:30', |
| | | 'TwoStartDate': '12:30~17:00', |
| | | 'ThreeStartDate': '', |
| | | 'FourStartDate': '', |
| | | 'FiveStartDate': '' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | 'YearDate': '2022-10-02', |
| | | 'children': [ |
| | | { |
| | | 'AdvaDevicNumber': 'LKFDL_SC-PC029', |
| | | 'AdvaDevicName': 'é鼿°æ§è½¦åº029', |
| | | 'AdvaDevicCropMob': '30', |
| | | 'AdvaDevicRhythm': '10', |
| | | 'OneStartDate': '08:00~11:30', |
| | | 'TwoStartDate': '12:30~17:00', |
| | |
| | | } |
| | | } |
| | | } |
| | | console.log(newList, 321) |
| | | for (const i in list) { |
| | | this.pushTiem(newList, list[i].id, list[i].gtArray) |
| | | } |
| | |
| | | for (const i in this.bm_data) { |
| | | const newArr = [] |
| | | for (const j in this.bm_data[i].gtArray) { |
| | | if (this.bm_data[i].gtArray[j].type != 'schedule') { |
| | | if (this.bm_data[i].gtArray[j].type !== 'schedule') { |
| | | newArr.push(this.bm_data[i].gtArray[j]) |
| | | } |
| | | } |
| | |
| | | <input |
| | | class="myCheckboxInput" |
| | | type="checkbox" |
| | | :disabled="rightFrom.usercode==='S001'" |
| | | :value="item.code" |
| | | :name="item.name" |
| | | :style="{color:item.isSelected2?'#42b983':'#fff'}" |
| | |
| | | }, |
| | | // ä¿®æ¹æé® |
| | | edit(operation, row) { |
| | | if (row.role_code === 'S001') { |
| | | return this.$message.info('æ¤è§è²æ æ³æä½ï¼') |
| | | } |
| | | |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | |
| | |
| | | }, |
| | | // å é¤æé® |
| | | del(row) { |
| | | if (row.role_code === 'S001') { |
| | | return this.$message.info('æ¤è§è²æ æ³æä½ï¼') |
| | | } |
| | | this.$confirm('æ¯å¦ç¡®è®¤å é¤?', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | |
| | | |
| | | /* å
³èç¨æ·æ¨¡å*/ |
| | | userClick(row) { |
| | | if (row.role_code === 'S001') { |
| | | return this.$message.info('æ¤è§è²æ æ³æä½ï¼') |
| | | } |
| | | this.userDialogVisible = true |
| | | this.userForm.roleName = row.role_name |
| | | this.dialogFormUser.rolecode = row.role_code |
| | |
| | | this.dialogFormRight.rightPCArr[0].children = this.dialogFormRight.rightPCArr[0].children.filter(item => item.is_delete === '0') |
| | | this.dialogFormRight.rightPCArr[0].children.forEach(item => { |
| | | item.children = item.children.filter(it => it.is_delete === '0') |
| | | |
| | | if (this.rightFrom.usercode === 'S001') { // Adminç³»ç»ç®¡çåèååå°åªå¢ä¸å |
| | | if (item.flag === 'Y') { |
| | | item.disabled = true |
| | | } |
| | | if (item.children && item.children.length > 0) { |
| | | item.children.forEach(it => { |
| | | if (it.flag === 'Y') { |
| | | it.disabled = true |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | |
| | | this.dialogFormRight.rightAPPArr[0].children.forEach(item => { |
| | | item.children = item.children.filter(it => it.is_delete === '0' || it.is_delete === null) |
| | | // item.children = item.children.filter(it => it.is_delete !== '1') |
| | | |
| | | if (this.rightFrom.usercode === 'S001') { // Adminç³»ç»ç®¡çåèååå°åªå¢ä¸å |
| | | if (item.flag === 'Y') { |
| | | item.disabled = true |
| | | } |
| | | if (item.children && item.children.length > 0) { |
| | | item.children.forEach(it => { |
| | | if (it.flag === 'Y') { |
| | | it.disabled = true |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | // console.log(this.dialogFormRight.rightAPPArr[0], 234) |
| | |
| | | } |
| | | if (this.PCTrue) { |
| | | this.dialogFormRight.rightPCArr[0].name = 'å
¨é¨' |
| | | if (this.rightFrom.usercode === 'S001') { // Adminç³»ç»ç®¡çåèååå°åªå¢ä¸å |
| | | this.dialogFormRight.rightPCArr[0].disabled = true |
| | | } |
| | | } |
| | | if (this.APPTrue) { |
| | | this.dialogFormRight.rightAPPArr[0].name = 'å
¨é¨' |
| | | if (this.rightFrom.usercode === 'S001') { // Adminç³»ç»ç®¡çåèååå°åªå¢ä¸å |
| | | this.dialogFormRight.rightAPPArr[0].disabled = true |
| | | } |
| | | } |
| | | |
| | | // æ 形忾é¨å |
| | |
| | | fixed |
| | | /> |
| | | <el-table-column |
| | | prop="right_code" |
| | | label="ç¼ç " |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="right_name" |
| | | label="ç¼ç åç§°" |
| | | sortable="custom" |