Commit 7fa811c8 authored by 李超鹏's avatar 李超鹏

拍照工具3.0优化

parent 4a544690
...@@ -36,21 +36,23 @@ ...@@ -36,21 +36,23 @@
}, },
computed: { computed: {
list() { list() {
return [{ return [
title: '请选择类别', // {
type: 'classifyId', // title: '请选择类别',
data: this.classifyList // type: 'classifyId',
}, // data: this.classifyList
// },
{ {
title: '请选择系统', title: '请选择系统',
type: 'systemId', type: 'systemId',
data: this.systemList data: this.systemList
},
{
title: '请选择品牌',
type: 'brandId',
data: this.brandList
} }
// ,
// {
// title: '请选择品牌',
// type: 'brandId',
// data: this.brandList
// }
] ]
}, },
buttonStyle() { buttonStyle() {
...@@ -123,12 +125,12 @@ ...@@ -123,12 +125,12 @@
break break
case 'systemId': case 'systemId':
this.param = { this.param = {
classifyId: this.param.classifyId, classifyId: this.param.classifyId||'79550af260555cc20afb34146966a2c4', // 默认充电桩
systemId: item.id, systemId: item.id,
brandId: '' brandId: '28ee4e3e6063f2880d8956a013293a7f' // 默认全部品牌
} }
this.selectedAll = false this.selectedAll = true
this.brandList = this.systemList[ikey].child this.brandList = this.systemList[ikey].child
break break
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam // 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam
{ {
"token": "RTOKENeb70458c5502c48838d5e4cf84900767fa010f00", "token": "RTOKEN7dacd53ef75f6015d0c9808ea4136065954e997f",
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb34156c94b32c",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f" "brand_id": "28ee4e3e6063f2880d8956a013293a7f"
......
...@@ -11,6 +11,7 @@ exports.main = async (event, context) => { ...@@ -11,6 +11,7 @@ exports.main = async (event, context) => {
return {error_code:'user_auth',error_msg:"用户没有权限"} return {error_code:'user_auth',error_msg:"用户没有权限"}
} }
// 默认统一规范项 水印根据系统返回
let res = await db.collection("standardV2").aggregate().lookup({ let res = await db.collection("standardV2").aggregate().lookup({
from: 'user_upload_file', from: 'user_upload_file',
let: { let: {
...@@ -29,7 +30,7 @@ exports.main = async (event, context) => { ...@@ -29,7 +30,7 @@ exports.main = async (event, context) => {
}) })
.done(), .done(),
as: 'imageList' as: 'imageList'
}).match({"classify_id": event.classify_id, "system_id": event.system_id, "brand_id": event.brand_id}).limit(100).end() }).match({"classify_id": event.classify_id, "system_id": '79550af260555cc20afb34156c94b32c', "brand_id": event.brand_id}).sort({order: 1}).limit(100).end()
const watermarkC = uniCloud.database().collection("user_watermark").field({'_id': false}) const watermarkC = uniCloud.database().collection("user_watermark").field({'_id': false})
let userWatermark = await watermarkC.where({ let userWatermark = await watermarkC.where({
user_id: user_id, user_id: user_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment