Browse Source

更改bug

wangqin
zhangzhang 9 months ago
parent
commit
4717f942a7
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/components/Pagination.vue
  2. 500
      ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue
  3. 47
      ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/index.vue
  4. 37
      ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue
  5. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue

2
ruoyi-ui/src/views/JiHeExpressway/components/Pagination.vue

@ -85,7 +85,7 @@ export default {
} }
.el-pagination__jump { .el-pagination__jump {
margin-left: -6px; margin-left: 10px;
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;

500
ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue

@ -1,5 +1,11 @@
<template> <template>
<el-dialog :title="calcTitle" :visible.sync="dialogVisible" width="800px" append-to-body :close-on-click-modal="false"> <el-dialog
:title="calcTitle"
:visible.sync="dialogVisible"
width="800px"
append-to-body
:close-on-click-modal="false"
>
<!-- <div style="color:#fff"> <!-- <div style="color:#fff">
<p>类型:{{type}} 增删改类型:{{mode}}</p> <p>类型:{{type}} 增删改类型:{{mode}}</p>
<p>模板id:{{ tpl }}</p> <p>模板id:{{ tpl }}</p>
@ -9,15 +15,38 @@
<div class="dialogCloseButton"></div> <div class="dialogCloseButton"></div>
</div> </div>
<el-card> <el-card>
<BoardTplPreview style="width: 100%;" :boardWH="screenSize" :tpl="dataForm"></BoardTplPreview> <BoardTplPreview
style="width: 100%"
:boardWH="screenSize"
:tpl="dataForm"
></BoardTplPreview>
</el-card> </el-card>
<el-card> <el-card>
<el-form :model="dataForm" :rules="dataRule" label-width="110px" ref="dataForm" size="mini"> <el-form
:model="dataForm"
:rules="dataRule"
label-width="110px"
ref="dataForm"
size="mini"
>
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="所属类别" v-if="type == 'template' && mode!='toDevice'" prop="category"> <el-form-item
<el-select v-model="dataForm.category" placeholder="请选择所属类别" size="mini"> label="所属类别"
<el-option v-for="item in templateCategoryList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"> v-if="type == 'template' && mode != 'toDevice'"
prop="category"
>
<el-select
v-model="dataForm.category"
placeholder="请选择所属类别"
size="mini"
>
<el-option
v-for="item in templateCategoryList"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -33,16 +62,33 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="24" style="display: flex; flex-wrap: wrap;width:100%"> <el-row
:gutter="24"
style="display: flex; flex-wrap: wrap; width: 100%"
>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="详细内容" prop="content"> <el-form-item label="详细内容" prop="content">
<el-input type="textarea" :rows="6" placeholder="详细内容" v-model="dataForm.content"></el-input> <el-input
type="textarea"
:rows="6"
placeholder="详细内容"
v-model="dataForm.content"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="字体颜色"> <el-form-item label="字体颜色">
<el-select v-model="dataForm.fontColor" filterable placeholder="请选择"> <el-select
<el-option v-for="item in colorList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"> v-model="dataForm.fontColor"
filterable
placeholder="请选择"
>
<el-option
v-for="item in colorList"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -50,7 +96,12 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="字体大小"> <el-form-item label="字体大小">
<el-select v-model="dataForm.fontSize" style="width: 100%"> <el-select v-model="dataForm.fontSize" style="width: 100%">
<el-option v-for="item in fontSizeList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"> <el-option
v-for="item in fontSizeList"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -58,7 +109,12 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="字体类型"> <el-form-item label="字体类型">
<el-select v-model="dataForm.fontType" placeholder="请选择"> <el-select v-model="dataForm.fontType" placeholder="请选择">
<el-option v-for="item in fontTypeList" :key="item.dictLabel" :label="item.dictLabel" :value="item.dictValue"> <el-option
v-for="item in fontTypeList"
:key="item.dictLabel"
:label="item.dictLabel"
:value="item.dictValue"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -66,13 +122,18 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="停留时间(秒)"> <el-form-item label="停留时间(秒)">
<el-input-number :min="0" v-model="dataForm.stopTime"/> <el-input-number :min="0" v-model="dataForm.stopTime" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="入屏方式"> <el-form-item label="入屏方式">
<el-select v-model="dataForm.inScreenMode" placeholder="请选择"> <el-select v-model="dataForm.inScreenMode" placeholder="请选择">
<el-option v-for="item in inScreenModeList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"> <el-option
v-for="item in inScreenModeList"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -80,7 +141,12 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="屏幕尺寸"> <el-form-item label="屏幕尺寸">
<el-select v-model="screenSize" placeholder="请选择" disabled> <el-select v-model="screenSize" placeholder="请选择" disabled>
<el-option v-for="item in screenSizeOptions" :key="item.device_pixel" :label="item.device_pixel" :value="item.device_pixel"> <el-option
v-for="item in screenSizeOptions"
:key="item.device_pixel"
:label="item.device_pixel"
:value="item.device_pixel"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -90,66 +156,84 @@
</el-card> </el-card>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="onSubmit('dataForm')" v-loading="loading" style="background-color: #10aac2;color:#fff;">确认</el-button> <el-button style="background-color: #0e708b; color: #fff" @click="onClose"
<el-button style="background-color:#b5b5b6;color:#fff" @click="onClose">取消</el-button> >取消</el-button
>
<el-button
@click="onSubmit('dataForm')"
v-loading="loading"
style="background-color: #10aac2; color: #fff"
>确认</el-button
>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { getTemplateList, addTemplate, addTemplateContent, editTemplateContent, editTemplate, deleteTemplate, getTemplateContent, getGalleryList, getFontSizeByDevicePixel, uploadBoardEditInfo } from '@/api/board/template' import {
import { devicessize } from '@/api/information/api.js' getTemplateList,
import { checkIotBoardContent } from '@/api/board/vocabulary' addTemplate,
import BoardPreview from "@screen/components/infoBoard/BoardPreview.vue" addTemplateContent,
import BoardTplPreview from "@screen/components/infoBoard/BoardTplPreview.vue" editTemplateContent,
import infoBoardUtils from "@screen/utils/infoBoard.js" editTemplate,
import { checkBoardContent } from '@/api/board/board' deleteTemplate,
import { debounce } from 'lodash' getTemplateContent,
getGalleryList,
getFontSizeByDevicePixel,
uploadBoardEditInfo,
} from "@/api/board/template";
import { devicessize } from "@/api/information/api.js";
import { checkIotBoardContent } from "@/api/board/vocabulary";
import BoardPreview from "@screen/components/infoBoard/BoardPreview.vue";
import BoardTplPreview from "@screen/components/infoBoard/BoardTplPreview.vue";
import infoBoardUtils from "@screen/utils/infoBoard.js";
import { checkBoardContent } from "@/api/board/board";
import { debounce } from "lodash";
export default { export default {
data() { data() {
return { return {
alignmentNum: 2, alignmentNum: 2,
content: '', content: "",
boardWidth: '', boardWidth: "",
boardHeight: '', boardHeight: "",
checkList: [], // checkList: [], //
obj: '', obj: "",
imgUrl: [], imgUrl: [],
imgUrlOther: [], imgUrlOther: [],
dialogVisible: false, dialogVisible: false,
fileList: [ fileList: [
{ {
name: 'food.jpeg', name: "food.jpeg",
url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100' url: "https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100",
}, },
{ {
name: 'food2.jpeg', name: "food2.jpeg",
url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100' url: "https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100",
} },
], ],
listquery: [], // listquery: [], //
curDragImgItem: '', curDragImgItem: "",
startTxt_x: '000', startTxt_x: "000",
startTxt_y: '000', startTxt_y: "000",
width: '400', width: "400",
height: '40', height: "40",
// content: "", // content: "",
fontSize: '24', fontSize: "24",
fontType: 'KaiTi', fontType: "KaiTi",
fontSpacing: 0, fontSpacing: 0,
coordinate: '000000', coordinate: "000000",
url: '', url: "",
previewContent: '', // previewContent: "", //
ispreviewContent: -1, ispreviewContent: -1,
dataForm: { dataForm: {
category:"", category: "",
formatStyle:"", formatStyle: "",
content:"", content: "",
fontColor:"", fontColor: "",
fontSize:"", fontSize: "",
fontType:"", fontType: "",
stopTime:"", stopTime: "",
inScreenMode:"", inScreenMode: "",
screenSize:"" screenSize: "",
}, },
templateContent: [], templateContent: [],
templateDelContent: [], templateDelContent: [],
@ -157,183 +241,190 @@ export default {
content: [ content: [
{ {
required: true, required: true,
message: '请输入详细内容', message: "请输入详细内容",
trigger: 'blur' trigger: "blur",
} },
], ],
category: [ category: [
{ {
required: true, required: true,
message: '请选择类别', message: "请选择类别",
trigger: 'blur' trigger: "blur",
} },
] ],
}, },
screenSizeOptions: [], screenSizeOptions: [],
colorList: [], colorList: [],
isCurrencyOptions: [ isCurrencyOptions: [
{ {
code: '0', code: "0",
content: '通用' content: "通用",
}, },
{ {
code: '1', code: "1",
content: '仅为智能推荐模板' content: "仅为智能推荐模板",
} },
], ],
inScreenModeList: [], inScreenModeList: [],
imgSize: [ imgSize: [
{ {
type: '1024*128', type: "1024*128",
name: '全屏' name: "全屏",
}, },
{ {
type: '', type: "",
name: '正常' name: "正常",
} },
], ],
fontSizeList: [], fontSizeList: [],
title: '选择图片', title: "选择图片",
loading: false, loading: false,
isAdd: false, isAdd: false,
templateCategoryList: [], templateCategoryList: [],
infoType: '', infoType: "",
devicePixelBoolean: false, devicePixelBoolean: false,
categoryRules: false, categoryRules: false,
deviceCttDefault: { deviceCttDefault: {
"residenceTime": "50", residenceTime: "50",
"intonation": "0", intonation: "0",
"fontSpacing": "1", fontSpacing: "1",
"screenEntryMethod": "1", screenEntryMethod: "1",
"screenOutputMethod": "1", screenOutputMethod: "1",
"lineSpacing": "0", lineSpacing: "0",
"yCoordinate": "0", yCoordinate: "0",
"whetherToSynchronizePlayback": "0", whetherToSynchronizePlayback: "0",
"whetherToPlayText": "0", whetherToPlayText: "0",
"playbackCount": "1", playbackCount: "1",
"flashingFrequency": "5", flashingFrequency: "5",
"backgroundColor": "8", backgroundColor: "8",
"foregroundColor": "FFFF00", foregroundColor: "FFFF00",
"textContent": "", textContent: "",
"fontStyle": "0", fontStyle: "0",
"displayAreaWidth": "768", displayAreaWidth: "768",
"playbackDuration": "50", playbackDuration: "50",
"displayAreaHeight": "64", displayAreaHeight: "64",
"volume": "0", volume: "0",
"xCoordinate": "0", xCoordinate: "0",
"screenEntrySpeed": "1", screenEntrySpeed: "1",
"horizontalAlignment": "2", horizontalAlignment: "2",
"playSpecialEffects": "0", playSpecialEffects: "0",
"setUpTheSpeaker": "0", setUpTheSpeaker: "0",
"flickerSpeed": "0", flickerSpeed: "0",
"specialEffectsSpeed": "1", specialEffectsSpeed: "1",
"fontSize": "20", fontSize: "20",
"verticalAlignment": "2", verticalAlignment: "2",
"speechSpeed": "0", speechSpeed: "0",
"font": "3" font: "3",
},
isLocked :false,
}
}, },
props:{ isLocked: false,
mode:{ //add edit };
type:String,
default:""
}, },
type: { //template board props: {
mode: {
//add edit
type: String, type: String,
default: "" default: "",
}, },
visible:{ type: {
type:Boolean, //template board
default:false type: String,
default: "",
}, },
screenSize:{ visible: {
type:String, type: Boolean,
default:"" default: false,
}, },
tpl:{ screenSize: {
type:Object, type: String,
default:()=>{} default: "",
}
}, },
components:{ tpl: {
BoardPreview, BoardTplPreview type: Object,
default: () => {},
},
},
components: {
BoardPreview,
BoardTplPreview,
}, },
computed: { computed: {
calcTitle(){ calcTitle() {
let str = ''; let str = "";
if(this.mode=="toDevice"){ if (this.mode == "toDevice") {
str = `从模板添加设备信息`; str = `从模板添加设备信息`;
}else{ } else {
str = `${this.mode == 'add' ? '新增' : '编辑'}${this.type == 'template' ? '信息模板' : '设备信息'}` str = `${this.mode == "add" ? "新增" : "编辑"}${
this.type == "template" ? "信息模板" : "设备信息"
}`;
} }
return str; return str;
} },
}, },
watch: { watch: {
visible:{ visible: {
handler(newV){ handler(newV) {
this.dialogVisible = newV; this.dialogVisible = newV;
if(this.$refs.dataForm){ if (this.$refs.dataForm) {
this.$refs.dataForm.clearValidate(); this.$refs.dataForm.clearValidate();
} }
// if(newV){ // if(newV){
// this.initData(); // this.initData();
// } // }
}, },
immediate:true immediate: true,
}, },
dialogVisible(newV){ dialogVisible(newV) {
this.$emit("update:visible", newV); this.$emit("update:visible", newV);
}, },
tpl:{ tpl: {
handler(newV){ handler(newV) {
// { "id": 3, "category": "0", "content": "", "screenSize": "768*64", "fontColor": "FFFF00", "fontSize": "64", "fontType": "2", "fontSpacing": "0", "rollingSpeed": null, "stopTime": "50", "inScreenMode": "1", "formatStyle": "2", "remark": null, "createTime": "2024-01-06 10:40:19", "updateTime": "2024-01-06 11:04:53" } // { "id": 3, "category": "0", "content": "", "screenSize": "768*64", "fontColor": "FFFF00", "fontSize": "64", "fontType": "2", "fontSpacing": "0", "rollingSpeed": null, "stopTime": "50", "inScreenMode": "1", "formatStyle": "2", "remark": null, "createTime": "2024-01-06 10:40:19", "updateTime": "2024-01-06 11:04:53" }
if(newV && Object.keys(newV).length>0){ // if (newV && Object.keys(newV).length > 0) {
//
this.initData(); this.initData();
} }
}, },
deep:true deep: true,
}, },
"mode": { mode: {
handler(newV) { handler(newV) {
this.initData(); this.initData();
}
}, },
"type": { },
type: {
handler(newV) { handler(newV) {
this.initData(); this.initData();
}
}
}, },
mounted() {
}, },
},
mounted() {},
created() { created() {
this.getDicts('iot_devices_font_color').then(res => { this.getDicts("iot_devices_font_color").then((res) => {
this.colorList = res.data; this.colorList = res.data;
// console.log(this.colorList, ""); // console.log(this.colorList, "");
}) });
this.getDicts('iot_device_font_inScreen_mode').then(res => { this.getDicts("iot_device_font_inScreen_mode").then((res) => {
this.inScreenModeList = res.data this.inScreenModeList = res.data;
// console.log(this.inScreenModeList, ""); // console.log(this.inScreenModeList, "");
}) });
this.getDicts('iot_template_category').then(res => { this.getDicts("iot_template_category").then((res) => {
this.templateCategoryList = res.data; this.templateCategoryList = res.data;
}) });
this.getDicts('iot_device_font_size').then(res => { this.getDicts("iot_device_font_size").then((res) => {
this.fontSizeList = res.data; this.fontSizeList = res.data;
// this.dataForm.FONT_SIZE = res.data[1].dictValue // this.dataForm.FONT_SIZE = res.data[1].dictValue
}) });
}, },
methods: { methods: {
initData() { initData() {
if(this.isLocked){ if (this.isLocked) {
return return;
} }
this.isLocked = true; this.isLocked = true;
setTimeout(()=>{this.isLocked = false}, 100); setTimeout(() => {
this.isLocked = false;
}, 100);
// getTemplateList({id:this.tpl.id}).then(res=>{ // getTemplateList({id:this.tpl.id}).then(res=>{
// console.log(res.data , "++++++++==========="); // console.log(res.data , "++++++++===========");
@ -351,26 +442,33 @@ export default {
fontType: this.fontTypeList[0].dictValue, fontType: this.fontTypeList[0].dictValue,
stopTime: 50, stopTime: 50,
inScreenMode: this.inScreenModeList[0].dictValue, inScreenMode: this.inScreenModeList[0].dictValue,
screenSize: this.screenSize screenSize: this.screenSize,
} };
} } else {
else {
tempTpl = _.merge({}, this.deviceCttDefault, this.tpl.origin); // tempTpl = _.merge({}, this.deviceCttDefault, this.tpl.origin); //
} }
this.dataForm = infoBoardUtils.dialogSourceFormat(tempTpl, this.type, this.mode); this.dataForm = infoBoardUtils.dialogSourceFormat(
tempTpl,
this.type,
this.mode
);
} else { } else {
this.dataForm = infoBoardUtils.dialogSourceFormat(this.tpl, this.type, this.mode, this.deviceCttDefault); this.dataForm = infoBoardUtils.dialogSourceFormat(
this.tpl,
this.type,
this.mode,
this.deviceCttDefault
);
} }
if (this.visible == false && this.mode == "toDevice") { if (this.visible == false && this.mode == "toDevice") {
this.onSubmit(); this.onSubmit();
} }
}, },
onClose(){ onClose() {
this.dialogVisible = false; this.dialogVisible = false;
}, },
// //
async onSubmit(formName) { async onSubmit(formName) {
// this.$refs[formName].validate((valid) => { // this.$refs[formName].validate((valid) => {
// if (valid) { // if (valid) {
@ -380,68 +478,76 @@ export default {
// } // }
// }); // });
if (this.type == "template" && this.dataForm.category == undefined) {
if (this.type=="template" && this.dataForm.category == undefined) { return this.$modal.msgError("请选择分类!");
return this.$modal.msgError('请选择分类!')
} }
if (!this.dataForm.content.trim()) { if (!this.dataForm.content.trim()) {
return this.$modal.msgError('当前输入内容为空') return this.$modal.msgError("当前输入内容为空");
} }
if (this.dataForm.content.indexOf('\\')>=0) { if (this.dataForm.content.indexOf("\\") >= 0) {
return this.$modal.msgError("内容不能含有特殊字符'\\\\'") return this.$modal.msgError("内容不能含有特殊字符'\\\\'");
} }
let ctt = this.dataForm.content; let ctt = this.dataForm.content;
checkBoardContent(ctt).then(res => { checkBoardContent(ctt).then((res) => {
if (res.code == 200) { if (res.code == 200) {
doNext(); doNext();
} else { } else {
this.$message({ this.$message({
type: 'danger', type: "danger",
message: res.msg message: res.msg,
}); });
return; return;
} }
}) });
let doNext = () => { let doNext = () => {
let data = infoBoardUtils.dialogSaveFormat(
this.dataForm,
this.type,
this.mode
);
let data = infoBoardUtils.dialogSaveFormat(this.dataForm, this.type, this.mode); this.loading = true;
this.loading = true
// let templateId = ""; // let templateId = "";
if(this.type == "template"){ if (this.type == "template") {
if(this.mode=='edit'){ if (this.mode == "edit") {
editTemplate(data).then(res=>{ editTemplate(data).then((res) => {
afterSave("修改"); afterSave("修改");
}); });
}else if (this.mode == "toDevice") { } else if (this.mode == "toDevice") {
this.loading = false this.loading = false;
this.$emit("afterSubmit", { type: this.type, mode: this.mode, data: data }); this.$emit("afterSubmit", {
type: this.type,
mode: this.mode,
data: data,
});
} else { } else {
addTemplate(data).then(res => { addTemplate(data).then((res) => {
afterSave("新增"); afterSave("新增");
}); });
} }
} else {
}else{ this.loading = false;
this.loading = false
// this.dialogVisible = false // this.dialogVisible = false
this.$emit("afterSubmit", { type: this.type, mode: this.mode, data:data }); this.$emit("afterSubmit", {
type: this.type,
mode: this.mode,
data: data,
});
} }
const afterSave = (para)=>{ const afterSave = (para) => {
this.$message.success(para + '成功!') this.$message.success(para + "成功!");
this.loading = false this.loading = false;
// this.dialogVisible = false // this.dialogVisible = false
this.$emit("afterSubmit" , {type:this.type, mode:this.mode}); this.$emit("afterSubmit", { type: this.type, mode: this.mode });
} };
};
}
}, },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.infoBoardButton { .infoBoardButton {

47
ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/index.vue

@ -1,30 +1,42 @@
<template> <template>
<Card2 class='Auditlists' title="审核列表"> <Card2 class="Auditlists" title="审核列表">
<InputSearch style="width: 100%;" :formList="searchFormList" /> <InputSearch style="width: 100%" :formList="searchFormList" />
<div class="body"> <div class="body">
<ListItem v-for="item in list1" :key="item.id" :data="item" origin="left" class="middle-ratio" /> <ListItem
<ListItem v-for="item in list2" :key="item.id" :data="item" origin="left" class="middle-ratio" /> v-for="item in list1"
:key="item.id"
:data="item"
origin="left"
class="middle-ratio"
/>
<ListItem
v-for="item in list2"
:key="item.id"
:data="item"
origin="left"
class="middle-ratio"
/>
</div> </div>
<div class="footer"> <div class="footer">
<Pagination :total="90" /> <Pagination layout="total,prev, pager, next, jumper" :total="90" />
</div> </div>
</Card2> </Card2>
</template> </template>
<script> <script>
import Card2 from "@screen/components/Card2/Card.vue"; import Card2 from "@screen/components/Card2/Card.vue";
import Pagination from '@screen/components/Pagination.vue'; import Pagination from "@screen/components/Pagination.vue";
import InputSearch from '@screen/components/InputSearch/index.vue'; import InputSearch from "@screen/components/InputSearch/index.vue";
import { searchFormList } from './data'; import { searchFormList } from "./data";
import ListItem from "./ListItem.vue"; import ListItem from "./ListItem.vue";
export default { export default {
name: 'Auditlists', name: "Auditlists",
components: { components: {
Card2, Card2,
InputSearch, InputSearch,
Pagination, Pagination,
ListItem ListItem,
}, },
data() { data() {
return { return {
@ -37,7 +49,7 @@ export default {
const min = 0; const min = 0;
const max = 2; const max = 2;
return Math.floor(Math.random() * (max - min + 1)) + min; return Math.floor(Math.random() * (max - min + 1)) + min;
})() })(),
})), })),
list2: Array.from({ length: 10 }).map(() => ({ list2: Array.from({ length: 10 }).map(() => ({
title: "交通事故", title: "交通事故",
@ -47,26 +59,23 @@ export default {
const min = 0; const min = 0;
const max = 2; const max = 2;
return Math.floor(Math.random() * (max - min + 1)) + min; return Math.floor(Math.random() * (max - min + 1)) + min;
})() })(),
})), })),
} };
}, },
created() { created() {
// axiosIns.get("/business/dcPublishInfo/list") // axiosIns.get("/business/dcPublishInfo/list")
// .then((result) => { // .then((result) => {
// console.log("%c [ result ]-39-index.vue", "font-size:15px; background:#4bd543; color:#8fff87;", result); // console.log("%c [ result ]-39-index.vue", "font-size:15px; background:#4bd543; color:#8fff87;", result);
// if (result.code !== 200) return this.list = []; // if (result.code !== 200) return this.list = [];
// this.list = result.rows; // this.list = result.rows;
// }).catch((err) => { // }).catch((err) => {
// }); // });
},
} };
}
</script> </script>
<style lang='scss' scoped> <style lang="scss" scoped>
.Auditlists { .Auditlists {
::v-deep { ::v-deep {
.content { .content {

37
ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue

@ -1,5 +1,5 @@
<template> <template>
<div class='PublishingChannelManagement'> <div class="PublishingChannelManagement">
<!-- 搜索栏 --> <!-- 搜索栏 -->
<div class="filter"> <div class="filter">
<div> <div>
@ -17,7 +17,11 @@
</ButtonGradient> </ButtonGradient>
</div> </div>
<InputSearch style="width: 402px;" :formList="searchFormList" @handleSearch="handleSearch" /> <InputSearch
style="width: 402px"
:formList="searchFormList"
@handleSearch="handleSearch"
/>
</div> </div>
<!-- 内容 --> <!-- 内容 -->
@ -27,7 +31,7 @@
<!-- 分页 --> <!-- 分页 -->
<div class="footer"> <div class="footer">
<Pagination :total="90" /> <Pagination layout="total,prev, pager, next, jumper" :total="90" />
</div> </div>
<!-- 新增编辑弹窗 --> <!-- 新增编辑弹窗 -->
@ -36,34 +40,34 @@
</template> </template>
<script> <script>
import Pagination from '@screen/components/Pagination.vue'; import Pagination from "@screen/components/Pagination.vue";
import InputSearch from '@screen/components/InputSearch/index.vue'; import InputSearch from "@screen/components/InputSearch/index.vue";
import Card from './components/Card'; import Card from "./components/Card";
import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue'; import ButtonGradient from "@screen/components/Buttons/ButtonGradient.vue";
import AddNEditDialog from "./components/AddNEditDialog.vue"; import AddNEditDialog from "./components/AddNEditDialog.vue";
import { searchFormList } from './data'; import { searchFormList } from "./data";
export default { export default {
name: 'PublishingChannelManagement', name: "PublishingChannelManagement",
components: { components: {
Pagination, Pagination,
InputSearch, InputSearch,
Card, Card,
ButtonGradient, ButtonGradient,
AddNEditDialog AddNEditDialog,
}, },
data() { data() {
return { return {
searchFormList, searchFormList,
data: [], data: [],
addNEditDialogVisible: false, addNEditDialogVisible: false,
dialogData: null dialogData: null,
} };
}, },
methods: { methods: {
handleOpenDialogAddEdit(data) { handleOpenDialogAddEdit(data) {
console.log('data', data); console.log("data", data);
this.addNEditDialogVisible = true; this.addNEditDialogVisible = true;
this.dialogData = data; this.dialogData = data;
}, },
@ -71,13 +75,12 @@ export default {
// this.searchData = data; // this.searchData = data;
// this.getData(); // this.getData();
}, },
} },
} };
</script> </script>
<style lang='scss' scoped> <style lang="scss" scoped>
.PublishingChannelManagement { .PublishingChannelManagement {
padding: 21px; padding: 21px;
height: 100%; height: 100%;

2
ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue

@ -85,7 +85,7 @@
:total="numTotal" :total="numTotal"
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pageSize" :page-size="pageSize"
layout="prev, pager, next,total, jumper" layout="total,prev, pager, next, jumper"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
/> />

Loading…
Cancel
Save