diff --git a/package.json b/package.json index c61b4d56..3054124e 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "jest": "^25.4.0", "mini-types": "*", "miniprogram-api-typings": "^3.3.2", - "node-sass": "npm:dart-sass@^1.25.0", + "node-sass": "npm:sass@^1.51.0", "postcss-comment": "^2.0.0", "query-string": "^7.1.1", "uview-ui": "^1.8.4", diff --git a/src/common/util.js b/src/common/util.js index 9a23fbbe..bac71826 100644 --- a/src/common/util.js +++ b/src/common/util.js @@ -246,6 +246,10 @@ export const $permissions = flag => { return buttons.some(b => b.id == flag || b.permission == flag) } else return false } +export const $copy = any =>{ + if(any)return JSON.parse(JSON.stringify(any)) + else return any +} export default { dict, confirm, @@ -290,5 +294,6 @@ export default { dayjs, idCardNoUtil, qs, - $permissions + $permissions, + $copy } diff --git a/src/components/AiPagePicker.vue b/src/components/AiPagePicker.vue index b335faea..6326e34a 100644 --- a/src/components/AiPagePicker.vue +++ b/src/components/AiPagePicker.vue @@ -21,14 +21,16 @@ export default { type: {default: "resident"}, nodeKey: {default: "idNumber"}, selected: {default: () => []}, - placeholder: {default: "选择人员"} + placeholder: {default: "选择人员"}, + ops: {default: () => ({})} }, data() { return { configList: { resident: {url: "/components/pages/selectResident", label: "name"}, gird: {url: "/components/pages/selectGird", label: "girdName"}, - party: {url: "/components/pages/selectParty", label: "name"} + party: {url: "/components/pages/selectParty", label: "name"}, + custom: {...this.ops} }, } }, @@ -46,7 +48,7 @@ export default { let {config, nodeKey} = this, selected = this.value || this.selected?.map(e => e[nodeKey]) uni.$once('pagePicker:' + this.type, data => { - console.log('发送',data) + console.log('发送', data) this.$emit("update:selected", data) this.$emit("select", data) this.$emit("change", data.map(e => e[nodeKey])) diff --git a/src/saas/AppGridManagement/AddGird.vue b/src/saas/AppGridManagement/AddGird.vue index 6ca2ad84..c0c9fc11 100644 --- a/src/saas/AppGridManagement/AddGird.vue +++ b/src/saas/AppGridManagement/AddGird.vue @@ -1,18 +1,5 @@