Commit a0c88682 by 刘玉帅

debugg

parent 8d1462d7
......@@ -9,6 +9,6 @@ module.exports = {
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
"no-//": process.env.NODE_ENV === "production" ? "warn" : "off"
},
};
......@@ -11890,6 +11890,11 @@
"resolved": "https://registry.npm.taobao.org/vue/download/vue-2.6.12.tgz?cache=0&sync_timestamp=1600441210971&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue%2Fdownload%2Fvue-2.6.12.tgz",
"integrity": "sha1-9evU+mvShpQD4pqJau1JBEVskSM="
},
"vue-bus": {
"version": "1.2.1",
"resolved": "https://registry.nlark.com/vue-bus/download/vue-bus-1.2.1.tgz",
"integrity": "sha1-UFd7C3P8GvnNqKR1/vL38P2tcEU="
},
"vue-cli-plugin-axios": {
"version": "0.0.4",
"resolved": "https://registry.npm.taobao.org/vue-cli-plugin-axios/download/vue-cli-plugin-axios-0.0.4.tgz",
......
......@@ -18,6 +18,7 @@
"sass-resources-loader": "^2.1.1",
"script-loader": "^0.7.2",
"vue": "^2.6.11",
"vue-bus": "^1.2.1",
"vue-router": "^3.2.0",
"vue-wechat-title": "^2.0.7",
"vuex": "^3.4.0",
......
{
"code":200,
"data":{
"rows":[
{
"ids":"10061",
"label":"刑侦",
"codeType":"CODE_POLICECATEGORY",
"text":"刑侦",
"pId":null,
"id":"01",
"isParent":false,
"children":[]
},
{
"ids":"10062",
"label":"派出所",
"codeType":"CODE_POLICECATEGORY",
"text":"派出所",
"pId":null,
"id":"02",
"isParent":false,
"children":[]
},
{
"ids":"10063",
"label":"巡警",
"codeType":"CODE_POLICECATEGORY",
"text":"巡警",
"pId":null,
"id":"03",
"isParent":false,
"children":[]
},
{
"ids":"10064",
"label":"治安",
"codeType":"CODE_POLICECATEGORY",
"text":"治安",
"pId":null,
"id":"11",
"isParent":false,
"children":[]
},
{
"ids":"10065",
"label":"经侦",
"codeType":"CODE_POLICECATEGORY",
"text":"经侦",
"pId":null,
"id":"12",
"isParent":false,
"children":[]
},
{
"ids":"10066",
"label":"禁毒",
"codeType":"CODE_POLICECATEGORY",
"text":"禁毒",
"pId":null,
"id":"13",
"isParent":false,
"children":[]
},
{
"ids":"10067",
"label":"国保",
"codeType":"CODE_POLICECATEGORY",
"text":"国保",
"pId":null,
"id":"14",
"isParent":false,
"children":[]
},
{
"ids":"10068",
"label":"反恐",
"codeType":"CODE_POLICECATEGORY",
"text":"反恐",
"pId":null,
"id":"15",
"isParent":false,
"children":[]
},
{
"ids":"10069",
"label":"交管",
"codeType":"CODE_POLICECATEGORY",
"text":"交管",
"pId":null,
"id":"16",
"isParent":false,
"children":[]
},
{
"ids":"10070",
"label":"网安",
"codeType":"CODE_POLICECATEGORY",
"text":"网安",
"pId":null,
"id":"17",
"isParent":false,
"children":[]
},
{
"ids":"10071",
"label":"技侦",
"codeType":"CODE_POLICECATEGORY",
"text":"技侦",
"pId":null,
"id":"18",
"isParent":false,
"children":[]
},
{
"ids":"10072",
"label":"情报",
"codeType":"CODE_POLICECATEGORY",
"text":"情报",
"pId":null,
"id":"19",
"isParent":false,
"children":[]
},
{
"ids":"10073",
"label":"出入境",
"codeType":"CODE_POLICECATEGORY",
"text":"出入境",
"pId":null,
"id":"31",
"isParent":false,
"children":[]
},
{
"ids":"10074",
"label":"边检",
"codeType":"CODE_POLICECATEGORY",
"text":"边检",
"pId":null,
"id":"32",
"isParent":false,
"children":[]
},
{
"ids":"10075",
"label":"监管",
"codeType":"CODE_POLICECATEGORY",
"text":"监管",
"pId":null,
"id":"34",
"isParent":false,
"children":[]
},
{
"ids":"10076",
"label":"科信",
"codeType":"CODE_POLICECATEGORY",
"text":"科信",
"pId":null,
"id":"35",
"isParent":false,
"children":[]
},
{
"ids":"10077",
"label":"政工",
"codeType":"CODE_POLICECATEGORY",
"text":"政工",
"pId":null,
"id":"36",
"isParent":false,
"children":[]
},
{
"ids":"10078",
"label":"后勤",
"codeType":"CODE_POLICECATEGORY",
"text":"后勤",
"pId":null,
"id":"37",
"isParent":false,
"children":[]
},
{
"ids":"10079",
"label":"指挥",
"codeType":"CODE_POLICECATEGORY",
"text":"指挥",
"pId":null,
"id":"38",
"isParent":false,
"children":[]
},
{
"ids":"10080",
"label":"国际合作",
"codeType":"CODE_POLICECATEGORY",
"text":"国际合作",
"pId":null,
"id":"39",
"isParent":false,
"children":[]
},
{
"ids":"10081",
"label":"边防",
"codeType":"CODE_POLICECATEGORY",
"text":"边防",
"pId":null,
"id":"41",
"isParent":false,
"children":[]
},
{
"ids":"10082",
"label":"消防",
"codeType":"CODE_POLICECATEGORY",
"text":"消防",
"pId":null,
"id":"42",
"isParent":false,
"children":[]
},
{
"ids":"10083",
"label":"警卫",
"codeType":"CODE_POLICECATEGORY",
"text":"警卫",
"pId":null,
"id":"43",
"isParent":false,
"children":[]
},
{
"ids":"10084",
"label":"铁路",
"codeType":"CODE_POLICECATEGORY",
"text":"铁路",
"pId":null,
"id":"80",
"isParent":false,
"children":[]
},
{
"ids":"10085",
"label":"交通",
"codeType":"CODE_POLICECATEGORY",
"text":"交通",
"pId":null,
"id":"81",
"isParent":false,
"children":[]
},
{
"ids":"10086",
"label":"民航",
"codeType":"CODE_POLICECATEGORY",
"text":"民航",
"pId":null,
"id":"82",
"isParent":false,
"children":[]
},
{
"ids":"10087",
"label":"森林",
"codeType":"CODE_POLICECATEGORY",
"text":"森林",
"pId":null,
"id":"83",
"isParent":false,
"children":[]
},
{
"ids":"10088",
"label":"缉私",
"codeType":"CODE_POLICECATEGORY",
"text":"缉私",
"pId":null,
"id":"84",
"isParent":false,
"children":[]
},
{
"ids":"10089",
"label":"军队",
"codeType":"CODE_POLICECATEGORY",
"text":"军队",
"pId":null,
"id":"90",
"isParent":false,
"children":[]
},
{
"ids":"10090",
"label":"检察院",
"codeType":"CODE_POLICECATEGORY",
"text":"检察院",
"pId":null,
"id":"91",
"isParent":false,
"children":[]
},
{
"ids":"10091",
"label":"法院",
"codeType":"CODE_POLICECATEGORY",
"text":"法院",
"pId":null,
"id":"92",
"isParent":false,
"children":[]
},
{
"ids":"10092",
"label":"司法",
"codeType":"CODE_POLICECATEGORY",
"text":"司法",
"pId":null,
"id":"93",
"isParent":false,
"children":[]
},
{
"ids":"10093",
"label":"国安",
"codeType":"CODE_POLICECATEGORY",
"text":"国安",
"pId":null,
"id":"94",
"isParent":false,
"children":[]
},
{
"ids":"10094",
"label":"纪检监察",
"codeType":"CODE_POLICECATEGORY",
"text":"纪检监察",
"pId":null,
"id":"95",
"isParent":false,
"children":[]
},
{
"ids":"10095",
"label":"纪检监察机关",
"codeType":"CODE_POLICECATEGORY",
"text":"纪检监察机关",
"pId":null,
"id":"98",
"isParent":false,
"children":[]
},
{
"ids":"10096",
"label":"其他",
"codeType":"CODE_POLICECATEGORY",
"text":"其他",
"pId":null,
"id":"99",
"isParent":false,
"children":[]
}
]
},
"success":true,
"message":"成功"
}
\ No newline at end of file
{
"code":200,
"data":{
"rows":[
{
"ids":"10098",
"label":"否",
"codeType":"CODE_YN",
"text":"否",
"pId":null,
"id":"0",
"isParent":false,
"children":[]
},
{
"ids":"10097",
"label":"是",
"codeType":"CODE_YN",
"text":"是",
"pId":null,
"id":"1",
"isParent":false,
"children":[]
}
]
},
"success":true,
"message":"成功"
}
\ No newline at end of file
......@@ -53,7 +53,7 @@ if (
/*阿里云ip*/
base.alyIP = "47.92.48.137";
} else if (relUrlIp == "47.92.48.137") {
debugger;
//;
//地图后台服务路径
base.XingZhen = "http://68.174.69.95";
base.mapurl = "http://47.92.48.137:8050";
......
......@@ -178,7 +178,7 @@ export default {
id: self.curFormData[self.curItem.id],
grade: "prev",
};
debugger;
// //;
self.doQueryRequest(parm, "/queryCodeByType").then((codeResult) => {
var thisCodeOptions = [];
if (codeResult.data.success) {
......@@ -223,7 +223,7 @@ export default {
id: self.curFormData[self.curItem.id],
grade: "prev",
};
debugger;
// //;
self.doQueryRequest(parm, "/queryCodeByType").then((codeResult) => {
var thisCodeOptions = [];
if (codeResult.data.success) {
......@@ -391,7 +391,7 @@ export default {
id: realFormLableAlign[realValueKey],
grade: "prev",
};
debugger;
//;
self.doQueryRequest(parm, "/queryCodeByType").then((codeResult) => {
if (codeResult.data.success) {
var codRes = codeResult.data.data.data;
......
......@@ -119,7 +119,10 @@ export default {
val == "zqgl" ||
val == "xlqgl" ||
val == "gzqgl" ||
val == "tyqgl"
val == "tyqgl" ||
val == "jqxxcj" ||
val == "jsrycj" ||
val == "formTable"
) {
this.csidebarItemName = "jqgl";
}
......@@ -175,6 +178,7 @@ export default {
},
},
mounted() {
//;
let self = this;
if (
self.csidebarItemName == "sjcj" ||
......@@ -182,7 +186,10 @@ export default {
self.csidebarItemName == "zqgl" ||
self.csidebarItemName == "xlqgl" ||
self.csidebarItemName == "gzqgl" ||
self.csidebarItemName == "tyqgl"
self.csidebarItemName == "tyqgl" ||
self.csidebarItemName == "jqxxcj" ||
self.csidebarItemName == "jsrycj" ||
self.csidebarItemName == "formTable"
) {
//访问运控菜单
let getId = "";
......@@ -192,7 +199,10 @@ export default {
self.csidebarItemName == "zqgl" ||
self.csidebarItemName == "xlqgl" ||
self.csidebarItemName == "gzqgl" ||
self.csidebarItemName == "tyqgl"
self.csidebarItemName == "tyqgl" ||
self.csidebarItemName == "jqxxcj" ||
self.csidebarItemName == "jsrycj" ||
self.csidebarItemName == "formTable"
) {
getId = "jqgl";
}
......@@ -208,7 +218,7 @@ export default {
(item) => item.id == self.csidebarItemName
);
self.currentBar = (index + 1).toString();
console.log( self.currentBar);
console.log(self.currentBar);
}
},
};
......
......@@ -224,7 +224,6 @@
>查询
</el-button>
</div>
</div>
<div>
<el-row style="width: 98%">
......@@ -363,7 +362,8 @@
v-if="
pageBszfc == 'jqxx' ||
pageBszfc == 'jasjbc' ||
pageBszfc == 'zczjcfry'
pageBszfc == 'zczjcfry' ||
pageBszfc == 'jsry'
"
>
<el-button
......@@ -382,7 +382,7 @@
plain
class="zdybtn export"
size="small"
@click="exportExcel('Excel')"
@click="export2Excel('Excel')"
><i
class="fa fa-external-link"
aria-hidden="true"
......@@ -424,7 +424,7 @@
<el-table-column
align="center"
label="操作"
v-if="pageBszfc == 'jqxx' "
v-if="pageBszfc == 'jqxx' || pageBszfc == 'jsry'"
width="200"
>
<template slot-scope="scope">
......@@ -435,15 +435,16 @@
@click="handleMore(scope.row)"
id="sjjc"
>
更多
修改
</el-button>
<el-button
type="text"
size="small"
@click="handleChange(scope.row)"
@click="handleChangeRemove(scope.row)"
id="sjjc"
>变更
>删除
</el-button>
</div>
</template>
</el-table-column>
......@@ -819,21 +820,13 @@
</div>
<!-- 新写的区分公母犬-->
<div v-else-if="columnTitle.prop == 'gender'">
<span v-if="scope.row['gender'] == '1'"
>公犬</span
>
<span v-else-if="scope.row['gender'] == '2'"
>母犬</span
>
<span v-if="scope.row['gender'] == '1'">公犬</span>
<span v-else-if="scope.row['gender'] == '2'">母犬</span>
</div>
<!-- NEW区分警用犬种 -->
<div v-else-if="columnTitle.prop == 'speciesId'">
<span v-if="scope.row['speciesId'] == '1'"
>德国牧羊犬</span
>
<span v-else-if="scope.row['speciesId'] == '2'"
>昆明犬</span
>
<span v-if="scope.row['speciesId'] == '1'">德国牧羊犬</span>
<span v-else-if="scope.row['speciesId'] == '2'">昆明犬</span>
<spap v-else-if="scope.row['speciesId'] == '3'">罗威纳犬</spap>
<spap v-else-if="scope.row['speciesId'] == '4'">拉布拉多犬</spap>
<spap v-else-if="scope.row['speciesId'] == '5'">杜伯文犬</spap>
......@@ -842,9 +835,13 @@
<spap v-else-if="scope.row['speciesId'] == '8'">比格犬</spap>
<spap v-else-if="scope.row['speciesId'] == '9'">荷兰牧羊犬</spap>
<spap v-else-if="scope.row['speciesId'] == '10'">纽芬兰犬</spap>
<spap v-else-if="scope.row['speciesId'] == '11'">金毛巡回猎犬</spap>
<spap v-else-if="scope.row['speciesId'] == '11'"
>金毛巡回猎犬</spap
>
<spap v-else-if="scope.row['speciesId'] == '12'">英国可卡犬</spap>
<spap v-else-if="scope.row['speciesId'] == '13'">比利时牧羊犬</spap>
<spap v-else-if="scope.row['speciesId'] == '13'"
>比利时牧羊犬</spap
>
<spap v-else-if="scope.row['speciesId'] == '14'">边境牧羊犬</spap>
<spap v-else-if="scope.row['speciesId'] == '15'">藏獒</spap>
<spap v-else-if="scope.row['speciesId'] == '99'">其他</spap>
......@@ -3822,16 +3819,9 @@
>
</div>
<!--现案数据检查 && 积案数据检查-->
<div
v-else-if="columnTitle.prop == 'sjjc' && pageBszfc == 'jajc'"
>
<span v-if="scope.row['zjjgStr '] == '0'"
>不合格</span
>
<span v-if="scope.row['zjjgStr '] == '1'"
>合格</span
>
<div v-else-if="columnTitle.prop == 'sjjc' && pageBszfc == 'jajc'">
<span v-if="scope.row['zjjgStr '] == '0'">不合格</span>
<span v-if="scope.row['zjjgStr '] == '1'">合格</span>
</div>
<!--部权案件撤销管理 bjblJgdm-->
<div
......@@ -4170,6 +4160,9 @@ import url from "@/api/base";
import { cxYchyData } from "@/utils/params";
import XLSX from "xlsx";
import FileSaver from "file-saver";
import { post, postform, get, postJson } from "@/utils/http.js";
import { baseUrl } from "@/api/largeScreen";
import bus from '@/utils/bus'
export default {
name: "ptCxForm",
components: {
......@@ -4194,14 +4187,13 @@ export default {
},
data() {
return {
formLabelWidth: "100px",
ZCdialogFormVisible: false,
ZCform: {
zjxxbc: "",
zjjg: "",
},
ZCrowLiat:'',
ZCrowLiat: "",
xxx: {},
tPage: null,
checkResult: true,
......@@ -4503,6 +4495,49 @@ export default {
};
},
methods: {
handleMore(msg){
console.log(msg);
let self = this
let routeData = self.$router.resolve({
path: '/jqxg',
query: { row: JSON.stringify(msg) },
})
window.open(routeData.href, '_blank')
},
handleChangeRemove(msg) {
let self= this
console.log(msg);
this.$confirm("确认删除, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
postJson(`${baseUrl}/deleteDogBaseInfoById `, { id: msg.id }).then(
(res) => {
console.log(res);
if (res.code == 200) {
this.$message({
type: "success",
message: "删除成功!",
});
self.doQuery("yes");
}
}
);
// this.$message({
// type: 'success',
// message: '删除成功!'
// });
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* @description: 导出excel表格
* @param {*}
......@@ -4518,7 +4553,7 @@ export default {
if (!$table) {
$table = $e;
}
debugger
//;
// 为了返回单元格原始字符串,设置{ raw: true }
const wb = XLSX.utils.table_to_book($table, { raw: true });
const wbout = XLSX.write(wb, {
......@@ -4535,11 +4570,10 @@ export default {
}
},
handleZC() {
let self = this;
let zcurl = "/ajzljc/updateZjjg";
let json={};
let json = {};
json.asjbh = self.ZCrowLiat.asjbh;
json.zjjg = self.ZCform.zjjg;
json.zjxxbc = self.ZCform.zjxxbc;
......@@ -4552,17 +4586,17 @@ export default {
},
//数据检查 自检
sjjczj(row) {
this.ZCrowLiat = row
this.ZCrowLiat = row;
let self = this;
let zcurl = "/ajzljc/getZjjgByAsjbh";
let json={};
let json = {};
json.asjbh = row.asjbh;
console.log(json);
self.doQueryRequest(JSON.stringify(json), zcurl).then((res) => {
console.log(res);
if(res.data.code==200){
self.$set(self.ZCform,'zjjg',res.data.data.rows.zjjg)
self.$set(self.ZCform,'zjxxbc',res.data.data.rows.zjxxbc)
if (res.data.code == 200) {
self.$set(self.ZCform, "zjjg", res.data.data.rows.zjjg);
self.$set(self.ZCform, "zjxxbc", res.data.data.rows.zjxxbc);
}
});
this.ZCdialogFormVisible = true;
......@@ -4815,6 +4849,11 @@ export default {
window.open(routeData.href, "_blank");
}
},
//新增按钮
handleNewPage() {
let routeData = this.$router.resolve({ path: "/jqglIndex/jqxxcj" });
window.open(routeData.href, "_blank");
},
doQueryRequests(form, path) {
/*post方法*/
return Http({
......@@ -4881,8 +4920,8 @@ export default {
i != "grade" &&
i != "flwssfhgpdbz" &&
i != "ajType" &&
i != "ajzt"&&
i != "pageSize"&&
i != "ajzt" &&
i != "pageSize" &&
i != "pageNow"
) {
self.formData[i] = "";
......@@ -4899,6 +4938,7 @@ export default {
},
formatJson(filterVal, jsonData) {
debugger
let arr = [];
jsonData.map((v) => {
let arr1 = [];
......@@ -4910,271 +4950,216 @@ export default {
for (let i = 0; i <= arr.length - 1; i++) {
data += arr[i].split(":")[0] + ":" + v[arr[i].split(":")[1]];
}
debugger
arr1.push(data);
} else {
debugger;
if (j == "ywzt") {
if (
v.laywsjzt == null ||
v.laywsjzt == "" ||
v.laywsjzt == "00"
) {
arr1.push("等待立案采集");
} else if (v.laywsjzt == "01") {
arr1.push("等待立案审批");
} else if (v.laywsjzt == "02") {
if (v.zczjywsjzt == "01") {
arr1.push("等待侦查终结审批");
} else if (v.zczjywsjzt == "02") {
arr1.push("侦查终结审批通过");
} else if (v.zczjywsjzt == "03") {
arr1.push("侦查终结审批未通过");
} else if (v.zczjywsjzt == "05") {
arr1.push("已撤销");
} else {
arr1.push("通过立案审批");
}
} else if (v.laywsjzt == "03") {
arr1.push("立案审批未通过");
} else if (v.laywsjzt == "05") {
arr1.push("已撤销");
}
} else if (j == "sfhg") {
debugger
if(j=='gender'){
console.log(v);
console.log(arr1);
if (v.sfhgpdbz == "1") {
newarr.push("合格");
} else {
if (
v.khzljcLacjMap.result == false ||
v.khzljcZczjMap.result == false
) {
newarr.push("案件基本信息:");
if (v.khzljcZczjMap.afdqh == "0") {
newarr.push("案件基本信息: 案发地区划缺失");
if(v.gender == 1){
arr1.push("公犬");
}
if (v.khzljcLacjMap.afsj == "0") {
newarr.push("案件基本信息: 案发时间缺失");
if(v.gender == 2){
arr1.push("母犬");
}
if (v.khzljcZczjMap.ajdy == "0") {
newarr.push(" 案发地域缺失");
}
if (v.khzljcLacjMap.ajxz == "0") {
newarr.push(" 案件性质缺失");
else if(j=='speciesId'){
if(v.speciesId == 1){
arr1.push("德国牧羊犬");
}
if (v.khzljcLacjMap.jyaq == "0") {
newarr.push(" 案件简要案情缺失");
if(v.speciesId == 2){
arr1.push("昆明犬");
}
if (v.khzljcLacjMap.ladw == "0") {
newarr.push(" 立案单位缺失");
if(v.speciesId == 3){
arr1.push("罗威纳犬");
}
if (v.khzljcLacjMap.larq == "0") {
newarr.push(" 立案日期缺失");
if(v.speciesId == 4){
arr1.push("拉布拉多犬");
}
if (v.khzljcLacjMap.sacs == "0") {
newarr.push(" 涉案场所缺失");
if(v.speciesId == 5){
arr1.push("杜伯文犬");
}
if (v.khzljcZczjMap.fayy == "0") {
newarr.push(" 发案原因缺失");
if(v.speciesId == 6){
arr1.push("马里努阿犬");
}
if (v.khzljcZczjMap.pasd == "0") {
newarr.push(" 破案手段缺失");
if(v.speciesId == 7){
arr1.push("史宾格犬");
}
if (v.khzljcZczjMap.xkbh == "0") {
newarr.push(" 现场勘验编号缺失");
if(v.speciesId == 8){
arr1.push("比格犬");
}
if (v.khzljcZczjMap.zasd == "0") {
newarr.push(" 作案手段缺失");
if(v.speciesId == 9){
arr1.push("荷兰牧羊犬");
}
if (v.khzljcZczjMap.zczjdw == "0") {
newarr.push(" 侦查终结单位缺失");
if(v.speciesId == 10){
arr1.push("纽芬兰犬");
}
if (v.khzljcZczjMap.zczjsj == "0") {
newarr.push(" 侦查终结时间缺失");
if(v.speciesId == 11){
arr1.push("金毛巡回猎犬");
}
if (v.khzljcZczjMap.zczjyj == "0") {
newarr.push(" 侦查终结依据缺失");
if(v.speciesId == 12){
arr1.push("英国可卡犬");
}
// if (v.khzljcFlwsMap.lajds == "0") {
// newarr.push(" 案件法律文书:立案决定书缺失");
// }
// if (v.khzljcFlwsMap.lajds == "2") {
// newarr.push("案件法律文书: 立案决定书疑似不合格");
// }
// if (v.khzljcFlwsMap.zczjbgs == "0") {
// newarr.push("案件法律文书: 侦查终结报告书缺失");
// }
if(v.speciesId == 13){
arr1.push("比利时牧羊犬");
}
if (v.khzljcFlwsMap.lajds == "0") {
newarr.push(" 案件法律文书:立案决定书缺失");
if(v.speciesId == 14){
arr1.push("边境牧羊犬");
}
if (v.khzljcFlwsMap.lajds == "2") {
newarr.push(" 案件法律文书: 立案决定书疑似不合格");
if(v.speciesId == 15){
arr1.push("藏獒");
}
if (v.khzljcFlwsMap.zczjbgs == "0") {
newarr.push(" 案件法律文书: 侦查终结报告书缺失");
}
if (v.khzljcFlwsMap.zczjbgs == "2") {
newarr.push("案件法律文书: 侦查终结报告书疑似不合格");
if(v.speciesId == 99){
arr1.push("其他");
}
if (v.khzljcBhrMap.result == false) {
v.khzljcBhrMap.bhrList.map((item) => {
if (item.result == false) {
newarr.push("案件受害人:" + item.xm);
if (item.detail.cssj == "0") {
newarr.push("出生日期缺失");
}
if (item.detail.zjlx == "0") {
newarr.push(" 证件类型缺失");
}
if (item.detail.xb == "0") {
newarr.push(" 性别缺失");
}
if (item.detail.gj == "0") {
newarr.push(" 国籍缺失");
}
if (item.detail.rsshcd == "0") {
newarr.push(" 人身伤害程度缺失");
}
if (item.detail.rsshcd == "0") {
newarr.push(" 文化程度缺失");
}
if (item.detail.xm == "0") {
newarr.push(" 姓名缺失");
}
if (item.detail.xzzqh == "0") {
newarr.push(" 现住址区划缺失");
}
if (item.detail.zjhm == "0") {
newarr.push(" 证件号码缺失");
}
if (item.detail.zyxx == "0") {
newarr.push(" 职业信息缺失");
}
}
});
}
if (v.khzljcXyrMap.result == false) {
v.khzljcXyrMap.xyrList.map((item) => {
if (item.result == false) {
newarr.push("涉案犯罪嫌疑人:" + item.xm);
if (item.detail.cssj == "0") {
newarr.push("出生日期缺失");
}
if (item.detail.dazt == "0") {
newarr.push("到案状态缺失");
}
if (item.detail.dwzy == "0") {
newarr.push("地位作用缺失");
}
if (item.detail.whcd == "0") {
newarr.push("文化程度缺失");
}
if (item.detail.hjdqh == "0") {
newarr.push("户籍地区划缺失");
}
if (item.detail.hjlx == "0") {
newarr.push("户籍类型缺失");
}
if (item.detail.hyzk == "0") {
newarr.push("婚姻状况缺失");
}
if (item.detail.nl == "0") {
newarr.push("年龄缺失");
}
if (item.detail.sfjsb == "0") {
newarr.push("精神病缺失");
}
if (item.detail.sfqkry == "0") {
newarr.push("前科人员缺失");
}
if (item.detail.zjlx == "0") {
newarr.push("证件类型缺失");
else if(j =='dogAreaId'){
if(v.dogAreaId == 1){
arr1.push("昆明片区");
}
if (item.detail.xb == "0") {
newarr.push("性别缺失");
if(v.dogAreaId == 2){
arr1.push("南昌片区");
}
if (item.detail.xm == "0") {
newarr.push("姓名缺失");
if(v.dogAreaId == 3){
arr1.push("南京片区");
}
if (item.detail.gj == "0") {
newarr.push("国籍缺失");
}
if (item.detail.xzzqh == "0") {
newarr.push("现住址区划缺失");
}
if (item.detail.ybhrgx == "0") {
newarr.push("与被害人关系缺失");
}
if (item.detail.zjhm == "0") {
newarr.push("证件号码缺失");
}
if (item.detail.zyxx == "0") {
newarr.push("与被害人关系缺失");
}
if (item.detail.zhdw == "0") {
newarr.push("抓获单位缺失");
}
}
});
}
if (v.khzljcXyrflwsMap.result == false) {
v.khzljcXyrflwsMap.xyrList.map((item) => {
if (item.result == false) {
newarr.push("嫌疑人法律文书:" + item.xm);
if (item.detail.jsbjds == "0") {
newarr.push("精神病鉴定书缺失");
}
if (item.detail.swzm == "0") {
newarr.push("死亡证明缺失");
}
if (item.detail.hjzm == "0") {
newarr.push("户籍证明缺失");
}
if (item.detail.jlzdbz == "0") {
newarr.push(
"逮捕证或拘留证或取保候审决定书或监视居住决定书缺失"
);
}
}
if (item.result == true && item.ysbhg == false) {
newarr.push("嫌疑人法律文书:" + item.xm);
if (item.detail.jsbjds == "2") {
newarr.push("精神病鉴定书疑似不合格");
}
if (item.detail.swzm == "2") {
newarr.push("死亡证明疑似不合格");
}
if (item.detail.hjzm == "2") {
newarr.push("户籍证明疑似不合格");
}
if (item.detail.jlzdbz == "2") {
newarr.push(
"逮捕证或拘留证或取保候审决定书或监视居住决定书疑似不合格"
);
}
}
});
if(v.dogAreaId == 4){
arr1.push("沈阳片区");
}
}else{
arr1.push(v[j]);
}
//;
// if (j == "ywzt") {
// if (
// v.laywsjzt == null ||
// v.laywsjzt == "" ||
// v.laywsjzt == "00"
// ) {
// arr1.push("等待立案采集");
// } else if (v.laywsjzt == "01") {
// arr1.push("等待立案审批");
// } else if (v.laywsjzt == "02") {
// if (v.zczjywsjzt == "01") {
// arr1.push("等待侦查终结审批");
// } else if (v.zczjywsjzt == "02") {
// arr1.push("侦查终结审批通过");
// } else if (v.zczjywsjzt == "03") {
// arr1.push("侦查终结审批未通过");
// } else if (v.zczjywsjzt == "05") {
// arr1.push("已撤销");
// } else {
// arr1.push("通过立案审批");
// }
// } else if (v.laywsjzt == "03") {
// arr1.push("立案审批未通过");
// } else if (v.laywsjzt == "05") {
// arr1.push("已撤销");
// }
// } else if (j == "sfhg") {
// console.log(v);
// console.log(arr1);
// if (v.sfhgpdbz == "1") {
// newarr.push("合格");
// } else {
// if (
// v.khzljcLacjMap.result == false ||
// v.khzljcZczjMap.result == false
// ) {
// newarr.push("案件基本信息:");
// if (v.khzljcZczjMap.afdqh == "0") {
// newarr.push("案件基本信息: 案发地区划缺失");
// }
// if (v.khzljcLacjMap.afsj == "0") {
// newarr.push("案件基本信息: 案发时间缺失");
// }
// if (v.khzljcZczjMap.ajdy == "0") {
// newarr.push(" 案发地域缺失");
// }
// if (v.khzljcLacjMap.ajxz == "0") {
// newarr.push(" 案件性质缺失");
// }
// if (v.khzljcLacjMap.jyaq == "0") {
// newarr.push(" 案件简要案情缺失");
// }
// if (v.khzljcLacjMap.ladw == "0") {
// newarr.push(" 立案单位缺失");
// }
// if (v.khzljcLacjMap.larq == "0") {
// newarr.push(" 立案日期缺失");
// }
// if (v.khzljcLacjMap.sacs == "0") {
// newarr.push(" 涉案场所缺失");
// }
// if (v.khzljcZczjMap.fayy == "0") {
// newarr.push(" 发案原因缺失");
// }
// if (v.khzljcZczjMap.pasd == "0") {
// newarr.push(" 破案手段缺失");
// }
// if (v.khzljcZczjMap.xkbh == "0") {
// newarr.push(" 现场勘验编号缺失");
// }
// if (v.khzljcZczjMap.zasd == "0") {
// newarr.push(" 作案手段缺失");
// }
// if (v.khzljcZczjMap.zczjdw == "0") {
// newarr.push(" 侦查终结单位缺失");
// }
// if (v.khzljcZczjMap.zczjsj == "0") {
// newarr.push(" 侦查终结时间缺失");
// }
// if (v.khzljcZczjMap.zczjyj == "0") {
// newarr.push(" 侦查终结依据缺失");
// }
// // if (v.khzljcFlwsMap.lajds == "0") {
// // newarr.push(" 案件法律文书:立案决定书缺失");
// // }
// // if (v.khzljcFlwsMap.lajds == "2") {
// // newarr.push("案件法律文书: 立案决定书疑似不合格");
// // }
// // if (v.khzljcFlwsMap.zczjbgs == "0") {
// // newarr.push("案件法律文书: 侦查终结报告书缺失");
// // }
// }
// if (v.khzljcFlwsMap.lajds == "0") {
// newarr.push(" 案件法律文书:立案决定书缺失");
// }
// if (v.khzljcFlwsMap.lajds == "2") {
// newarr.push(" 案件法律文书: 立案决定书疑似不合格");
// }
// if (v.khzljcFlwsMap.zczjbgs == "0") {
// newarr.push(" 案件法律文书: 侦查终结报告书缺失");
// }
// if (v.khzljcFlwsMap.zczjbgs == "2") {
// newarr.push("案件法律文书: 侦查终结报告书疑似不合格");
// }
// if (v.khzljcBhrMap.result == false) {
// v.khzljcBhrMap.bhrList.map((item) => {
// newarr.push("受害人:" + item.xm);
// if (item.result == false) {
// newarr.push("案件受害人:" + item.xm);
// if (item.detail.cssj == "0") {
// newarr.push("出生日期缺失");
// }
// if (item.detail.zjlx == "0") {
// newarr.push(" 证件类型缺失");
// }
// if (item.detail.xb == "0") {
// newarr.push(" 性别缺失");
// }
// if (item.detail.gj == "0") {
// newarr.push("国籍缺失");
// newarr.push(" 国籍缺失");
// }
// if (item.detail.rsshcd == "0") {
// newarr.push("人身伤害程度缺失");
// newarr.push(" 人身伤害程度缺失");
// }
// if (item.detail.whcd == "0") {
// newarr.push("文化程度缺失");
// if (item.detail.rsshcd == "0") {
// newarr.push(" 文化程度缺失");
// }
// if (item.detail.xm == "0") {
// newarr.push("姓名缺失");
// newarr.push(" 姓名缺失");
// }
// if (item.detail.xzzqh == "0") {
// newarr.push(" 现住址区划缺失");
......@@ -5182,113 +5167,246 @@ export default {
// if (item.detail.zjhm == "0") {
// newarr.push(" 证件号码缺失");
// }
// if (item.detail.zjlx == "0") {
// newarr.push(" 证件类型缺失");
// }
// if (item.detail.xzzqh == "0") {
// newarr.push(" 现住址区划缺失");
// }
// if (item.detail.xb == "0") {
// newarr.push(" 性别缺失");
// }
// if (item.detail.zyxx == "0") {
// newarr.push(" 职业信息缺失");
// }
// }
// });
// }
// if (v.khzljcXyrMap.result == false) {
// v.khzljcXyrMap.xyrList.map((item) => {
// newarr.push("涉案犯罪嫌疑人" + item.xm);
// if (item.result == false) {
// newarr.push("涉案犯罪嫌疑人:" + item.xm);
// if (item.detail.cssj == "0") {
// newarr.push(" 出生日期缺失");
// newarr.push("出生日期缺失");
// }
// if (item.detail.dazt == "0") {
// newarr.push("到案状态缺失");
// }
// if (item.detail.dwzy == "0") {
// newarr.push(" 地位作用缺失");
// }
// if (item.detail.gj == "0") {
// newarr.push(" 国籍缺失");
// newarr.push("地位作用缺失");
// }
// if (item.detail.whcd == "0") {
// newarr.push(" 文化程度缺失");
// newarr.push("文化程度缺失");
// }
// if (item.detail.hjdqh == "0") {
// newarr.push(" 户籍地区划缺失");
// newarr.push("户籍地区划缺失");
// }
// if (item.detail.hjlx == "0") {
// newarr.push(" 户籍类型缺失");
// newarr.push("户籍类型缺失");
// }
// if (item.detail.hyzk == "0") {
// newarr.push(" 婚姻状况缺失");
// newarr.push("婚姻状况缺失");
// }
// if (item.detail.nl == "0") {
// newarr.push(" 年龄缺失");
// newarr.push("年龄缺失");
// }
// if (item.detail.sfjsb == "0") {
// newarr.push(" 精神病缺失");
// newarr.push("精神病缺失");
// }
// if (item.detail.sfqkry == "0") {
// newarr.push(" 前科人员缺失");
// newarr.push("前科人员缺失");
// }
// if (item.detail.zjlx == "0") {
// newarr.push(" 证件类型缺失");
// newarr.push("证件类型缺失");
// }
// if (item.detail.xb == "0") {
// newarr.push(" 性别缺失");
// newarr.push("性别缺失");
// }
// if (item.detail.xm == "0") {
// newarr.push(" 姓名缺失");
// newarr.push("姓名缺失");
// }
// if (item.detail.gj == "0") {
// newarr.push("国籍缺失");
// }
// if (item.detail.xzzqh == "0") {
// newarr.push(" 现住址区划缺失");
// newarr.push("现住址区划缺失");
// }
// if (item.detail.ybhrgx == "0") {
// newarr.push(" 与被害人关系缺失");
// newarr.push("与被害人关系缺失");
// }
// if (item.detail.zjhm == "0") {
// newarr.push(" 证件号码缺失");
// newarr.push("证件号码缺失");
// }
// if (item.detail.zyxx == "0") {
// newarr.push(" 与被害人关系缺失");
// newarr.push("与被害人关系缺失");
// }
// if (item.detail.zhdw == "0") {
// newarr.push(" 抓获单位缺失");
// newarr.push("抓获单位缺失");
// }
// }
// });
// }
// if (v.khzljcXyrflwsMap.result == false) {
// v.khzljcXyrflwsMap.xyrList.map((item) => {
// newarr.push("嫌疑人法律文书" + item.xm);
// if (item.detail.jsbjds1 == "0") {
// newarr.push(" 精神病鉴定书缺失");
// if (item.result == false) {
// newarr.push("嫌疑人法律文书:" + item.xm);
// if (item.detail.jsbjds == "0") {
// newarr.push("精神病鉴定书缺失");
// }
// if (item.detail.swzm == "0") {
// newarr.push(" 死亡证明缺失");
// newarr.push("死亡证明缺失");
// }
// if (item.detail.hjzm == "0") {
// newarr.push(" 户籍证明缺失");
// newarr.push("户籍证明缺失");
// }
// if (item.detail.jlzdbz == "0") {
// newarr.push(
// " 逮捕证或拘留证或取保候审决定书或监视居住决定书缺失"
// "逮捕证或拘留证或取保候审决定书或监视居住决定书缺失"
// );
// }
// }
// if (item.result == true && item.ysbhg == false) {
// newarr.push("嫌疑人法律文书:" + item.xm);
// if (item.detail.jsbjds == "2") {
// newarr.push("精神病鉴定书疑似不合格");
// }
// if (item.detail.swzm == "2") {
// newarr.push("死亡证明疑似不合格");
// }
// if (item.detail.hjzm == "2") {
// newarr.push("户籍证明疑似不合格");
// }
// if (item.detail.jlzdbz == "2") {
// newarr.push(
// "逮捕证或拘留证或取保候审决定书或监视居住决定书疑似不合格"
// );
// }
// }
// });
// });
// });
console.log(newarr);
arr1.push(newarr.toLocaleString());
// v.khzljcBhrMap.bhrList.map(item=>{
// if(item.detail.cssj == '0'){
// arr1.push("出生日期缺失");
// }else if(item.detail.zjlx == '0'){
// // arr1.push("证件类型缺失");
// }
// })
// else if(v.khzljcBhrMap.bhrList.detail.cssj == '0'){
// arr1.push("出生日期缺失");
// }else if(v.khzljcBhrMap.bhrList.detail.zjlx == '0'){
// arr1.push("证件类型缺失");
// }
} else {
arr1.push(v[j]);
}
// // v.khzljcBhrMap.bhrList.map((item) => {
// // newarr.push("受害人:" + item.xm);
// // if (item.detail.cssj == "0") {
// // newarr.push("出生日期缺失");
// // }
// // if (item.detail.gj == "0") {
// // newarr.push("国籍缺失");
// // }
// // if (item.detail.rsshcd == "0") {
// // newarr.push("人身伤害程度缺失");
// // }
// // if (item.detail.whcd == "0") {
// // newarr.push("文化程度缺失");
// // }
// // if (item.detail.xm == "0") {
// // newarr.push("姓名缺失");
// // }
// // if (item.detail.xzzqh == "0") {
// // newarr.push(" 现住址区划缺失");
// // }
// // if (item.detail.zjhm == "0") {
// // newarr.push(" 证件号码缺失");
// // }
// // if (item.detail.zjlx == "0") {
// // newarr.push(" 证件类型缺失");
// // }
// // if (item.detail.xzzqh == "0") {
// // newarr.push(" 现住址区划缺失");
// // }
// // if (item.detail.xb == "0") {
// // newarr.push(" 性别缺失");
// // }
// // if (item.detail.zyxx == "0") {
// // newarr.push(" 职业信息缺失");
// // }
// // v.khzljcXyrMap.xyrList.map((item) => {
// // newarr.push("涉案犯罪嫌疑人" + item.xm);
// // if (item.detail.cssj == "0") {
// // newarr.push(" 出生日期缺失");
// // }
// // if (item.detail.dazt == "0") {
// // newarr.push("到案状态缺失");
// // }
// // if (item.detail.dwzy == "0") {
// // newarr.push(" 地位作用缺失");
// // }
// // if (item.detail.gj == "0") {
// // newarr.push(" 国籍缺失");
// // }
// // if (item.detail.whcd == "0") {
// // newarr.push(" 文化程度缺失");
// // }
// // if (item.detail.hjdqh == "0") {
// // newarr.push(" 户籍地区划缺失");
// // }
// // if (item.detail.hjlx == "0") {
// // newarr.push(" 户籍类型缺失");
// // }
// // if (item.detail.hyzk == "0") {
// // newarr.push(" 婚姻状况缺失");
// // }
// // if (item.detail.nl == "0") {
// // newarr.push(" 年龄缺失");
// // }
// // if (item.detail.sfjsb == "0") {
// // newarr.push(" 精神病缺失");
// // }
// // if (item.detail.sfqkry == "0") {
// // newarr.push(" 前科人员缺失");
// // }
// // if (item.detail.zjlx == "0") {
// // newarr.push(" 证件类型缺失");
// // }
// // if (item.detail.xb == "0") {
// // newarr.push(" 性别缺失");
// // }
// // if (item.detail.xm == "0") {
// // newarr.push(" 姓名缺失");
// // }
// // if (item.detail.xzzqh == "0") {
// // newarr.push(" 现住址区划缺失");
// // }
// // if (item.detail.ybhrgx == "0") {
// // newarr.push(" 与被害人关系缺失");
// // }
// // if (item.detail.zjhm == "0") {
// // newarr.push(" 证件号码缺失");
// // }
// // if (item.detail.zyxx == "0") {
// // newarr.push(" 与被害人关系缺失");
// // }
// // if (item.detail.zhdw == "0") {
// // newarr.push(" 抓获单位缺失");
// // }
// // v.khzljcXyrflwsMap.xyrList.map((item) => {
// // newarr.push("嫌疑人法律文书" + item.xm);
// // if (item.detail.jsbjds1 == "0") {
// // newarr.push(" 精神病鉴定书缺失");
// // }
// // if (item.detail.swzm == "0") {
// // newarr.push(" 死亡证明缺失");
// // }
// // if (item.detail.hjzm == "0") {
// // newarr.push(" 户籍证明缺失");
// // }
// // if (item.detail.jlzdbz == "0") {
// // newarr.push(
// // " 逮捕证或拘留证或取保候审决定书或监视居住决定书缺失"
// // );
// // }
// // });
// // });
// // });
// console.log(newarr);
// arr1.push(newarr.toLocaleString());
// // v.khzljcBhrMap.bhrList.map(item=>{
// // if(item.detail.cssj == '0'){
// // arr1.push("出生日期缺失");
// // }else if(item.detail.zjlx == '0'){
// // // arr1.push("证件类型缺失");
// // }
// // })
// // else if(v.khzljcBhrMap.bhrList.detail.cssj == '0'){
// // arr1.push("出生日期缺失");
// // }else if(v.khzljcBhrMap.bhrList.detail.zjlx == '0'){
// // arr1.push("证件类型缺失");
// // }
// } else {
// arr1.push(v[j]);
// }
}
});
arr.push(arr1);
......@@ -5778,7 +5896,7 @@ export default {
}
},
toQueryRequest(form, cxUrl) {
// debugger
// //
/*post方法*/
return Http({
url: url.BaseURL + cxUrl,
......@@ -5807,6 +5925,7 @@ export default {
*/
export2Excel() {
/*导出*/
debugger
let self = this,
tHeader = [],
filterVal = [];
......@@ -5833,8 +5952,10 @@ export default {
: "";
}
}
json.page = 1;
json.rows = 5000;
// json.page = 1; page: 1
// json.rows = 5000;
json.pageNow = 1;
json.pageSize = 5000;
tHeader = [];
filterVal = [];
self.propdefaultFormThead.forEach((val) => {
......@@ -5852,15 +5973,28 @@ export default {
filterVal.push(val.prop);
}
});
self.doQueryRequest(JSON.stringify(json)).then((res) => {
if (res.data.success) {
let base = ''
if(self.pageBszfc =='jqxx'){
base = 'getAllDog'
}else{
base = ''
}
self.doQueryRequest(JSON.stringify(json),base).then((res) => {
debugger
console.log(res);
if (res.success) {
require.ensure([], () => {
const {
export_json_to_excel,
} = require("../vendor/Export2Excel");
if(self.pageBszfc =='jsry'){
var list = res.data.data.records;
}else{
var list = res.data.data;
}
debugger
let data = self.formatJson(filterVal, list);
const list = res.data.data.rows;
const data = self.formatJson(filterVal, list);
export_json_to_excel(tHeader, data, self.excelHeader);
});
loading.close();
......@@ -5880,7 +6014,7 @@ export default {
* 导出犯罪嫌疑人
*/
exportCriminalSuspect() {
debugger;
//;
/*导出*/
let self = this,
tHeader = [],
......@@ -6023,9 +6157,9 @@ export default {
this.doQuery("yes");
},
doQueryRequest(form, relurl) {
debugger
//;
console.log(relurl);
// debugger
// //
/*post方法*/
var currentUrl = relurl ? relurl : this.cxUrl;
console.log(url.BaseURL);
......@@ -6035,7 +6169,7 @@ export default {
method: "post",
headers: {
"blade-auth": sessionStorage.getItem("token"),
'content-type': 'application/json;charset=UTF-8'
"content-type": "application/json;charset=UTF-8",
},
});
},
......@@ -6067,7 +6201,7 @@ export default {
console.log(column);
},
doQueryBtn(val) {
// debugger;
// //;
// if (val) {
// this.formData.sfhgpdbz = "";
// }
......@@ -6075,11 +6209,12 @@ export default {
this.doQuery("yes");
},
doQuery(flag) {
debugger
//;
this.showLoading();
let self = this,
json = {},LiatArr=[];
debugger;
json = {},
LiatArr = [];
//;
for (let i in self.formData) {
if (i != "cxSj") {
json[i] = self.formData[i];
......@@ -6094,19 +6229,34 @@ export default {
console.log(JSON.stringify(json));
self.doQueryRequest(JSON.stringify(json)).then((response) => {
console.log(response);
debugger;
//;
if (response.success === true) {
if(self.pageBs == 'jqxx'){
response.data.data.res.forEach(item=>{
debugger
if (self.pageBs == "jqxx") {
response.data.data.forEach((item) => {
//;
console.log(item);
self.$set(item.doginfo,'dogimgs',item.dogimgs)
LiatArr.push(item.doginfo)
})
console.log(self.pageBs,response.data.data.res);
self.$set(item.doginfo, "dogimgs", item.dogimgs);
LiatArr.push(item.doginfo);
});
// console.log(self.pageBs,response.data.data.res);
self.tableData = LiatArr;
self.tableDataLength = response.data.data.total;
// self.tableDataLength = response.data.data.total;
self.tableDataLength = response.data.data.length;
// self.tPage = Math.ceil(response.data.data.total / self.page_size);
self.tPage = Math.ceil(
response.data.data.length / self.page_size
);
self.talbeBhgCount = response.data.data.bhgCount;
self.talbehgCount = response.data.data.hgCount;
self.talbeysbhgCount = response.data.data.ysbhgCount;
self.closeLoading();
} else if(self.pageBs == "jsry") {
debugger
console.log( response.data.data.records);
self.tableData = response.data.data.records;
self.tableDataLength = response.data.data.records.length;
self.tPage = Math.ceil(response.data.data.total / self.page_size);
self.talbeBhgCount = response.data.data.bhgCount;
self.talbehgCount = response.data.data.hgCount;
......@@ -6159,17 +6309,21 @@ export default {
},
mounted() {
let self = this;
self.$bus.on('message', (msg)=>{
console.log(msg);
self.doQuery("yes");
});
// self.getKhsffb();
/*获取字典*/
console.log(this.cxQueryField);
debugger
//;
self.propQueryField.forEach((val) => {
if (val.type == "code" || val.type == "codeTreeDialog") {
if (val.codeOptions.length == 0) {
axios
.get(`JsonData/${val.codeTree}.json`)
.then((res) => {
debugger
//;
self.$set(val, "codeOptions", res.data.rows);
})
.catch((err) => {
......@@ -6220,7 +6374,7 @@ export default {
},
};
</script>
<style>
<style >
@import url("../assets/styles/iconfont.css");
.el-dialog__body {
......
......@@ -117,7 +117,7 @@ export default {
computed: {
newValue() {
var self = this;
debugger
// //
console.log(this.curItem);
if (this.curItem.id != 'zcjddm' && this.curItem.codeOptions.length != 0) {
// if (this.curFormData[this.curItem.id] != '') {
......@@ -177,7 +177,7 @@ export default {
watch: {
newArr: {
handler(newValue, oldValue) {
debugger
// //
var self = this
if (oldValue.length == 0 && this.curFormData[this.curItem.id] != "") {
let value = this.queryTree(newValue, this.curFormData[this.curItem.id]);
......@@ -408,7 +408,7 @@ export default {
},
},
mounted() {
debugger
// //
console.log(this.currentItem);
}
}
......
/*
* @Author: your name
* @Date: 2021-11-22 14:08:39
* @LastEditTime: 2021-12-16 11:14:43
* @LastEditTime: 2021-12-27 19:21:42
* @LastEditors: LYS
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\main.js
......@@ -17,6 +17,8 @@ import VueWechatTitle from "vue-wechat-title";
import Watermark from "./utils/watermark.js"
import Driver from 'driver.js'
import 'driver.js/dist/driver.min.css'
import VueBus from 'vue-bus';
Vue.use(VueBus)
// 导入字体图标库
import './assets/fonts2/iconfont.css'
Vue.prototype.$driver = new Driver({
......
/*
* @Author: your name
* @Date: 2021-12-09 10:31:36
* @LastEditTime: 2021-12-24 18:36:30
* @LastEditTime: 2021-12-27 17:20:32
* @LastEditors: LYS
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \警犬\founder_vue\src\router\modules\index.js
......@@ -38,6 +38,15 @@ export default [{
component: () => import('@/views/jump/jump.vue')
},
{
/*警犬信息修改*/
path: '/jqxg',
name: 'jqxg',
component: () => import('@/views/sy/jqxg.vue'),
meta: {
title: '警犬信息管理'
}
},
{
path: '/jqglIndex',
name: 'jqglIndex',
meta: {
......@@ -46,7 +55,7 @@ export default [{
},
component: () => import('@/views/sy/index.vue'),
redirect: {
name: 'jsrycj'
name: 'jqxxcj'
}, //输入路由会重定向到dlrz页面
children: [
{
......@@ -58,6 +67,15 @@ export default [{
title: '警犬信息管理'
}
},
// {
// /*警犬信息修改*/
// path: 'jqxg',
// name: 'jqxg',
// component: () => import('@/views/sy/jqxg.vue'),
// meta: {
// title: '警犬信息管理'
// }
// },
{
/*技术人员信息采集*/
path: 'jsrycj',
......@@ -73,7 +91,7 @@ export default [{
name: 'jqxxcj',
component: () => import('@/views/sy/jqxxcj.vue'),
meta: {
title: '警犬信息采集采集'
title: '警犬信息采集'
}
},
{
......@@ -138,7 +156,7 @@ export default [{
}
},
{
/*信息管理*/
/*警犬信息管理*/
path: 'formTable',
name: 'formTable',
component: () => import('@/views/sy/formTable.vue'),
......@@ -147,6 +165,15 @@ export default [{
}
},
{
/*技术人员信息管理*/
path: 'jsryxxgl',
name: 'jsryxxgl',
component: () => import('@/views/sy/jsryxxgl.vue'),
meta: {
title: '信息管理'
}
},
{
/*机构管理*/
path: 'jggl',
name: 'jggl',
......@@ -156,6 +183,7 @@ export default [{
}
},
]
],
}
]
\ No newline at end of file
/*
* @Description: file content
* @Version: 2.0
* @Autor: LYS
* @Date: 2021-12-27 19:02:59
* @LastEditors: LYS
* @LastEditTime: 2021-12-27 19:03:00
*/
import Vue from 'vue'
const bus = new Vue()
export default bus
\ No newline at end of file
......@@ -45,7 +45,7 @@ var Time = axios.create({
axios.interceptors.request.use(
config => {
config.headers["Content-Type"] = "application/x-www-form-urlencoded";
// debugger
// //
// 这里的config包含每次请求的内容
let token = window.sessionStorage.getItem('token')
......
......@@ -70,16 +70,16 @@ let maglPropLeftMenu = [
// disabled: false
// },
{
id: "jsrycj",
label: "技术人员信息采集",
id: "jqxxcj",
label: "警犬信息采集",
index: "1-1",
auth: 'M012',
className: "iconfont icon-a-Frame6",
disabled: false
},
{
id: "jqxxcj",
label: "警犬信息采集",
id: "jsrycj",
label: "技术人员信息采集",
index: "1-2",
auth: 'M013',
className: "iconfont icon-a-Frame6",
......@@ -125,14 +125,22 @@ let maglPropLeftMenu = [
// className: "iconfont iconliandong",
// disabled: false
// },
// {
// id: "formTable",
// label: "信息管理",
// index: "1-7",
// auth: 'M017',
// className: "iconfont iconliandong",
// disabled: false
// },
{
id: "formTable",
label: "警犬信息管理",
index: "1-3",
auth: 'M013',
className: "iconfont iconliandong",
disabled: false
},
{
id: "jsryxxgl",
label: "技术人员信息管理",
index: "1-4",
auth: 'M014',
className: "iconfont iconliandong",
disabled: false
},
]
},
{
......@@ -168,7 +176,7 @@ let maglPropLeftMenu = [
]
},
];
/*考核管理, 现案管理*/
/*警犬信息*/
let xaglHeader = "警犬信息";
let xaglPageName = "jqxx";
let xaglFormData = {
......@@ -180,26 +188,6 @@ let xaglFormData = {
dogAreaId:'',
nameOfPublicSecurityOrgan:'',
personId:'',
// asjbh: "",
// ajlbdm: "",
// // zatzJyqk: "",
// ladwGajgjgdm: "",
// larqQssj: timeStampTurnTime(new Date(new Date().getFullYear() + "-01-01 00:00:00")),
// larqJssj: timeStampTurnTime(new Date()),
// // xxdjdwGajgjgdm: "",
// // xxdjryXm: "",
// zczjrqQssj: "",
// zczjrqJssj: "",
// ajzt: ['08'],
// khztdm: '',
// // sfhgpdbz:"",
// // spsjQssj: "",
// // spsjJssj: "",
// // sflsjaPdbz: "",
// // typeFlag: "toSfhg",
// typeFlag: 'makh',
// // unitcode: sessionStorage.getItem("unitcode"),
// grade: sessionStorage.getItem("grade"),
pageSize: 10,
pageNow: 1
};
......@@ -426,8 +414,68 @@ let xaglDefaultFormThead = [{
prop: "personName",
width: "100"
},
{
label: "警犬技术人员编号",
prop: "personId",
width: "100"
},
];
let xagllURL = "/getDogBaseInfoPage";
// 技术人员信息管理
let jsryHeader = "技术人员信息管理";
let jsryPageName = "jsry";
let jsryFormData = {
pageSize: 10,
pageNow: 1
};
let jsryQueryField = [
/*立案信息 侦查终结信息 立案信息审批 侦查终结审批通用开始*/
{
name: "警犬技术人员编号",
id: "artisanCode",
type: "text",
value: "",
placeholder: "请输入",
col: "3"
},
];
let jsryDefaultFormThead = [{
label: "警犬技术人员编号",
prop: "artisanCode",
width: "220"
},
{
/*table默认得表头*/
label: "警犬技术人员警号",
prop: "policeCode",
width: "200"
},
{
label: "警犬技术人员姓名",
prop: "personName",
width: "220"
},
{
label: "身份证号码",
prop: "idNo",
width: "120"
},
{
label: "所属单位名称",
prop: "unitName",
width: "80"
},
{
label: "联系电话",
prop: "phoneNum",
width: "80"
},
];
let jsrylURL = "/artisanController/getArtisanPage";
export {
/*命案管理界面--数据*/
maglHeaderTitle,
......@@ -440,6 +488,13 @@ export {
xaglFormData,
xaglDefaultFormThead,
xagllURL,
/*考核管理,技术人员*/
jsryHeader,
jsryPageName,
jsryQueryField,
jsryFormData,
jsryDefaultFormThead,
jsrylURL,
/*时间*/
timeStampTurnTime
};
......@@ -709,7 +709,7 @@ export default {
var all = Number(0);
self.top10List.map((item) => {
console.log(item.participationCount);
// debugger
// //
all += item.participationCount;
});
console.log(all);
......@@ -988,7 +988,7 @@ export default {
// tooltip: {
// trigger: "item",
// formatter: function (params) {
// // debugger;
// // //;
// console.log(params);
// let data = params.data;
// // return '<p style="color: red;">'+params.name+'</p>' + ' <br/>45654645: \n 34 <br/>' + params.value[2];
......@@ -1161,7 +1161,7 @@ export default {
// renderItem: function (params, api) {
// //具体实现自定义图标的方法
// console.log(self.eventData[params.dataIndex].value[0]);
// // debugger;
// // //;
// return {
// type: "image",
// style: {
......@@ -1185,7 +1185,7 @@ export default {
// //显示悬浮窗口
// trigger: "item",
// formatter: function (params, ticket, callback) {
// debugger;
// //;
// console.log(params);
// return params.name + ":" + params.value;
// },
......
......@@ -87,7 +87,7 @@ export default {
})
},
getData() {
debugger
//
const self = this
axios.get('/api/dddl/xzLogin', {
params: {
......
......@@ -4,7 +4,7 @@
* @Autor: LYS
* @Date: 2021-12-22 14:20:30
* @LastEditors: LYS
* @LastEditTime: 2021-12-22 14:34:40
* @LastEditTime: 2021-12-25 16:00:18
-->
<template>
<div class="Content">
......@@ -45,7 +45,7 @@ export default {
}
</script>
<style>
<style scoped>
.el-dialog__body {
padding: 10px 15px !important;
}
......
......@@ -50,21 +50,17 @@
</span> -->
<span v-if="name == '技术人员信息采集'||name == '警犬信息采集'">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/jqglIndex/jsrycj' }"
@click="hanndleClickBreadcrumb('new')"
><span :class="{ active: $route.path == '/jqglIndex/jsrycj' }">技术人员采集</span></el-breadcrumb-item
>
<el-breadcrumb-item :to="{ path: '/jqglIndex/jqxxcj' }"
@click="hanndleClickBreadcrumb('two')"
><span :class="{ active: $route.path == '/jqglIndex/jqxxcj' }">警犬信息采集</span></el-breadcrumb-item
>
<!-- <el-breadcrumb-item :to="{ path: '/jqglIndex/xx3' }"
<el-breadcrumb-item :to="{ path: '/jqglIndex/jsrycj' }"
@click="hanndleClickBreadcrumb('new')"
><span :class="{ active: $route.path == '/jqglIndex/jsrycj' }">技术人员信息采集</span></el-breadcrumb-item
>
@click="hanndleClickBreadcrumb('three')"
><span :class="{ active: $route.path == '/jqglIndex/xx3' }">选项三 </span></el-breadcrumb-item
> -->
</el-breadcrumb>
</span>
</div>
......@@ -423,7 +419,7 @@ export default {
},
// 跳转大屏
getHome() {
debugger
//
const _this = this
_this.$router.push('/Home')
},
......@@ -519,7 +515,7 @@ export default {
},
//点击 跳转
changeSidebarIndex(index, item) {
debugger;
//;
var grade = sessionStorage.getItem('grade')
let self = this
let navList = JSON.parse(sessionStorage.getItem('navList'))
......@@ -549,7 +545,7 @@ export default {
})
}
if (flag) {
debugger
//
if (index.indexOf('-') == -1) {
this.sidebarItemName = item[index - 1].id
this.name = item[index - 1].label
......
<!--
* @Description: file content
* @Version: 2.0
* @Autor: LYS
* @Date: 2021-12-24 14:19:51
* @LastEditors: LYS
* @LastEditTime: 2021-12-28 19:53:13
-->
<template>
<div>
<div
style="width: 97%; margin: 0px auto; border-radius: 8px; background: #fff"
>
<el-form
:selfUpdate="true"
ref="formLabelAlign"
label-position="right"
label-width="170px"
:model="formLabelAlign"
>
<div
class="paneGroupDiv"
v-for="(groupItem, syIndex) in propFormField"
:id="groupItem.id == 'zdyzd' ? 'zdyzd' : ''"
:key="groupItem.id"
>
<div>
<div class="groupTitleBox">
<span class="groupTag"></span>
<span class="groupTitle">{{ groupItem.title }}</span>
<!-- <span
@click="zdyzdTip"
style="margin-right: 15px; cursor: pointer; margin-left: auto"
><i
class="fa fa-cog"
style="font-size: 15px; margin-right: 3px"
></i
>自定义字段</span
> -->
<span
@click="
() => {
groupItem.isclosed = !groupItem.isclosed;
}
"
style="margin-left: auto"
>
<i
:class="
groupItem.isclosed
? 'el-icon-arrow-down'
: 'el-icon-arrow-up'
"
></i>
<el-button type="text" style="color: #333333">{{
groupItem.isclosed == false ? "收起" : "展开"
}}</el-button>
</span>
<div
style="
width: calc(100% - 50px);
margin-left: 23px;
margin-right: auto;
height: 0px;
border-top: 1px solid rgb(221, 221, 221);
opacity: 1;
align-self: flex-end;
"
></div>
</div>
<div class="zdyLine" v-show="!groupItem.isclosed">
<el-form-item
:label="
item.type && item.type != 'checkboxBotton' ? item.name : ' '
"
v-for="(item, index) in groupItem.data"
:key="index"
:prop="item.id"
:ref="item.id"
:id="item.id == 'asjfsddDylbdm' ? 'allRequired' : ''"
:label-width="
item.type && item.type != 'checkboxBotton' ? '165px' : '0px'
"
:style="item.style"
:class="[
'item' + item.col,
item.prop == 'checkEmpty' ? redColor : '',
]"
>
<!--普通输入框(附带提取功能——可选)-->
<el-input
:placeholder="item.placeholder"
v-model="formLabelAlign[item.id]"
v-if="item.type == 'text'"
:disabled="item.disabled"
:class="item.input"
>
<i
v-if="item.showIcon"
@click.stop="queryByAsjbh()"
slot="suffix"
class="el-input__icon"
:class="item.icon"
style="cursor: pointer"
title="案件基本信息提取"
></i>
<el-button
slot="append"
icon="el-icon-search"
v-if="item.append"
@click="hxShuju(formLabelAlign[item.id])"
></el-button>
</el-input>
<div
v-if="item.type == 'textInfo'"
id="ajTq"
style="display: flex; align-items: center"
>
<el-input
:placeholder="item.placeholder"
v-model="formLabelAlign[item.id]"
@focus="showJyDialog(item.jy, item.id)"
:disabled="item.disabled"
:class="item.input"
>
</el-input>
<el-button
type="info"
size="mini"
style="margin-left: 5px; margin-right: 0 !important"
@click="hxShuju(formLabelAlign)"
>提取</el-button
>
</div>
<div
v-if="item.type == 'textba'"
style="display: flex; align-items: center"
>
<el-input
:placeholder="item.placeholder"
v-model="formLabelAlign[item.id]"
:disabled="item.disabled"
:class="item.input"
>
</el-input>
<el-button
type="info"
size="mini"
style="margin-left: 5px; margin-right: 0 !important"
@click="showJyDialog(item.jy, item.id)"
>搜索</el-button
>
</div>
<div
v-if="item.type == 'textXk'"
style="display: flex; align-items: center"
>
<el-input
:placeholder="item.placeholder"
v-model="formLabelAlign[item.id]"
:disabled="item.disabled"
:class="item.input"
>
</el-input>
<el-button
type="info"
size="mini"
style="margin-left: 5px; margin-right: 0 !important"
@click="xkDetail(formLabelAlign[item.id])"
>勘验详情</el-button
>
</div>
<!--计数-->
<el-input-number
v-model="formLabelAlign[item.id]"
:min="1"
:max="10"
v-else-if="item.type == 'number'"
:disabled="item.disabled"
>
</el-input-number>
<!--输入框-最大值与最小值-->
<div
class="zdyInputW zdyInputCol2"
v-else-if="item.type == 'zdyText'"
>
<el-input
:placeholder="item.placeholder"
v-model="formLabelAlign[item.id]"
>
</el-input>
<el-input
:placeholder="item.placeholder2"
v-model="formLabelAlign[item.id]"
>
</el-input>
</div>
<!--文本域-->
<el-input
type="textarea"
:autosize="autosize"
:rows="item.rows ? item.rows : 10"
:placeholder="item.placeholder"
v-model="formLabelAlign[item.id]"
v-else-if="item.type == 'textarea'"
:disabled="item.disabled"
>
</el-input>
<!--日期框区间-->
<el-date-picker
v-model="formLabelAlign[item.id]"
type="daterange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss"
v-else-if="item.type == 'datearea'"
:disabled="item.disabled"
>
</el-date-picker>
<!-- 日期 -->
<el-date-picker
v-model="formLabelAlign[item.id]"
:disabled="item.disabled"
type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd HH:mm:ss"
v-else-if="item.type == 'dates'"
:class="item.date"
>
</el-date-picker>
<el-date-picker
v-model="formLabelAlign[item.id]"
:disabled="item.disabled"
type="datetime"
placeholder="选择日期"
value-format="yyyy-MM-dd HH:mm:ss"
v-else-if="item.type == 'datesTime'"
:class="item.date"
>
</el-date-picker>
<div v-else-if="item.type == 'datetime'" style="display: flex">
<el-date-picker
v-model="formLabelAlign[item.id_1]"
format="yyyy-MM-dd HH:mm:ss"
:disabled="item.disabled"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
>
</el-date-picker>
<span style="padding: 0 5px"></span>
<el-date-picker
v-model="formLabelAlign[item.id_2]"
format="yyyy-MM-dd HH:mm:ss"
:disabled="item.disabled"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
>
</el-date-picker>
</div>
<!--案件类别-->
<div class="zdyInputW" v-else-if="item.type == 'setValue'">
<el-select v-model="formLabelAlign[item.id]" disabled>
<el-option
v-for="item2 in item.codeOptions"
:key="item2.value"
:label="item2.label"
:value="item2.value"
>
</el-option>
</el-select>
</div>
<!--多选框-->
<div class="zdyInputW" v-else-if="item.type == 'checkbox'">
<el-checkbox-group
v-model="formLabelAlign[item.id]"
size="small"
>
<el-checkbox
v-for="(item2, index2) in item.checkboxData"
:label="item2"
:key="index2"
>{{ item2 }}</el-checkbox
>
</el-checkbox-group>
</div>
<div
class="zdyInputW"
v-else-if="item.type == 'checkboxBotton'"
>
<el-checkbox-group
v-model="formLabelAlign[item.id]"
size="small"
>
<el-checkbox-button
v-for="item2 in item.checkboxData"
:label="item2"
:key="item2"
>{{ item2 }}</el-checkbox-button
>
</el-checkbox-group>
</div>
<!--单选框-->
<div class="zdyInputW" v-else-if="item.type == 'radio'">
<el-radio-group
v-model="formLabelAlign[item.id]"
size="small"
:disabled="item.disabled"
>
<el-radio
:label="item2.value"
v-for="item2 in item.radioData"
:key="item2.value"
>{{ item2.name }}</el-radio
>
</el-radio-group>
</div>
<div class="zdyInputW" v-else-if="item.type == 'radioBotton'">
<el-radio-group
v-model="formLabelAlign[item.id]"
size="small"
>
<el-radio
:label="item2.id"
border
v-for="item2 in item.radioData"
:key="item2.id"
style="margin-right: 20px"
>{{ item2.name }}
</el-radio>
</el-radio-group>
</div>
<div class="zdyInputW" v-else-if="item.type == 'radios'">
<el-radio-group
v-model="formLabelAlign[item.id]"
size="small"
>
<el-radio
:label="item2.id"
v-for="item2 in item.radioData"
:key="item2.id"
style="margin-right: 20px"
>{{ item2.name }}
</el-radio>
</el-radio-group>
</div>
<!--字典框 @emitValue="getLbValue"-->
<div class="zdyInputW" v-else-if="item.type == 'code'">
<select-tree
v-model="formLabelAlign[item.id]"
:placeholder="'请选择' + item.name"
:options="item.codeOptions"
:sendId="item.id"
/>
</div>
<!--字典弹框 @emitValue="getLbValue"-->
<div class="zdyInputW" v-else-if="item.type == 'codeTree'">
<select-tree-dialog
:placeholder="'请选择' + item.name"
:sendId="item.id"
:formData="formLabelAlign"
:currentItem="item"
/>
</div>
<!--字典弹框懒加载 @emitValue="getLbValue"-->
<div
class="zdyInputW"
v-else-if="item.type == 'lazyCodeTreeDialog'"
>
<lazy-select-tree-dialog
:placeholder="'请选择' + item.name"
@clearId="clearId(item.id)"
:sendId="item.id"
:formData="formLabelAlign"
:currentItem="item"
/>
</div>
<div
v-else-if="item.type == 'lazyCodeTree'"
:class="item.lazycode"
>
<el-cascader
:props="item.props"
v-model="formLabelAlign[item.id]"
:placeholder="item.placeholder"
:disabled="item.disabled"
:show-all-levels="false"
>
</el-cascader>
</div>
<!-- <div >{{item.isPic}}</div> -->
</el-form-item>
<div
v-if="groupItem.isPic"
class="dogpic"
style="margin-bottom: 20px"
>
<div class="pic">
<div>
<span>正面照</span>
</div>
<el-upload
class="avatar-uploader"
action="#"
:show-file-list="false"
:auto-upload="false"
:on-change="handleChange"
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload"
:http-request="() => {}"
:disabled="isDisable"
>
<div v-if="imageUrl" style="width: 136px; height: 136px">
<img
v-if="isBase64"
:src="'data:image/gif;base64,' + imageUrl"
class="avatar"
/>
<img v-else :src="imageUrl" class="avatar" />
<i
class="iconfont icon-shanchu-1 icon"
@click="picClear"
></i>
</div>
<div v-else style="display: flex; flex-direction: column">
<i class="el-icon-plus avatar-uploader-icon"></i>
<i
style="
margin-bottom: 31px;
font-size: 12px;
color: #aeaeb2;
"
>上传照片</i
>
</div>
</el-upload>
</div>
<div class="pic" style="margin-left: 32px">
<div><span>左前侧照</span></div>
<el-upload
class="avatar-uploader"
action="#"
:show-file-list="false"
:auto-upload="false"
:on-change="handleChangeLeft"
:on-success="handleAvatarSuccess"
:http-request="() => {}"
:disabled="isDisableLeft"
>
<div v-if="imageUrlLeft">
<img
:src="'data:image/gif;base64,' + imageUrlLeft"
class="avatar"
/>
<i
class="iconfont icon-shanchu-1 icon"
@click="picClearLeft"
></i>
</div>
<div v-else style="display: flex; flex-direction: column">
<i class="el-icon-plus avatar-uploader-icon"></i>
<i
style="
margin-bottom: 31px;
font-size: 12px;
color: #aeaeb2;
"
>上传照片</i
>
</div>
</el-upload>
</div>
<div class="cus">
<!-- <div>{{CustomList}}</div> -->
<div v-for="item in CustomList" style=" position: relative;" class="imgbox">
<i
class="iconfont icon-shanchu-1 icon"
@click="handlegodid(item.imgId)"
></i>
<img
:src="'data:image/gif;base64,' + item.dogImg"
class="avatar"
/>
</div>
</div>
<div class="pic" style="margin-left: 32px">
<div><span>自定义上传</span></div>
<el-upload
action="#"
list-type="picture-card"
:auto-upload="false"
:on-preview="handlePictureCardPreview"
:on-remove="handleRemove"
:on-change="handleChangeCustom"
:http-request="() => {}"
>
<i class="el-icon-plus"></i>
</el-upload>
<!-- <div v-if="CustomList.length>0">
<img
:src="'data:image/gif;base64,' + imageUrlLeft"
class="avatar"
/>
<i
class="iconfont icon-shanchu-1 icon"
@click="picClearLeft"
></i>
</div> -->
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="" />
</el-dialog>
</div>
</div>
</div>
</div>
</div>
</el-form>
<slot name="xyrList"></slot>
<div
class="button"
id="spbtn"
style="height: 65px; position: fixed; bottom: 0px; right: 60px"
>
<!-- <el-button
type="info"
icon="el-icon-document-remove"
@click="submit('15')"
class="caoGao"
>保存草稿</el-button
> -->
<el-button
type="info"
icon="el-icon-document-remove"
@click="submit('formLabelAlign')"
class="finish"
>信息修改</el-button
>
</div>
</div>
</div>
</template>
<script>
import LazySelectTreeDialog from "@c/lazy_treeCode_components.vue";
import SelectTree from "@c/tree_components.vue";
import SelectTreeDialog from "@c/treeCode_components.vue";
import axios from "axios";
import { post, postform, get, postJson } from "@/utils/http.js";
import { baseUrl } from "@/api/largeScreen";
import bus from "@/utils/bus";
export default {
components: {
LazySelectTreeDialog,
SelectTree,
SelectTreeDialog,
},
data() {
return {
imgLeft:'',
img:'',
dogid:'',
CustomList: [],
Custom: false,
isBase64: false,
fileCustom: [],
dialogImageUrl: "",
dialogVisible: false,
isTS: false,
isTSLeft: false,
fileLeft: "",
file: "",
fileList: [],
isDisable: false,
isDisableLeft: false,
imageUrl: "",
imageUrlLeft: "",
autosize: { minRows: 5 },
formLabelAlign: {},
redColor: "redColor",
propFormField: [
{
title: "警犬信息采集 ",
id: "1",
isclosed: false,
isPic: true,
data: [
{
name: "警犬芯片号:",
id: "chipCode",
// prop: "checkEmpty",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入警犬芯片号",
col: "23",
icon: "caijiIcon iconfont icontiqu",
},
{
name: "警犬犬名:",
id: "name",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入警犬犬名",
col: "23",
},
{
name: "警犬性别:",
id: "gender",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择警犬性别",
col: "23",
codeOptions: [],
codeTree: "CODE_DOG_GENDER",
},
{
name: "出生日期:",
id: "birthDate",
type: "dates",
prop: "checkEmpty",
value: "",
placeholder: "请选择出生日期:",
col: "24",
},
{
name: "警犬片区:",
id: "dogAreaId",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择警犬性别",
col: "23",
codeOptions: [],
codeTree: "CODE_DOGSOURCE",
},
{
name: "警犬出生来源:",
id: "dogSourceId",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择警犬出生来源",
col: "23",
codeOptions: [],
codeTree: "CODE_DEPARTMENT",
},
{
name: "警用犬种:",
id: "speciesId",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择警用犬种",
col: "23",
codeOptions: [],
codeTree: "CODE_SPECIES",
},
{
name: "警犬类别:",
id: "dogTypeId",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择警用犬种",
col: "23",
codeOptions: [],
codeTree: "CODE_WORKINGDOGCLASSIFICA",
},
{
name: "培训单位:",
id: "trainingUnit",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入培训单位",
col: "23",
},
{
name: "受训等级:",
id: "trainingLevelId",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入受训等级",
col: "23",
},
{
name: "使用类别:",
id: "useCategory",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择使用类别",
col: "23",
codeOptions: [],
codeTree: "CODE_BASEDATA",
},
{
name: "健康状态:",
id: "healthStatus",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入健康状态",
col: "23",
},
{
name: "警犬毛色:",
id: "furColorId",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择所属单位名单",
col: "23",
codeOptions: [],
codeTree: "CODE_FURCOLOR",
},
{
name: "复训日期:",
id: "retrainingDate",
type: "dates",
prop: "checkEmpty",
value: "",
placeholder: "请选择复训日期::",
col: "24",
},
{
name: "近交系数:",
id: "inbreedingCoefficient",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入近交系数",
col: "23",
},
{
name: "是否为进口:",
id: "isItImported",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择所属单位名单",
col: "23",
codeOptions: [],
codeTree: "CODE_YN",
},
{
name: "所属警种:",
id: "ssjz",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择所属单位名单",
col: "23",
codeOptions: [],
codeTree: "CODE_POLICECATEGORY",
},
{
name: "外貌特征:",
id: "appearance",
type: "textarea",
prop: "checkEmpty",
value: "",
placeholder: "请输入外貌特征:",
col: "18",
},
],
},
],
// rules: {
// chipCode: {
// required: true,
// message: "请输入警犬芯片号",
// trigger: "blur",
// },
// artisanId: {
// required: true,
// message: "请输入技术人员编号",
// trigger: "blur",
// },
// name: { required: true, message: "请输入警犬犬名", trigger: "blur" },
// gender: {
// required: true,
// message: "请选择警犬性别",
// trigger: "change",
// },
// birthDate: {
// required: true,
// message: "请选择日期",
// trigger: "change",
// },
// speciesId: {
// required: true,
// message: "请选择警用犬种",
// trigger: "change",
// },
// furColorId: {
// required: true,
// message: "请选择警犬毛色",
// trigger: "visible-change",
// },
// inbreedingCoefficient: {
// required: true,
// message: "请输入近交系数:",
// trigger: "blur",
// },
// dogTypeId: {
// required: true,
// message: "请选择警犬类别",
// trigger: "change",
// },
// dogAreaId: {
// required: true,
// message: "请选择警犬片区",
// trigger: "change",
// },
// dogSourceId: {
// required: true,
// message: "请选择警犬出生来源",
// trigger: "change",
// },
// healthStatus: {
// required: true,
// message: "请输入健康状态",
// trigger: "blur",
// },
// trainingLevelId: {
// required: true,
// message: "请输入受训等级",
// trigger: "blur",
// },
// useCategory: {
// required: true,
// message: "请选择使用类别",
// trigger: "change",
// },
// trainingUnit: {
// required: true,
// message: "请输入培训单位",
// trigger: "blur",
// },
// retrainingDate: {
// required: true,
// message: "请选择复训日期",
// trigger: "change",
// },
// appearance: {
// required: true,
// message: "请填写外貌特征",
// trigger: "blur",
// },
// isItImported: {
// required: true,
// message: "请输入是否为进口",
// trigger: "blur",
// },
// },
};
},
methods: {
handlegodid(id){
console.log(id);
get(`${baseUrl}/deleteImgById/${id}`).then(res=>{
console.log(res);
})
debugger
this.CustomList.map((item,idx,arr)=>{
console.log(item.dogId,id,item.dogId == id);
if(item.imgId == id){
arr.splice(idx,1)
}
})
console.log(this.CustomList);
},
handleRemove(file, fileList) {
console.log(file, fileList);
this.fileCustom = fileList;
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
handleChangeCustom(file, fileList) {
console.log("文件", file, fileList);
this.fileCustom = fileList;
},
showJyDialog() {},
hxShuju(msg) {
let self = this;
console.log(msg); //获取的身份正调用接口
get(`${baseUrl}/artisanController/getArtisanById/${msg.idno}`).then(
(res) => {
console.log(res);
if (res.code == 200) {
// self.formLabelAlign
let list = res.data.data[0];
for (let key in list) {
if (
key == "xxdjdwGajgmc" ||
key == "xxdjryXm" ||
key == "xxdjryGmsfhm" ||
key == "djsj"
) {
} else {
self.$set(self.formLabelAlign, key, list[key]);
}
}
}
}
);
},
handleAvatarSuccess() {},
beforeAvatarUpload() {},
submit(formName) {
let self = this;
let params = new FormData();
// let fileList = []; //存放照片数组
// fileList.push(this.file);
// fileList.push(this.fileLeft);
// console.log(fileList);
// fileList.map((item) => {
// params.append("files", item.raw);
// });
// if(self.fileCustom.length > 0){
// self.fileCustom.forEach(item=>{
// params.append("files", item.raw);
// })
// }
// debugger
for (let key in self.formLabelAlign) {
// //
if (self.formLabelAlign[key]) {
params.append(key, self.formLabelAlign[key]);
} else {
// params.append(key,'');
params.delete(key);
}
}
postJson(`${baseUrl}/updateDogBaseInfoById`, params).then((res) => {
console.log(res);
if (res.code == 200) {
// this.$message({
// message: "操作成功",
// type: "success",
// });
self.$bus.emit("message", true);
}
});
let f = new FormData();
if( this.file.raw){
f.append("file1", this.file.raw);
}else{
// f.append("file1", null);
}
if(this.fileLeft.raw){
f.append("file2", this.fileLeft.raw);
}else{
// f.append("file2", null);
}
if (self.fileCustom.length > 0) {
self.fileCustom.forEach((item) => {
f.append("files", item.raw);
});
}
f.append("dogId", self.dogid);
postJson(`${baseUrl}/updateImgsByDogId`, f).then((res) => {
console.log(res);
if (res.code == 200) {
this.$message({
message: "操作成功",
type: "success",
});
self.$bus.emit("message", true);
}
});
},
/**
* @description: 正面照上传
* @param {*} file 文件
* @param {*} fileList 文件列表
* @return {*}
* @author: LYS
*/
handleChange(file, fileList) {
this.isBase64 = false;
let types = ["image/jpeg", "image/jpg", "image/png"];
const isJPG = types.includes(file.raw.type);
const isLt2M = file.size / 1024 / 1024 < 20;
if (!isJPG) {
this.$message.error("上传头像图片只能是 JPG、JPEG、PNG 格式!");
} else if (!isLt2M) {
this.$message.error("上传头像图片大小不能超过 20MB!");
} else {
this.file = file;
console.log(file, fileList);
// this.fileList = fileList;
this.imageUrl = URL.createObjectURL(file.raw);
if (this.imageUrl) {
this.isDisable = true;
}
}
},
/**
* @description: 左前测照点击图片上传
* @param {*} file 当前文件
* @param {*} fileList 文件列表
* @return {*}
* @author: LYS
*/
handleChangeLeft(file, fileList) {
//上传之前判断格式 文件大小
let types = ["image/jpeg", "image/jpg", "image/png"];
const isJPG = types.includes(file.raw.type);
const isLt2M = file.size / 1024 / 1024 < 20;
if (!isJPG) {
this.$message.error("上传头像图片只能是 JPG、JPEG、PNG 格式!");
} else if (!isLt2M) {
this.$message.error("上传头像图片大小不能超过 20MB!");
} else {
this.fileLeft = file;
console.log(file, fileList);
// this.fileList = fileList;
this.imageUrlLeft = URL.createObjectURL(file.raw);
//判断如果当前有照片禁用弹出文件选择
if (this.imageUrlLeft) {
this.isDisableLeft = true;
}
}
},
/**
* @description: 删除照片
* @param {*} e 事件e
* @return {*}
* @author: LYS
*/
picClear(e) {
let self = this;
console.log(e.target.nodeName);
//判断当前点击的位置I删除图标元素
if (e.target.nodeName == "I") {
get(`${baseUrl}/deleteImgById/${self.img.imgId}`).then(res=>{
console.log(res);
})
this.imageUrl = "";
this.file = "";
//删除 延时一秒后恢复文件弹框功能
setTimeout(function () {
self.isDisable = false;
}, 1000);
} else {
this.isDisable = false;
}
},
picClearLeft(e) {
let self = this;
console.log(e.target.nodeName);
if (e.target.nodeName == "I") {
get(`${baseUrl}/deleteImgById/${self.imgLeft.imgId}`).then(res=>{
console.log(res);
})
this.fileLeft = "";
this.imageUrlLeft = "";
setTimeout(function () {
self.isDisableLeft = false;
}, 1000);
} else {
this.isDisable = false;
}
},
},
mounted() {
let self = this;
var now = new Date();
var year = now.getFullYear(); // 得到年份
var month = now.getMonth(); // 得到月份
var date = now.getDate(); // 得到日期
var hour = now.getHours().toString().padStart(2, "0");
var minute = now.getMinutes().toString().padStart(2, "0");
var second = now.getSeconds().toString().padStart(2, "0");
month = month + 1;
month = month.toString().padStart(2, "0");
date = date.toString().padStart(2, "0");
var defaultDate = `${year}-${month}-${date} ${hour}:${minute}:${second}`;
this.$set(this.formLabelAlign, "djsj", defaultDate);
// let data = JSON.parse(this.$route.query.res)
// console.log(data);
// for(var key in data){
// // this.formLabelAlign
// this.$set(this.formLabelAlign,key,data[key])
// }
// self.getKhsffb();
/*获取字典*/
console.log(this.cxQueryField);
/*获取字典*/
self.propFormField.forEach((val) => {
//;
val.data.forEach((val2) => {
console.log(val2);
if (val2.childrenAsAdd != undefined) {
//;
val2.childrenAsAdd.forEach((val3) => {
val3.list.forEach((val4) => {
val4.name.forEach((val5) => {
if (val5.type == "code" || val5.type == "codeTree") {
if (val5.codeOptions.length == 0) {
axios
.get(`JsonData/${val5.codeTree}.json`)
.then((res) => {
self.$set(val5, "codeOptions", res.data.rows);
})
.catch((err) => {
console.log(err);
});
}
}
if (val5.showIcon && val5.id == "asjbh") {
val5.showIcon = false;
}
});
});
});
} else if (val2.type == "code" || val2.type == "codeTree") {
//;
if (val2.codeOptions.length == 0) {
axios
.get(`JsonData/${val2.codeTree}.json`)
.then((res) => {
self.$set(val2, "codeOptions", res.data.rows);
})
.catch((err) => {
console.log(err);
});
}
}
});
});
let row = JSON.parse(this.$route.query.row);
console.log(row);
self.dogid = row.id
for (var key in row) {
// self.formLabelAlign
self.$set(self.formLabelAlign, key, row[key]);
}
//;
debugger;
row.dogimgs.map((item) => {
if (item.idType == "1") {
(this.imageUrl = item.dogImg), (self.isBase64 = true);
self.img = item
self.isDisable = true;
}
if (item.idType == "2") {
// debugger
this.imageUrlLeft = item.dogImg;
self.imgLeft = item
self.isDisableLeft = true;
}
console.log(item.idType > 2);
debugger
if(item.idType > 2){
self.CustomList.push(item);
}
});
console.log(self.CustomList);
// if (row.idType == '1') {
// (this.imageUrl = row.dogimgs[0].dogImg), (self.isBase64 = true);
// self.isDisable = true;
// }
// if (row.idType == '2') {
// (this.imageUrlLeft = row.dogimgs[1].dogImg), (self.isDisableLeft = true);
// }
// // this.imageUrlLeft = row.dogimgs[1].dogImg,
// if (row.dogimgs.length > 2) {
// row.dogimgs.splice(0, 1), row.dogimgs.splice(1, 1);
// // self.Custom = true
// self.CustomList.push(row.dogimgs);
// console.log(self.CustomList);
// }
},
};
</script>
<style scoped>
.imgbox{
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
height: 136px;
width: 136px;
margin-left: 20px;
}
.redColor /deep/ .el-form-item__label {
color: red;
}
</style>
<style>
.avatar-uploader .el-upload {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
}
.avatar-uploader .el-upload:hover {
border-color: #409eff;
}
.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 136px;
height: 100px;
line-height: 136px;
text-align: center;
}
.el-upload--text {
width: 136px;
height: 136px;
}
.avatar {
width: 136px;
height: 136px;
display: block;
}
</style>
<style lang="scss" scoped>
.cus{
display: flex;
margin-top: 20px;
margin-left: 20px;
position: relative;
}
.dogpic {
display: flex;
margin-left: 105px;
.pic /deep/ {
position: relative;
.el-upload--picture-card {
width: 137px;
height: 137px;
}
.el-upload-list--picture-card .el-upload-list__item {
width: 137px;
height: 137px;
}
}
.icon {
position: absolute;
left: 113px;
top: 2px;
// z-index: 9999;
&:hover {
cursor: pointer;
color: red;
}
}
}
.finish {
margin-left: 15px;
width: 148px;
height: 39px;
background: #3670ff;
box-shadow: 0px 4px 6px rgba(26, 129, 225, 0.12);
opacity: 1;
}
//分块组级卡片
.paneGroupDiv {
background: #ffffff;
border-radius: 8px;
.groupTitleBox {
height: 39px;
display: flex;
flex-wrap: wrap;
align-items: center;
.groupTag {
display: inline-block;
width: 6px;
height: 16px;
background: #3670ff;
vertical-align: middle;
margin-right: 16px;
margin-left: 24px;
}
.groupTitle {
height: 24px;
font-size: 14px;
font-family: Microsoft YaHei;
font-weight: bold;
line-height: 24px;
color: #333333;
opacity: 1;
}
}
// 表单元素的真实容器
.zdyLine {
/deep/.el-date-editor.el-input,
.el-date-editor.el-input__inner {
width: 100%;
// margin-top: 10px;
}
padding: 10px 20px 10px 20px;
/deep/.el-button--mini,
.el-button--mini.is-round {
padding: 8px 15px;
}
/deep/.el-form-item {
margin-bottom: 19px !important;
.el-form-item__label {
font-size: 13px;
line-height: 36px;
}
.el-form-item__content {
font-size: 13px;
line-height: 36px;
height: 36px;
.el-form-item__error {
padding-top: 4px;
position: absolute;
top: 100%;
left: 0;
}
.el-textarea {
margin-bottom: 10px;
}
.el-input__inner {
border-radius: 2px;
}
.codeTree {
.el-select {
.el-icon-arrow-up {
font-family: "iconfont" !important;
font-size: 16px !important;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.el-icon-arrow-up:before {
content: "\e608";
}
}
}
}
}
.item1,
.zdycol1 {
display: inline-block;
width: 100%;
}
.item1col2 {
display: inline-table;
.el-select {
width: 360px;
height: 36px;
}
}
.item3 {
display: inline-block;
width: 25%;
/deep/ .el-input .el-input--suffix,
.el-date-editor {
width: 100%;
}
}
div[class^="item"] {
vertical-align: middle;
}
.item2,
.zdycol2 {
display: inline-table;
width: 40%;
/deep/ .el-input .el-input--suffix,
.el-date-editor {
width: 100%;
}
}
.item4 {
width: 100%;
}
.item5 {
width: 45%;
display: block;
}
.item6 {
width: 48%;
display: inline-table;
}
.item7 {
width: 66%;
display: inline-table;
margin-right: 34%;
.zdyInputW,
.el-input {
width: 100% !important;
}
}
.item8 {
width: 90%;
display: inline-block;
}
.item9 {
width: 40%;
margin-right: 20%;
display: inline-table;
/deep/ .el-date-editor {
width: 100% !important;
}
}
.item10 {
width: 40%;
margin-right: 60%;
display: inline-table;
}
.item11 {
width: 90%;
display: inline-block;
}
.item12 {
width: 120px;
margin-left: 140px;
display: inline-block;
}
.item13 {
width: auto;
margin-left: 160px;
display: inline-block;
/deep/.el-checkbox-button {
.el-checkbox-button__inner {
padding-left: 0px !important;
}
padding-left: 0px !important;
}
}
.item14 {
width: auto;
margin-left: 0px;
display: inline-block;
}
.item15 {
width: 120px;
margin-left: 16px;
margin-right: 500px;
display: inline-block;
margin-top: 15px;
margin-bottom: 8px;
}
.item16 {
width: 66%;
display: inline-block;
/deep/ .el-input {
width: calc(91% + 2px) !important;
}
}
.item17 {
width: 65%;
margin-right: 10%;
display: inline-block;
}
.item18 {
width: 65%;
margin-right: 44%;
display: inline-block;
}
.item19 {
width: 46%;
margin-right: 20%;
display: inline-table;
}
.item20 {
margin-left: 145px;
width: 80%;
display: inline-block;
}
.item21 {
width: 74%;
margin-right: 25%;
display: inline-block;
}
.item22 {
width: 99%;
.el-input {
width: 65% !important;
}
display: inline-block;
}
.item23 {
width: 30%;
display: inline-block;
vertical-align: text-top;
}
.item24 {
width: 30%;
display: inline-block;
vertical-align: text-top;
}
.upload-demo {
/deep/.el-icon-close {
top: 12px;
right: 4px;
}
/deep/.el-button {
border-radius: 2px;
}
}
.zdyInputW {
width: 100%;
height: 36px;
display: inline-block;
.lazydate {
width: 100%;
}
.lazysjdq {
line-height: 36px;
background: #fdfdfd;
border-radius: 2px;
/* width: 90%; */
width: 360px;
}
.el-cascader {
width: 85%;
}
.el-select {
width: 100%;
}
}
.zdyInputCol2 {
width: 90%;
.el-input {
width: calc((100% - 24px) / 2);
}
}
.childrenAsAdd {
.item2,
.item1 {
margin: 6px 0;
}
.addName {
display: inline-block;
width: 148px;
text-align: right;
vertical-align: top;
font-size: 13px;
line-height: 100px;
padding: 0 12px 0 0;
font-family: Microsoft YaHei;
font-weight: 400;
}
.addContent {
width: calc(100% - 162px);
display: inline-block;
background: #fef6ea;
background: #fef6ea;
border: 0px solid #ffd193;
opacity: 1;
border-radius: 4px;
padding-top: 28px;
margin: 24px 0 4px 0;
position: relative;
.el-input,
.el-select,
.el-date-editor,
.zdyInputW {
width: 85% !important;
}
.zdyInputW {
.el-input,
.el-cascader,
.el-select {
width: 100% !important;
}
}
.zdyicon {
position: absolute;
right: 20px;
top: 36px;
font-size: 12px;
color: #8c97a0;
cursor: pointer;
}
/deep/ .el-input__inner {
background: #ffffff !important;
height: 29px;
}
/deep/ .el-form-item:nth-child(1),
/deep/ .el-form-item:nth-child(2) {
margin-top: 0px;
}
}
}
}
}
</style>>
......@@ -4,10 +4,10 @@
* @Autor: LYS
* @Date: 2021-12-24 14:19:51
* @LastEditors: LYS
* @LastEditTime: 2021-12-24 18:23:36
* @LastEditTime: 2021-12-28 17:17:01
-->
<template>
<div>
<div v-loading="laoding">
<div
style="width: 97%; margin: 0px auto; border-radius: 8px; background: #fff"
>
......@@ -131,7 +131,7 @@
type="info"
size="mini"
style="margin-left: 5px; margin-right: 0 !important"
@click="hxShuju(formLabelAlign[item.id])"
@click="hxShuju(formLabelAlign)"
>提取</el-button
>
</div>
......@@ -399,9 +399,15 @@
</div>
<!-- <div >{{item.isPic}}</div> -->
</el-form-item>
<div v-if="groupItem.isPic" class="dogpic" style="margin-bottom: 20px">
<div
v-if="groupItem.isPic"
class="dogpic"
style="margin-bottom: 20px"
>
<div class="pic">
<div><span style="color: red">* </span><span>正面照</span></div>
<div>
<span style="color: red">* </span><span>正面照</span>
</div>
<el-upload
class="avatar-uploader"
action="#"
......@@ -439,7 +445,9 @@
>
</div>
<div class="pic" style="margin-left: 32px">
<div><span>左前侧照</span></div>
<div>
<span style="color: red">* </span><span>左前侧照</span>
</div>
<el-upload
class="avatar-uploader"
action="#"
......@@ -469,11 +477,32 @@
>
</div>
</el-upload>
<span
v-if="isTSLeft"
style="margin-left: 25px; color: #f56c6c; font-size: 12px"
>*请上传左前侧照</span
>
</div>
<div class="pic" style="margin-left: 32px">
<div><span>自定义上传</span></div>
<el-upload
action="#"
list-type="picture-card"
:auto-upload="false"
:on-preview="handlePictureCardPreview"
:on-remove="handleRemove"
:on-change="handleChangeCustom"
:http-request="() => {}"
>
<i class="el-icon-plus"></i>
</el-upload>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="" />
</el-dialog>
</div>
</div>
</div>
</div>
</div>
</el-form>
<slot name="xyrList"></slot>
......@@ -506,6 +535,9 @@ import LazySelectTreeDialog from "@c/lazy_treeCode_components.vue";
import SelectTree from "@c/tree_components.vue";
import SelectTreeDialog from "@c/treeCode_components.vue";
import axios from "axios";
import { post, postform, get, postJson } from "@/utils/http.js";
import { baseUrl } from "@/api/largeScreen";
export default {
components: {
LazySelectTreeDialog,
......@@ -514,7 +546,12 @@ export default {
},
data() {
return {
laoding:false,
fileCustom: [],
dialogImageUrl: "",
dialogVisible: false,
isTS: false,
isTSLeft: false,
fileLeft: "",
file: "",
fileList: [],
......@@ -530,7 +567,7 @@ export default {
title: "警犬信息采集 ",
id: "1",
isclosed: false,
isPic:true,
isPic: true,
data: [
{
name: "警犬芯片号:",
......@@ -663,7 +700,7 @@ export default {
{
name: "警犬毛色:",
id: "furColorId",
type: "text",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
......@@ -673,7 +710,7 @@ export default {
codeTree: "CODE_FURCOLOR",
},
{
name: "复训日期:",
name: "复训日期:",
id: "retrainingDate",
type: "dates",
prop: "checkEmpty",
......@@ -700,10 +737,22 @@ export default {
placeholder: "请选择所属单位名单",
col: "23",
codeOptions: [],
codeTree: "CODE_Jk",
codeTree: "CODE_YN",
},
{
name: "外貌特征::",
name: "所属警种:",
id: "ssjz",
type: "codeTree",
prop: "checkEmpty",
disabled: false,
value: "",
placeholder: "请选择所属单位名单",
col: "23",
codeOptions: [],
codeTree: "CODE_POLICECATEGORY",
},
{
name: "外貌特征:",
id: "appearance",
type: "textarea",
prop: "checkEmpty",
......@@ -719,8 +768,17 @@ export default {
isclosed: false,
data: [
{
name: "身份证号码:",
id: "idno",
type: "textInfo",
prop: "checkEmpty",
value: "",
placeholder: "请输入身份证号码",
col: "23",
},
{
name: "警犬技术人员编号:",
id: "personId",
id: "artisanCode",
// prop: "checkEmpty",
type: "text",
prop: "checkEmpty",
......@@ -728,15 +786,17 @@ export default {
placeholder: "请输入警犬技术人员编号",
col: "23",
icon: "caijiIcon iconfont icontiqu",
disabled: true,
},
{
name: "警犬技术人员警号:",
id: "jh",
id: "policeCode",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入警犬技术人员警号",
col: "23",
disabled: true,
},
{
name: "警犬技术人员姓名:",
......@@ -746,22 +806,15 @@ export default {
value: "",
placeholder: "请输入警犬技术人员姓名",
col: "23",
disabled: true,
},
{
name: "身份证号码:",
id: "idno",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入身份证号码",
col: "23",
},
{
name: "所属单位名单:",
id: "ssdw",
type: "codeTree",
id: "unitName",
type: "text",
prop: "checkEmpty",
disabled: false,
disabled: true,
value: "",
placeholder: "请选择所属单位名单",
col: "23",
......@@ -770,12 +823,13 @@ export default {
},
{
name: "联系电话:",
id: "number",
id: "phoneNum",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入联系电话",
col: "23",
disabled: true,
},
],
},
......@@ -786,7 +840,7 @@ export default {
data: [
{
name: "信息采集单位:",
id: "xxcjdw",
id: "xxdjdwGajgmc",
// prop: "checkEmpty",
type: "text",
prop: "checkEmpty",
......@@ -797,7 +851,7 @@ export default {
},
{
name: "信息采集人员:",
id: "xxcjry",
id: "xxdjryXm",
type: "text",
prop: "checkEmpty",
value: "",
......@@ -806,7 +860,7 @@ export default {
},
{
name: "信息采集人员身份证号:",
id: "cjryid",
id: "xxdjryGmsfhm",
type: "text",
prop: "checkEmpty",
value: "",
......@@ -815,24 +869,29 @@ export default {
},
{
name: "采集时间:",
id: "cjdata",
type: "text",
id: "djsj",
type: "datesTime",
prop: "checkEmpty",
value: "",
placeholder: "请输入身份证号码",
col: "23",
},
],
},
],
rules: {
artisanCode : [{ required: true, message: "不能为空", trigger: "blur" }],
policeCode: [{ required: true, message: "不能为空", trigger: "blur" }],
personName: [{ required: true, message: "不能为空", trigger: "blur" }],
idNo: [{ required: true, message: "不能为空", trigger: "blur" }],
unitName: [{ required: true, message: "不能为空", trigger: "change" }],
phoneNum: [{ required: true, message: "不能为空", trigger: "blur" }],
chipCode: {
required: true,
message: "请输入警犬芯片号",
trigger: "blur",
},
personId: {
artisanId: {
required: true,
message: "请输入技术人员编号",
trigger: "blur",
......@@ -903,7 +962,7 @@ export default {
message: "请输入信息登记人员身份证号",
trigger: "blur",
},
personName: { required: true, message: "请输入姓名", trigger: "blur" },
// personName: { required: true, message: "请输入姓名", trigger: "blur" },
idno: {
required: true,
message: "请输入身份证号",
......@@ -949,12 +1008,107 @@ export default {
message: "请输入是否为进口",
trigger: "blur",
},
xxdjdwGajgmc: [
{ required: true, message: "不能为空", trigger: "blur" },
],
xxdjryXm: [{ required: true, message: "不能为空", trigger: "blur" }],
xxxxdjryXmcjry: [
{ required: true, message: "不能为空", trigger: "blur" },
],
xxdjryGmsfhm: [
{ required: true, message: "不能为空", trigger: "blur" },
],
djsj: [{ required: true, message: "不能为空", trigger: "change" }],
},
};
},
methods:{
submit(formName){
methods: {
handleRemove(file, fileList) {
console.log(file, fileList);
this.fileCustom = fileList;
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
handleChangeCustom(file, fileList) {
console.log("文件", file, fileList);
this.fileCustom = fileList;
},
showJyDialog() {},
hxShuju(msg) {
let self = this;
console.log(msg); //获取的身份正调用接口
get(`${baseUrl}/artisanController/getArtisanById/${msg.idno}`).then(
(res) => {
console.log(res);
if (res.code == 200) {
// self.formLabelAlign
let list = res.data.data[0];
console.log(list);
if (list==undefined ||list.length>0 ) {
this.$message({
message: "提取数据为空",
type: "error",
});
} else {
for (let key in list) {
if (
key == "xxdjdwGajgmc" ||
key == "xxdjryXm" ||
key == "xxdjryGmsfhm" ||
key == "djsj"
) {
} else {
self.$set(self.formLabelAlign, key, list[key]);
}
}
}
}
}
);
},
handleAvatarSuccess() {},
beforeAvatarUpload() {},
submit(formName) {
let self = this;
// let params = new FormData();
// let picparams = new FormData()
// console.log(this.file,this.fileLeft);
// params.append("file1",this.file.raw);
// params.append("file2",this.fileLeft.raw);
// // fileList.push(this.file);
// // fileList.push(this.fileLeft);
// // console.log(fileList);
// // fileList.map((item) => {
// // params.append("files", item.raw);
// // });
// // let arr = []
// if(self.fileCustom.length > 0){
// self.fileCustom.forEach(item=>{
// params.append("files",item.raw);
// })
// }
// // params.append("files",JSON.stringify(arr));
// for (let key in self.formLabelAlign) {
// // //
// if (self.formLabelAlign[key]) {
// params.append(key, self.formLabelAlign[key]);
// } else {
// // params.append(key,'');
// params.delete(key);
// }
// }
// postform(`${baseUrl}/saveDogBaseInfo`, params).then((res) => {
// console.log(res);
// if (res.code == 200) {
// this.$message({
// message: "操作成功",
// type: "success",
// });
// }
// });
this.$refs[formName].validate((valid) => {
// console.log(valid);
if (!this.file) {
......@@ -962,34 +1116,54 @@ export default {
} else {
this.isTS = false;
}
if (!this.fileLeft) {
this.isTSLeft = true;
} else {
this.isTSLeft = false;
}
if (valid && this.file) {
this.isTS = false;
this.isTSLeft = false;
let params = new FormData();
let fileList = []; //存放照片数组
fileList.push(this.file);
fileList.push(this.fileLeft);
console.log(fileList);
fileList.map((item) => {
if( this.file.raw){
params.append("file1", this.file.raw);
}else{
params.append("file1", null);
}
if(this.fileLeft.raw){
params.append("file2", this.fileLeft.raw);
}else{
params.append("file2", null);
}
if (self.fileCustom.length > 0) {
self.fileCustom.forEach((item) => {
params.append("files", item.raw);
});
for (let key in self.form) {
// debugger
if (self.form[key]) {
params.append(key, self.form[key]);
}
for (let key in self.formLabelAlign) {
// //
if (self.formLabelAlign[key]) {
params.append(key, self.formLabelAlign[key]);
} else {
// params.append(key,'');
params.delete(key);
}
}
// postform(`${baseUrl}/saveDogBaseInfo`, params).then((res) => {
// console.log(res);
// if (res.code == 200) {
// this.$message({
// message: "操作成功",
// type: "success",
// });
// }
// });
self.laoding = true
postform(`${baseUrl}/saveDogBaseInfo`, params).then((res) => {
console.log(res);
if (res.code == 200) {
self.laoding = false
this.$message({
message: "操作成功",
type: "success",
});
}
});
} else {
this.$message({
message: "信息录入不全...",
......@@ -1087,22 +1261,34 @@ export default {
},
mounted() {
let self = this;
let data = JSON.parse(this.$route.query.res)
console.log(data);
for(var key in data){
// this.formLabelAlign
this.$set(this.formLabelAlign,key,data[key])
}
var now = new Date();
var year = now.getFullYear(); // 得到年份
var month = now.getMonth(); // 得到月份
var date = now.getDate(); // 得到日期
var hour = now.getHours().toString().padStart(2, "0");
var minute = now.getMinutes().toString().padStart(2, "0");
var second = now.getSeconds().toString().padStart(2, "0");
month = month + 1;
month = month.toString().padStart(2, "0");
date = date.toString().padStart(2, "0");
var defaultDate = `${year}-${month}-${date} ${hour}:${minute}:${second}`;
this.$set(this.formLabelAlign, "djsj", defaultDate);
// let data = JSON.parse(this.$route.query.res)
// console.log(data);
// for(var key in data){
// // this.formLabelAlign
// this.$set(this.formLabelAlign,key,data[key])
// }
// self.getKhsffb();
/*获取字典*/
console.log(this.cxQueryField);
/*获取字典*/
self.propFormField.forEach((val) => {
debugger
//;
val.data.forEach((val2) => {
console.log(val2);
if (val2.childrenAsAdd !=undefined) {
debugger
if (val2.childrenAsAdd != undefined) {
//;
val2.childrenAsAdd.forEach((val3) => {
val3.list.forEach((val4) => {
val4.name.forEach((val5) => {
......@@ -1125,7 +1311,7 @@ export default {
});
});
} else if (val2.type == "code" || val2.type == "codeTree") {
debugger
//;
if (val2.codeOptions.length == 0) {
axios
.get(`JsonData/${val2.codeTree}.json`)
......@@ -1139,7 +1325,6 @@ export default {
}
});
});
},
};
</script>
......@@ -1178,32 +1363,40 @@ export default {
}
</style>
<style lang="scss" scoped>
.dogpic {
.dogpic {
display: flex;
margin-left: 105px;
.pic {
.pic /deep/ {
position: relative;
.el-upload--picture-card {
width: 137px;
height: 137px;
}
.el-upload-list--picture-card .el-upload-list__item {
width: 137px;
height: 137px;
}
}
.icon {
position: absolute;
left: 113px;
top: 2px;
z-index: 9999;
// z-index: 9999;
&:hover {
cursor: pointer;
color: red;
}
}
}
}
.finish {
.finish {
margin-left: 15px;
width: 148px;
height: 39px;
background: #3670ff;
box-shadow: 0px 4px 6px rgba(26, 129, 225, 0.12);
opacity: 1;
}
}
//分块组级卡片
.paneGroupDiv {
background: #ffffff;
......@@ -1234,11 +1427,16 @@ export default {
}
// 表单元素的真实容器
.zdyLine {
/deep/.el-date-editor.el-input, .el-date-editor.el-input__inner{
/deep/.el-date-editor.el-input,
.el-date-editor.el-input__inner {
width: 100%;
// margin-top: 10px;
}
padding: 10px 20px 10px 20px;
/deep/.el-button--mini,
.el-button--mini.is-round {
padding: 8px 15px;
}
/deep/.el-form-item {
margin-bottom: 19px !important;
.el-form-item__label {
......@@ -1250,7 +1448,10 @@ export default {
line-height: 36px;
height: 36px;
.el-form-item__error {
padding-top: 6px;
padding-top: 4px;
position: absolute;
top: 100%;
left: 0;
}
.el-textarea {
margin-bottom: 10px;
......@@ -1421,14 +1622,12 @@ export default {
display: inline-block;
vertical-align: text-top;
}
.item24 {
width: 30%;
display: inline-block;
vertical-align: text-top;
}
.upload-demo {
......
......@@ -4,7 +4,7 @@
* @Autor: LYS
* @Date: 2021-12-24 14:19:51
* @LastEditors: LYS
* @LastEditTime: 2021-12-24 18:34:25
* @LastEditTime: 2021-12-28 16:30:51
-->
<template>
<div>
......@@ -431,6 +431,8 @@
import LazySelectTreeDialog from "@c/lazy_treeCode_components.vue";
import SelectTree from "@c/tree_components.vue";
import SelectTreeDialog from "@c/treeCode_components.vue";
import { post, postform, get, postJson } from "@/utils/http.js";
import { baseUrl } from "@/api/largeScreen";
export default {
components: {
LazySelectTreeDialog,
......@@ -450,7 +452,7 @@ export default {
data: [
{
name: "警犬技术人员编号:",
id: "personId",
id: "artisanCode",
// prop: "checkEmpty",
type: "text",
prop: "checkEmpty",
......@@ -461,7 +463,7 @@ export default {
},
{
name: "警犬技术人员警号:",
id: "jh",
id: "policeCode",
type: "text",
prop: "checkEmpty",
value: "",
......@@ -479,7 +481,7 @@ export default {
},
{
name: "身份证号码:",
id: "idno",
id: "idNo",
type: "text",
prop: "checkEmpty",
value: "",
......@@ -488,7 +490,7 @@ export default {
},
{
name: "所属单位名单:",
id: "ssdw",
id: "unitName",
type: "text",
prop: "checkEmpty",
disabled: false,
......@@ -500,7 +502,7 @@ export default {
},
{
name: "联系电话:",
id: "number",
id: "phoneNum",
type: "text",
prop: "checkEmpty",
value: "",
......@@ -516,7 +518,7 @@ export default {
data: [
{
name: "信息采集单位:",
id: "xxcjdw",
id: "xxdjdwGajgmc",
// prop: "checkEmpty",
type: "text",
prop: "checkEmpty",
......@@ -527,7 +529,7 @@ export default {
},
{
name: "信息采集人员:",
id: "xxcjry",
id: "xxdjryXm",
type: "text",
prop: "checkEmpty",
value: "",
......@@ -536,7 +538,7 @@ export default {
},
{
name: "信息采集人员身份证号:",
id: "cjryid",
id: "xxdjryGmsfhm",
type: "text",
prop: "checkEmpty",
value: "",
......@@ -545,8 +547,8 @@ export default {
},
{
name: "采集时间:",
id: "cjdata",
type: "text",
id: "djsj",
type: "datesTime",
prop: "checkEmpty",
value: "",
placeholder: "请输入身份证号码",
......@@ -556,16 +558,23 @@ export default {
},
],
rules: {
personId: [{ required: true, message: "不能为空", trigger: "blur" }],
jh: [{ required: true, message: "不能为空", trigger: "blur" }],
artisanCode : [{ required: true, message: "不能为空", trigger: "blur" }],
policeCode: [{ required: true, message: "不能为空", trigger: "blur" }],
personName: [{ required: true, message: "不能为空", trigger: "blur" }],
idno: [{ required: true, message: "不能为空", trigger: "blur" }],
ssdw: [{ required: true, message: "不能为空", trigger: "change" }],
number: [{ required: true, message: "不能为空", trigger: "blur" }],
xxcjdw: [{ required: true, message: "不能为空", trigger: "blur" }],
xxcjry: [{ required: true, message: "不能为空", trigger: "blur" }],
cjryid: [{ required: true, message: "不能为空", trigger: "blur" }],
cjdata: [{ required: true, message: "不能为空", trigger: "change" }],
idNo: [{ required: true, message: "不能为空", trigger: "blur" }],
unitName: [{ required: true, message: "不能为空", trigger: "change" }],
phoneNum: [{ required: true, message: "不能为空", trigger: "blur" }],
xxdjdwGajgmc: [
{ required: true, message: "不能为空", trigger: "blur" },
],
xxdjryXm: [{ required: true, message: "不能为空", trigger: "blur" }],
xxxxdjryXmcjry: [
{ required: true, message: "不能为空", trigger: "blur" },
],
xxdjryGmsfhm: [
{ required: true, message: "不能为空", trigger: "blur" },
],
djsj: [{ required: true, message: "不能为空", trigger: "change" }],
},
};
},
......@@ -575,9 +584,18 @@ export default {
let self = this;
this.$refs[formName].validate((valid) => {
if (valid) {
this.$router.push({
path: "/jqglIndex/jqxxcj",
query: { res: JSON.stringify(this.formLabelAlign) },
postJson(
`${baseUrl}/artisanController/saveArtisan`,
this.formLabelAlign
).then((res) => {
console.log(res);
if (res.code == 200) {
this.$message({
message: "保存成功",
type: "success",
});
this.formLabelAlign = {};
}
});
} else {
this.$message({
......@@ -588,6 +606,24 @@ export default {
});
},
},
mounted() {
var now = new Date();
var year = now.getFullYear(); // 得到年份
var month = now.getMonth(); // 得到月份
var date = now.getDate(); // 得到日期
var hour = now.getHours().toString().padStart(2, "0");
var minute = now.getMinutes().toString().padStart(2, "0");
var second = now.getSeconds().toString().padStart(2, "0");
month = month + 1;
month = month.toString().padStart(2, "0");
date = date.toString().padStart(2, "0");
var defaultDate = `${year}-${month}-${date} ${hour}:${minute}:${second}`;
this.$set(this.formLabelAlign, "djsj", defaultDate);
// zoom("cj");
// window.addEventListener("resize", function () {
// zoom("cj");
// });
},
};
</script>
<style scoped>
......@@ -651,7 +687,10 @@ export default {
line-height: 36px;
height: 36px;
.el-form-item__error {
padding-top: 6px;
padding-top: 4px;
position: absolute;
top: 100%;
left: 0;
}
.el-textarea {
margin-bottom: 10px;
......
<!--
* @Description: file content
* @Version: 2.0
* @Autor: LYS
* @Date: 2021-12-27 16:24:31
* @LastEditors: LYS
* @LastEditTime: 2021-12-28 19:22:32
-->
<!--
* @Description: file content
* @Version: 2.0
* @Autor: LYS
* @Date: 2021-12-22 14:20:30
* @LastEditors: LYS
* @LastEditTime: 2021-12-25 16:00:18
-->
<template>
<div class="Content">
<right-content :pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"></right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import {
jsryHeader,
jsryPageName,
jsryQueryField,
jsryFormData,
jsryDefaultFormThead,
jsrylURL,
} from "@/utils/params";
export default {
components: {
rightContent
},
data() {
return {
cxFormData: jsryFormData,
cxQueryField: jsryQueryField,
cxDefaultFormThead: jsryDefaultFormThead,
cxUrl: jsrylURL,
header: jsryHeader,
pageBs: jsryPageName
};
}
}
</script>
<style scoped>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
@import "../../assets/styles/rightContent.scss";
</style>
......@@ -656,9 +656,9 @@
<script>
import { post, postform, get, postJson } from "@/utils/http.js";
import { baseUrl } from "@/api/largeScreen";
import SelectItem from "../../components/Select.vue";
import SelectTreeDialog from "@c/treeCode_components.vue";
import { baseUrl } from "@/api/largeScreen";
import utils from "@/utils/util.js";
import zoom from "@/utils/autosize";
export default {
......@@ -918,7 +918,7 @@ export default {
params.append("files", item.raw);
});
for (let key in self.form) {
// debugger
// //
if (self.form[key]) {
params.append(key, self.form[key]);
} else {
......@@ -1037,7 +1037,7 @@ export default {
}
},
handleAvatarSuccess(res, file) {
debugger;
//;
console.log(file);
this.imageUrl = URL.createObjectURL(file.raw);
},
......@@ -1052,7 +1052,7 @@ export default {
let types = ["image/jpeg", "image/jpg", "image/png"];
const isJPG = types.includes(file.type);
const isLt2M = file.size / 1024 / 1024 < 20;
debugger;
//;
if (!isJPG) {
this.$message.error("上传头像图片只能是 JPG、JPEG、PNG 格式!");
}
......
/*
* @Author: your name
* @Date: 2021-11-22 14:08:39
* @LastEditTime: 2021-12-03 17:21:22
* @LastEditors: your name
* @LastEditTime: 2021-12-28 15:35:34
* @LastEditors: LYS
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE/
* @FilePath: \founder_vue\vue.config.js
*/
......@@ -59,6 +59,7 @@ module.exports = {
proxy: {
"/api": {
target: "http://47.92.48.137:9022/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/
// target: "http://3695w18o45.51vip.biz", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/
ws: true,
changeOrigin: true,
pathRewrite: {
......
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