From 0466b4ebd427389d703bc1f4ddfbc42c34c8965a Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Sat, 23 Mar 2024 14:09:22 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/views/wel/index.vue | 9
src/page/index/index.vue | 6
src/api/baskblast/backblastWarnHanRec.js | 49 +++
src/views/backblask/BackblastWarnHanRec.vue | 421 ++++++++++++++++++++++++++
src/api/baskblast/BackblastPubRecord.js | 49 +++
src/views/backblask/BackblastPubRecord.vue | 419 ++++++++++++++++++++++++++
6 files changed, 948 insertions(+), 5 deletions(-)
diff --git a/src/api/baskblast/BackblastPubRecord.js b/src/api/baskblast/BackblastPubRecord.js
new file mode 100644
index 0000000..6da10d8
--- /dev/null
+++ b/src/api/baskblast/BackblastPubRecord.js
@@ -0,0 +1,49 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+ return request({
+ url: '/api/blade-backblastPubRecord/backblastPubRecord/page',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ }
+ })
+}
+
+export const remove = (ids) => {
+ return request({
+ url: '/api/blade-backblastPubRecord/backblastPubRecord/remove',
+ method: 'post',
+ params: {
+ ids,
+ }
+ })
+}
+
+export const add = (row) => {
+ return request({
+ url: '/api/blade-backblastPubRecord/backblastPubRecord/submit',
+ method: 'post',
+ data: row
+ })
+}
+
+export const update = (row) => {
+ return request({
+ url: '/api/blade-backblastPubRecord/backblastPubRecord/submit',
+ method: 'post',
+ data: row
+ })
+}
+
+export const getDetail = (id) => {
+ return request({
+ url: '/api/blade-backblastPubRecord/backblastPubRecord/getDetail',
+ method: 'get',
+ params: {
+ id
+ }
+ })
+}
diff --git a/src/api/baskblast/backblastWarnHanRec.js b/src/api/baskblast/backblastWarnHanRec.js
new file mode 100644
index 0000000..79d3a0e
--- /dev/null
+++ b/src/api/baskblast/backblastWarnHanRec.js
@@ -0,0 +1,49 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+ return request({
+ url: '/api/blade-backblastWarnHanRec/backblastWarnHanRec/page',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ }
+ })
+}
+
+export const remove = (ids) => {
+ return request({
+ url: '/api/blade-backblastWarnHanRec/backblastWarnHanRec/remove',
+ method: 'post',
+ params: {
+ ids,
+ }
+ })
+}
+
+export const add = (row) => {
+ return request({
+ url: '/api/blade-backblastWarnHanRec/backblastWarnHanRec/submit',
+ method: 'post',
+ data: row
+ })
+}
+
+export const update = (row) => {
+ return request({
+ url: '/api/blade-backblastWarnHanRec/backblastWarnHanRec/submit',
+ method: 'post',
+ data: row
+ })
+}
+
+export const getDetail = (id) => {
+ return request({
+ url: '/api/blade-backblastWarnHanRec/backblastWarnHanRec/getDetail',
+ method: 'get',
+ params: {
+ id
+ }
+ })
+}
diff --git a/src/page/index/index.vue b/src/page/index/index.vue
index e9848f5..75e2635 100644
--- a/src/page/index/index.vue
+++ b/src/page/index/index.vue
@@ -62,11 +62,13 @@
//刷新token的时间
refreshTime: "",
globalUserInfo: getStore({ name: "userInfo" }),
+ webType: getStore({ name: "webType" }),
}
},
created () {
- Watermark.set("饶城格格通" + ' ' + this.globalUserInfo.real_name + ' ' + this.getTime())
-
+ if(this.webType != 'govern'){
+ Watermark.set("饶城格格通" + ' ' + this.globalUserInfo.real_name + ' ' + this.getTime())
+ }
//实时检测刷新token
this.refreshToken()
},
diff --git a/src/views/backblask/BackblastPubRecord.vue b/src/views/backblask/BackblastPubRecord.vue
new file mode 100644
index 0000000..9f36495
--- /dev/null
+++ b/src/views/backblask/BackblastPubRecord.vue
@@ -0,0 +1,419 @@
+<template>
+ <basic-container>
+ <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel"
+ v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave"
+ :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset"
+ @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
+ @refresh-change="refreshChange" @on-load="onLoad">
+ <template slot-scope="{row, size}" slot="policemanPhone">
+ <el-button :size="size" type="text" @click="showStringDispose(row, 'policemanPhoneflag')"
+ v-text="textDispose(row, 'policemanPhoneflag', 'policemanPhone')">
+ </el-button>
+ </template>
+ <!-- <template slot="menuLeft">
+ <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
+ </el-button>
+ </template> -->
+ </avue-crud>
+ </basic-container>
+</template>
+
+<script>
+import {
+ mapGetters
+} from "vuex"
+import {
+ getList,
+ add,
+ update,
+ remove,
+ getDetail
+} from "@/api/baskblast/BackblastPubRecord"
+import NProgress from 'nprogress'
+import 'nprogress/nprogress.css'
+import Qs from "qs"
+import website from '@/config/website'
+import {
+ exportBlob
+} from "@/api/common"
+import {
+ getToken
+} from '@/util/auth'
+import {
+ downloadXls
+} from "@/util/util"
+import {
+ dateNow
+} from "@/util/date"
+
+export default {
+ data() {
+ return {
+ form: {},
+ query: {},
+ loading: true,
+
+ page: {
+ pageSize: 10,
+ currentPage: 1,
+ total: 0,
+ },
+ datetime: "",
+ selectionList: [],
+ option: {
+ height: "auto",
+ calcHeight: 54,
+ dialogWidth: 950,
+ menuWidth: 100,
+ tip: false,
+ searchShow: true,
+ searchMenuSpan: 3,
+ border: true,
+ index: true,
+ viewBtn: true,
+ editBtn: false,
+ delBtn: false,
+ addBtn: false,
+ refreshBtn: false,
+ searchShowBtn: false,
+ columnBtn: false,
+ dialogClickModal: false,
+ column: [
+ {
+ label: "宣传地址",
+ prop: "address",
+ align: 'center',
+ minWidth: 210,
+ labelWidth:120,
+ search: true,
+ searchSpan: 5,
+ overHidden: true,
+ row:true,
+ span:24,
+ }, {
+ label: "宣传内容",
+ prop: "pubContent",
+ labelWidth:120,
+ align: 'center',
+ type:"textarea",
+ row:true,
+ span:24,
+ overHidden:true,
+ },
+ {
+ label: "宣传图片",
+ prop: "pubUrls",
+ // align: 'center',
+ fileType: 'img',
+ labelWidth:120,
+ type: "upload",
+ listType: "picture-card",
+ dataType: "string",
+ width: 110,
+ row:true,
+ span:24,
+ }, {
+ label: "宣传时间",
+ prop: "createTime",
+ align: 'center',
+ labelWidth:120,
+ width: 156,
+ row:true,
+ }, {
+ label: "民警姓名",
+ prop: "policeman",
+ align: 'center',
+ labelWidth:120,
+ search: true,
+ searchSpan: 4,
+ // searchLabelWidth: 96,
+ width: 110,
+ searchPlaceholder: '请输入民警姓名'
+ }, {
+ label: "民警联系方式",
+ prop: "policemanPhone",
+ align: 'center',
+ slot: true,
+ labelWidth:120,
+ search: true,
+ searchLabelWidth: 110,
+ searchSpan: 4,
+ width: 120
+ }, {
+ label: "地区",
+ prop: "townName",
+ align: 'center',
+ search: true,
+ searchSpan: 3,
+ searchLabelWidth: 46,
+ labelWidth: 120,
+ width: 156,
+ searchPlaceholder: '请输入地区'
+ }, {
+ label: "辖区派出所",
+ prop: "pcsName",
+ align: 'center',
+ labelWidth:120,
+ search: true,
+ searchSpan: 4,
+ searchLabelWidth: 96,
+ searchPlaceholder: '请输入辖区派出所'
+ }],
+ },
+ data: []
+ }
+ },
+
+ computed: {
+ ...mapGetters(["permission", "userInfo"]),
+ permissionList() {
+ return {
+ addBtn: this.vaildData(this.permission.place_add, true),
+ viewBtn: this.vaildData(this.permission.place_view, true),
+ delBtn: this.vaildData(this.permission.place_delete, true),
+ editBtn: this.vaildData(this.permission.place_edit, true),
+ }
+ },
+ ids() {
+ let ids = []
+ this.selectionList.forEach((ele) => {
+ ids.push(ele.id)
+ })
+ return ids.join(",")
+ },
+
+ textDispose() {
+ return (row, flag, type) => {
+ if (row[flag] || row[type] == null) {
+ return row[type]
+ } else {
+ if (type == 'principalIdCard') {
+ return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2")
+ } else {
+ return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2")
+ }
+ }
+ }
+ }
+ },
+ methods: {
+ handleExport() {
+ this.$confirm("是否导出档案管理数据?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning"
+ }).then(() => {
+ NProgress.start()
+ var data = {
+ ...this.query
+ }
+ data.isNine = 1
+ data = Qs.stringify(data)
+ exportBlob(
+ `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data
+ ).then(res => {
+ console.log('exportBlob', res)
+ downloadXls(res.data, `档案管理${dateNow()}.xlsx`)
+ NProgress.done()
+ })
+ })
+ },
+
+ showStringDispose(row, type) {
+ row[type] = !row[type]
+ },
+
+ rowSave(row, done, loading) {
+ if (row.imageUrls.length > 0) {
+ var urls = []
+ var split = row.imageUrls.split(",").filter(item => item != '')
+ split.forEach(url => {
+ var names = url.split("jczz/")
+ urls.push(names[1])
+ })
+ row.imageUrls = urls.join(",")
+ }
+
+ let label = row.label
+
+ if (row.smallLabel != '') {
+ label = label + ',' + row.smallLabel
+ }
+
+ delete row.smallLabel
+
+ add({
+ ...row,
+ label
+ }).then(
+ () => {
+ this.onLoad(this.page)
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ done()
+ },
+ (error) => {
+ window.console.log(error)
+ loading()
+ }
+ )
+ },
+
+ rowUpdate(row, index, done, loading) {
+ if (row.imageUrls.length > 0) {
+ var urls = []
+ var split = row.imageUrls.split(",").filter(item => item != '')
+ split.forEach(url => {
+ var names = url.split("jczz/")
+ urls.push(names[1])
+ })
+ row.imageUrls = urls.join(",")
+ }
+
+ let label = row.label
+
+ if (row.smallLabel != '') {
+ label = label + ',' + row.smallLabel
+ }
+
+ delete row.smallLabel
+
+ update({
+ ...row,
+ label
+ }).then(
+ () => {
+ this.onLoad(this.page)
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ done()
+ },
+ (error) => {
+ window.console.log(error)
+ loading()
+ }
+ )
+ },
+
+ rowDel(row) {
+ this.$confirm("确定将选择数据删除?", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ row.isDeleted = 1
+ return removeTask(row)
+ })
+ .then(() => {
+ this.onLoad(this.page)
+
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ })
+ },
+
+ searchReset() {
+ this.query = {}
+ this.onLoad(this.page)
+ },
+
+ searchChange(params, done) {
+ this.query = params
+ this.page.currentPage = 1
+ this.onLoad(this.page, params)
+ done()
+ },
+
+ selectionChange(list) {
+ this.selectionList = list
+ },
+
+ selectionClear() {
+ this.selectionList = []
+ this.$nextTick(() => {
+ this.$refs.crud && this.$refs.crud.toggleSelection()
+ })
+ },
+
+ handleDelete() {
+ if (this.selectionList.length === 0) {
+ this.$message.warning("请选择至少一条数据")
+ return
+ }
+ this.$confirm("确定将选择数据删除?", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ return remove(this.ids)
+ })
+ .then(() => {
+ this.onLoad(this.page)
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ this.$refs.crud.toggleSelection()
+ })
+ },
+
+ beforeOpen(done, type) {
+ if (["edit", "view"].includes(type)) {
+ getDetail(this.form.id).then(res => {
+
+ })
+ done()
+ } else {
+ done()
+ }
+ },
+
+ currentChange(currentPage) {
+ this.page.currentPage = currentPage
+ },
+
+ sizeChange(pageSize) {
+ this.page.pageSize = pageSize
+ },
+
+ refreshChange() {
+ // this.onLoad(this.page, this.query)
+ },
+
+ onLoad(page, params = {}) {
+ this.loading = true
+ getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+ const data = res.data.data
+ this.page.total = data.total
+ this.data = data.records
+ this.data.forEach(item => {
+ if (item.pubUrls && item.pubUrls != '' && item.pubUrls != null && item.pubUrls.length) {
+ var urls = []
+ var names = item.pubUrls.split(",").filter(item => item != '')
+ names.forEach(name => {
+ urls.push(this.website.minioUrl + name)
+ })
+ item.pubUrls = urls.join(",")
+ }
+ })
+ this.loading = false
+ this.selectionClear()
+ })
+ }
+ }
+}
+</script>
+
+<style lang="scss" scoped>
+.avue-upload__icon {
+ line-height: 6;
+}
+</style>
diff --git a/src/views/backblask/BackblastWarnHanRec.vue b/src/views/backblask/BackblastWarnHanRec.vue
new file mode 100644
index 0000000..721eff8
--- /dev/null
+++ b/src/views/backblask/BackblastWarnHanRec.vue
@@ -0,0 +1,421 @@
+<template>
+ <basic-container>
+ <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel"
+ v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave"
+ :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset"
+ @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
+ @refresh-change="refreshChange" @on-load="onLoad">
+ <template slot-scope="{row, size}" slot="policemanPhone">
+ <el-button :size="size" type="text" @click="showStringDispose(row, 'policemanPhoneflag')"
+ v-text="textDispose(row, 'policemanPhoneflag', 'policemanPhone')">
+ </el-button>
+ </template>
+ <!-- <template slot="menuLeft">
+ <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
+ </el-button>
+ </template> -->
+ </avue-crud>
+ </basic-container>
+</template>
+
+<script>
+import {
+ mapGetters
+} from "vuex"
+import {
+ getList,
+ add,
+ update,
+ remove,
+ getDetail
+} from "@/api/baskblast/backblastWarnHanRec"
+import NProgress from 'nprogress'
+import 'nprogress/nprogress.css'
+import Qs from "qs"
+import {
+ exportBlob
+} from "@/api/common"
+import {
+ getToken
+} from '@/util/auth'
+import {
+ downloadXls
+} from "@/util/util"
+import {
+ dateNow
+} from "@/util/date"
+import website from '@/config/website'
+export default {
+ data() {
+ return {
+ form: {},
+ query: {},
+ loading: true,
+
+ page: {
+ pageSize: 10,
+ currentPage: 1,
+ total: 0,
+ },
+ datetime: "",
+ selectionList: [],
+ option: {
+ height: "auto",
+ calcHeight: 54,
+ dialogWidth: 950,
+ menuWidth: 100,
+ tip: false,
+ searchShow: true,
+ searchMenuSpan: 3,
+ // menu: false,
+ border: true,
+ index: true,
+ editBtn: false,
+ delBtn: false,
+ addBtn: false,
+ viewBtn:true,
+ refreshBtn: false,
+ searchShowBtn: false,
+ columnBtn: false,
+ dialogClickModal: false,
+ column: [
+ {
+ label: "预警地址",
+ prop: "address",
+ align: 'center',
+ minWidth: 210,
+ search: true,
+ searchSpan: 5,
+ span:24,
+ overHidden: true,
+ labelWidth:120,
+ row:true,
+ }, {
+ label: "预警核实内容",
+ prop: "recContent",
+ align: 'center',
+ minWidth:150,
+ labelWidth:120,
+ type:"textarea",
+ row:true,
+ span:24,
+ overHidden:true,
+ },
+ {
+ label: "预警核实图片",
+ prop: "sceUrls",
+ // align: 'center',
+ labelWidth:120,
+ row:true,
+ span:24,
+ fileType: 'img',
+ type: "upload",
+ listType: "picture-card",
+ dataType: "string",
+ width: 110,
+ }, {
+ label: "预警核实时间",
+ prop: "createTime",
+ labelWidth:120,
+ align: 'center',
+ width: 156,
+ row:true,
+ searchPlaceholder: '请输入'
+ }, {
+ label: "民警姓名",
+ prop: "policeman",
+ align: 'center',
+ search: true,
+ labelWidth:120,
+ searchSpan: 4,
+ // searchLabelWidth: 96,
+ width: 110,
+ searchPlaceholder: '请输入民警姓名'
+ }, {
+ label: "民警联系方式",
+ prop: "policemanPhone",
+ align: 'center',
+ slot: true,
+ labelWidth:120,
+ search: true,
+ searchLabelWidth: 110,
+ searchSpan: 4,
+ width: 120
+ }, {
+ label: "地区",
+ prop: "townName",
+ align: 'center',
+ search: true,
+ searchSpan: 3,
+ searchLabelWidth: 46,
+ labelWidth: 120,
+ width: 156,
+ searchPlaceholder: '请输入地区'
+ }, {
+ label: "辖区派出所",
+ prop: "pcsName",
+ align: 'center',
+ search: true,
+ searchSpan: 4,
+ labelWidth:120,
+ searchLabelWidth: 96,
+ searchPlaceholder: '请输入辖区派出所'
+ }],
+ },
+ data: []
+ }
+ },
+
+ computed: {
+ ...mapGetters(["permission", "userInfo"]),
+ permissionList() {
+ return {
+ addBtn: this.vaildData(this.permission.place_add, true),
+ viewBtn: this.vaildData(this.permission.place_view, true),
+ delBtn: this.vaildData(this.permission.place_delete, true),
+ editBtn: this.vaildData(this.permission.place_edit, true),
+ }
+ },
+ ids() {
+ let ids = []
+ this.selectionList.forEach((ele) => {
+ ids.push(ele.id)
+ })
+ return ids.join(",")
+ },
+
+ textDispose() {
+ return (row, flag, type) => {
+ if (row[flag] || row[type] == null) {
+ return row[type]
+ } else {
+ if (type == 'principalIdCard') {
+ return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2")
+ } else {
+ return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2")
+ }
+ }
+ }
+ }
+ },
+ methods: {
+ handleExport() {
+ this.$confirm("是否导出档案管理数据?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning"
+ }).then(() => {
+ NProgress.start()
+ var data = {
+ ...this.query
+ }
+ data.isNine = 1
+ data = Qs.stringify(data)
+ exportBlob(
+ `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data
+ ).then(res => {
+ console.log('exportBlob', res)
+ downloadXls(res.data, `档案管理${dateNow()}.xlsx`)
+ NProgress.done()
+ })
+ })
+ },
+
+ showStringDispose(row, type) {
+ row[type] = !row[type]
+ },
+
+ rowSave(row, done, loading) {
+ if (row.imageUrls.length > 0) {
+ var urls = []
+ var split = row.imageUrls.split(",").filter(item => item != '')
+ split.forEach(url => {
+ var names = url.split("jczz/")
+ urls.push(names[1])
+ })
+ row.imageUrls = urls.join(",")
+ }
+
+ let label = row.label
+
+ if (row.smallLabel != '') {
+ label = label + ',' + row.smallLabel
+ }
+
+ delete row.smallLabel
+
+ add({
+ ...row,
+ label
+ }).then(
+ () => {
+ this.onLoad(this.page)
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ done()
+ },
+ (error) => {
+ window.console.log(error)
+ loading()
+ }
+ )
+ },
+
+ rowUpdate(row, index, done, loading) {
+ if (row.imageUrls.length > 0) {
+ var urls = []
+ var split = row.imageUrls.split(",").filter(item => item != '')
+ split.forEach(url => {
+ var names = url.split("jczz/")
+ urls.push(names[1])
+ })
+ row.imageUrls = urls.join(",")
+ }
+
+ let label = row.label
+
+ if (row.smallLabel != '') {
+ label = label + ',' + row.smallLabel
+ }
+
+ delete row.smallLabel
+
+ update({
+ ...row,
+ label
+ }).then(
+ () => {
+ this.onLoad(this.page)
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ done()
+ },
+ (error) => {
+ window.console.log(error)
+ loading()
+ }
+ )
+ },
+
+ rowDel(row) {
+ this.$confirm("确定将选择数据删除?", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ row.isDeleted = 1
+ return removeTask(row)
+ })
+ .then(() => {
+ this.onLoad(this.page)
+
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ })
+ },
+
+ searchReset() {
+ this.query = {}
+ this.onLoad(this.page)
+ },
+
+ searchChange(params, done) {
+ this.query = params
+ this.page.currentPage = 1
+ this.onLoad(this.page, params)
+ done()
+ },
+
+ selectionChange(list) {
+ this.selectionList = list
+ },
+
+ selectionClear() {
+ this.selectionList = []
+ this.$nextTick(() => {
+ this.$refs.crud && this.$refs.crud.toggleSelection()
+ })
+ },
+
+ handleDelete() {
+ if (this.selectionList.length === 0) {
+ this.$message.warning("请选择至少一条数据")
+ return
+ }
+ this.$confirm("确定将选择数据删除?", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ return remove(this.ids)
+ })
+ .then(() => {
+ this.onLoad(this.page)
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ this.$refs.crud.toggleSelection()
+ })
+ },
+
+ beforeOpen(done, type) {
+ if (["edit", "view"].includes(type)) {
+ getDetail(this.form.id).then(res => {
+
+ })
+ done()
+ } else {
+ done()
+ }
+ },
+
+ currentChange(currentPage) {
+ this.page.currentPage = currentPage
+ },
+
+ sizeChange(pageSize) {
+ this.page.pageSize = pageSize
+ },
+
+ refreshChange() {
+ // this.onLoad(this.page, this.query)
+ },
+
+ onLoad(page, params = {}) {
+ this.loading = true
+ getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+ const data = res.data.data;
+ this.page.total = data.total
+ this.data = data.records
+ this.data.forEach(item => {
+ if (item.sceUrls && item.sceUrls != '' && item.sceUrls != null && item.sceUrls.length) {
+ var urls = []
+ var names = item.sceUrls.split(",").filter(item => item != '')
+ names.forEach(name => {
+ urls.push(website.minioUrl + name)
+ })
+ item.sceUrls = urls.join(",")
+ }
+ })
+ this.loading = false
+ this.selectionClear()
+ })
+ }
+ }
+}
+</script>
+
+<style lang="scss" scoped>
+.avue-upload__icon {
+ line-height: 6;
+}
+</style>
diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue
index 09a7699..9eceab5 100644
--- a/src/views/wel/index.vue
+++ b/src/views/wel/index.vue
@@ -12,7 +12,7 @@
</div>
</div>
</template>
-
+
<script>
import { getToken } from '@/util/auth'
import { getStore } from "@/util/store"
@@ -105,7 +105,10 @@
}
]
- if (this.globalUserInfo.role_name == 'administrator' || this.globalUserInfo.role_name.split(',').find(item => item == 'admin')) {
+ if (this.globalUserInfo.role_name == 'administrator' ||
+ this.globalUserInfo.role_name.indexOf('jdgly') != -1 ||
+ this.globalUserInfo.role_name.indexOf('sqgly') != -1 ||
+ this.globalUserInfo.role_name.split(',').find(item => item == 'admin')) {
this.homeMenuData.push({
imageUrl: 'img/jsc.png',
url: `http://srgdjczzxtpt.com:2181/uniform-auth/login?app=app_smart_aoi&Blade-Auth=bearer ${getToken()}`,
@@ -128,7 +131,7 @@
mouted () { },
}
</script>
-
+
<style lang="scss">
#homeL {
display: flex;
--
Gitblit v1.9.3