|
|
@@ -182,5 +182,38 @@ Page({
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 跳转明细
|
|
|
+ * @date : 2024/7/12 15:21
|
|
|
+ * @author : 刘尧
|
|
|
+ */
|
|
|
+ toDetail(e){
|
|
|
+ if(this.data.freeVersionFlag){
|
|
|
+ console.log('toDetail', e);
|
|
|
+ }else{
|
|
|
+ if (e) {
|
|
|
+ let item = null;
|
|
|
+ if (e.currentTarget.dataset.item) {
|
|
|
+ item = e.currentTarget.dataset.item
|
|
|
+ }
|
|
|
+ if (!e.detail) {
|
|
|
+ e.detail = {}
|
|
|
+ }
|
|
|
+ if (item) {
|
|
|
+ e.detail.item = item;
|
|
|
+ }
|
|
|
+ if (e.detail.item) {
|
|
|
+ let button = {
|
|
|
+ formMode: Constants.formMode.edit
|
|
|
+ }
|
|
|
+ e.detail.item.button = button
|
|
|
+ }
|
|
|
+ // 如果name不传递,默认为edit
|
|
|
+ e.detail.name = 'edit'
|
|
|
+ }
|
|
|
+ this.open(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
})
|