Commit 9688e522 by lp784568205

Merge branch 'dev_xzeq' of http://39.99.224.27:9022/changchao/founder_vue into dev_xzeq

parents 1779911b dba710e9
......@@ -1825,37 +1825,6 @@
"webpack-merge": "^4.2.2"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995651629&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz",
"integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.nlark.com/chalk/download/chalk-4.1.2.tgz?cache=0&sync_timestamp=1627646614989&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.2.tgz",
"integrity": "sha1-qsTit3NKdAhnrrFr8CqtVWoeegE=",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz",
"integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"debug": {
"version": "4.2.0",
"resolved": "https://registry.npm.taobao.org/debug/download/debug-4.2.0.tgz?cache=0&sync_timestamp=1600502871403&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-4.2.0.tgz",
......@@ -1865,35 +1834,11 @@
"ms": "2.1.2"
}
},
"loader-utils": {
"version": "2.0.2",
"resolved": "https://registry.npmmirror.com/loader-utils/download/loader-utils-2.0.2.tgz?cache=0&sync_timestamp=1636039915957&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Floader-utils%2Fdownload%2Floader-utils-2.0.2.tgz",
"integrity": "sha1-1uO0+4GHByGuTghoqxHdY4NowSk=",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz",
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=",
"dev": true
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmmirror.com/vue-loader/download/vue-loader-16.8.3.tgz?cache=0&sync_timestamp=1636034570924&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fvue-loader%2Fdownload%2Fvue-loader-16.8.3.tgz",
"integrity": "sha1-1D5nXe9bqTRdbH8FkUwT2GGZcIc=",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
......@@ -7266,6 +7211,11 @@
"integrity": "sha1-B8BQNKbDSfoG4k+jWqdttFgM5N0=",
"dev": true
},
"kindeditor": {
"version": "4.1.10",
"resolved": "https://rg.cnpmjs.org/kindeditor/download/kindeditor-4.1.10.tgz",
"integrity": "sha1-u7u6neOOE/hWggW+dl73M5621RU="
},
"launch-editor": {
"version": "2.2.1",
"resolved": "https://registry.npm.taobao.org/launch-editor/download/launch-editor-2.2.1.tgz",
......@@ -12281,6 +12231,63 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://rg.cnpmjs.org/vue-loader/download/vue-loader-16.8.3.tgz",
"integrity": "sha1-1D5nXe9bqTRdbH8FkUwT2GGZcIc=",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://r.cnpmjs.org/ansi-styles/download/ansi-styles-4.3.0.tgz",
"integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://rg.cnpmjs.org/chalk/download/chalk-4.1.2.tgz",
"integrity": "sha1-qsTit3NKdAhnrrFr8CqtVWoeegE=",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://r.cnpmjs.org/color-convert/download/color-convert-2.0.1.tgz",
"integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"loader-utils": {
"version": "2.0.2",
"resolved": "https://r.cnpmjs.org/loader-utils/download/loader-utils-2.0.2.tgz",
"integrity": "sha1-1uO0+4GHByGuTghoqxHdY4NowSk=",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
}
}
},
"vue-router": {
"version": "3.4.6",
"resolved": "https://registry.npm.taobao.org/vue-router/download/vue-router-3.4.6.tgz?cache=0&sync_timestamp=1602077426782&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.4.6.tgz",
......
......@@ -16,6 +16,7 @@
"file-saver": "^2.0.5",
"js-base64": "^3.7.2",
"js-cookie": "^2.2.1",
"kindeditor": "^4.1.10",
"moment": "^2.29.1",
"qs": "^6.9.4",
"relation-graph": "^1.1.0",
......
......@@ -38,6 +38,7 @@ if (
base.alyIP11 = 'http://74.6.54.173:8004' // 话单分析
base.alyIP13 = '/apiXssp' // 线索审批管理平台
base.alyIP14 = 'http://74.6.54.163:9002' // 西藏 人档车档
base.alyIP15 = '/xnpgbg' // 评估研判报告管理
}
export default base;
import { post, postform, postdown } from "@/utils/http.js";
import base from "@/api/base";
// 提交报告
export const insertTbYwXnpgbg = params =>
postform(`${base.alyIP15}/insertTbYwXnpgbg`, params);
// // 删除
export const deleteTbYwXnpgbg = data =>
post(`${base.alyIP15}/deleteTbYwXnpgbg`, data);
// 报告查询详情
export const getTbYwXnpgbg = data =>
post(`${base.alyIP15}/getTbYwXnpgbg`, data);
// 修改报告
export const updateTbYwXnpgbg = params =>
postform(`${base.alyIP15}/updateTbYwXnpgbg`, params);
<template>
<div class="kindeditor">
<textarea :id="id" name="content" v-model="outContent"></textarea>
</div>
</template>
<script>
import '../../node_modules/kindeditor/kindeditor-all.js'
import '../../node_modules/kindeditor/lang/zh-CN.js'
import '../../node_modules/kindeditor/themes/default/default.css'
export default {
name: 'kindeditor',
data () {
return {
editor: null,
outContent: this.content
}
},
props: {
content: {
type: String,
default: ''
},
id: {
type: String,
required: true
},
width: {
type: String
},
height: {
type: String
},
minWidth: {
type: Number,
default: 650
},
minHeight: {
type: Number,
default: 100
},
items: {
type: Array,
default: function () {
return [
'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
'anchor', 'link', 'unlink', '|', 'about'
]
}
},
noDisableItems: {
type: Array,
default: function () {
return ['source', 'fullscreen']
}
},
filterMode: {
type: Boolean,
default: true
},
htmlTags: {
type: Object,
default: function () {
return {
font: ['color', 'size', 'face', '.background-color'],
span: ['style'],
div: ['class', 'align', 'style'],
table: ['class', 'border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'style'],
'td,th': ['class', 'align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor', 'style'],
a: ['class', 'href', 'target', 'name', 'style'],
embed: ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality',
'style', 'align', 'allowscriptaccess', '/'],
img: ['src', 'width', 'height', 'border', 'alt', 'title', 'align', 'style', '/'],
hr: ['class', '/'],
br: ['/'],
'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6': ['align', 'style'],
'tbody,tr,strong,b,sub,sup,em,i,u,strike': []
}
}
},
wellFormatMode: {
type: Boolean,
default: true
},
resizeType: {
type: Number,
default: 2
},
themeType: {
type: String,
default: 'default'
},
langType: {
type: String,
default: 'zh-CN'
},
designMode: {
type: Boolean,
default: true
},
fullscreenMode: {
type: Boolean,
default: false
},
basePath: {
type: String
},
themesPath: {
type: String
},
pluginsPath: {
type: String,
default: ''
},
langPath: {
type: String
},
minChangeSize: {
type: Number,
default: 5
},
loadStyleMode: {
type: Boolean,
default: true
},
urlType: {
type: String,
default: ''
},
newlineTag: {
type: String,
default: 'p'
},
pasteType: {
type: Number,
default: 2
},
dialogAlignType: {
type: String,
default: 'page'
},
shadowMode: {
type: Boolean,
default: true
},
zIndex: {
type: Number,
default: 811213
},
useContextmenu: {
type: Boolean,
default: true
},
syncType: {
type: String,
default: 'form'
},
indentChar: {
type: String,
default: '\t'
},
cssPath: {
type: [ String, Array ]
},
cssData: {
type: String
},
bodyClass: {
type: String,
default: 'ke-content'
},
colorTable: {
type: Array
},
afterCreate: {
type: Function
},
afterChange: {
type: Function
},
afterTab: {
type: Function
},
afterFocus: {
type: Function
},
afterBlur: {
type: Function
},
afterUpload: {
type: Function
},
uploadJson: {
type: String
},
fileManagerJson: {
type: Function
},
allowPreviewEmoticons: {
type: Boolean,
default: true
},
allowImageUpload: {
type: Boolean,
default: true
},
allowFlashUpload: {
type: Boolean,
default: true
},
allowMediaUpload: {
type: Boolean,
default: true
},
allowFileUpload: {
type: Boolean,
default: true
},
allowFileManager: {
type: Boolean,
default: false
},
fontSizeTable: {
type: Array,
default: function () {
return ['9px', '10px', '12px', '14px', '16px', '18px', '24px', '32px']
}
},
imageTabIndex: {
type: Number,
default: 0
},
formatUploadUrl: {
type: Boolean,
default: true
},
fullscreenShortcut: {
type: Boolean,
default: false
},
extraFileUploadParams: {
type: Array,
default: function () {
return []
}
},
filePostName: {
type: String,
default: 'imgFile'
},
fillDescAfterUploadImage: {
type: Boolean,
default: false
},
afterSelectFile: {
type: Function
},
pagebreakHtml: {
type: String,
default: '<hr style=”page-break-after: always;” class=”ke-pagebreak” />'
},
allowImageRemote: {
type: Boolean,
default: true
},
autoHeightMode: {
type: Boolean,
default: false
},
fixToolBar: {
type: Boolean,
default: false
},
tabIndex: {
type: Number
}
},
watch: {
content (val) {
this.editor && val !== this.outContent && this.editor.html(val)
},
outContent (val) {
this.$emit('update:content', val)
this.$emit('on-content-change', val)
}
},
mounted () {
var _this = this
_this.editor = window.KindEditor.create('#' + this.id, {
width: _this.width,
height: _this.height,
minWidth: _this.minWidth,
minHeight: _this.minHeight,
items: _this.items,
noDisableItems: _this.noDisableItems,
filterMode: _this.filterMode,
htmlTags: _this.htmlTags,
wellFormatMode: _this.wellFormatMode,
resizeType: _this.resizeType,
themeType: _this.themeType,
langType: _this.langType,
designMode: _this.designMode,
fullscreenMode: _this.fullscreenMode,
basePath: _this.basePath,
themesPath: _this.cssPath,
pluginsPath: _this.pluginsPath,
langPath: _this.langPath,
minChangeSize: _this.minChangeSize,
loadStyleMode: _this.loadStyleMode,
urlType: _this.urlType,
newlineTag: _this.newlineTag,
pasteType: _this.pasteType,
dialogAlignType: _this.dialogAlignType,
shadowMode: _this.shadowMode,
zIndex: _this.zIndex,
useContextmenu: _this.useContextmenu,
syncType: _this.syncType,
indentChar: _this.indentChar,
cssPath: _this.cssPath,
cssData: _this.cssData,
bodyClass: _this.bodyClass,
colorTable: _this.colorTable,
afterCreate: _this.afterCreate,
afterChange: function () {
_this.afterChange
_this.outContent = this.html()
},
afterTab: _this.afterTab,
afterFocus: _this.afterFocus,
afterBlur: _this.afterBlur,
afterUpload: _this.afterUpload,
uploadJson: _this.uploadJson,
fileManagerJson: _this.fileManagerJson,
allowPreviewEmoticons: _this.allowPreviewEmoticons,
allowImageUpload: _this.allowImageUpload,
allowFlashUpload: _this.allowFlashUpload,
allowMediaUpload: _this.allowMediaUpload,
allowFileUpload: _this.allowFileUpload,
allowFileManager: _this.allowFileManager,
fontSizeTable: _this.fontSizeTable,
imageTabIndex: _this.imageTabIndex,
formatUploadUrl: _this.formatUploadUrl,
fullscreenShortcut: _this.fullscreenShortcut,
extraFileUploadParams: _this.extraFileUploadParams,
filePostName: _this.filePostName,
fillDescAfterUploadImage: _this.fillDescAfterUploadImage,
afterSelectFile: _this.afterSelectFile,
pagebreakHtml: _this.pagebreakHtml,
allowImageRemote: _this.allowImageRemote,
autoHeightMode: _this.autoHeightMode,
fixToolBar: _this.fixToolBar,
tabIndex: _this.tabIndex
})
}
}
</script>
<style>
</style>
\ No newline at end of file
......@@ -1601,8 +1601,13 @@
pageBs == 'djgzfxxsxx' ||
pageBs == 'queryXslb' ||
pageBs == 'queryWysp' ||
<<<<<<< HEAD
pageBs == 'queryRole' ||
pageBs == 'queryMbxx'
=======
pageBs == 'queryQtypfx' ||
pageBs == 'queryRole'
>>>>>>> e13dfc56d5f9b9a361381f0f86cf898dca3120fd
)
"
>修改</span
......@@ -1813,7 +1818,8 @@
pageBs != 'queryXslb' &&
pageBs != 'queryQtypfx' &&
pageBs != 'queryWysp' &&
pageBs != 'queryRole'
pageBs != 'queryRole' &&
pageBs != 'queryMbxx'
"
>删除</span
>
......@@ -2475,7 +2481,7 @@ export default {
return dt.split(",");
},
rowExpand(row, expandedRows) {
debugger;
// debugger;
// this.$emit("rowExpand", row);
var self = this;
self.showLoading();
......@@ -2808,7 +2814,7 @@ export default {
this.$emit("editMenu", scope);
},
oneClickAnalize() {
// debugger;
// // debugger;
this.$emit("oneClickAnalize");
},
add() {
......@@ -3181,6 +3187,10 @@ export default {
this.pageBs == "queryWysp"
) {
currentUrl = `${url.alyIP13}${this.cxUrl}`;
} else if (
this.pageBs == "queryMbxx"
) {
currentUrl = `${url.alyIP15}${this.cxUrl}`;
} else {
currentUrl = `${url.alyIP}${this.cxUrl}`;
}
......@@ -3231,7 +3241,7 @@ export default {
},
doQuery(flag) {
console.log(Cookies.get("_ga"));
debugger;
// debugger;
this.showLoading();
var jsonStr = [];
......@@ -3253,7 +3263,7 @@ export default {
? self.formData[i].join(",")
: self.formData[i];
} else if (i == "rygx" && this.pageBs == "queryZjShow") {
debugger;
// debugger;
json[i] = self.formData[i]
? self.formData[i].join(",")
: self.formData[i];
......@@ -3337,10 +3347,10 @@ export default {
// this.$refs.itsmDataTable.doLayout();
// });
} else {
debugger;
// debugger;
self.doQueryRequest(json).then((response) => {
if (response.success === true) {
// debugger
// // debugger
if (JSON.stringify(response.data) == "{}") {
self.closeLoading();
self.tableData = [];
......@@ -3367,7 +3377,7 @@ export default {
if (item.codeTxt) {
let array = item.codeTxt.split("#").slice(1);
// array.forEach((ajitem) => {
// debugger
// // debugger
// let obj = {};
// if (
// ajitem == "强迫交易案" ||
......@@ -3462,7 +3472,7 @@ export default {
// }
// }
});
debugger;
// debugger;
let result = response.data.data || response.data.rows;
result.forEach((item) => {
item.children = [];
......@@ -3485,7 +3495,7 @@ export default {
} else if (response.state == "success") {
response.rows.forEach((item) => {
if (self.pageBs == "queryJz") {
debugger;
// debugger;
if (item.ajlb == "01") {
item.ajlbStr = "刑事案件";
} else if (item.ajlb == "02") {
......@@ -3496,7 +3506,7 @@ export default {
item.ajlbStr = "其他";
}
} else if (self.pageBs == "querySqdlb") {
debugger;
// debugger;
if (item.orderMethod == "1") {
item.orderMethodStr = "二级审批";
} else if (item.orderMethod == "3") {
......@@ -3534,7 +3544,7 @@ export default {
item.orderStatusStr = "过期";
}
} else if (self.pageBs == "queryXslb") {
debugger;
// debugger;
if (item.xsXslx == "01") {
item.xsXslxStr = "QQ号码";
} else if (item.xsXslx == "02") {
......@@ -3570,7 +3580,7 @@ export default {
item.xsStatusStr = "一级审批已审";
}
} else if (self.pageBs == "queryWysp") {
debugger;
// debugger;
if (item.orderMethod == "1") {
item.orderMethodStr = "二级审批";
} else if (item.orderMethod == "3") {
......@@ -3599,7 +3609,7 @@ export default {
}
}
});
debugger;
// debugger;
self.tableData = response.rows;
for (let t in self.transformFormTable) {
self.tableData.map((res) => {
......@@ -3624,7 +3634,7 @@ export default {
mounted() {
let self = this;
/*获取字典*/
// debugger;
// // debugger;
self.propQueryField.forEach((val) => {
if (val.type == "codeTree" || val.type == "codeTreeDialog") {
if (val.codeOptions.length == 0) {
......@@ -3641,7 +3651,7 @@ export default {
// let unitcode = "540000S00500";
let unitcode = JSON.parse(sessionStorage.getItem("userInfo")).unitcode;
if (val.codeOptions.length == 0) {
debugger;
// debugger;
axios
.get(`JsonData/${val.codeTree}.json`)
.then((res) => {
......@@ -3698,7 +3708,7 @@ export default {
cxUrl: {
handler(val, old) {
if (val != old) {
// debugger
// // debugger
this.doQuery("yes");
}
},
......
......@@ -50,6 +50,7 @@ import zdsswpRoutes from "./modules/zdsswp";
import tjpgRoutes from "./modules/tjpg";
import jcyjzxt from "./modules/jcyjzxt";
import xsspPtRoutes from "./modules/xsspPt";
import pgypbgglRoutes from "./modules/pgypbggl";
import rwddRoutes from "./modules/rwddzx";
......@@ -118,6 +119,7 @@ const mainRouters = [
...jcyjzxt,
...tjpgRoutes,
...qgccjRoutes,
...pgypbgglRoutes,
{
path: "*",
name: "error",
......
import menuLayout from "@/layout/menuLayout.vue";
const menuLayouts = [
{
path: "/addMbxx",
name: "addMbxx",
meta: {
title: '模板信息登记'
},
component: () => import("@/views/pgypbggl/mbxx/addMbxx.vue")
},
{
path: "/queryMbxx",
name: "queryMbxx",
meta: {
title: '模板信息维护'
},
component: () => import("@/views/pgypbggl/mbxx/queryMbxx.vue")
},
];
export default [
{
path: "/right",
component: menuLayout,
children: [...menuLayouts]
}
];
\ No newline at end of file
<template>
<div class="add-mbxx">
<div class="chuancan">
<span class="widthSpan">研判报告类型:</span>
<el-select v-model="form.bglxdm" placeholder="请选择" style="vertical-align: top; margin-right: 30px;">
<el-option label="个人" value="01"></el-option>
<el-option label="单位" value="02"></el-option>
</el-select>
<span>标题:</span>
<el-input v-model="form.bgbt" placeholder="请输入内容" style="width: 200px;"></el-input>
</div>
<div class="zwnr">
<span class="widthSpan" style="margin-right: 10px;">正文内容:</span>
<div class="float">
<editor id="editor_id" height="500px" width="700px" :content.sync="form.bgnr"
:afterChange="afterChange()"
:loadStyleMode="false"
@on-content-change="onContentChange"></editor>
<!-- <div> editorTextCopy: {{ editorTextCopy }} </div> -->
</div>
</div>
<div class="fbsj">
<span class="widthSpan">发布时间:</span>
<el-date-picker
v-model="form.fbsj"
type="date"
align="right"
unlink-panels
value-format="yyyy-MM-dd"
>
</el-date-picker>
</div>
<div v-if="isEdit == false" style="margin: 20px 0; padding-left: 110px;"><el-button type="primary" @click="submit">提 交</el-button></div>
<div v-else style="margin: 20px 0; padding-left: 110px;"><el-button type="primary" @click="submitEdit">提 交</el-button></div>
</div>
</template>
<script>
import editor from '@/components/kindeditor.vue'
import { insertTbYwXnpgbg, updateTbYwXnpgbg } from "@/api/pgypbggl.js";
// import base from "@/api/base";
// import Http from "@/utils/http.js";
export default {
name: "addMbxx",
components: {editor},
data() {
return {
isEdit: false,
form: {
bglxdm: '',
bgbt: '',
bgnr: '', // 直接初始化值
fbsj: ''
},
// editorText: '直接初始化值', // 双向同步的变量
editorTextCopy: '', // content-change 事件回掉改变的对象
header: "评估研判报告管理",
Menu: [
{
id: "addMbxx",
label: "模板信息登记",
index: "addMbxx",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
leftMenus: [
//左侧导航(模块第一个页面需要)
{
id: "addMbxx",
label: "模板信息登记",
newAuth: "M01",
index: "addMbxx",
className: "iconfont icongongnengfuwu",
hasChildren: false
},
{
id: "queryMbxx",
label: "模板信息维护",
newAuth: "M02",
index: "queryMbxx",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
]
};
},
computed: {
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
this.$store.commit("user/SET_LeftMenu", this.leftMenus);
this.$store.commit("user/SET_Header", this.header);
},
watch: {
$route:{
handler(newRouter){
if(newRouter.fullPath.indexOf('xxzjbh') > -1) {
this.isEdit = true
this.form = {
bglxdm: newRouter.query.bglxdm,
bgbt: newRouter.query.bgbt,
bgnr: newRouter.query.bgnr,
fbsj: newRouter.query.fbsj,
}
} else {
this.isEdit = false
Object.assign(this.$data.form, this.$options.data().form) // 初始化form值
}
},
immediate: true
}
},
mounted() {
},
methods: {
onContentChange (val) {
this.editorTextCopy = val;
window.console.log(this.editorTextCopy)
},
afterChange () {
},
submit() {
const loading = this.$loading({
lock: true,
text: "正在提交...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
let formData = new FormData()
formData.append('bglxdm', this.form.bglxdm)
formData.append('bgbt', this.form.bgbt)
formData.append('bgnr', this.form.bgnr)
formData.append('fbsj', this.form.fbsj)
formData.append('fbzt', '1')
// console.log('this.editorText', this.editorText)
insertTbYwXnpgbg(formData).then(res => {
if(res.code == 200) {
loading.close();
this.$message({
type: "success",
message: "操作成功",
});
this.$router.push('/queryMbxx')
}
})
},
submitEdit() {
const loading = this.$loading({
lock: true,
text: "正在提交...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
let formData = new FormData()
formData.append('xxzjbh', this.$route.query.xxzjbh, )
formData.append('bgzt', this.$route.query.bgzt, )
formData.append('bglxdm', this.form.bglxdm)
formData.append('bgbt', this.form.bgbt)
formData.append('bgnr', this.form.bgnr)
formData.append('fbsj', this.form.fbsj)
updateTbYwXnpgbg(formData).then(res => {
if(res.code == 200) {
loading.close();
this.$message({
type: "success",
message: "操作成功",
});
this.$router.push('/queryMbxx')
}
})
}
}
};
</script>
<style scoped lang="scss">
.add-mbxx{
background: #FFFFFF;
border: 1px solid #EAEAEA;
box-shadow: none;
opacity: 1;
border-radius: 4px;
margin: 20px;
padding: 20px;
.chuancan{
margin-bottom: 20px;
span{
display: inline-block;
margin-top: 3px;
font-size: 14px;
margin-right: 10px;
color: #606266;
}
}
.fbsj{
margin: 20px 0;
span{
display: inline-block;
margin-top: 3px;
font-size: 14px;
margin-right: 10px;
color: #606266;
}
}
.zwnr{
display: flex;
}
.widthSpan{
width: 100px;
text-align: right;
}
}
</style>
<template>
<div class="Content content-mbxx">
<right-content
:pageBs="pageBs"
pageASs="nonewAdd"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
ref="rightContent"
>
<template #btnGroup="scope">
<span class="hbyp" @click="showDetail(scope.scope)">查看</span>
<span class="hbyp" @click="edit(scope.scope)">修改</span>
<span class="hbyp" @click="toDelete(scope.scope)">删除</span>
</template>
</right-content>
<el-dialog title="报告详情" :visible.sync="dialogFormVisible" width="70%">
<el-row :gutter="20">
<el-col :span="12"><span>报告标题:</span>{{ xqData.bgbt }}</el-col>
<el-col :span="12"><span>报告内容:</span>{{ xqData.bgnr }}</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12"><span>报告状态:</span>{{ xqData.bgzt == 0 ? '未生效' : '已生效' }}</el-col>
<el-col :span="12"><span>发布状态:</span>{{ xqData.fbzt == 0 ? '未发布' : '已发布' }}</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12"><span>发布人姓名:</span>{{ xqData.fbrxm }}</el-col>
<el-col :span="12"><span>发布人身份证号:</span>{{ xqData.fbrsfhm }}</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12"><span>发布单位:</span>{{ xqData.fbdwStr }}</el-col>
<el-col :span="12"><span>发布时间:</span>{{ xqData.djsj }}</el-col>
</el-row>
</el-dialog>
</div>
</template>
<script>
import { deleteTbYwXnpgbg, getTbYwXnpgbg } from "@/api/pgypbggl.js";
import rightContent from "@c/ptCxForm_components.vue";
export default {
name: "queryMbxx",
components: {
rightContent
},
data() {
return {
dialogFormVisible: false,
xqData: {},
header: "评估研判报告管理",
Menu: [
{
id: "queryMbxx",
label: "模板信息维护",
index: "queryMbxx",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
pageBs: "queryMbxx",
cxFormData: {
page: 1,
limit: 10,
bgzt: '',
fbsj: ''
},
cxQueryField: [
{
name: "报告状态",
id: "bgzt",
type: "select",
value: "",
placeholder: "请选择",
col: "3",
selectData: [
{ value: "0", name: "未生效" },
{ value: "1", name: "已生效" }
],
},
{
name: "发布时间",
id: "fbsj",
type: "zdyDate",
value: "",
col: "3",
}
],
cxDefaultFormThead: [
{
label: "信息主键编号",
// toInfor: true,
prop: "xxzjbh",
width: "250",
},
{
label: "报告类型代码",
prop: "bglxStr",
width: "200",
},
{
label: "报告标题",
prop: "bgbt",
width: "200",
},
{
label: "报告内容",
prop: "bgnr",
width: "200",
},
{
label: "报告摘要",
prop: "bgzy",
width: "200",
},
{
label: "报告状态",
prop: "bgzt",
width: "200",
},
{
label: "发布状态",
prop: "fbzt",
width: "200",
},
{
label: "发布人身份证号",
prop: "fbrsfhm",
width: "200",
},
{
label: "发布人姓名",
prop: "fbrxm",
width: "200",
},
{
label: "发布单位代码",
prop: "fbdwStr",
width: "200",
},
{
label: "发布时间",
prop: "fbsj",
width: "200",
}
],
cxUrl: "/pageTbYwXnpgbg",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu)
},
methods: {
edit(scope){
// console.log('scope', scope)
const param = {
xxzjbh: scope.row.xxzjbh,
// bgzt: scope.row.bgzt,
bgzt: '1',
bglxdm: scope.row.bglxdm,
xxzjbh: scope.row.xxzjbh,
bgbt: scope.row.bgbt,
bgnr: scope.row.bgnr,
fbsj: scope.row.djsj
}
this.$router.push({path:'/addMbxx',query: param})
},
showDetail(scope) {
getTbYwXnpgbg({xxzjbh:scope.row.xxzjbh}).then(res => {
if (res.code == 200) {
this.xqData = res.data.result
this.dialogFormVisible = true
}
})
},
toDelete(scope) {
this.$confirm("是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteTbYwXnpgbg({xxzjbh:scope.row.xxzjbh}).then((res) => {
if (res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
})
}
}
}
</script>
<style scoped lang="scss">
.content-mbxx{
margin-left: 20px;
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
::v-deep .el-dialog__body{
padding: 0 15px !important;
.el-row {
margin: 30px 0;
.el-col{
font-size: 15px;
color: #808591;
span{
color: #363636;
width: 120px;
display: inline-block;
}
}
}
}
}
</style>
......@@ -58,7 +58,7 @@ module.exports = {
},
proxy: {
"/apialy": {
target: "http://74.6.54.153:9022", //西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
target: "http://39.99.155.173:9022", //西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
// ws: true,
changeOrigin: true,
secure: false,
......@@ -92,7 +92,7 @@ module.exports = {
}
},
"/apiXssp": {
target: "http://74.6.54.173:8006/", // 线索审批管理平台
target: "http://39.99.155.173:8006/", // 线索审批管理平台
changeOrigin: true,
secure: false,
......@@ -100,6 +100,15 @@ module.exports = {
"^/apiXssp": "/"
}
},
"/xnpgbg": {
target: "http://192.168.1.106:8762/xnpgbg", // 评估研判报告管理
changeOrigin: true,
secure: false,
pathRewrite: {
"^/xnpgbg": "/"
}
}
},
},
css: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment