dedsudiyu 1 vuosi sitten
vanhempi
commit
bdc9692603
2 muutettua tiedostoa jossa 11 lisäystä ja 5 poistoa
  1. 8 2
      src/views/comprehensive/message/warningNotice/infoPage.vue
  2. 3 3
      vue.config.js

+ 8 - 2
src/views/comprehensive/message/warningNotice/infoPage.vue

@@ -109,7 +109,8 @@
           <div class='info-box'>
           <div class='info-box'>
             <div>
             <div>
               <p>气瓶规格:</p>
               <p>气瓶规格:</p>
-              <p>{{infoData.specification}}</p>
+              <p v-for="(item,index) in gasBottleLevel"
+                 v-show="item.dictValue == infoData.specification">{{item.dictLabel}}</p>
             </div>
             </div>
           </div>
           </div>
         </div>
         </div>
@@ -203,6 +204,7 @@
   import { laboratoryWarningNoticeLogUpdate} from '@/api/gasBottleManage/index'
   import { laboratoryWarningNoticeLogUpdate} from '@/api/gasBottleManage/index'
   import lookImgDialog from '@/components/lookImgDialog/lookImgDialog.vue'
   import lookImgDialog from '@/components/lookImgDialog/lookImgDialog.vue'
   import lookVideoDialog from '@/components/lookVideoDialog/lookVideoDialog.vue'
   import lookVideoDialog from '@/components/lookVideoDialog/lookVideoDialog.vue'
+  import { gasManageConfigName } from '@/api/gasManage3_0/gasManageSYD'
   export default {
   export default {
     name: 'infoPage',
     name: 'infoPage',
     components: {
     components: {
@@ -230,13 +232,17 @@
             { required: true, message: "请输入处理备注", trigger: "change" },
             { required: true, message: "请输入处理备注", trigger: "change" },
             { required: true, message: "请输入处理备注", validator: this.spaceJudgment, trigger: "change" },
             { required: true, message: "请输入处理备注", validator: this.spaceJudgment, trigger: "change" },
           ],
           ],
-        }
+        },
+        gasBottleLevel:[],
       }
       }
     },
     },
     created(){
     created(){
     },
     },
     mounted(){
     mounted(){
       this.getInfo();
       this.getInfo();
+      this.getDicts("gasBottleLevel").then((response) => {
+        this.$set(this,'gasBottleLevel',response.data);
+      });
     },
     },
     methods:{
     methods:{
       upDispose(){
       upDispose(){

+ 3 - 3
vue.config.js

@@ -61,9 +61,6 @@ module.exports = {
     }
     }
   },
   },
   chainWebpack(config) {
   chainWebpack(config) {
-    //修改打包切片输出名称
-    config.output.filename('static/js/[name][chunkhash:8].js');
-    config.output.chunkFilename('static/js/[name]-[chunkhash:8].js');
     config.plugins.delete('preload') // TODO: need test
     config.plugins.delete('preload') // TODO: need test
     config.plugins.delete('prefetch') // TODO: need test
     config.plugins.delete('prefetch') // TODO: need test
 
 
@@ -108,6 +105,9 @@ module.exports = {
     config
     config
       .when(process.env.NODE_ENV !== 'development',
       .when(process.env.NODE_ENV !== 'development',
         config => {
         config => {
+          //修改打包切片输出名称
+          config.output.filename('static/js/[name][chunkhash:8].js');
+          config.output.chunkFilename('static/js/[name]-[chunkhash:8].js');
           config
           config
             .plugin('ScriptExtHtmlWebpackPlugin')
             .plugin('ScriptExtHtmlWebpackPlugin')
             .after('html')
             .after('html')