|
|
@@ -109,8 +109,17 @@ export default {
|
|
|
methods: {
|
|
|
/*************************************************一览界面操作start*******************************************/
|
|
|
/**
|
|
|
+ * @desc : 分页变化
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2022年12月13日09:56:24
|
|
|
+ */
|
|
|
+ pageSizeChange(pageInfo) {
|
|
|
+ this.pageInfo = pageInfo
|
|
|
+ this.getData() // 查询数据
|
|
|
+ },
|
|
|
+ /**
|
|
|
* @desc : 获取数据
|
|
|
- * @author : 沈博
|
|
|
+ * @author : 周兴
|
|
|
* @date : 2022年12月13日15:04:17
|
|
|
*/
|
|
|
getData() {
|
|
|
@@ -128,7 +137,7 @@ export default {
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 设置查询参数
|
|
|
- * @author : 沈博
|
|
|
+ * @author : 周兴
|
|
|
* @date : 2022年12月13日15:36:15
|
|
|
*/
|
|
|
setSearchParams() {
|
|
|
@@ -141,16 +150,8 @@ export default {
|
|
|
return params
|
|
|
},
|
|
|
/**
|
|
|
- * @desc : 分页变化
|
|
|
- * @author : 沈博
|
|
|
- * @date : 2022年12月13日09:56:24
|
|
|
- */
|
|
|
- pageSizeChange() {
|
|
|
-
|
|
|
- },
|
|
|
- /**
|
|
|
* @desc : switch停用启用
|
|
|
- * @author : 沈博
|
|
|
+ * @author : 周兴
|
|
|
* @date : 2022年12月13日15:38:58
|
|
|
*/
|
|
|
onSwitchChange(param) {
|
|
|
@@ -163,34 +164,17 @@ export default {
|
|
|
/*************************************************一览界面操作end*********************************************/
|
|
|
/*************************************************新建/编辑start*********************************************/
|
|
|
/**
|
|
|
- * @desc : 给参数赋值
|
|
|
- * @author :沈博
|
|
|
- * @date : 2022年12月13日10:56:56
|
|
|
- */
|
|
|
- setParams(arg) {
|
|
|
-
|
|
|
- },
|
|
|
- /**
|
|
|
- * @desc : 保存数据
|
|
|
- * @author :沈博
|
|
|
- * @date : 2022年12月13日10:56:56
|
|
|
- */
|
|
|
- saveData(arg) {
|
|
|
-
|
|
|
- },
|
|
|
- /**
|
|
|
* @desc : 新建按钮点击事件
|
|
|
- * @author : 沈博
|
|
|
+ * @author : 周兴
|
|
|
* @date : 2022年12月13日10:28:36
|
|
|
*/
|
|
|
add() {
|
|
|
this.modalTitle = this.setTitle(this.$config.formMode.add, 'fty') // 给modal标题赋值
|
|
|
this.editAddModal = true
|
|
|
},
|
|
|
-
|
|
|
/**
|
|
|
* @desc : 编辑按钮事件
|
|
|
- * @author : 沈博
|
|
|
+ * @author : 周兴
|
|
|
* @date : 2022年12月13日10:13:23
|
|
|
*/
|
|
|
edit(rows) {
|
|
|
@@ -205,8 +189,32 @@ export default {
|
|
|
this.editAddModal = true
|
|
|
},
|
|
|
/**
|
|
|
+ * @desc : 给参数赋值
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2022年12月13日10:56:56
|
|
|
+ */
|
|
|
+ setParams() {
|
|
|
+ this.params = this.formData
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @desc : 保存数据
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2022年12月13日10:56:56
|
|
|
+ */
|
|
|
+ saveData() {
|
|
|
+ return this.excute(this.$service.factoryService, this.$service.factoryService.insert, this.params);
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @desc : 清空数据
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2023/1/3 19:58
|
|
|
+ */
|
|
|
+ clear(){
|
|
|
+ this.formData = {}
|
|
|
+ },
|
|
|
+ /**
|
|
|
* @desc : 通过id查询
|
|
|
- * @author : 沈博
|
|
|
+ * @author : 周兴
|
|
|
* @date : 2022/5/5 13:15
|
|
|
*/
|
|
|
detail(id) {
|