| | |
| | | "babel-polyfill": "^6.26.0", |
| | | "classlist-polyfill": "^1.2.0", |
| | | "crypto-js": "^4.0.0", |
| | | "echarts": "^5.4.3", |
| | | "element-ui": "^2.15.6", |
| | | "js-base64": "^2.5.1", |
| | | "js-cookie": "^2.2.0", |
| | |
| | | "dependencies": { |
| | | "jsbn": "~0.1.0", |
| | | "safer-buffer": "^2.1.0" |
| | | } |
| | | }, |
| | | "node_modules/echarts": { |
| | | "version": "5.4.3", |
| | | "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.4.3.tgz", |
| | | "integrity": "sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA==", |
| | | "dependencies": { |
| | | "tslib": "2.3.0", |
| | | "zrender": "5.4.4" |
| | | } |
| | | }, |
| | | "node_modules/ee-first": { |
| | |
| | | "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==", |
| | | "dev": true |
| | | }, |
| | | "node_modules/tslib": { |
| | | "version": "2.3.0", |
| | | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", |
| | | "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" |
| | | }, |
| | | "node_modules/tty-browserify": { |
| | | "version": "0.0.0", |
| | | "resolved": "https://registry.npmmirror.com/tty-browserify/-/tty-browserify-0.0.0.tgz", |
| | |
| | | "dev": true, |
| | | "engines": { |
| | | "node": ">=4" |
| | | } |
| | | }, |
| | | "node_modules/zrender": { |
| | | "version": "5.4.4", |
| | | "resolved": "https://registry.npmjs.org/zrender/-/zrender-5.4.4.tgz", |
| | | "integrity": "sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw==", |
| | | "dependencies": { |
| | | "tslib": "2.3.0" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "requires": { |
| | | "jsbn": "~0.1.0", |
| | | "safer-buffer": "^2.1.0" |
| | | } |
| | | }, |
| | | "echarts": { |
| | | "version": "5.4.3", |
| | | "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.4.3.tgz", |
| | | "integrity": "sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA==", |
| | | "requires": { |
| | | "tslib": "2.3.0", |
| | | "zrender": "5.4.4" |
| | | } |
| | | }, |
| | | "ee-first": { |
| | |
| | | "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==", |
| | | "dev": true |
| | | }, |
| | | "tslib": { |
| | | "version": "2.3.0", |
| | | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", |
| | | "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" |
| | | }, |
| | | "tty-browserify": { |
| | | "version": "0.0.0", |
| | | "resolved": "https://registry.npmmirror.com/tty-browserify/-/tty-browserify-0.0.0.tgz", |
| | |
| | | "dev": true |
| | | } |
| | | } |
| | | }, |
| | | "zrender": { |
| | | "version": "5.4.4", |
| | | "resolved": "https://registry.npmjs.org/zrender/-/zrender-5.4.4.tgz", |
| | | "integrity": "sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw==", |
| | | "requires": { |
| | | "tslib": "2.3.0" |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | "babel-polyfill": "^6.26.0", |
| | | "classlist-polyfill": "^1.2.0", |
| | | "crypto-js": "^4.0.0", |
| | | "echarts": "^5.4.3", |
| | | "element-ui": "^2.15.6", |
| | | "js-base64": "^2.5.1", |
| | | "js-cookie": "^2.2.0", |
| | |
| | | @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" |
| | | @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot-scope="{row, size, index}" slot="menu"> |
| | | <el-button :size="size" type="text" icon="el-icon-view" plain @click="lookDetail(row, 0)">查 看 |
| | | <el-button :size="size" type="text" icon="el-icon-view" v-if="permission.bail_view" plain @click="lookDetail(row, 0)">查 看 |
| | | </el-button> |
| | | <el-button :size="size" type="text" icon="el-icon-s-check" v-if="row.status == 1" plain |
| | | <el-button :size="size" type="text" icon="el-icon-s-check" v-if="row.status == 1 && permission.bail_check" plain |
| | | @click="lookDetail(row, 1)">审 核 |
| | | </el-button> |
| | | <el-button :size="size" type="text" icon="el-icon-delete" plain @click="rowDel(row)">删 除 |
| | | <el-button :size="size" type="text" icon="el-icon-delete" v-if="permission.bail_del" plain @click="rowDel(row)">删 除 |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | computed: { |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | |
| | | console.log("permission===>",this.permission); |
| | | |
| | | return { |
| | | addBtn: this.vaildData(this.permission.place_add, false), |
| | | viewBtn: this.vaildData(this.permission.place_view, true), |
| | | delBtn: this.vaildData(this.permission.place_delete, true), |
| | | editBtn: this.vaildData(this.permission.place_edit, true), |
| | | addBtn: this.vaildData(this.permission.bail_add, false), |
| | | viewBtn: this.vaildData(this.permission.bail_view, true), |
| | | delBtn: this.vaildData(this.permission.bail_del, true), |
| | | // editBtn: this.vaildData(this.permission.place_edit, true), |
| | | } |
| | | }, |
| | | ids() { |
| | |
| | | @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | |
| | | <template slot-scope="{row, size}" slot="menu"> |
| | | <el-button type="text" :size="size" icon="el-icon-view" plain @click="lookDetail(row, 0)">查 看 |
| | | <el-button type="text" :size="size" icon="el-icon-view" v-if="permission.place_view" plain @click="lookDetail(row, 0)">查 看 |
| | | </el-button> |
| | | <el-button type="text" :size="size" icon="el-icon-s-check" v-if="row.status == 1" plain |
| | | <el-button type="text" :size="size" icon="el-icon-s-check" v-if="permission.place_check && row.status == 1" plain |
| | | @click="lookDetail(row, 1)">审 核 |
| | | </el-button> |
| | | <el-button type="text" :size="size" icon="el-icon-delete" plain @click="rowDel(row)">删 除 |
| | | <el-button type="text" :size="size" icon="el-icon-delete" v-if="permission.place_del" plain @click="rowDel(row)">删 除 |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | return { |
| | | addBtn: this.vaildData(this.permission.place_add, false), |
| | | viewBtn: this.vaildData(this.permission.place_view, true), |
| | | delBtn: this.vaildData(this.permission.place_delete, true), |
| | | editBtn: this.vaildData(this.permission.place_edit, true), |
| | | delBtn: this.vaildData(this.permission.place_del, true), |
| | | // editBtn: this.vaildData(this.permission.place_edit, true), |
| | | } |
| | | }, |
| | | ids() { |
| | |
| | | |
| | | <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-button slot="append" icon="el-icon-s-tools" @click="handlerClick()"></el-button> |
| | | </el-input> |
| | | </template> |
| | | |
| | |
| | | </el-dialog> |
| | | |
| | | |
| | | <el-popover v-model="cronPopover"> |
| | | |
| | | |
| | | <el-dialog title="Cron" append-to-body :visible.sync="cronPopover" width="550px"> |
| | | <!-- <el-popover v-model="cronPopover"> --> |
| | | |
| | | <!-- <div> 测试 </div> --> |
| | | <vueCron @change="changeCron" @close="cronPopover=false" i18n="cn"/> |
| | | <!-- <el-input |
| | | slot="reference" |
| | |
| | | placeholder="定时策略" |
| | | @click="cronPopover=true" |
| | | /> --> |
| | | </el-popover> |
| | | <!-- </el-popover> --> |
| | | </el-dialog> |
| | | |
| | | </basic-container> |
| | | </template> |
| | |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }) |
| | | }, |
| | | handlerClick(){ |
| | | console.log("111") |
| | | this.cronPopover = true; |
| | | } |
| | | } |
| | | } |
| | |
| | | <el-button type="danger" size="small" plain icon="el-icon-delete" v-if="permission.household_delete" |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | <el-button type="success" size="small" plain v-if="this.permission.household_import" |
| | | <el-button type="success" size="small" plain v-if="permission.household_import" |
| | | icon="el-icon-upload2" @click="handleImport">导入 |
| | | </el-button> |
| | | <el-button type="warning" size="small" plain v-if="this.permission.household_export" |
| | | <el-button type="warning" size="small" plain v-if="permission.household_export" |
| | | icon="el-icon-download" @click="handleExport">导出 |
| | | </el-button> |
| | | </template> |
| | |
| | | @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button type="danger" size="small" plain icon="el-icon-delete" v-if="permission.user_delete" |
| | | <el-button type="danger" size="small" plain icon="el-icon-delete" v-if="permission.house_del" |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | <el-button type="success" size="small" plain v-if="userInfo.role_name.includes('admin')" |
| | | <!-- <el-button type="success" size="small" plain v-if="userInfo.role_name.includes('admin')" |
| | | icon="el-icon-upload2" @click="handleImport">导入 |
| | | </el-button> |
| | | <el-button type="warning" size="small" plain v-if="userInfo.role_name.includes('admin')" |
| | | icon="el-icon-download" @click="handleExport">导出 |
| | | </el-button> --> |
| | | <el-button type="success" size="small" plain v-if="permission.house_import" |
| | | icon="el-icon-upload2" @click="handleImport">导入 |
| | | </el-button> |
| | | <el-button type="warning" size="small" plain v-if="permission.house_export" |
| | | icon="el-icon-download" @click="handleExport">导出 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="menu"> |
| | | <el-button :size="size" type="text" icon="el-icon-circle-plus-outline" |
| | | v-if="permission.househould_manager" @click="handleHouseholdManager(row)">住户管理 |
| | | v-if="permission.house_manager" @click="handleHouseholdManager(row)">住户管理 |
| | | </el-button> |
| | | <el-button :size="size" type="text" icon="el-icon-circle-plus-outline" |
| | | v-if="permission.househould_manager" @click="manageLabel(row)">标签 |
| | | v-if="permission.house_tag" @click="manageLabel(row)">标签 |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | return { |
| | | addBtn: this.vaildData(this.permission.house_add, true), |
| | | viewBtn: this.vaildData(this.permission.house_view, true), |
| | | delBtn: this.vaildData(this.permission.house_delete, true), |
| | | delBtn: this.vaildData(this.permission.house_del, true), |
| | | editBtn: this.vaildData(this.permission.house_edit, true) |
| | | } |
| | | }, |