|
@@ -714,6 +714,130 @@
|
|
<button @click="cancel">取 消</button>
|
|
<button @click="cancel">取 消</button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</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>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -732,6 +856,7 @@ import {
|
|
getWorkTask,
|
|
getWorkTask,
|
|
getNone,
|
|
getNone,
|
|
noReminder,
|
|
noReminder,
|
|
|
|
+ remindPrint
|
|
} from "@/api/pt";
|
|
} from "@/api/pt";
|
|
import { getUserProfile } from "@/api/system/user";
|
|
import { getUserProfile } from "@/api/system/user";
|
|
import Cookies from "js-cookie";
|
|
import Cookies from "js-cookie";
|
|
@@ -787,6 +912,7 @@ export default {
|
|
this.timer2 = null;
|
|
this.timer2 = null;
|
|
this.startTime2();
|
|
this.startTime2();
|
|
this.xianShang();
|
|
this.xianShang();
|
|
|
|
+ this.getTiXing()
|
|
getNone().then((res) => {
|
|
getNone().then((res) => {
|
|
this.str = res.msg;
|
|
this.str = res.msg;
|
|
});
|
|
});
|
|
@@ -810,6 +936,12 @@ export default {
|
|
this.getworklist();
|
|
this.getworklist();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 获取提示信息
|
|
|
|
+ getTiXing(){
|
|
|
|
+ remindPrint().then(res=>{
|
|
|
|
+ console.log(res);
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 退出
|
|
// 退出
|
|
async logout() {
|
|
async logout() {
|
|
this.$confirm("确定注销并退出系统吗?", "提示", {
|
|
this.$confirm("确定注销并退出系统吗?", "提示", {
|