编辑
@@ -78,8 +89,10 @@ import {
import NCCForm from "./Form";
import ExportBox from "./ExportBox";
import request from "@/utils/request";
+import infoMixin from "@/mixins/info";
import define from '@/utils/define'
export default {
+ mixins: [infoMixin],
components: { NCCForm, ExportBox },
data() {
return {
@@ -115,6 +128,7 @@ export default {
},
computed: {},
created() {
+ this.initAreaTypeList();
this.initData();
},
methods: {
diff --git a/src/views/baseSystemInfo/index.vue b/src/views/baseSystemInfo/index.vue
index 35472bc..73823d9 100644
--- a/src/views/baseSystemInfo/index.vue
+++ b/src/views/baseSystemInfo/index.vue
@@ -7,10 +7,17 @@
-
+
+
+
+
+
+
+
@@ -65,9 +72,9 @@
-
-
-
+
+
+
{{ scope.row.areaId | dynamicText(areaOptions) }}
@@ -212,14 +219,20 @@ export default {
},
methods: {
uploadSuccess(response, file, fileList) {
- this.$message({
- showClose: true,
- message: response.msg,
- type: response.code == 200 ? 'success' : 'error',
- close: () => {
- response.code == 200 && this.initData();
- }
- });
+ if(response.code == 200) {
+ this.$message({
+ type: 'success',
+ message: response.msg,
+ onClose: () => {
+ this.initData()
+ }
+ });
+ } else {
+ this.$message({
+ type: 'error',
+ message: response.msg,
+ });
+ }
},
handleSystemTypeChange(val) {
this.query.systemClass = "";