Merge remote-tracking branch 'origin/master'
7 files modified
1 files added
| | |
| | | "script-loader": "^0.7.2", |
| | | "vue": "^2.6.10", |
| | | "vue-axios": "^2.1.2", |
| | | "vue-cron": "^1.0.9", |
| | | "vue-i18n": "^8.7.0", |
| | | "vue-router": "^3.0.1", |
| | | "vuex": "^3.1.1" |
| | |
| | | "vue": ">= 1.0.0" |
| | | } |
| | | }, |
| | | "node_modules/vue-cron": { |
| | | "version": "1.0.9", |
| | | "resolved": "https://registry.npmjs.org/vue-cron/-/vue-cron-1.0.9.tgz", |
| | | "integrity": "sha512-r8JnAjqpDsDj3a545156m7bca1xkrnIktks+N94KQA80OuKAiqhoz3Cq1JCyO+0ONXAOnLwvkjHiVCfL38XNbA==", |
| | | "dependencies": { |
| | | "babel-polyfill": "^6.26.0", |
| | | "babel-runtime": "^6.26.0", |
| | | "element-ui": "^2.0.7", |
| | | "vue": "^2.5.9" |
| | | } |
| | | }, |
| | | "node_modules/vue-eslint-parser": { |
| | | "version": "2.0.3", |
| | | "resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-2.0.3.tgz", |
| | |
| | | "integrity": "sha512-th5xVbInVoyIoe+qY+9GCflEVezxAvztD4xpFF39SRQYqpoKD2qkmX8yv08jJG9a2SgNOCjirjJGSwg/wTrbmA==", |
| | | "requires": {} |
| | | }, |
| | | "vue-cron": { |
| | | "version": "1.0.9", |
| | | "resolved": "https://registry.npmjs.org/vue-cron/-/vue-cron-1.0.9.tgz", |
| | | "integrity": "sha512-r8JnAjqpDsDj3a545156m7bca1xkrnIktks+N94KQA80OuKAiqhoz3Cq1JCyO+0ONXAOnLwvkjHiVCfL38XNbA==", |
| | | "requires": { |
| | | "babel-polyfill": "^6.26.0", |
| | | "babel-runtime": "^6.26.0", |
| | | "element-ui": "^2.0.7", |
| | | "vue": "^2.5.9" |
| | | } |
| | | }, |
| | | "vue-eslint-parser": { |
| | | "version": "2.0.3", |
| | | "resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-2.0.3.tgz", |
| | |
| | | "script-loader": "^0.7.2", |
| | | "vue": "^2.6.10", |
| | | "vue-axios": "^2.1.2", |
| | | "vue-cron": "^1.0.9", |
| | | "vue-i18n": "^8.7.0", |
| | | "vue-router": "^3.0.1", |
| | | "vuex": "^3.1.1" |
| New file |
| | |
| | | Stack trace: |
| | | Frame Function Args |
| | | 000FFFFB540 00180064365 (00180275F10, 00180266FD1, 000FFFFCA60, 000FFFFBA20) |
| | | 000FFFFBA70 001800499D2 (00100002000, 0018034EB10, 00000000001, 00000000150) |
| | | 000FFFFCA80 00180049A11 (00000000001, 0018034EE20, 000FFFFCA60, 00000000008) |
| | | 000FFFFCB10 0018005CFCD (00000000000, 000FFFFCC40, 001800DC3EF, 00000000000) |
| | | 000FFFFCBF0 0018005D12B (000FFFFCDF0, 00000000000, FFFFFFFFFFFFFFD7, 00000000000) |
| | | 000FFFFCCE0 0018004A1A8 (00000000000, 00000000000, 00000000000, 00000000000) |
| | | 000FFFFCDA0 00180048A2A (00000000000, 00000000000, 00000000000, 00000000000) |
| | | 000FFFFCE50 00180048AEC (00000000000, 00000000000, 00000000000, 00000000000) |
| | | End of stack trace |
| | |
| | | import website from '@/config/website' |
| | | |
| | | export default { |
| | | data () { |
| | | data() { |
| | | return { |
| | | form: {}, |
| | | query: {}, |
| | |
| | | prop: "workTime", |
| | | searchLabelWidth: 120, |
| | | type: "date", |
| | | row:true, |
| | | row: true, |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | rules: [ |
| | |
| | | prop: "createUserName", |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | display: false, |
| | |
| | | |
| | | watch: { |
| | | "form.householdId": { |
| | | handler (val) { |
| | | handler(val) { |
| | | if (val) { |
| | | |
| | | householdDetail(val).then(res => { |
| | |
| | | }, |
| | | |
| | | 'form.personType': { |
| | | handler (newData) { |
| | | handler(newData) { |
| | | let householdIdColumn = this.findObject( |
| | | this.option.column, |
| | | 'householdId' |
| | |
| | | }, |
| | | |
| | | 'form.type': { |
| | | handler (newData) { |
| | | handler(newData) { |
| | | let householdIdColumn = this.findObject( |
| | | this.option.column, |
| | | 'householdId' |
| | |
| | | |
| | | computed: { |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList () { |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.gridWorkLog_add, true), |
| | | viewBtn: this.vaildData(this.permission.gridWorkLog_view, true), |
| | |
| | | editBtn: this.vaildData(this.permission.gridWorkLog_edit, true), |
| | | } |
| | | }, |
| | | ids () { |
| | | ids() { |
| | | let ids = [] |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id) |
| | |
| | | return ids.join(",") |
| | | }, |
| | | |
| | | showNamePhone () { |
| | | showNamePhone() { |
| | | return (data) => { |
| | | if (data.phoneNumber && data.phoneNumber.trim() != '') { |
| | | return `${data.name}(${data.phoneNumber})` |
| | |
| | | } |
| | | }, |
| | | |
| | | created () { |
| | | created() { |
| | | this.getUserList() |
| | | }, |
| | | |
| | | methods: { |
| | | getUserList (param = '') { |
| | | getUserList(param = '') { |
| | | let dicUrl = `/api/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}&limit=20` |
| | | const column = this.findObject(this.option.column, "householdId") |
| | | column.dicUrl = dicUrl |
| | | }, |
| | | |
| | | rowSave (row, done, loading) { |
| | | rowSave(row, done, loading) { |
| | | if (row.url.length > 0) { |
| | | var urls = [] |
| | | var split = row.url.split(",") |
| | |
| | | } |
| | | ) |
| | | }, |
| | | rowUpdate (row, index, done, loading) { |
| | | rowUpdate(row, index, done, loading) { |
| | | if (row.url.length > 0) { |
| | | var urls = [] |
| | | var split = row.url.split(",") |
| | |
| | | } |
| | | ) |
| | | }, |
| | | rowDel (row) { |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | searchReset () { |
| | | searchReset() { |
| | | this.query = {} |
| | | this.onLoad(this.page) |
| | | }, |
| | | searchChange (params, done) { |
| | | searchChange(params, done) { |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, params) |
| | | done() |
| | | }, |
| | | selectionChange (list) { |
| | | selectionChange(list) { |
| | | this.selectionList = list |
| | | }, |
| | | selectionClear () { |
| | | selectionClear() { |
| | | this.selectionList = [] |
| | | this.$refs.crud.toggleSelection() |
| | | }, |
| | | handleDelete () { |
| | | handleDelete() { |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据") |
| | | return |
| | |
| | | this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | beforeOpen (done, type) { |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getGridWorkLog(this.form.id).then((res) => { |
| | | this.form = res.data.data |
| | | if (this.form.url.length > 0) { |
| | | var urls = [] |
| | | var names = this.form.url.split(",") |
| | | names.forEach(name => { |
| | | urls.push(website.minioUrl + name) |
| | | }) |
| | | this.form.url = urls.join(",") |
| | | if (this.form.url) { |
| | | if (this.form.url.length > 0) { |
| | | var urls = [] |
| | | var names = this.form.url.split(",") |
| | | names.forEach(name => { |
| | | urls.push(website.minioUrl + name) |
| | | }) |
| | | this.form.url = urls.join(",") |
| | | } |
| | | } |
| | | |
| | | getPersonPublicSelect({ |
| | | id: this.form.householdId |
| | | }).then(res => { |
| | |
| | | // con |
| | | done() |
| | | }, |
| | | currentChange (currentPage) { |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage |
| | | }, |
| | | sizeChange (pageSize) { |
| | | sizeChange(pageSize) { |
| | | this.page.pageSize = pageSize |
| | | }, |
| | | refreshChange () { |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad (page, params = {}) { |
| | | onLoad(page, params = {}) { |
| | | const { dateTime } = this.query |
| | | let values = { |
| | | ...params, |
| | |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | if (item.url.length > 0) { |
| | | var urls = [] |
| | | var names = item.url.split(",") |
| | | names.forEach(name => { |
| | | urls.push(website.minioUrl + name) |
| | | }) |
| | | item.url = urls.join(",") |
| | | if (item.url) { |
| | | if (item.url.length > 0) { |
| | | var urls = [] |
| | | var names = item.url.split(",") |
| | | names.forEach(name => { |
| | | urls.push(website.minioUrl + name) |
| | | }) |
| | | item.url = urls.join(",") |
| | | } |
| | | } |
| | | }) |
| | | this.loading = false |
| | |
| | | <template slot-scope="{row, size}" slot="category"> |
| | | <el-tag :size="size">{{ row.categoryName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="category"> |
| | | <el-tag :size="size">{{ row.categoryName }}</el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{type,disabled}" slot="cronForm"> |
| | | <el-input placeholder="请选择cron"> |
| | | <el-button slot="append" icon="el-icon-s-tools" @click="cronPopover = true"></el-button> |
| | | </el-input> |
| | | </template> |
| | | |
| | | |
| | | </avue-crud> |
| | | |
| | | <el-dialog title="对象存储上传调试" append-to-body :visible.sync="box" width="550px"> |
| | | <avue-form ref="form" :option="debugOption" v-model="debugForm" @submit="handleSubmit" /> |
| | | </el-dialog> |
| | | |
| | | |
| | | <el-popover v-model="cronPopover"> |
| | | <vueCron @change="changeCron" @close="cronPopover=false" i18n="cn"/> |
| | | <!-- <el-input |
| | | slot="reference" |
| | | v-model="ruleForm.execTime" |
| | | placeholder="定时策略" |
| | | @click="cronPopover=true" |
| | | /> --> |
| | | </el-popover> |
| | | |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | import { getList, getDetail, add, update, remove, enable } from "@/api/resource/oss" |
| | | import { mapGetters } from "vuex" |
| | | import func from "@/util/func" |
| | | |
| | | import vueCron from 'vue-cron' |
| | | export default { |
| | | components:{ |
| | | vueCron |
| | | }, |
| | | data () { |
| | | return { |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | | box: false, |
| | | cronPopover:false, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | }, |
| | | { |
| | | label: 'Cron', |
| | | prop: '' |
| | | prop: 'cron', |
| | | formslot:true, |
| | | } |
| | | ] |
| | | }, |
| | |
| | | prop: 'jbxx', |
| | | column: [ |
| | | { |
| | | label: '调度类型', |
| | | label: '运行模式', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: 'Cron', |
| | | label: 'JobHandler', |
| | | prop: '' |
| | | }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | changeCron(val){ |
| | | console.log("===>",val); |
| | | }, |
| | | |
| | | rowSave (row, done, loading) { |
| | | add(row).then(() => { |
| | | this.onLoad(this.page) |
| | |
| | | value: '#EBEDF0' |
| | | }, { |
| | | label: '绿', |
| | | value: '#30D17C' |
| | | // value: '#30D17C' |
| | | value:'green' |
| | | }, { |
| | | label: '黄', |
| | | value: '#FFB42B' |
| | | // value: '#FFB42B' |
| | | value:'yellow' |
| | | }, { |
| | | label: '红', |
| | | value: '#EA1F1F' |
| | | // value: '#EA1F1F' |
| | | value:'red' |
| | | }], |
| | | rules: [{ |
| | | required: true, |
| | |
| | | row: true, |
| | | dicData: [{ |
| | | label: '撤销', |
| | | value: '#EBEDF0' |
| | | // value: '#EBEDF0' |
| | | }, { |
| | | label: '绿', |
| | | value: '#30D17C' |
| | | // value: '#30D17C' |
| | | value:'green' |
| | | }, { |
| | | label: '黄', |
| | | value: '#FFB42B' |
| | | // value: '#FFB42B' |
| | | value:'yellow' |
| | | }, { |
| | | label: '红', |
| | | value: '#EA1F1F' |
| | | // value: '#EA1F1F' |
| | | value:'red' |
| | | }], |
| | | rules: [{ |
| | | required: true, |
| | |
| | | proxy: { |
| | | "/api": { |
| | | //本地服务接口地址 |
| | | // target: "https://srgdjczzxtpt.com:2080/api", |
| | | target: "https://srgdjczzxtpt.com:2080/api", |
| | | // target: "http://z4042833u6.wicp.vip", |
| | | target: "http://localhost:9528", |
| | | // target: "http://localhost:9528", |
| | | // target:"http://192.168.0.109:9528", |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.cn/api', |