| | |
| | | slot="expireTime"> |
| | | <el-tag>{{ row.expireTime ? row.expireTime : '不限制' }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="jfzt"> |
| | | <i class="el-icon-check client-jf" v-if="row.type == '0'"></i> |
| | | <i class="el-icon-close client-qf" v-else-if="row.type == '1'"></i> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="租户授权配置" |
| | | append-to-body |
| | |
| | | <script> |
| | | import {getList, getDetail, remove, update, add, setting, datasource} from "@/api/system/tenant"; |
| | | import {mapGetters} from "vuex"; |
| | | import AvueMap from 'avue-plugin-map' |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "租户ID", |
| | | label: "用户ID", |
| | | prop: "tenantId", |
| | | width: 100, |
| | | search: true, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | span: 24, |
| | |
| | | }] |
| | | }, |
| | | { |
| | | label: "租户名称", |
| | | label: "用户名称", |
| | | prop: "tenantName", |
| | | search: true, |
| | | width: 180, |
| | | width: 190, |
| | | span: 24, |
| | | rules: [{ |
| | | required: true, |
| | |
| | | width: 150, |
| | | }, |
| | | { |
| | | label: "联系地址", |
| | | prop: "address", |
| | | label: '坐标', |
| | | prop: 'test', |
| | | hide: true, |
| | | span: 24, |
| | | minRows: 2, |
| | | type: "textarea", |
| | | component: "avueMap", |
| | | clickChild: (obj) => { |
| | | console.log(123,obj) |
| | | this.form.jd = obj.latitude |
| | | this.form.wd = obj.longitude |
| | | }, |
| | | }, |
| | | { |
| | | label: "经度", |
| | | prop: "jd", |
| | | hide: true, |
| | | }, |
| | | { |
| | | label: "纬度", |
| | | prop: "wd", |
| | | hide: true, |
| | | }, |
| | | { |
| | |
| | | editDisplay: false, |
| | | }, |
| | | { |
| | | label: "缴费状态", |
| | | prop: "jfzt", |
| | | width: 80, |
| | | slot: true, |
| | | align: "center", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | }, |
| | | { |
| | | label: "类型", |
| | | prop: "types", |
| | | span: 11, |
| | | width: 60, |
| | | }, |
| | | { |
| | | label: "省份", |
| | | prop: "province", |
| | | hide: true, |
| | | search: true, |
| | | searchSpan: 3, |
| | | searchLabelWidth: 45, |
| | | placeholder: "省份", |
| | | type: "select", |
| | | props: { |
| | | label: "name", |
| | | value: "code" |
| | | }, |
| | | cascaderItem: ["city", "district"], |
| | | dicUrl: "/api/blade-system/region/select", |
| | | span: 6, |
| | | className: "cityClass1" |
| | | }, |
| | | { |
| | | label: "地市", |
| | | prop: "city", |
| | | hide: true, |
| | | type: "select", |
| | | searchPlaceholder: "地市", |
| | | placeholder: "地市", |
| | | searchLabelWidth: 1, |
| | | searchSpan: 2, |
| | | search: true, |
| | | props: { |
| | | label: "name", |
| | | value: "code" |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityClass2" |
| | | }, |
| | | { |
| | | label: "区县", |
| | | searchSpan: 2, |
| | | hide: true, |
| | | searchLabelWidth: 1, |
| | | searchPlaceholder: "区县", |
| | | placeholder: "区县", |
| | | search: true, |
| | | prop: "district", |
| | | type: "select", |
| | | props: { |
| | | label: "name", |
| | | value: "code" |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityClass3" |
| | | }, |
| | | { |
| | | label: "联系地址", |
| | | prop: "address", |
| | | span: 24, |
| | | minRows: 2, |
| | | type: "textarea", |
| | | hide: true, |
| | | }, |
| | | { |
| | | label: "绑定域名", |
| | | prop: "domain", |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: "营业信息", |
| | | prop: "information", |
| | | hide: true, |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: "系统背景", |
| | | prop: "backgroundUrl", |
| | | type: 'upload', |