Ver código fonte

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/admin into dev

许成详 6 anos atrás
pai
commit
9c347ea4ae

+ 2
- 0
config/index.js Ver arquivo

@@ -12,6 +12,8 @@ module.exports = {
12 12
     proxyTable: {
13 13
       '/api': {
14 14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
15
+        // target: 'http://192.168.0.62:8080', //wf
16
+        //target: 'http://127.0.0.1:8080', 
15 17
         target: 'http://192.168.0.62:8080', //wf
16 18
         // target: 'http://192.168.0.11', //ys
17 19
         // target: 'http://192.168.0.125:8080', //hyq

+ 2
- 2
src/pages/system/caseManager/caseAreaManager/add.vue Ver arquivo

@@ -123,14 +123,14 @@ export default {
123 123
       if (this.postData.AreaIcon === '') {
124 124
         this.$message({
125 125
           type: 'error',
126
-          message: '区域图标不能为空'
126
+          message: '请上传区域图片'
127 127
         })
128 128
         return false
129 129
       }
130 130
       if (this.postData.AreaIconWhite === '') {
131 131
         this.$message({
132 132
           type: 'error',
133
-          message: '区域图标灰白不能为空'
133
+          message: '请上传区域黑白图片'
134 134
         })
135 135
         return false
136 136
       }

+ 7
- 0
src/pages/system/caseManager/caseTableManager/add.vue Ver arquivo

@@ -118,6 +118,13 @@ export default {
118 118
         })
119 119
         return false
120 120
       }
121
+      if (this.postData.AreaId === '' || this.CaseId === '') {
122
+        this.$message({
123
+          type: 'error',
124
+          message: '请选择案场/区域'
125
+        })
126
+        return false
127
+      }
121 128
       this.postData.OrgId = this.OrgId
122 129
       this.$ajax(this.$api.caseManager.addCaseTable.url, {
123 130
         method: this.$api.caseManager.addCaseTable.method,

+ 5
- 2
src/pages/system/caseManager/keyManager/add.vue Ver arquivo

@@ -24,7 +24,8 @@
24 24
               <el-input
25 25
                 placeholder="请输入数字"
26 26
                 v-model="postData.beginnum"
27
-                clearable>
27
+                clearable
28
+                onkeyup="value=value.replace(/[^\d]/g,'')">
28 29
               </el-input>
29 30
             </div>
30 31
           </div>
@@ -36,7 +37,8 @@
36 37
               <el-input
37 38
                 placeholder="请输入数字"
38 39
                 v-model="postData.endnum"
39
-                clearable>
40
+                clearable
41
+                onkeyup="value=value.replace(/[^\d]/g,'')">
40 42
               </el-input>
41 43
             </div>
42 44
           </div>
@@ -113,6 +115,7 @@ export default {
113 115
         })
114 116
         return false
115 117
       }
118
+      console.log('柜子编号:' + this.postData.beginnum + ' ' + this.postData.endnum)
116 119
       this.postData.orgid = this.OrgId
117 120
       this.$ajax(this.$api.caseManager.addKey.url, {
118 121
         method: this.$api.caseManager.addKey.method,

+ 4
- 2
src/pages/system/caseManager/signinManager/index.vue Ver arquivo

@@ -30,7 +30,7 @@
30 30
         </el-select>
31 31
     </div>
32 32
     <div class="button-div">
33
-      <el-button type="success" icon="el-icon-search" style="float: right;">导出excel</el-button>
33
+      <el-button type="success" icon="el-icon-search" style="float: right;" @click="excelSignin">导出excel</el-button>
34 34
       <el-button type="warning" icon="el-icon-search" style="float: right;" @click="reset">重置</el-button>
35 35
       <el-button type="primary" icon="el-icon-search" style="float: right; margin-right: -10px;" @click="getList">搜索</el-button>
36 36
     </div>
@@ -179,7 +179,9 @@ export default {
179 179
     FormatDate (date) {
180 180
       return this.toolClass.dateFormat(date, 'yyyy-MM-dd hh:mm:ss')
181 181
     },
182
-
182
+    excelSignin () { // 导出Excel
183
+      window.open(`${this.toolClass.ReplaceOrg(this.$api.caseManager.getExcelSignin.url)}?token=${localStorage.getItem('JWT')}&selectType=${this.$data.valueTime}&caseid=${this.$data.valueCase}`, '_blank')
184
+    }
183 185
   },
184 186
   computed: {
185 187
     ...mapState({

+ 4
- 0
src/util/api.js Ver arquivo

@@ -212,6 +212,10 @@ const $api = {
212 212
     getSignin: { // 获取签到列表
213 213
       method: 'get',
214 214
       url: `${baseUrl}${common}/case/signin`
215
+    },
216
+    getExcelSignin: { // 获取签到列表
217
+      method: 'get',
218
+      url: `${baseUrl}${common}/case/excelSignin`
215 219
     }
216 220
   },
217 221
   goodsManager: {