|
|
@@ -9,11 +9,12 @@
|
|
|
<!-- 清空条件 -->
|
|
|
<BaseIndexButton right-button="process-clear" ref="clear" name="clear"
|
|
|
@click="open($config.routeUrl.process.clear)"></BaseIndexButton>
|
|
|
- </template>
|
|
|
- <template #right>
|
|
|
<!-- 编辑 -->
|
|
|
<BaseIndexButton right-button="process-edit" ref="edit" name="edit"
|
|
|
- @click="open($config.routeUrl.process,undefined,false)"></BaseIndexButton>
|
|
|
+ @click="open($config.routeUrl.process)"></BaseIndexButton>
|
|
|
+ </template>
|
|
|
+ <template #right>
|
|
|
+
|
|
|
<!-- 新建 -->
|
|
|
<BaseIndexButton right-button="process-add" ref="create" name="create"
|
|
|
@click="open($config.routeUrl.process.add)"></BaseIndexButton>
|
|
|
@@ -28,11 +29,21 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 表格部分 -->
|
|
|
- <card :padding=0 style="margin-top: 1px;padding: 0">
|
|
|
- <DkTable :pageFlag="true" primaryKey="flow-id" :id="'table-'+$options.name" name="table"
|
|
|
- ref="table-select" :data="tableData" :height="tableHeight-15" >
|
|
|
+ <div>
|
|
|
+ <DkTable :id="'table-'+$options.name" ref="table-select" :data="tableData"
|
|
|
+ :page-total="pageInfo.total"
|
|
|
+ :current-page="pageInfo.currentPage"
|
|
|
+ :height="this.tableHeight" primaryKey="flowId"
|
|
|
+ :multiple="false"
|
|
|
+ @pageChange="pageSizeChange">
|
|
|
+ <DkTableColumn field="flowCode"></DkTableColumn>
|
|
|
+ <DkTableColumn field="flowName"></DkTableColumn>
|
|
|
+ <DkTableColumn field="displayNo"></DkTableColumn>
|
|
|
+ <DkTableColumn field="flgValid" type="switch" @on-switch-change="onSwitchChange"
|
|
|
+ :switch-disabled="false"></DkTableColumn>
|
|
|
+ <DkTableColumn field="remarks" width="auto"></DkTableColumn>
|
|
|
</DkTable>
|
|
|
- </card>
|
|
|
+ </div>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -59,8 +70,35 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
- getData() {
|
|
|
- return {"code":200,"message":"操作成功","exception":null,"data":{}}},
|
|
|
+ /**
|
|
|
+ * @desc : 分页变化
|
|
|
+ * @author : 张潇木
|
|
|
+ * @date : 2023/2/3 10:19
|
|
|
+ */
|
|
|
+ pageSizeChange(pageInfo) {
|
|
|
+ this.searchData(pageInfo.currentPage) // 查询数据
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @desc : 获取数据
|
|
|
+ * @author : 张潇木
|
|
|
+ * @date : 2023/2/3 10:20
|
|
|
+ */
|
|
|
+ getData(params) {
|
|
|
+ // 查询数据
|
|
|
+ return this.excute(this.$service.processService, this.$service.processService.selectByCond, params)
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @desc : 停用启用
|
|
|
+ * @author : 张潇木
|
|
|
+ * @date : 2023/2/3 10:54
|
|
|
+ */
|
|
|
+ onSwitchChange(param) {
|
|
|
+ if (param.flgValid) {
|
|
|
+ this.excuteNoParam(this.$service.processService, this.$service.processService.enable, [param.flowId])
|
|
|
+ } else {
|
|
|
+ this.excuteNoParam(this.$service.processService, this.$service.processService.disable, [param.flowId])
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|