<template>
|
<div class="updateUser">
|
<main>
|
<div class="mainContent">
|
<el-form ref="user" style="width: 100%;">
|
<el-form-item prop="code" label="所属事件编号">
|
<el-input v-model="imagedata.code"></el-input>
|
</el-form-item>
|
<el-form-item prop="code" label="大类名称">
|
<el-input v-model="imagedata.questionType"></el-input>
|
</el-form-item>
|
<el-form-item prop="code" label="小类名称">
|
<el-input v-model="imagedata.bigType"></el-input>
|
</el-form-item>
|
<el-form-item prop="code" label="视频Id">
|
<el-input v-model="imagedata.videoId"></el-input>
|
</el-form-item>
|
<el-form-item prop="code" label="上传时间">
|
<el-input v-model="imagedata.uploadTime"></el-input>
|
</el-form-item>
|
<el-form-item prop="code" label="视频:">
|
<video id="my-video" class="video-js" controls preload="auto" width="210px" height="150px"
|
:poster="imagedata.imageUrl" data-setup="{}">
|
<source :src="imagedata.videoUrl" type="video/mp4" />
|
</video>
|
</el-form-item>
|
|
<!-- <el-form-item v-if="updateFlag"> -->
|
<!-- </el-form-item> -->
|
</el-form>
|
</div>
|
</main>
|
</div>
|
</template>
|
<script src="https://vjs.zencdn.net/7.20.3/video.min.js"></script>
|
<script>
|
import { getTypeList } from "@/utils/helper";
|
export default {
|
data() {
|
|
return {
|
|
imagedata: {
|
code: "SJ202211010001",
|
questionType: "违规",
|
bigType: "违反国家有关标准编制城乡规划",
|
smallType: "在居民住宅楼、未配套设立专用烟道的商住综合楼、商住综合楼内与居住层相邻的商业楼层内新建、改建、扩建产生油烟、异味、废气的餐饮服务项目",
|
videoId: "1",
|
uploadTime: "2022-10-31 20:20:01",
|
imageUrl:"https://img0.baidu.com/it/u=1063261925,3306857657&fm=253&fmt=auto&app=138&f=JPEG?w=669&h=500",
|
videoUrl:"http://vali-g1.cp31.ott.cibntv.net/youku/65730720cb94e7220271a3c96/0300080100632D30A3E43019FD116537F5162F-1035-48AC-BE1B-602DF0E92893.mp4?sid=166729534400010004780_00_Bda935cf9a33346c593fc27da8e694df3&sign=db39289573d143cf6e1ad8d8dff36682&ctype=50&si=183&psid=c732c4364319e7ef4685d8f1a568015941346"
|
},
|
}
|
},
|
created() {
|
// const that = this;
|
// this.user = JSON.parse(JSON.stringify(that.userInfo));
|
// console.log(this.user);
|
// this.user.parentId = this.user.parentId === 0 ? '暂无上级部门' : this.user.parentId;
|
// this.checkedList = this.user.userInfoDTOS;
|
// this.checkedList.forEach((e) => {
|
// this.checkedUser.push(e.userId);
|
// });
|
// console.log(this.checkedUser)
|
// this.$axios({
|
// method: "get",
|
// url: "sccg/depart/tree",
|
// }).then((res) => {
|
// that.departList = res.data;
|
// });
|
// this.getUserList(this.user.id);
|
// // 获取部门类型
|
// this.getDepartType();
|
},
|
methods: {
|
// handleUser() {
|
// this.$refs["user"].validate((valid) => {
|
// if (valid) {
|
// const { user, checkedList } = this;
|
// const arr = [];
|
// checkedList.forEach((item) => {
|
// arr.push({ leader: item.leader, userId: item.id ? item.id : item.userId });
|
// });
|
// if (arr.length === 0) {
|
// this.$message({
|
// type: 'warning',
|
// message: '请选择部门人员',
|
// })
|
// } else {
|
// this.$axios
|
// .post("sccg/depart/update", {
|
// id: user.id,
|
// departName: user.departName,
|
// parentId: user.parentId === '暂无上级部门' ? 0 : user.parentId,
|
// departDes: user.departDes,
|
// departManagerList: arr,
|
// })
|
// .then((res) => {
|
// this.$message({
|
// message: res.message,
|
// type: res.code === 200 ? "success" : "warning",
|
// });
|
// this.$emit("changeDialog", { flag: false });
|
// this.getDepartList();
|
// });
|
// }
|
// } else {
|
// return false;
|
// }
|
// });
|
// },
|
// // 获取部门类型
|
// async getDepartType() {
|
// this.typeList = await getTypeList(1, "08");
|
// },
|
|
// // 设置领导
|
// setLeader(idx) {
|
// if (this.updateFlag) {
|
// this.checkedList.forEach((item, index) => {
|
// item.leader = index === idx;
|
// });
|
// }
|
// },
|
|
// // 获取所有用户信息
|
// getUserList(id) {
|
// // 获取所有用户信息、用户查询(暂时支持电话号码)
|
// this.$axios.get(`/sccg/depart/query_surplus_exist_user?id=`+id).then((res) => {
|
// if (res.code === 200) {
|
// this.userList = res.data;
|
// }
|
// });
|
// },
|
// addUser() {
|
// this.checkedList = [];
|
// this.userList.forEach((item) => {
|
// this.checkedUser.forEach((child) => {
|
// if (item.id == child) {
|
// this.checkedList.push({
|
// id: item.id,
|
// username: item.username,
|
// leader: false,
|
// });
|
// }
|
// });
|
// });
|
// this.checkedList[0].leader = true;
|
// console.log(this.checkedList);
|
// this.openUser = false;
|
// },
|
// },
|
// props: ["userInfo", "updateFlag", "getDepartList", "changeDialog"],
|
},
|
props:['updateFlag']
|
};
|
</script>
|
<style lang="scss" scoped>
|
.updateUser {
|
border-radius: 1px;
|
background-color: #09152f;
|
|
main {
|
// border: 1px solid #fff;
|
text-align: left;
|
padding: 0 55px;
|
background-color: #09152f;
|
padding-bottom: 50px;
|
|
// .mainTitle {
|
// color: #4b9bb7;
|
// font-weight: 600;
|
// line-height: 100px;
|
// font-size: 14px;
|
// }
|
|
.mainContent {
|
display: flex;
|
justify-content: center;
|
padding-top: 50px;
|
|
.el-form-item__content {
|
width: 400px;
|
|
.el-select {
|
width: 100%;
|
}
|
}
|
|
.optionHandleSp {
|
display: flex;
|
|
.areaNumber,
|
.moreNumber {
|
flex: 1;
|
}
|
|
.telNumber {
|
flex: 2;
|
}
|
}
|
|
.optionBtn {
|
display: flex;
|
margin-top: 20px;
|
justify-content: center;
|
|
.btn {
|
padding: 12px 50px;
|
}
|
}
|
}
|
}
|
}
|
|
.updateUser::v-deep .el-form-item__label {
|
color: #4b9bb7;
|
}
|
|
.updateUser::v-deep .el-input__inner {
|
background-color: #09152f;
|
border: 1px solid #17324c;
|
}
|
|
.addPerson {
|
display: flex;
|
list-style: none;
|
padding: 0;
|
flex-wrap: wrap;
|
max-width: 280px;
|
|
li {
|
color: #fff;
|
text-align: center;
|
font-size: 30px;
|
margin-left: 10px;
|
}
|
}
|
|
.li-icon {
|
background-color: #cccccc;
|
width: 36px;
|
height: 36px;
|
border-radius: 50%;
|
margin: 0 auto;
|
}
|
|
.li-btn {
|
background-color: #cccccc;
|
width: 36px;
|
height: 36px;
|
border-radius: 50%;
|
}
|
|
.card {
|
position: absolute;
|
z-index: 2000;
|
right: 0;
|
|
.box-card {
|
min-height: 240px;
|
max-height: 260px;
|
overflow: hidden;
|
background-color: #09152f;
|
position: relative;
|
max-width: 220px;
|
|
.scrollWrap {
|
overflow: scroll;
|
height: 180px;
|
position: relative;
|
color: #4b9bb7;
|
|
.el-checkbox-group {
|
display: flex;
|
flex-direction: column;
|
|
.el-checkbox {
|
line-height: 20px;
|
}
|
}
|
}
|
|
.myclear {
|
width: 100%;
|
line-height: 20px;
|
color: #4b9bb7;
|
display: flex;
|
justify-content: space-between;
|
}
|
|
.hidebar {
|
position: absolute;
|
top: 77px;
|
right: 20px;
|
width: 20px;
|
height: 180px;
|
background-color: #09152f;
|
}
|
|
.item {
|
line-height: 40px;
|
}
|
}
|
}
|
|
.leader {
|
color: red;
|
}
|
|
.el-input {
|
width: 280px !important;
|
}
|
</style>
|