Pārlūkot izejas kodu

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

XMLWAN 4 gadus atpakaļ
vecāks
revīzija
993a5e5dea

+ 1 - 2
config/dev.env.js Parādīt failu

@@ -6,9 +6,8 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
9
+  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10 10
   // BASE_API:'"http://localhost:9531"',
11
-  BASE_API: '"http://api.xt.test.sgjyun.com"',
12 11
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 12
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 13
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 10 - 0
src/api/config.js Parādīt failu

@@ -109,6 +109,16 @@ export function changeOrg(params) {
109 109
 
110 110
 
111 111
 
112
+export function generateLog(params) {
113
+  return request({
114
+    url: '/api/log/generate',
115
+    method: 'get',
116
+    params:params,
117
+  })
118
+}
119
+
120
+
121
+
112 122
 
113 123
 
114 124
 

+ 19 - 0
src/api/patient.js Parādīt failu

@@ -344,3 +344,22 @@ export function getAllData(id, page, limit) {
344 344
     params: params
345 345
   })
346 346
 }
347
+
348
+
349
+export function postExportPatients(params) {
350
+  return request({
351
+    url: '/api/patients/export',
352
+    method: 'Post',
353
+    data: params,
354
+  })
355
+}
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+

+ 27 - 0
src/api/schedule.js Parādīt failu

@@ -86,3 +86,30 @@ export function getScheduleWeekDay(params) {
86 86
     params: params
87 87
   })
88 88
 }
89
+
90
+
91
+export function exportSchedule(params,date) {
92
+  return request({
93
+    url: '/api/schedule/export?date='+date,
94
+    method: 'Post',
95
+    data: params
96
+  })
97
+}
98
+
99
+
100
+export function initDate() {
101
+  return request({
102
+    url: '/api/excel_date/init',
103
+    method: 'Get',
104
+  })
105
+}
106
+
107
+
108
+export function exportScheduleTemplate(params) {
109
+  return request({
110
+    url: '/api/schedule_template/export',
111
+    method: 'Post',
112
+    data: params
113
+  })
114
+}
115
+

+ 20 - 5
src/vendor/Export2Excel.js Parādīt failu

@@ -1,6 +1,5 @@
1 1
 /* eslint-disable */
2
-require('script-loader!file-saver');
3
-require('script-loader!@/vendor/Blob');
2
+import { saveAs } from 'file-saver'
4 3
 import XLSX from 'xlsx'
5 4
 
6 5
 function generateArray(table) {
@@ -146,19 +145,35 @@ export function export_table_to_excel(id) {
146 145
 }
147 146
 
148 147
 export function export_json_to_excel({
148
+  multiHeader = [],
149 149
   header,
150 150
   data,
151 151
   filename,
152
-  autoWidth = true
152
+  merges = [],
153
+  autoWidth = true,
154
+  bookType = 'xlsx'
153 155
 } = {}) {
154 156
   /* original data */
155 157
   filename = filename || 'excel-list'
156 158
   data = [...data]
157 159
   data.unshift(header);
160
+
161
+  for (let i = multiHeader.length - 1; i > -1; i--) {
162
+    data.unshift(multiHeader[i])
163
+  }
164
+
158 165
   var ws_name = "SheetJS";
159 166
   var wb = new Workbook(),
160 167
     ws = sheet_from_array_of_arrays(data);
161 168
 
169
+  if (merges.length > 0) {
170
+    if (!ws['!merges']) ws['!merges'] = [];
171
+    merges.forEach(item => {
172
+      console.log(XLSX.utils.decode_range(item))
173
+      ws['!merges'].push(XLSX.utils.decode_range(item))
174
+    })
175
+  }
176
+
162 177
   if (autoWidth) {
163 178
     /*设置worksheet每列的最大宽度*/
164 179
     const colWidth = data.map(row => row.map(val => {
@@ -196,11 +211,11 @@ export function export_json_to_excel({
196 211
   wb.Sheets[ws_name] = ws;
197 212
 
198 213
   var wbout = XLSX.write(wb, {
199
-    bookType: 'xlsx',
214
+    bookType: bookType,
200 215
     bookSST: false,
201 216
     type: 'binary'
202 217
   });
203 218
   saveAs(new Blob([s2ab(wbout)], {
204 219
     type: "application/octet-stream"
205
-  }), filename + ".xlsx");
220
+  }), `${filename}.${bookType}`);
206 221
 }

+ 143 - 0
src/xt_pages/components/UploadExcel/index.vue Parādīt failu

@@ -0,0 +1,143 @@
1
+<template>
2
+  <div>
3
+    <input id="excel-upload-input" ref="excel-upload-input" type="file" accept=".xlsx, .xls, .xltx" @change="handleClick">
4
+    <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload">点击导入
5
+    </el-button>
6
+  </div>
7
+</template>
8
+
9
+<script>
10
+  import XLSX from 'xlsx'
11
+
12
+  export default {
13
+    props: {
14
+      beforeUpload: Function,
15
+      onSuccess: Function
16
+    },
17
+    data() {
18
+      return {
19
+        loading: false,
20
+        excelData: {
21
+          header: null,
22
+          results: null
23
+        }
24
+      }
25
+    },
26
+    methods: {
27
+      generateDate({ header, results }) {
28
+        console.log("11111111")
29
+        this.excelData.header = header
30
+        this.excelData.results = results
31
+        this.onSuccess && this.onSuccess(this.excelData)
32
+      },
33
+      handleDrop(e) {
34
+        e.stopPropagation()
35
+        e.preventDefault()
36
+        if (this.loading) return
37
+        const files = e.dataTransfer.files
38
+        if (files.length !== 1) {
39
+          this.$message.error('Only support uploading one file!')
40
+          return
41
+        }
42
+        const rawFile = files[0] // only use files[0]
43
+
44
+        if (!this.isExcel(rawFile)) {
45
+          this.$message.error('Only supports upload .xlsx, .xls, .csv suffix files')
46
+          return false
47
+        }
48
+        this.upload(rawFile)
49
+        e.stopPropagation()
50
+        e.preventDefault()
51
+      },
52
+      handleDragover(e) {
53
+        e.stopPropagation()
54
+        e.preventDefault()
55
+        e.dataTransfer.dropEffect = 'copy'
56
+      },
57
+      handleUpload() {
58
+        document.getElementById('excel-upload-input').click()
59
+      },
60
+      handleClick(e) {
61
+        const files = e.target.files
62
+        const rawFile = files[0] // only use files[0]
63
+        if (!rawFile) return
64
+        this.upload(rawFile)
65
+      },
66
+      upload(rawFile) {
67
+        this.$refs['excel-upload-input'].value = null // fix can't select the same excel
68
+
69
+        if (!this.beforeUpload) {
70
+          this.readerData(rawFile)
71
+          return
72
+        }
73
+        const before = this.beforeUpload(rawFile)
74
+        if (before) {
75
+          this.readerData(rawFile)
76
+        }
77
+      },
78
+      readerData(rawFile) {
79
+        this.loading = true
80
+        return new Promise((resolve, reject) => {
81
+          const reader = new FileReader()
82
+          reader.onload = e => {
83
+            const data = e.target.result
84
+            const fixedData = this.fixdata(data)
85
+            const workbook = XLSX.read(btoa(fixedData), { type: 'base64' })
86
+            const firstSheetName = workbook.SheetNames[0]
87
+            const worksheet = workbook.Sheets[firstSheetName]
88
+            const header = this.get_header_row(worksheet)
89
+            const results = XLSX.utils.sheet_to_json(worksheet)
90
+            this.generateDate({ header, results })
91
+            this.loading = false
92
+            resolve()
93
+          }
94
+          reader.readAsArrayBuffer(rawFile)
95
+        })
96
+      },
97
+      fixdata(data) {
98
+        let o = ''
99
+        let l = 0
100
+        const w = 10240
101
+        for (; l < data.byteLength / w; ++l) o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w, l * w + w)))
102
+        o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w)))
103
+        return o
104
+      },
105
+      get_header_row(sheet) {
106
+        const headers = []
107
+        const range = XLSX.utils.decode_range(sheet['!ref'])
108
+        let C
109
+        const R = range.s.r /* start in the first row */
110
+        for (C = range.s.c; C <= range.e.c; ++C) { /* walk every column in the range */
111
+          var cell = sheet[XLSX.utils.encode_cell({ c: C, r: R })] /* find the cell in the first row */
112
+          var hdr = 'UNKNOWN ' + C // <-- replace with your desired default
113
+          if (cell && cell.t) hdr = XLSX.utils.format_cell(cell)
114
+          headers.push(hdr)
115
+        }
116
+        return headers
117
+      },
118
+      isExcel(file) {
119
+        return /\.(xlsx|xls|csv)$/.test(file.name)
120
+      }
121
+    }
122
+  }
123
+</script>
124
+
125
+<style scoped>
126
+  #excel-upload-input {
127
+    display: none;
128
+    z-index: -9999;
129
+  }
130
+
131
+  #drop {
132
+    border: 2px dashed #bbb;
133
+    width: 600px;
134
+    height: 160px;
135
+    line-height: 160px;
136
+    margin: 0 auto;
137
+    font-size: 24px;
138
+    border-radius: 5px;
139
+    text-align: center;
140
+    color: #bbb;
141
+    position: relative;
142
+  }
143
+</style>

+ 1 - 3
src/xt_pages/data/printTemplate.vue Parādīt failu

@@ -227,9 +227,7 @@ export default {
227 227
               // 同步
228 228
               // console.log(response.data.data.fileds)
229 229
               this.loading = false;
230
-              // store
231
-              //   .dispatch("updateAllFiledConfigList", response.data.data.fileds)
232
-              //   .then(() => {});
230
+               store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
233 231
               this.$message({
234 232
                 type: "success",
235 233
                 message: "切换成功"

+ 1 - 0
src/xt_pages/user/components/PatientForm.vue Parādīt failu

@@ -1382,6 +1382,7 @@ export default {
1382 1382
         return false;
1383 1383
       }
1384 1384
 
1385
+      this.form.user_sys_before_count =  this.form.user_sys_before_count.toString()
1385 1386
       this.$refs[formName].validate(valid => {
1386 1387
         if (valid) {
1387 1388
           this.formSubmit = false;

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 768 - 439
src/xt_pages/user/patients.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1577 - 255
src/xt_pages/workforce/appointment.vue


+ 166 - 0
src/xt_pages/workforce/components/scheduleTemplateUploadExcel/index.vue Parādīt failu

@@ -0,0 +1,166 @@
1
+<template>
2
+  <div>
3
+    <el-dialog
4
+      :visible.sync="msgTipVisible"
5
+      width="40%"
6
+    >
7
+      <span>如果导入成功,会将当前已有的排版模版会被全部清除,是否继续导入排版模版数据</span>
8
+      <span slot="footer" class="dialog-footer">
9
+    <el-button @click="msgTipVisible = false">取 消</el-button>
10
+    <el-button type="primary" @click="handleUpload()">确 定</el-button>
11
+  </span>
12
+    </el-dialog>
13
+    <input id="excel-upload-input" ref="excel-upload-input" type="file" accept=".xlsx, .xls, .xltx" @change="handleClick">
14
+    <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="msgTipVisible = true">点击导入
15
+    </el-button>
16
+  </div>
17
+</template>
18
+
19
+<script>
20
+  import XLSX from 'xlsx'
21
+
22
+  export default {
23
+    name: "scheduleTemplateUploadExcel",
24
+    props: {
25
+      beforeUpload: Function,
26
+      onSuccess: Function
27
+    },
28
+    data() {
29
+      return {
30
+        loading: false,
31
+        msgTipVisible:false,
32
+        excelData: {
33
+          header: null,
34
+          results: null
35
+        }
36
+      }
37
+    },
38
+    methods: {
39
+      generateDate({ header, results }) {
40
+
41
+        console.log(header)
42
+        console.log(results)
43
+
44
+        this.excelData.header = header
45
+        this.excelData.results = results
46
+
47
+        this.onSuccess && this.onSuccess(this.excelData)
48
+      },
49
+      handleDrop(e) {
50
+        e.stopPropagation()
51
+        e.preventDefault()
52
+        if (this.loading) return
53
+        const files = e.dataTransfer.files
54
+        if (files.length !== 1) {
55
+          this.$message.error('Only support uploading one file!')
56
+          return
57
+        }
58
+        const rawFile = files[0] // only use files[0]
59
+
60
+        if (!this.isExcel(rawFile)) {
61
+          this.$message.error('Only supports upload .xlsx, .xls, .csv suffix files')
62
+          return false
63
+        }
64
+        this.upload(rawFile)
65
+        e.stopPropagation()
66
+        e.preventDefault()
67
+      },
68
+      handleDragover(e) {
69
+        e.stopPropagation()
70
+        e.preventDefault()
71
+        e.dataTransfer.dropEffect = 'copy'
72
+      },
73
+      handleUpload() {
74
+        this.msgTipVisible = false
75
+        console.log("1111111")
76
+        document.getElementById('excel-upload-input').click()
77
+      },
78
+      handleClick(e) {
79
+        console.log("1111")
80
+        const files = e.target.files
81
+        const rawFile = files[0] // only use files[0]
82
+        console.log(rawFile)
83
+
84
+        if (!rawFile) return
85
+        this.upload(rawFile)
86
+      },
87
+      upload(rawFile) {
88
+        this.$refs['excel-upload-input'].value = null // fix can't select the same excel
89
+        console.log("12121212")
90
+        if (!this.beforeUpload) {
91
+          this.readerData(rawFile)
92
+          return
93
+        }
94
+        const before = this.beforeUpload(rawFile)
95
+        if (before) {
96
+          this.readerData(rawFile)
97
+        }
98
+      },
99
+      readerData(rawFile) {
100
+        console.log("2222222")
101
+
102
+        this.loading = true
103
+        return new Promise((resolve, reject) => {
104
+          const reader = new FileReader()
105
+          reader.onload = e => {
106
+            const data = e.target.result
107
+            const fixedData = this.fixdata(data)
108
+            const workbook = XLSX.read(btoa(fixedData), { type: 'base64' })
109
+            const firstSheetName = workbook.SheetNames[0]
110
+            const worksheet = workbook.Sheets[firstSheetName]
111
+            const header = this.get_header_row(worksheet)
112
+            const results = XLSX.utils.sheet_to_json(worksheet)
113
+            this.generateDate({ header, results })
114
+            this.loading = false
115
+            resolve()
116
+          }
117
+          reader.readAsArrayBuffer(rawFile)
118
+        })
119
+      },
120
+      fixdata(data) {
121
+        let o = ''
122
+        let l = 0
123
+        const w = 10240
124
+        for (; l < data.byteLength / w; ++l) o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w, l * w + w)))
125
+        o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w)))
126
+        return o
127
+      },
128
+      get_header_row(sheet) {
129
+        const headers = []
130
+        const range = XLSX.utils.decode_range(sheet['!ref'])
131
+        let C
132
+        const R = range.s.r /* start in the first row */
133
+        for (C = range.s.c; C <= range.e.c; ++C) { /* walk every column in the range */
134
+          var cell = sheet[XLSX.utils.encode_cell({ c: C, r: R })] /* find the cell in the first row */
135
+          var hdr = 'UNKNOWN ' + C // <-- replace with your desired default
136
+          if (cell && cell.t) hdr = XLSX.utils.format_cell(cell)
137
+          headers.push(hdr)
138
+        }
139
+        return headers
140
+      },
141
+      isExcel(file) {
142
+        return /\.(xlsx|xls|csv)$/.test(file.name)
143
+      }
144
+    }
145
+  }
146
+</script>
147
+
148
+<style scoped>
149
+  #excel-upload-input {
150
+    display: none;
151
+    z-index: -9999;
152
+  }
153
+
154
+  #drop {
155
+    border: 2px dashed #bbb;
156
+    width: 600px;
157
+    height: 160px;
158
+    line-height: 160px;
159
+    margin: 0 auto;
160
+    font-size: 24px;
161
+    border-radius: 5px;
162
+    text-align: center;
163
+    color: #bbb;
164
+    position: relative;
165
+  }
166
+</style>

+ 166 - 0
src/xt_pages/workforce/components/scheduleUploadExcel/index.vue Parādīt failu

@@ -0,0 +1,166 @@
1
+<template>
2
+  <div>
3
+    <el-dialog
4
+      :visible.sync="msgTipVisible"
5
+      width="40%"
6
+    >
7
+      <span>如果导入成功,会将当前已有的排版会被全部清除,是否继续导入排版数据</span>
8
+      <span slot="footer" class="dialog-footer">
9
+    <el-button @click="msgTipVisible = false">取 消</el-button>
10
+    <el-button type="primary" @click="handleUpload()">确 定</el-button>
11
+  </span>
12
+    </el-dialog>
13
+    <input id="excel-upload-input" ref="excel-upload-input" type="file" accept=".xlsx, .xls, .xltx" @change="handleClick">
14
+    <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="msgTipVisible = true">点击导入
15
+    </el-button>
16
+  </div>
17
+</template>
18
+
19
+<script>
20
+  import XLSX from 'xlsx'
21
+
22
+  export default {
23
+    name: "scheduleUploadExcel",
24
+    props: {
25
+      beforeUpload: Function,
26
+      onSuccess: Function
27
+    },
28
+    data() {
29
+      return {
30
+        loading: false,
31
+        msgTipVisible:false,
32
+        excelData: {
33
+          header: null,
34
+          results: null
35
+        }
36
+      }
37
+    },
38
+    methods: {
39
+      generateDate({ header, results }) {
40
+
41
+        console.log(header)
42
+        console.log(results)
43
+
44
+        this.excelData.header = header
45
+        this.excelData.results = results
46
+
47
+        this.onSuccess && this.onSuccess(this.excelData)
48
+      },
49
+      handleDrop(e) {
50
+        e.stopPropagation()
51
+        e.preventDefault()
52
+        if (this.loading) return
53
+        const files = e.dataTransfer.files
54
+        if (files.length !== 1) {
55
+          this.$message.error('Only support uploading one file!')
56
+          return
57
+        }
58
+        const rawFile = files[0] // only use files[0]
59
+
60
+        if (!this.isExcel(rawFile)) {
61
+          this.$message.error('Only supports upload .xlsx, .xls, .csv suffix files')
62
+          return false
63
+        }
64
+        this.upload(rawFile)
65
+        e.stopPropagation()
66
+        e.preventDefault()
67
+      },
68
+      handleDragover(e) {
69
+        e.stopPropagation()
70
+        e.preventDefault()
71
+        e.dataTransfer.dropEffect = 'copy'
72
+      },
73
+      handleUpload() {
74
+        this.msgTipVisible = false
75
+        console.log("1111111")
76
+        document.getElementById('excel-upload-input').click()
77
+      },
78
+      handleClick(e) {
79
+        console.log("1111")
80
+        const files = e.target.files
81
+        const rawFile = files[0] // only use files[0]
82
+        console.log(rawFile)
83
+
84
+        if (!rawFile) return
85
+        this.upload(rawFile)
86
+      },
87
+      upload(rawFile) {
88
+        this.$refs['excel-upload-input'].value = null // fix can't select the same excel
89
+        console.log("12121212")
90
+        if (!this.beforeUpload) {
91
+          this.readerData(rawFile)
92
+          return
93
+        }
94
+        const before = this.beforeUpload(rawFile)
95
+        if (before) {
96
+          this.readerData(rawFile)
97
+        }
98
+      },
99
+      readerData(rawFile) {
100
+        console.log("2222222")
101
+
102
+        this.loading = true
103
+        return new Promise((resolve, reject) => {
104
+          const reader = new FileReader()
105
+          reader.onload = e => {
106
+            const data = e.target.result
107
+            const fixedData = this.fixdata(data)
108
+            const workbook = XLSX.read(btoa(fixedData), { type: 'base64' })
109
+            const firstSheetName = workbook.SheetNames[0]
110
+            const worksheet = workbook.Sheets[firstSheetName]
111
+            const header = this.get_header_row(worksheet)
112
+            const results = XLSX.utils.sheet_to_json(worksheet)
113
+            this.generateDate({ header, results })
114
+            this.loading = false
115
+            resolve()
116
+          }
117
+          reader.readAsArrayBuffer(rawFile)
118
+        })
119
+      },
120
+      fixdata(data) {
121
+        let o = ''
122
+        let l = 0
123
+        const w = 10240
124
+        for (; l < data.byteLength / w; ++l) o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w, l * w + w)))
125
+        o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w)))
126
+        return o
127
+      },
128
+      get_header_row(sheet) {
129
+        const headers = []
130
+        const range = XLSX.utils.decode_range(sheet['!ref'])
131
+        let C
132
+        const R = range.s.r /* start in the first row */
133
+        for (C = range.s.c; C <= range.e.c; ++C) { /* walk every column in the range */
134
+          var cell = sheet[XLSX.utils.encode_cell({ c: C, r: R })] /* find the cell in the first row */
135
+          var hdr = 'UNKNOWN ' + C // <-- replace with your desired default
136
+          if (cell && cell.t) hdr = XLSX.utils.format_cell(cell)
137
+          headers.push(hdr)
138
+        }
139
+        return headers
140
+      },
141
+      isExcel(file) {
142
+        return /\.(xlsx|xls|csv)$/.test(file.name)
143
+      }
144
+    }
145
+  }
146
+</script>
147
+
148
+<style scoped>
149
+  #excel-upload-input {
150
+    display: none;
151
+    z-index: -9999;
152
+  }
153
+
154
+  #drop {
155
+    border: 2px dashed #bbb;
156
+    width: 600px;
157
+    height: 160px;
158
+    line-height: 160px;
159
+    margin: 0 auto;
160
+    font-size: 24px;
161
+    border-radius: 5px;
162
+    text-align: center;
163
+    color: #bbb;
164
+    position: relative;
165
+  }
166
+</style>

+ 9 - 7
src/xt_pages/workforce/components/template_table.vue Parādīt failu

@@ -11,7 +11,7 @@
11 11
                 </div>
12 12
             </el-col>
13 13
         </el-row>
14
-      
14
+
15 15
       <div id="table_data" >
16 16
         <el-table :height="tableContainHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" ref="table"   :data="opera_device_numbers" :span-method="spanMethod" row-class-name="table-row-new-class schedule-table-row" @cell-click="itemClick">
17 17
             <el-table-column label="分区" width="80" align="center" fixed style="width: 100px; background-color: red; display: block;">
@@ -61,7 +61,7 @@
61 61
                     </template>
62 62
                 </el-table-column>
63 63
             </el-table-column>
64
-            
64
+
65 65
             <el-table-column label="周三" width="215" align="center">
66 66
                 <el-table-column prop="3_1" label="上" width="70" align="center">
67 67
                     <template slot-scope="scope">
@@ -79,7 +79,7 @@
79 79
                     </template>
80 80
                 </el-table-column>
81 81
             </el-table-column>
82
-            
82
+
83 83
             <el-table-column label="周四" width="215" align="center">
84 84
                 <el-table-column prop="4_1" label="上" width="70" align="center">
85 85
                     <template slot-scope="scope">
@@ -97,7 +97,7 @@
97 97
                     </template>
98 98
                 </el-table-column>
99 99
             </el-table-column>
100
-            
100
+
101 101
             <el-table-column label="周五" width="215" align="center">
102 102
                 <el-table-column prop="5_1" label="上" width="70" align="center">
103 103
                     <template slot-scope="scope">
@@ -115,7 +115,7 @@
115 115
                     </template>
116 116
                 </el-table-column>
117 117
             </el-table-column>
118
-            
118
+
119 119
             <el-table-column label="周六" width="215" align="center">
120 120
                 <el-table-column prop="6_1" label="上" width="70" align="center">
121 121
                     <template slot-scope="scope">
@@ -151,7 +151,7 @@
151 151
                     </template>
152 152
                 </el-table-column>
153 153
             </el-table-column>
154
-            
154
+
155 155
             <el-table-column prop="total" label="总数" width="60" align="center" fixed="right">
156 156
                 <template slot-scope="scope">
157 157
                     {{ scope.row.total }}
@@ -159,7 +159,7 @@
159 159
             </el-table-column>
160 160
         </el-table>
161 161
       </div>
162
-      
162
+
163 163
         <schedule-selector-dialog ref="selector_dialog" :patients="patients" @did_selected="will_add_schedule_action" @did_cancel="cancel_schedule_action"></schedule-selector-dialog>
164 164
     </div>
165 165
 </template>
@@ -355,6 +355,8 @@ export default {
355 355
 
356 356
         maked_device_numbers.push(device)
357 357
       }
358
+
359
+      console.log(maked_device_numbers)
358 360
       return maked_device_numbers
359 361
     },
360 362
     spanMethod({ row, column, rowIndex, columnIndex }) {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1856 - 23
src/xt_pages/workforce/template.vue