dedsudiyu 2 年之前
父節點
當前提交
8982c2c782

+ 4 - 4
src/components/TopNav/index.vue

@@ -187,18 +187,18 @@ export default {
     activeRoutes(key) {
       let self = this;
       var routes = [];
-      console.log("key",key);
-      console.log("topMenus",this.topMenus);
+      // console.log("key",key);
+      // console.log("topMenus",this.topMenus);
       if (this.childrenMenus && this.childrenMenus.length > 0) {
         this.childrenMenus.map((item) => {
           // if (key == item.parentPath || (key == "index" && "" == item.path)) {
           if (key == item.parentPath || (key == "index" && "" == item.path)) {
             routes.push(item);
-            console.log("routes",routes);
+            // console.log("routes",routes);
           }
         });
       }
-      console.log("routes===============>",routes);
+      // console.log("routes===============>",routes);
       if(routes.length > 0) {
         for(let i=0;i<self.topMenus.length;i++){
           if(key == self.topMenus[i].path){

+ 1 - 1
src/layout/components/AppMain.vue

@@ -136,7 +136,7 @@ export default {
     async getListStatus(){
       let self = this;
       const { data } = await getListStatus();
-      console.log("getListStatusgetListStatusgetListStatusgetListStatus",data);
+      // console.log("getListStatusgetListStatusgetListStatusgetListStatus",data);
       if(data.code==200){
         if(data.data[0]){
           if(data.data[0].floorId != 7){

+ 1 - 1
src/layout/components/Sidebar/index.vue

@@ -58,7 +58,7 @@ export default {
         ...mapGetters(["sidebarRouters", "sidebar","avatar","name"]),
         activeMenu() {
             const route = this.$route;
-            console.log("route",route)
+            // console.log("route",route)
             const { meta, path } = route;
             // if set path, the sidebar will highlight the path you set
             if (meta.activeMenu) {

+ 1 - 1
src/store/modules/permission.js

@@ -44,7 +44,7 @@ const permission = {
           localStorage.setItem('routeData',JSON.stringify(newData))
           for(let i=0;i<newData.length;i++){
             if( newData[i].path == 'https://www.sxitdlc.com'){
-              console.log('newData[i]',newData[i])
+              // console.log('newData[i]',newData[i])
               if(localStorage.getItem('identityType') == 1){
                 newData[i].name = process.env.VUE_APP_BIG_SCREEN_CAMPUS_BASE_API + '?identity=' + localStorage.getItem('identity')
                 newData[i].path = process.env.VUE_APP_BIG_SCREEN_CAMPUS_BASE_API + '?identity=' + localStorage.getItem('identity')

+ 1 - 1
src/utils/request.js

@@ -128,7 +128,7 @@ service.interceptors.response.use(res => {
       })
       return Promise.reject('error')
     } else {
-      console.log("res",res.data)
+      // console.log("res",res.data)
       return res.data
     }
   },

+ 1 - 1
src/views/comprehensive/laboratoryManagement/subject/indexTwo.vue

@@ -859,7 +859,7 @@ export default {
         // }
       });
       this.client.on("message", (topic, message) => {
-        console.log('message',message)
+        // console.log('message',message)
         if (message){
           let data = JSON.parse(message)
           // console.log("MQTT----message",data)

+ 257 - 0
src/views/comprehensive/message/noticeconfig/indexOne.vue

@@ -0,0 +1,257 @@
+<template>
+  <div class="app-container noticeconfig">
+    <el-form :model="form" ref="form" :inline="true" label-width="120px">
+      <div class="top-title-box">
+        <p>预案通知</p>
+        <p class="inquire-button-one" @click="upData" v-if="form.id" v-hasPermi="['laboratory:noticeconfig:edit']">保存</p>
+        <p class="inquire-button-one" @click="upData" v-if="!form.id" v-hasPermi="['laboratory:noticeconfig:add']">提交</p>
+      </div>
+      <el-form-item label="广播通知" prop="riskRadio" class="form-item-box">
+        <el-input
+          style="width:350px;"
+          type="textarea"
+          maxlength="50"
+          :rows="3"
+          resize="none"
+          placeholder="请输入广播通知内容"
+          v-model="form.riskRadio">
+        </el-input>
+      </el-form-item>
+      <el-form-item label="语音播报" prop="riskVoice" class="form-item-box">
+        <el-input
+          style="width:350px;"
+          type="textarea"
+          maxlength="50"
+          :rows="3"
+          resize="none"
+          placeholder="请输入语音播报内容"
+          v-model="form.riskVoice">
+        </el-input>
+      </el-form-item>
+      <el-form-item label="电话通知" prop="riskPhone" class="form-item-box">
+        <el-input
+          style="width:350px;"
+          type="textarea"
+          maxlength="50"
+          :rows="3"
+          resize="none"
+          placeholder="请输入电话通知内容"
+          v-model="form.riskPhone">
+        </el-input>
+      </el-form-item>
+      <el-form-item label="短信提示" prop="riskMessage" class="form-item-box">
+        <el-input
+          style="width:350px;"
+          type="textarea"
+          maxlength="50"
+          :rows="3"
+          resize="none"
+          placeholder="请输入短信提示内容"
+          v-model="form.riskMessage">
+        </el-input>
+      </el-form-item>
+    </el-form>
+  </div>
+</template>
+
+<script>
+  import { getNoticeconfigInfo, postNoticeconfigInfo, putNoticeconfigInfo } from "@/api/laboratory/noticeconfig";
+
+  export default {
+    name: "Noticeconfig",
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 通知配置表格数据
+        form: {},
+        // 弹出层标题
+        title: "",
+        // 是否显示弹出层
+        open: false,
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize:20,
+          riskVoice: null,
+          riskPhone: null,
+          riskMessage: null,
+          exitRadio: null,
+          exitVoice: null,
+          exitPhone: null,
+          exitMessage: null
+        },
+      };
+    },
+    created() {
+      this.getList();
+    },
+    methods: {
+      upData(){
+        let self = this;
+        this.$confirm('是否确定提交?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          if(self.form.id){
+            self.putNoticeconfigInfo();
+          }else{
+            self.postNoticeconfigInfo();
+          }
+        }).then(() => {
+
+        }).catch(() => {});
+      },
+      postNoticeconfigInfo(){
+        postNoticeconfigInfo(this.form).then( response => {
+          this.msgSuccess("操作成功")
+          this.getList();
+        });
+      },
+      putNoticeconfigInfo(){
+        putNoticeconfigInfo(this.form).then( response => {
+          this.msgSuccess("操作成功")
+          this.getList();
+        });
+      },
+      /** 查询通知配置列表 */
+      getList() {
+        this.loading = true;
+        getNoticeconfigInfo().then( response => {
+          this.form =  response.data;
+          this.loading = false;
+        });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+        this.reset();
+      },
+      // 表单重置
+      reset() {
+        this.form = {
+          id: null,
+          riskRadio: null,
+          riskVoice: null,
+          riskPhone: null,
+          riskMessage: null,
+        };
+        this.resetForm("form");
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.resetForm("queryForm");
+        this.handleQuery();
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.ids = selection.map(item => item.id)
+        this.single = selection.length!==1
+        this.multiple = !selection.length
+      },
+      /** 新增按钮操作 */
+      handleAdd() {
+        this.reset();
+        this.open = true;
+        this.title = "添加通知配置";
+      },
+      /** 修改按钮操作 */
+      handleUpdate(row) {
+        this.reset();
+        const id = row.id || this.ids
+        getNoticeconfig(id).then( response => {
+          this.form =  response.data;
+          this.open = true;
+          this.title = "修改通知配置";
+        });
+      },
+      /** 提交按钮 */
+      submitForm() {
+        this.$refs["form"].validate(valid => {
+          if (valid) {
+            if (this.form.id != null) {
+              updateNoticeconfig(this.form).then( response => {
+                this.msgSuccess("修改成功");
+                this.open = false;
+                this.getList();
+              });
+            } else {
+              addNoticeconfig(this.form).then( response => {
+                this.msgSuccess("新增成功");
+                this.open = false;
+                this.getList();
+              });
+            }
+          }
+        });
+      },
+      /** 删除按钮操作 */
+      handleDelete(row) {
+        const ids = row.id || this.ids;
+        this.$confirm('是否确认删除通知配置编号为"' + ids + '"的数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return delNoticeconfig(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        }).catch(() => {});
+      },
+      /** 导出按钮操作 */
+      handleExport() {
+        this.download('laboratory/noticeconfig/export', {
+          ...this.queryParams
+        }, `laboratory_noticeconfig.xlsx`)
+      }
+    }
+  };
+</script>
+
+<style scoped lang="scss">
+  .noticeconfig{
+    display: flex !important;
+    flex-direction: column;
+    overflow: hidden;
+    padding:0 20px 20px!important;
+    *{
+      margin:0;
+    }
+    .top-title-box{
+      display: flex;
+      height:80px;
+      border-bottom:1px solid #E0E0E0;
+      margin-bottom:54px;
+      p:nth-child(1){
+        line-height:80px;
+        font-size:18px;
+        color:#0045AF;
+        flex:1;
+      }
+      p:nth-child(2){
+        margin-top:20px;
+      }
+    }
+    .form-item-box{
+      display: inline-block;
+      margin-bottom:28px;
+    }
+  }
+</style>

+ 3 - 3
src/views/comprehensive/system/syntheticMusic/index.vue

@@ -178,9 +178,9 @@ export default {
     },
     //上传
     handleAvatarSuccess(res, file, type) {
-      console.log("res",res);
-      console.log("file",file);
-      console.log("type",type);
+      // console.log("res",res);
+      // console.log("file",file);
+      // console.log("type",type);
       if(type == 1){
         this.$set(this.form,'musicUrl',res.data.url);
       }else if(type == 2){

+ 2 - 2
src/views/hierarchicalControl/hierarchicalControl/gradeManageWork/addPage.vue

@@ -262,8 +262,8 @@
       },
       //上传相关
       handleAvatarSuccess(res) {
-        console.log("=====================>2")
-        console.log("=====================>res",res)
+        // console.log("=====================>2")
+        // console.log("=====================>res",res)
         if(this.form.list.length>4){
           this.$message.error('最多上传5个文件');
           return

+ 1 - 1
src/views/safetyEducationExam/safeLearning/el_course/assessmentPreview.vue

@@ -102,7 +102,7 @@ import { queryChapterQu } from "@/api/exam/el_course";
       //获取章节题目数据
       getQueryChapterQu(){
         queryChapterQu(this.exerciseData.id).then( res => {
-          console.log("res",res)
+          // console.log("res",res)
           let num = 0;
           let single = [];
           let multiple = [];

+ 1 - 1
src/views/safetyEducationExam/safeLearning/el_course/edit.vue

@@ -1204,7 +1204,7 @@
       getQueryChapterQu(id){
         console.log("id",id)
         queryChapterQu(id).then( res => {
-          console.log("res",res)
+          // console.log("res",res)
           this.$set(this.chapterData,'exerciseList',res.data)
           this.countTheNumberOfQuestions();
         });

+ 1 - 1
src/views/safetyEducationExam/securityExam/myResultInquiry/index.vue

@@ -101,7 +101,7 @@
         getExamPaper(row.id).then(res => {
           this.transferData = res.data;
           this.pageType = 2;
-          console.log("res",res)
+          // console.log("res",res)
         });
       },
       outClick(){

+ 2 - 2
src/views/securityCheck/checkRecord/CheckRecordInfo.vue

@@ -452,8 +452,8 @@
       //上传
       handleAvatarSuccessTwo(res, type) {
         this.form.yhZghImg.push(res.data.url);
-        console.log("res",res.data.url);
-        console.log("type",type);
+        // console.log("res",res.data.url);
+        // console.log("type",type);
         this.$refs["form"].validate(valid => {})
         this.$forceUpdate()
       },