flat: 暂存

This commit is contained in:
Apcallover
2024-05-14 16:26:07 +08:00
parent 5f4363ce89
commit 31d259b313
6 changed files with 17 additions and 12 deletions

View File

@@ -11,11 +11,12 @@
</template>
<script>
import { mapGetters } from "vuex";
import {mapGetters} from "vuex";
function getProv(code) {
return code.substring(0, 2) + "0000";
}
function getCity(code) {
return code.substring(0, 4) + "00";
}
@@ -25,7 +26,7 @@ export default {
value: String,
filterable: Boolean,
placeholder: String,
showAllLevels: { type: Boolean, default: true },
showAllLevels: {type: Boolean, default: true},
disabled: Boolean,
clearable: Boolean,
},
@@ -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;

View File

@@ -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)) {

View File

@@ -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};

View File

@@ -165,6 +165,7 @@ export default {
}
}
return {
type: "",
insureTypeList: [//商保下拉框
{
label: "停用",

View File

@@ -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: [
{

View File

@@ -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: [
{