sunyanqiang 2 سال پیش
والد
کامیت
c9a1c90db3
3فایلهای تغییر یافته به همراه142 افزوده شده و 0 حذف شده
  1. 9 0
      src/api/pt.js
  2. 132 0
      src/views/pt.vue
  3. 1 0
      src/views/regulations/fileinfo/index.vue

+ 9 - 0
src/api/pt.js

@@ -70,4 +70,13 @@ export function noReminder(query) {
     method: 'get',
     params: query
   })
+}
+
+// 获取提醒功能
+export function remindPrint(query) {
+  return request({
+    url: '/PrintsLog/printlog/remindPrint',
+    method: 'get',
+    params: query
+  })
 }

+ 132 - 0
src/views/pt.vue

@@ -714,6 +714,130 @@
         <button @click="cancel">取 消</button>
       </div>
     </el-dialog>
+    <!-- 提示打印 -->
+    <el-dialog
+    title="查看通知公告"
+    :visible.sync="open5"
+    width="800px"
+    append-to-body
+  >
+    <div class="jiben">基本信息</div>
+    <el-form ref="form" :model="form" :rules="rules" :inline="true">
+      <el-row>
+        <el-col :span="12">
+          <p
+            style="
+              width: 100%;
+              height: 30px;
+              line-height: 30px;
+              color: #fff;
+              fontsize: 16px;
+            "
+            v-if="!ggflg"
+          >
+            公告标题:<span style="margin-left: 10px; fontsize: 14px">{{
+              form.noticeTitle
+            }}</span>
+          </p>
+          <el-form-item label="公告标题" v-if="ggflg" prop="noticeTitle">
+            <el-input
+              v-model="form.noticeTitle"
+              placeholder="请输入公告标题"
+            />
+          </el-form-item>
+          <!-- <el-form-item label="公告标题" prop="noticeTitle">
+            <el-input
+
+              v-model="form.noticeTitle"
+              placeholder="请输入公告标题"
+              style="width: 300px"
+            />
+          </el-form-item> -->
+        </el-col>
+        <el-col :span="12" v-if="ggflg">
+          <el-form-item label="公告类型" prop="noticeType">
+            <el-select v-model="form.noticeType" placeholder="请选择">
+              <el-option
+                v-for="dict in dict.type.sys_notice_type"
+                :key="dict.value"
+                :label="dict.label"
+                :value="dict.value"
+              ></el-option>
+            </el-select>
+          </el-form-item>
+        </el-col>
+        <el-col
+          :span="24"
+          style="margin-top: 15px; margin-bottom: 10px"
+          v-if="ggflg"
+        >
+          <el-form-item label="状态">
+            <el-radio-group v-model="form.status">
+              <el-radio
+                v-for="dict in dict.type.sys_notice_status"
+                :key="dict.value"
+                :label="dict.value"
+                style="margin-right: 20px"
+                >{{ dict.label }}</el-radio
+              >
+            </el-radio-group>
+          </el-form-item>
+        </el-col>
+      </el-row>
+      <el-row style="margin-top: 10px">
+        <el-col :span="12" v-if="!ggflg">
+          <el-form-item label="发布人" prop="createBy" label-width="0">
+            <el-input
+              v-model="form.createBy"
+              disabled
+              placeholder="请输入发布人"
+            />
+          </el-form-item>
+        </el-col>
+        <el-col :span="12" v-if="!ggflg">
+          <el-form-item label="附件" label-width="0px" prop="filename">
+            <a
+              :href="url + form.filename"
+              target="_blank"
+              download
+              style="
+                display: inline-block;
+                width: 90px;
+                height: 30px;
+                background-color: #409eff;
+                border: none;
+                border-radus: 3px;
+                color: #fff;
+                line-height: 30px;
+                text-align: center;
+              "
+              >下载附件</a
+            >
+            <!-- <fileUpload v-model="form.filename" class="m-l-20" /> -->
+          </el-form-item>
+        </el-col>
+      </el-row>
+      <div class="jiben">内容</div>
+      <el-col :span="24">
+        <el-form-item
+          label
+          prop="remark"
+          class="textareas"
+          style="width: 100%"
+        >
+          <el-input
+            v-model="form.remark"
+            type="textarea"
+            placeholder="请输入内容"
+          />
+        </el-form-item>
+      </el-col>
+    </el-form>
+    <div slot="footer" class="dialog-footer">
+      <button class="button1" v-if="ggflg" @click="submitForm">确 定</button>
+      <button @click="cancel">取 消</button>
+    </div>
+  </el-dialog>
   </div>
 </template>
 <script>
@@ -732,6 +856,7 @@ import {
   getWorkTask,
   getNone,
   noReminder,
+  remindPrint
 } from "@/api/pt";
 import { getUserProfile } from "@/api/system/user";
 import Cookies from "js-cookie";
@@ -787,6 +912,7 @@ export default {
     this.timer2 = null;
     this.startTime2();
     this.xianShang();
+    this.getTiXing()
     getNone().then((res) => {
       this.str = res.msg;
     });
@@ -810,6 +936,12 @@ export default {
     this.getworklist();
   },
   methods: {
+    // 获取提示信息
+    getTiXing(){
+      remindPrint().then(res=>{
+        console.log(res);
+      })
+    },
     // 退出
     async logout() {
       this.$confirm("确定注销并退出系统吗?", "提示", {

+ 1 - 0
src/views/regulations/fileinfo/index.vue

@@ -741,6 +741,7 @@ export default {
     this.ListDirectoryinfo();
     // 获取排行目录接口
     // rankList().then((res) => {
+    //   console.log(res);
     //   this.Ranking = res.data;
     // });
     this.RankList();