Merge branch 'master' of http://www.beijingsoft.cn:9090/r/smart-web
| | |
| | | /* |
| | | * @Date: 2024-04-04 23:26:03 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-04 23:33:51 |
| | | * @LastEditTime: 2024-04-09 20:39:23 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/calender.js |
| | | */ |
| | | import config from "@/config" |
| | |
| | | return await http.post(this.url, data, {params}); |
| | | }, |
| | | }, |
| | | getShiftsystemList: { |
| | | url: `${config.API_URL}/blade-cps/shift/page`, |
| | | name: "è·åçå¶å表", |
| | | post: async function({data,params}){ |
| | | return await http.post(this.url, {},{data, params}); |
| | | }, |
| | | }, |
| | | getShiftsystemInfo: { |
| | | url: `${config.API_URL}/blade-cps/shift/`, |
| | | name: "è·åçå¶ä¿¡æ¯", |
| | | get: async function({id}){ |
| | | return await http.get(`${this.url}${id}`, {},{}); |
| | | }, |
| | | }, |
| | | } |
| | |
| | | /* |
| | | * @Date: 2024-04-07 21:49:32 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2024-04-08 14:58:49 |
| | | * @FilePath: /cps-web/src/api/model/time.js |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-09 20:25:53 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/time.js |
| | | */ |
| | | import config from "@/config" |
| | | import http from "@/utils/request" |
| | |
| | | }, |
| | | |
| | | }, |
| | | |
| | | } |
| | |
| | | <div class="logo-bar personalized-logo"> |
| | | <!-- <img class="logo" src="img/logo.png"> |
| | | <span>{{ $CONFIG.APP_NAME }}</span> --> |
| | | <img src="/img/initiallong.b9495273.png" class="img" style="width: 100%; height: 100%;"> |
| | | <img src="/img/initiallong.b9495273.png" class="img" style="width: 100%; height: 70%;"> |
| | | </div> |
| | | </div> |
| | | <div class="adminui-header-right"> |
| | |
| | | <!-- |
| | | * @Date: 2024-04-04 22:45:43 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-07 20:31:00 |
| | | * @LastEditTime: 2024-04-09 20:15:57 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/base/CalenderTab.vue |
| | | --> |
| | | <template> |
| | |
| | | <el-button type="primary">å é¤</el-button> |
| | | </el-header> |
| | | <el-main> |
| | | <Calendar :rows="12" disable-page-swipe :nav-visibility="''" :attributes='attributes'/> |
| | | <Calendar :min-date="minDate" :rows="1" disable-page-swipe :nav-visibility="''" :attributes='attributes'/> |
| | | </el-main> |
| | | </el-container> |
| | | </el-container> |
| | |
| | | ], |
| | | current: 0, |
| | | total: 1, |
| | | caleList: [] |
| | | caleList: [], |
| | | minDate: '', |
| | | maxDate: '' |
| | | } |
| | | }, |
| | | created() { |
| | | this.load() |
| | | this.init() |
| | | }, |
| | | methods: { |
| | | init () { |
| | | this.minDate = new Date('2024-01-01') |
| | | this.maxDate = new Date('2024-01-31') |
| | | }, |
| | | load() { |
| | | if (this.current * 15 >= this.total) { |
| | | return |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Date: 2024-04-09 20:19:46 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-09 20:38:18 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/base/Shiftsystem.vue |
| | | --> |
| | | <template> |
| | | <el-container> |
| | | <el-aside width="320px"> |
| | | <el-table :data="tableData" stripe style="width: 100%" @row-click="rowClick"> |
| | | <el-table-column prop="code" label="çå¶ç¼å·" /> |
| | | <el-table-column prop="name" label="çå¶åç§°" /> |
| | | </el-table> |
| | | </el-aside> |
| | | <el-container> |
| | | 456 |
| | | </el-container> |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data () { |
| | | return { |
| | | tableData: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.$API.calender.getShiftsystemList.post({params: {current:1,size: 15},data: { |
| | | code: "",name: "",statusList: [1] |
| | | }}).then(res => { |
| | | this.tableData = res?.data?.records || [] |
| | | let current = this.tableData?.[0] || '' |
| | | current.id && this.rowClick(current) |
| | | }) |
| | | }, |
| | | methods: { |
| | | rowClick(row) { |
| | | console.log(row) |
| | | this.$API.calender.getShiftsystemInfo.get({id: row.id}).then(res => { |
| | | console.log(res.data) |
| | | }) |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped></style> |
| | |
| | | <!-- |
| | | * @Date: 2024-04-04 21:51:24 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-05 00:15:20 |
| | | * @LastEditTime: 2024-04-09 20:19:15 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/base/shift-calendar.vue |
| | | --> |
| | | <template> |
| | |
| | | <el-tab-pane label="ç产æ¥å" name="1"> |
| | | <CalenderTab></CalenderTab> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="çå¶" name="2"></el-tab-pane> |
| | | <el-tab-pane label="çå¶" name="2"> |
| | | <ShiftsystemVue></ShiftsystemVue> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </el-main> |
| | | </template> |
| | | <script> |
| | | import CalenderTab from './CalenderTab.vue'; |
| | | import ShiftsystemVue from './Shiftsystem.vue'; |
| | | export default { |
| | | components: { |
| | | CalenderTab |
| | | CalenderTab, |
| | | ShiftsystemVue |
| | | }, |
| | | data () { |
| | | return { |