kz-ui-base 1.0.127 → 1.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -126,6 +126,7 @@ import { encrypt, decrypt } from "../utils/jsencrypt";
|
|
|
126
126
|
import { getWebConfig } from "../utils/utils";
|
|
127
127
|
import { getAllRouters } from "@api/menu";
|
|
128
128
|
import { removeToken } from "@utils/auth";
|
|
129
|
+
import localforage from "localforage";
|
|
129
130
|
export default {
|
|
130
131
|
name: "Login",
|
|
131
132
|
data() {
|
|
@@ -175,6 +176,7 @@ export default {
|
|
|
175
176
|
this.$store.dispatch("LogOut").then(() => {
|
|
176
177
|
this.$store.dispatch("tagsView/delAllViews");
|
|
177
178
|
localStorage.clear();
|
|
179
|
+
localforage.clear();
|
|
178
180
|
removeToken();
|
|
179
181
|
let enterpriseName = Cookies.get("enterpriseName");
|
|
180
182
|
var webConfig = getWebConfig();
|
|
@@ -125,6 +125,7 @@ import { getCodeImg } from "../api/login";
|
|
|
125
125
|
import Cookies from "~../../js-cookie";
|
|
126
126
|
import { encrypt, decrypt } from "../utils/jsencrypt";
|
|
127
127
|
import { removeToken } from "@utils/auth";
|
|
128
|
+
import localforage from "localforage";
|
|
128
129
|
export default {
|
|
129
130
|
name: "Login",
|
|
130
131
|
data() {
|
|
@@ -174,6 +175,7 @@ export default {
|
|
|
174
175
|
this.$store.dispatch("LogOut").then(() => {
|
|
175
176
|
this.$store.dispatch("tagsView/delAllViews");
|
|
176
177
|
localStorage.clear();
|
|
178
|
+
localforage.clear();
|
|
177
179
|
removeToken();
|
|
178
180
|
this.axios.get("/config.json").then((res) => {
|
|
179
181
|
// if (res.data.tenantName) {
|
package/package.json
CHANGED
|
@@ -49,13 +49,18 @@
|
|
|
49
49
|
</el-form-item>
|
|
50
50
|
</el-col>
|
|
51
51
|
|
|
52
|
-
<
|
|
53
|
-
<el-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
<el-col :span="6" style="white-space:nowrap" >
|
|
53
|
+
<el-form-item label="标准类型" class="search-panel">
|
|
54
|
+
<dict-select type="technical_standard_type_code" v-model="searchParams.technicalStandardType" style="width:80%;" :disabled="technicalStandardType != null" clearable></dict-select>
|
|
55
|
+
</el-form-item>
|
|
56
|
+
</el-col>
|
|
56
57
|
|
|
57
58
|
</el-form>
|
|
58
59
|
</el-row>
|
|
60
|
+
<div style="float: right">
|
|
61
|
+
<el-button type="primary" @click="queryTableData">搜索</el-button>
|
|
62
|
+
<el-button @click="reset">重置</el-button>
|
|
63
|
+
</div>
|
|
59
64
|
</div>
|
|
60
65
|
|
|
61
66
|
</el-col>
|
|
@@ -290,6 +295,7 @@ export default class StandardList extends ListBasePage {
|
|
|
290
295
|
|
|
291
296
|
@Prop()
|
|
292
297
|
prodCategoryCode = null;
|
|
298
|
+
technicalStandardType = null;
|
|
293
299
|
@Prop()
|
|
294
300
|
setting;
|
|
295
301
|
|
|
@@ -298,6 +304,7 @@ export default class StandardList extends ListBasePage {
|
|
|
298
304
|
technicalStandardCode: "",
|
|
299
305
|
technicalStandardName: "",
|
|
300
306
|
prodCategoryCode: this.prodCategoryCode ? this.prodCategoryCode : "",
|
|
307
|
+
technicalStandardType: this.technicalStandardType ? this.technicalStandardType : "",
|
|
301
308
|
};
|
|
302
309
|
// 列表分页参数
|
|
303
310
|
listQueryParams = {
|
|
@@ -325,6 +332,7 @@ export default class StandardList extends ListBasePage {
|
|
|
325
332
|
// { text: "标准分类", property: "technicalStandardClassName" },
|
|
326
333
|
{ text: "标准名称", property: "technicalStandardName", width: 320, align: "left" },
|
|
327
334
|
{ text: "标准代号", property: "technicalStandardCode", width: 200, align: "left" },
|
|
335
|
+
{ text: "标准类型", property: "technicalStandardTypeLabel" },
|
|
328
336
|
{ text: "宜订级别", property: "standardLevelLabel", width: 100 },
|
|
329
337
|
{ text: "采标程度", property: "adoptionLevelLabel", width: 100 },
|
|
330
338
|
{ text: "采标号", property: "adoptionNo", width: 200 },
|
|
@@ -334,6 +342,7 @@ export default class StandardList extends ListBasePage {
|
|
|
334
342
|
];
|
|
335
343
|
standardLevelCodeMap = {};
|
|
336
344
|
adoptionLevelCodeMap = {};
|
|
345
|
+
technicalStandardTypeCodeMap = {};
|
|
337
346
|
fileTypeCodeMap = {};
|
|
338
347
|
deptIdMap = {};
|
|
339
348
|
// 部门树选项
|
|
@@ -353,14 +362,16 @@ export default class StandardList extends ListBasePage {
|
|
|
353
362
|
setDictMap("standard_level_code", self.standardLevelCodeMap).then(()=>{
|
|
354
363
|
setDictMap("adoption_level_code", self.adoptionLevelCodeMap).then(()=>{
|
|
355
364
|
setDictMap("file_type_code", self.fileTypeCodeMap).then(()=>{
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
365
|
+
setDictMap("technical_standard_type_code", self.technicalStandardTypeCodeMap).then(()=> {
|
|
366
|
+
listDept().then(res => {
|
|
367
|
+
let tmp = {};
|
|
368
|
+
res.data.map(x => {
|
|
369
|
+
tmp[x.deptId] = x.deptName;
|
|
370
|
+
})
|
|
371
|
+
self.deptIdMap = tmp;
|
|
372
|
+
self.getTreeSelect();
|
|
373
|
+
self.getList();
|
|
360
374
|
})
|
|
361
|
-
self.deptIdMap = tmp;
|
|
362
|
-
self.getTreeSelect();
|
|
363
|
-
self.getList();
|
|
364
375
|
})
|
|
365
376
|
})
|
|
366
377
|
})
|
|
@@ -420,7 +431,8 @@ export default class StandardList extends ListBasePage {
|
|
|
420
431
|
row['standardLevelLabel'] = this.standardLevelCodeMap[row['standardLevelCode']];
|
|
421
432
|
row['adoptionLevelLabel'] = this.adoptionLevelCodeMap[row['adoptionLevelCode']];
|
|
422
433
|
row['fileTypeLabel'] = this.fileTypeCodeMap[row['fileTypeCode']];
|
|
423
|
-
row['controlDepartmentLabel'] = this.deptIdMap[row['controlDepartmentId']]
|
|
434
|
+
row['controlDepartmentLabel'] = this.deptIdMap[row['controlDepartmentId']];
|
|
435
|
+
row['technicalStandardTypeLabel'] = this.technicalStandardTypeCodeMap[row['technicalStandardType']];
|
|
424
436
|
}
|
|
425
437
|
this.listData = response.rows;
|
|
426
438
|
this.listQueryParams.total = Number(response.total);
|
|
@@ -475,7 +487,8 @@ export default class StandardList extends ListBasePage {
|
|
|
475
487
|
row['standardLevelLabel'] = this.standardLevelCodeMap[row['standardLevelCode']];
|
|
476
488
|
row['adoptionLevelLabel'] = this.adoptionLevelCodeMap[row['adoptionLevelCode']];
|
|
477
489
|
row['fileTypeLabel'] = this.fileTypeCodeMap[row['fileTypeCode']];
|
|
478
|
-
row['controlDepartmentLabel'] = this.deptIdMap[row['controlDepartmentId']]
|
|
490
|
+
row['controlDepartmentLabel'] = this.deptIdMap[row['controlDepartmentId']];
|
|
491
|
+
row['technicalStandardTypeLabel'] = this.technicalStandardTypeCodeMap[row['technicalStandardType']];
|
|
479
492
|
}
|
|
480
493
|
this.listData = response.rows;
|
|
481
494
|
this.listQueryParams.total = Number(response.total);
|