文件打开

duhanyu
吕天方 2 years ago
parent e4bdda8971
commit d234bc4047

@ -36,7 +36,7 @@ $base-sub-menu-background:#000c17;
$base-sub-menu-hover:#001528; $base-sub-menu-hover:#001528;
*/ */
$base-sidebar-width: 200px; $base-sidebar-width: 220px;
// the :export directive is the magic sauce for webpack // the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass

@ -73,7 +73,7 @@ export default {
codeUrl: "", codeUrl: "",
loginForm: { loginForm: {
username: "admin", username: "admin",
password: "admin123", password: "Taicang@2023",
rememberMe: false, rememberMe: false,
code: "", code: "",
uuid: "" uuid: ""

@ -319,9 +319,9 @@
<el-descriptions-item label="类型">{{ form.type }}</el-descriptions-item> <el-descriptions-item label="类型">{{ form.type }}</el-descriptions-item>
<el-descriptions-item label="文件名称">{{ form.fileName }}</el-descriptions-item> <el-descriptions-item label="文件"><a v-for="(item,index) in files" :key="index" :href="item.url" target="blank">{{ item.name }}</a></el-descriptions-item>
<el-descriptions-item label="文件路径(完整路径)">{{ form.fileUrl }}</el-descriptions-item> <!-- <el-descriptions-item label="文件路径(完整路径)">{{ form.fileUrl }}</el-descriptions-item> -->
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item> <el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item>
@ -429,6 +429,7 @@
}, },
// fileNameS:[], // fileNameS:[],
fileList:[], fileList:[],
files:[],
}; };
}, },
created() { created() {
@ -540,9 +541,22 @@
/**查看按钮操作 */ /**查看按钮操作 */
handleInfo(row){ handleInfo(row){
this.reset(); this.reset();
this.files = [];
const id = row.id || this.ids const id = row.id || this.ids
getGzdt(id).then(response => { getGzdt(id).then(response => {
this.form = response.data; this.form = response.data;
let arr1 = this.form.fileName.split(',');
let arr2 = this.form.fileUrl.split(',');
if(arr1[0] !== '' && arr1.length > 1 && arr2.length > 1) {
arr1.forEach((item,index)=>{
let obj = {};
obj.name = item;
obj.url = arr2[index];
this.files.push(obj);
})
} else {
this.files = [];
}
this.infoOpen = true; this.infoOpen = true;
this.infoTitle = "查看工作动态详情" this.infoTitle = "查看工作动态详情"
}); });
@ -723,6 +737,10 @@
} }
} }
} }
a {
color: #0072c6;
margin: 0 5px;
}
} }
} }
</style> </style>

@ -289,7 +289,7 @@
<el-descriptions-item label="内容"><div v-html='form.content'></div></el-descriptions-item> <el-descriptions-item label="内容"><div v-html='form.content'></div></el-descriptions-item>
<el-descriptions-item label="图片路径(完整路径)">{{ form.imageUrl }}</el-descriptions-item> <el-descriptions-item label="图片路径(完整路径)"><a v-for="(url,index) in images" :key="index" :href="url" target="blank"></a></el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item> <el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item>
@ -391,6 +391,7 @@
], ],
}, },
fileList:[], fileList:[],
images:[],
}; };
}, },
created() { created() {
@ -501,9 +502,11 @@
/**查看按钮操作 */ /**查看按钮操作 */
handleInfo(row){ handleInfo(row){
this.reset(); this.reset();
this.images = [];
const id = row.id || this.ids const id = row.id || this.ids
getQlzxxddt(id).then(response => { getQlzxxddt(id).then(response => {
this.form = response.data; this.form = response.data;
this.images = this.form.imageUrl.split(',');
this.infoOpen = true; this.infoOpen = true;
this.infoTitle = "查看清朗专项行动动态详情" this.infoTitle = "查看清朗专项行动动态详情"
}); });
@ -669,6 +672,10 @@
} }
} }
} }
a {
color: #0072c6;
margin: 0 5px;
}
} }
} }
</style> </style>

@ -114,7 +114,7 @@
<el-table-column label="攻击源IP" align="center" prop="attackyIp" /> <el-table-column label="攻击源IP" align="center" prop="attackyIp" />
<el-table-column label="攻击类型" align="center" prop="attackType" /> <el-table-column label="攻击类型" align="center" prop="attackType" />
<el-table-column label="受攻击IP" align="center" prop="sAttackIp" /> <el-table-column label="受攻击IP" align="center" prop="sattackIp" />
<el-table-column label="网站安全等级" align="center" prop="netLevel" /> <el-table-column label="网站安全等级" align="center" prop="netLevel" />
<el-table-column label="联系人" align="center" prop="linkMan" /> <el-table-column label="联系人" align="center" prop="linkMan" />
<el-table-column label="启用/禁用" align="center" prop="isStatus"> <el-table-column label="启用/禁用" align="center" prop="isStatus">
@ -223,12 +223,12 @@
placeholder="请输入攻击源IP区域" placeholder="请输入攻击源IP区域"
/> />
</el-form-item> </el-form-item>
<el-form-item label="受攻击IP" prop="sAttackIp"> <el-form-item label="受攻击IP" prop="sattackIp">
<el-input v-model="form.sAttackIp" placeholder="请输入受攻击IP" /> <el-input v-model="form.sattackIp" placeholder="请输入受攻击IP" />
</el-form-item> </el-form-item>
<el-form-item label="受攻击IP区域" prop="sAttackIpArea"> <el-form-item label="受攻击IP区域" prop="sattackIpArea">
<el-input <el-input
v-model="form.sAttackIpArea" v-model="form.sattackIpArea"
placeholder="请输入受攻击IP区域" placeholder="请输入受攻击IP区域"
/> />
</el-form-item> </el-form-item>
@ -302,11 +302,11 @@
}}</el-descriptions-item> }}</el-descriptions-item>
<el-descriptions-item label="受攻击IP">{{ <el-descriptions-item label="受攻击IP">{{
form.sAttackIp form.sattackIp
}}</el-descriptions-item> }}</el-descriptions-item>
<el-descriptions-item label="受攻击IP区域">{{ <el-descriptions-item label="受攻击IP区域">{{
form.sAttackIpArea form.sattackIpArea
}}</el-descriptions-item> }}</el-descriptions-item>
<el-descriptions-item label="网站安全等级">{{ <el-descriptions-item label="网站安全等级">{{
@ -444,9 +444,9 @@ export default {
type: null, type: null,
sAttackIp: null, sattackIp: null,
sAttackIpArea: null, sattackIpArea: null,
netLevel: null, netLevel: null,
@ -619,9 +619,9 @@ export default {
type: null, type: null,
sAttackIp: null, sattackIp: null,
sAttackIpArea: null, sattackIpArea: null,
netLevel: null, netLevel: null,

@ -31,8 +31,9 @@
clearable clearable
size="small" size="small"
v-model="queryParams.year" v-model="queryParams.year"
type="date" type="year"
value-format="yyyy-MM-dd" format="yyyy"
value-format="yyyy"
placeholder="选择年份" placeholder="选择年份"
> >
</el-date-picker> </el-date-picker>
@ -178,8 +179,9 @@
clearable clearable
size="small" size="small"
v-model="form.year" v-model="form.year"
type="date" type="year"
value-format="yyyy-MM-dd" format="yyyy"
value-format="yyyy"
placeholder="选择年份" placeholder="选择年份"
> >
</el-date-picker> </el-date-picker>

@ -56,9 +56,9 @@ module.exports = {
sassOptions: { outputStyle: "expanded" }, sassOptions: { outputStyle: "expanded" },
}, },
// px to rem // px to rem
postcss: { // postcss: {
plugins: [postcss], // plugins: [postcss],
}, // },
}, },
}, },
configureWebpack: { configureWebpack: {

Loading…
Cancel
Save