flat: 暂存
This commit is contained in:
@@ -16,6 +16,7 @@ import { mapGetters } from "vuex";
|
||||
function getProv(code) {
|
||||
return code.substring(0, 2) + "0000";
|
||||
}
|
||||
|
||||
function getCity(code) {
|
||||
return code.substring(0, 4) + "00";
|
||||
}
|
||||
@@ -41,14 +42,14 @@ export default {
|
||||
computed: {
|
||||
...mapGetters(["area"]),
|
||||
prov() {
|
||||
if (this.county) {
|
||||
if (this.county && this.county != -1) {
|
||||
return getProv(this.county);
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
},
|
||||
city() {
|
||||
if (this.county) {
|
||||
if (this.county && this.county != -1) {
|
||||
return getCity(this.county);
|
||||
} else {
|
||||
return "";
|
||||
@@ -60,6 +61,7 @@ export default {
|
||||
},
|
||||
set(val) {
|
||||
this.$emit("input", val);
|
||||
return val;
|
||||
},
|
||||
},
|
||||
model: {
|
||||
@@ -71,7 +73,7 @@ export default {
|
||||
}
|
||||
},
|
||||
get() {
|
||||
if (this.county) {
|
||||
if (this.county && this.county != -1) {
|
||||
return [this.prov, this.city, this.county];
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -56,7 +56,8 @@ import topLang from "@/page/index/top/top-lang";
|
||||
// import { info } from "@/api/system/tenant";
|
||||
import {getCaptcha} from "@/api/user";
|
||||
|
||||
if (/(^http)(s?):\/\/([a-z0-9].+)(\/manage$)/.test(location.href)) {
|
||||
console.log('是否跳转', /(^http)(s?):\/\/([a-z0-9].+)\/manage(\/)?$/i.test(location.href), location.href)
|
||||
if (/(^http)(s?):\/\/([a-z0-9].+)\/manage(\/)?$/i.test(location.href)) {
|
||||
window.location.href = 'http://10.160.7.216:9920/casserver/login?service=http://10.165.0.77/manage/login&stService=http%3A%2F%2F10.165.0.77%2Fmanage%2Flogin'
|
||||
}
|
||||
if (/(\/login\?)(.*)/ig.test(location.href)) {
|
||||
|
||||
@@ -29,15 +29,16 @@ function format(data) {
|
||||
} else {
|
||||
dic[item.areaId] = node;
|
||||
}
|
||||
node.valueId = node.value
|
||||
node.value = item.areaName
|
||||
const nodeCopy = JSON.parse(JSON.stringify(node))
|
||||
nodeCopy.valueId = nodeCopy.value
|
||||
nodeCopy.value = item.areaName
|
||||
if (labelChild.hasOwnProperty(item.parentId)) {
|
||||
if (!labelChild[item.parentId].children) {
|
||||
labelChild[item.parentId].children = [];
|
||||
}
|
||||
labelChild[item.parentId].children.push(node);
|
||||
labelChild[item.parentId].children.push(nodeCopy);
|
||||
} else {
|
||||
labelChild[item.parentId] = {children: [node]};
|
||||
labelChild[item.parentId] = {children: [nodeCopy]};
|
||||
}
|
||||
});
|
||||
return {data: result, dic, labelData: labelResult};
|
||||
|
||||
@@ -165,6 +165,7 @@ export default {
|
||||
}
|
||||
}
|
||||
return {
|
||||
type: "",
|
||||
insureTypeList: [//商保下拉框
|
||||
{
|
||||
label: "停用",
|
||||
|
||||
@@ -626,7 +626,7 @@ export default {
|
||||
dicUrl: "/api/jobslink-api/system/dict-biz/dictionary?code=company_nature",
|
||||
props: {
|
||||
label: "dictValue",
|
||||
value: "dictkey",
|
||||
value: "dictKey",
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
|
||||
@@ -748,7 +748,7 @@ export default {
|
||||
dicUrl: "/api/jobslink-api/system/dict-biz/dictionary?code=company_nature",
|
||||
props: {
|
||||
label: "dictValue",
|
||||
value: "dictkey",
|
||||
value: "dictKey",
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user