| | |
| | | }) |
| | | } |
| | | |
| | | export const getDetail = (id) => { |
| | | export const getDetail = (imgUrl) => { |
| | | return request({ |
| | | url: '/api/blade-jfpts/parcel/parcel/getParcelPic', |
| | | method: 'get', |
| | | params: { |
| | | id |
| | | imgUrl |
| | | } |
| | | }) |
| | | } |
| | |
| | | return ids.join(","); |
| | | } |
| | | }, |
| | | created() { |
| | | Recorder.getPermission().then(() => {}); |
| | | |
| | | this.recorder = new Recorder({ |
| | | sampleBits: 16, // 采样位数,支持 8 或 16,默认是16 |
| | | sampleRate: 8000, // 采样率,支持 11025、16000、22050、24000、44100、48000,根据浏览器默认值,我的chrome是48000 |
| | | numChannels: 1, // 声道,支持 1 或 2, 默认是1 |
| | | // compiling: false,(0.x版本中生效,1.x增加中) // 是否边录边转换,默认是false |
| | | }); |
| | | }, |
| | | |
| | | methods: { |
| | | beforeOpen(done, type) { |
| | | }, |
| | |
| | | ...params, |
| | | }; |
| | | if (this.$route.query.type && this.$route.query != undefined && this.$route.query != null && this.$route.query != "" ) { |
| | | if (this.$route.query.status != undefined && this.$route.query.status != null && this.$route.query.status == "" ) { |
| | | if (this.$route.query.status != undefined && this.$route.query.status != null && this.$route.query.status != "" ) { |
| | | this.activeClass = this.$route.query.type; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | |
| | | type:this.$route.query.type |
| | | }; |
| | | } |
| | | }else if(this.$route.query.status != undefined && this.$route.query.status != null && this.$route.query.status != "" ){ |
| | | params = { |
| | | status: this.$route.query.status, |
| | | beginTime: this.$route.query.startTime, |
| | | endTime: this.$route.query.endTime |
| | | } |
| | | }else{ |
| | | params = { |
| | | status:this.$route.query.status, |
| | |
| | | return ids.join(","); |
| | | } |
| | | }, |
| | | created() { |
| | | Recorder.getPermission().then(() => {}); |
| | | |
| | | this.recorder = new Recorder({ |
| | | sampleBits: 16, // 采样位数,支持 8 或 16,默认是16 |
| | | sampleRate: 8000, // 采样率,支持 11025、16000、22050、24000、44100、48000,根据浏览器默认值,我的chrome是48000 |
| | | numChannels: 1, // 声道,支持 1 或 2, 默认是1 |
| | | // compiling: false,(0.x版本中生效,1.x增加中) // 是否边录边转换,默认是false |
| | | }); |
| | | }, |
| | | methods: { |
| | | beforeOpen(done, type) { |
| | | }, |
| | |
| | | }; |
| | | |
| | | if (this.$route.query.status && this.$route.query != undefined && this.$route.query != null && this.$route.query != "" ) { |
| | | if (this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type == "" ) { |
| | | if (this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type != "" ) { |
| | | this.activeClass = this.$route.query.status; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | |
| | | type:this.$route.query.status |
| | | }; |
| | | } |
| | | }else if(this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type != "" ){ |
| | | params = { |
| | | type: this.$route.query.type, |
| | | beginTime: this.$route.query.startTime, |
| | | endTime: this.$route.query.endTime |
| | | } |
| | | }else{ |
| | | params = { |
| | | status:this.$route.query.status, |
| | |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | |
| | | <template slot="menu"> |
| | | <el-button type="text" @click="dialogVisible=true">点击打开 Dialog</el-button> |
| | | |
| | | <el-dialog title="提示" :visible.sync="dialogVisible" width="30%" :before-close="handleClose"> |
| | | <span>这是一段信息</span> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="dialogVisible = false">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | |
| | | </avue-crud> |
| | | |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | | dialogVisible: false, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | viewBtn: true, |
| | | selection: true, |
| | | labelWidth:120, |
| | | menuWidth:120, |
| | | menuWidth:220, |
| | | dialogClickModal: false, |
| | | headerAlign: 'center', |
| | | align: 'center', |
| | |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData(this.permission.parcel_pic_view, true), |
| | | viewBtn: this.vaildData(null, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false) |
| | | }; |
| | |
| | | }, |
| | | methods: { |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getDetail(this.form.id).then(res => { |
| | | console.log(type); |
| | | if (["view"].includes(type)) { |
| | | getDetail(this.form.imgUrl).then(res => { |
| | | this.form = res.data.data; |
| | | }); |
| | | } |
| | |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | handleClose(done) { |
| | | this.$confirm('确认关闭?') |
| | | .then(_ => { |
| | | done(); |
| | | }) |
| | | .catch(_ => {}); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | debugger; |
| | | const { dateTime } = this.query; |
| | |
| | | endTime: this.dateTime.day.endTime, |
| | | }; |
| | | } |
| | | |
| | | if(this.$route.query.startTime!=undefined && this.$route.query.startTime!=null && this.$route.query.startTime!=''){ |
| | | params = { |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.$route.query.startTime, |
| | | endTime: this.$route.query.endTime |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (releaseTimeRange) { |
| | |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | dialogVisible: false, |
| | | selectionList: [], |
| | | option: { |
| | | height: 'auto', |