| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- const _Http = getApp().globalData.http;
- Component({
- options: {
- addGlobalClass: true
- },
- properties: {
- list: {
- type: Array
- },
- ownertable: {
- type: String
- },
- ownerid: {
- type: String
- },
- changeTotal: {
- type: Function
- },
- disabled: {
- type: Boolean
- }
- },
- data: {
- },
- methods: {
- toDetail(e) {
- const {
- item
- } = e.currentTarget.dataset;
- wx.navigateTo({
- url: `/packageA/setclient/modules/trace/detail/index?data=` + JSON.stringify({
- "sys_datafollowupid": item.sys_datafollowupid,
- "ownertable": this.data.ownertable,
- "ownerid": this.data.ownerid
- }),
- })
- },
- editItem(e) {
- const {
- item
- } = e.currentTarget.dataset;
- wx.navigateTo({
- url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
- });
- },
- deleteItem(e) {
- const {
- item
- } = e.currentTarget.dataset;
- wx.navigateTo({
- url: `/packageA/setclient/modules/trace/list/delete?item=${JSON.stringify({
- "sys_datafollowupid": item.sys_datafollowupid,
- "ownertable": this.data.ownertable,
- "ownerid": this.data.ownerid
- })}`,
- })
- },
- }
- })
|