Commit 19429208 authored by 刘殿昕's avatar 刘殿昕

order列表,个人档案,云详情

parent 147482e9
...@@ -169,6 +169,11 @@ export default { ...@@ -169,6 +169,11 @@ export default {
let service = 0; let service = 0;
let app = 0; let app = 0;
let resource = 0; let resource = 0;
if (this.buttonList.length == 0) {
resource = 1;
app = 1;
service = 1;
} else {
this.buttonList.forEach((item) => { this.buttonList.forEach((item) => {
if (item.state == true) { if (item.state == true) {
if (item.id == 0) { if (item.id == 0) {
...@@ -185,6 +190,7 @@ export default { ...@@ -185,6 +190,7 @@ export default {
} }
} }
}); });
}
// console.log(service, app, resource); // console.log(service, app, resource);
let params = { let params = {
select: this.search, select: this.search,
......
...@@ -83,9 +83,9 @@ ...@@ -83,9 +83,9 @@
<el-form-item class="info_item"> <el-form-item class="info_item">
<p>IP(白名单):</p> <p>IP(白名单):</p>
<div class="ip_block"> <div class="ip_block">
<div v-for="item in formBusiness.ip_white" :key="item" class="ip_item"> <div v-for="(item, index) in formBusiness.ip_white" :key="item" class="ip_item">
{{ item }} {{ item }}
<i class="el-icon-close ip_del" @click="delIp(item, 'white')"></i> <i class="el-icon-close ip_del" @click="delIp(index, 'white')"></i>
</div> </div>
<el-input <el-input
v-if="whiteAddShow" v-if="whiteAddShow"
...@@ -99,9 +99,9 @@ ...@@ -99,9 +99,9 @@
<el-form-item class="info_item"> <el-form-item class="info_item">
<p>IP(黑名单):</p> <p>IP(黑名单):</p>
<div class="ip_block"> <div class="ip_block">
<div v-for="item in formBusiness.ip_black" :key="item" class="ip_item"> <div v-for="(item, index) in formBusiness.ip_black" :key="item" class="ip_item">
{{ item }} {{ item }}
<i class="el-icon-close ip_del" @click="delIp(item, 'black')"></i> <i class="el-icon-close ip_del" @click="delIp(index, 'black')"></i>
</div> </div>
<el-input <el-input
v-if="blackAddShow" v-if="blackAddShow"
...@@ -564,8 +564,12 @@ export default { ...@@ -564,8 +564,12 @@ export default {
} }
document.body.removeChild(input); document.body.removeChild(input);
}, },
delIp(ip, type) { delIp(index, type) {
console.log(ip, type); if (type == "white") {
this.ruleForm_1.ip_white.splice(index, 1);
} else if (type == "black") {
this.ruleForm_1.ip_black.splice(index, 1);
}
}, },
addIp(type) { addIp(type) {
if (type == "white") { if (type == "white") {
......
...@@ -302,8 +302,7 @@ export default { ...@@ -302,8 +302,7 @@ export default {
data() { data() {
return { return {
id: "", id: "",
url: url: "",
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
helper, helper,
list_arr: [ list_arr: [
{ {
...@@ -322,7 +321,7 @@ export default { ...@@ -322,7 +321,7 @@ export default {
}, },
{ {
title: "资源申请文件:", title: "资源申请文件:",
info: "2222222222222222222222.docs", info: "2.docs",
url: "", url: "",
type: "down", type: "down",
}, },
...@@ -493,6 +492,9 @@ export default { ...@@ -493,6 +492,9 @@ export default {
this.apply_type = this.$route.query.apply_type || 0; this.apply_type = this.$route.query.apply_type || 0;
this.use_uid = this.$route.query.use_uid || ""; this.use_uid = this.$route.query.use_uid || "";
this.id = this.$route.params.id || ""; this.id = this.$route.params.id || "";
if (this.apply_type != 0) {
this.list_arr[2].title = "资源调整数据规格";
}
}, },
getUrl() { getUrl() {
return this.$route.path.substring(0, 9); return this.$route.path.substring(0, 9);
......
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