| | |
| | | TQuestion.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem', checkbox: true}, |
| | | {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '问题标题', field: 'content', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '添加时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row, index) { |
| | |
| | | success: function(response) { |
| | | Feng.success("删除成功!"); |
| | | window.parent.TQuestion.table.refresh(); |
| | | TQuestion.table.refresh(); |
| | | }, |
| | | error: function(xhr, status, error) { |
| | | var errorMessage = xhr.responseText ? xhr.responseText : "删除失败!"; |
| | |
| | | }; |
| | | |
| | | $(function () { |
| | | |
| | | const data1 = { |
| | | id:null, |
| | | phone:null, |
| | |
| | | data: JSON.stringify(data1), // 将数据转换为 JSON 字符串 |
| | | success: function(response) { |
| | | Feng.success("添加成功!"); |
| | | TQuestion.table.refresh(); |
| | | // window.parent.TQuestion.table.refresh(); |
| | | TQuestion.phone = ""; |
| | | }, |