| | |
| | | } |
| | | }, |
| | | props: { |
| | | // 返回上传成功图片地址 |
| | | setPictureUrl:{ |
| | | type:Function, |
| | | default:()=>{} |
| | | }, |
| | | delPictureUrl:{ |
| | | type:Function, |
| | | default:()=>{} |
| | | }, |
| | | pictureList: { |
| | | type: Array, |
| | | default: () => [] |
| | |
| | | <template slot-scope="scope"> |
| | | <div class="operation"> |
| | | <div class="btn"> |
| | | <span @click="opernDialog(scope.row)">上传处置结果</span> |
| | | <span @click="openDialog(scope.row)">上传处置结果</span> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | this.dialogView = true; |
| | | }) |
| | | }, |
| | | async opernDialog(data) { |
| | | async openDialog(data) { |
| | | await casequery.getBaseCaseDetail(data.code) |
| | | .then(({ baseCase, currentSitVo, filesPictureVo, handlePassVo }) => { |
| | | this.vioData = currentSitVo; |
| | | this.imageResourceId = filesPictureVo.imageResources[0].id; |
| | | this.imageResourceId = filesPictureVo.imageResources[0]?.id; |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | this.dialogUpload = true; |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.arrive = deepClone(this.arriveData); |
| | | if (this.arriveData) { |
| | | this.arrive = deepClone(this.arriveData); |
| | | this.arrive.situationPic = this.arriveData.situationPic.split(','); |
| | | } |
| | | }, |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="createUser" label="发布人员" min-width="15"> |
| | | </el-table-column> |
| | | <el-table-column prop="messageTypeName" label="消息分类" min-width="10"> |
| | | <el-table-column prop="messageTypeName" label="消息栏目" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="发布状态" min-width="5"> |
| | | <template slot-scope="scope"> |
| | | <template v-if="scope.row.status" slot-scope="scope"> |
| | | {{scope.row.status === 0 ? '未发布' :'已发布'}} |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <!-- 卡口名称 --> |
| | | <div class="device-item"> |
| | | <div class="item-left"> |
| | | <el-form-item label="卡口名称:" prop="name"> |
| | | <el-input v-model="bayonet.name" placeholder="请填写卡口名称"></el-input> |
| | | <el-form-item label="卡口名称:" prop="bayonetName"> |
| | | <el-input v-model="bayonet.bayonetName" placeholder="请填写卡口名称"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="item-right"></div> |
| | |
| | | <!-- 所属区域 --> |
| | | <div class="device-item"> |
| | | <div class="item-left"> |
| | | <el-form-item label="所属区域:" prop="belong_area"> |
| | | <el-input v-model="bayonet.belong_area" placeholder="请填写区域名称"></el-input> |
| | | <el-form-item label="所属区域:" prop="belongArea"> |
| | | <el-input v-model="bayonet.belongArea" placeholder="请填写区域名称"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="item-right"></div> |
| | |
| | | data() { |
| | | return { |
| | | bayonet: { |
| | | name: '', |
| | | bayonetName: '', |
| | | latitude: '', |
| | | longitude: '', |
| | | belong_area: '', |
| | | belongArea: '', |
| | | ipAddress: '', |
| | | port: '', |
| | | frontEndType: '', |
| | |
| | | description: '' |
| | | }, |
| | | rules: { |
| | | name: [{ required: true, trigger: 'blur', message: '请填写卡口名称' }], |
| | | bayonetName: [{ required: true, trigger: 'blur', message: '请填写卡口名称' }], |
| | | latitude: [{ required: true, trigger: ['blur', 'change'], message: '请填写纬度位置' }], |
| | | longitude: [{ required: true, trigger: ['blur', 'change'], message: '请填写经度位置' }], |
| | | belong_area: [{ required: true, trigger: ['blur', 'change'], message: '请填写区域名称' }], |
| | | belongArea: [{ required: true, trigger: ['blur', 'change'], message: '请填写区域名称' }], |
| | | ipAddress: [{ required: true, trigger: ['blur', 'change'], message: '请填写域名或者IP' }], |
| | | port: [{ required: true, trigger: ['blur', 'change'], message: '请输入端口号' }], |
| | | frontEndType: [{ required: true, trigger: ['blur', 'change'], message: '请输入前端类型' }], |
| | |
| | | } |
| | | }, |
| | | |
| | | created() { |
| | | this.bayonet = deepClone(this.originalBayonet); |
| | | }, |
| | | |
| | | methods: { |
| | | onSubmit() { |
| | | this.$refs.device.validate(valid => { |
| | | if (valid) { |
| | | const copyBayonet = deepClone(this.bayonet); |
| | | delete copyBayonet.id; |
| | | copyBayonet.longitude = Number(copyBayonet.longitude); |
| | | copyBayonet.latitude = Number(copyBayonet.latitude); |
| | | copyBayonet.inOutCityType = Number(copyBayonet.inOutCityType); |
| | | if (!this.isEdit) { |
| | | bayonet.addBayonet(this.bayonet) |
| | | .then(() => { |
| | |
| | | |
| | | closeDialog() { |
| | | this.isShowDialog = false; |
| | | this.getBayonetListData(); |
| | | }, |
| | | |
| | | handleExport() { |
| | |
| | | showDialog(isEdit, data) { |
| | | this.isShowDialog = true; |
| | | this.isEdit = isEdit; |
| | | this.originalBayonet = data; |
| | | this.originalBayonet = data.info.row; |
| | | } |
| | | } |
| | | } |
| | |
| | | <div class="search-item"> |
| | | <span>状态:</span> |
| | | <div class="option"> |
| | | <el-input v-model="searchStatus" placeholder="选择状态"></el-input> |
| | | <el-select v-model="searchStatus" placeholder="选择状态"> |
| | | <el-option v-for="{ label, value } in statusOptions" :key="value" :label="label" :value="value"></el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="findBtn"> |
| | |
| | | import updateUser from "./updateUser"; |
| | | import detailUser from "./detailUser"; |
| | | import { deleteTeam, exportTeamInfo, importTeamInfo, searchTeamInfo } from "@/api/system/portal/teamConstruction"; |
| | | import {SUCCESS_CODE} from "@/utils"; |
| | | import { SUCCESS_CODE } from "@/utils"; |
| | | import {downloadFile} from "@/utils/helper"; |
| | | |
| | | export default { |
| | |
| | | myIdx: 0, |
| | | preMyIdx: 0, |
| | | file: null, |
| | | statusOptions: [ |
| | | { |
| | | value: 2, |
| | | label: '全部' |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: '启用' |
| | | }, |
| | | { |
| | | value: 0, |
| | | label: '禁用' |
| | | } |
| | | ], |
| | | options: [ |
| | | { |
| | | value: 0, |
| | |
| | | this.updateDepartmentData = data; |
| | | }, |
| | | |
| | | // 查看 |
| | | showViewDialog() { |
| | | this.dialogcheck = true; |
| | | }, |
| | | |
| | | // 添加界面 |
| | | showAddDialog() { |
| | | this.dialogAdd = true; |
| | |
| | | |
| | | // 导出 |
| | | exportTable() { |
| | | exportTeamInfo({ current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status: this.searchStatus }) |
| | | const status = this.searchStatus === 2 ? null : this.searchStatus; |
| | | exportTeamInfo({ current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status }) |
| | | .then(res => { |
| | | downloadFile(res); |
| | | this.$message({ type: 'success', message: '操作成功' }); |
| | |
| | | |
| | | // 获取用户列表 |
| | | getDepartmentList() { |
| | | const status = this.searchStatus === 2 ? null : this.searchStatus; |
| | | const searchInfo = { |
| | | current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status: this.searchStatus |
| | | current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status |
| | | }; |
| | | searchTeamInfo(searchInfo) |
| | | .then(({ records, total }) => { |
| | |
| | | url: 'sccg/system/portal/logo/add', |
| | | data: icon |
| | | }).then(res => { |
| | | if (res.code == 200) { |
| | | if (res.code === 200) { |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: 'sccg/system/portal/logo/search', |