diff --git a/src/views/engine/engine/index.vue b/src/views/engine/engine/index.vue
index 3608abb..95d80bb 100644
--- a/src/views/engine/engine/index.vue
+++ b/src/views/engine/engine/index.vue
@@ -32,106 +32,59 @@
-
-
-
-
-
-
-
-
+ 新增
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -188,7 +141,7 @@
icon="el-icon-service"
size="mini"
type="text"
- @click="handUpdate(scope.row)">规则维护
+ @click="handUpdate(scope.row.id)">规则维护
@@ -262,37 +215,9 @@ export default {
engine:{
},
- // 弹出层标题
- title: "",
arr:[],
dialogFormVisible:false,
- total:0,
- rules: {
- name: [
- {required: true, message: "规则名称不能为空", trigger: "blur"}
- ],
- type: [
- {required: true, message: "规则类型不能为空", trigger: "change"}
- ],
- engineCode: [
- {required: true, message: "规则编码不能为空", trigger: "blur"}
- ],
- scope: [
- {required: true, message: "规则级别不能为空", trigger: "change"}
- ],
- isActivate: [
- {required: true, message: "是否激活不能为空", trigger: "change"}
- ],
- status: [
- {required: true, message: "规则状态不能为空", trigger: "change"}
- ],
- createBy: [
- {required: true, message: "创建者不能为空", trigger: "blur"}
- ],
- createTime: [
- {required: true, message: "创建时间不能为空", trigger: "blur"}
- ],
- }
+ total:0
};
},
//计算属性 类似于data概念",
@@ -301,41 +226,23 @@ export default {
watch: {},
//方法集合",
methods: {
- /** 提交按钮 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if (this.form.id != null) {
- update(this.form).then(response => {
- this.$modal.msgSuccess("修改成功");
- this.getList();
- this.open = false;
- })
- } else {
- insert(this.form).then(response => {
- this.$modal.msgSuccess("新增成功");
- this.getList();
- this.open = false;
- })
- }
- }
- });
- },
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.engineReq.pageSize = val;
this.findSelectSourceList();
},
- // 取消按钮
- cancel() {
- this.open = false;
- this.reset();
- },
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.engineReq.pageNum = val;
this.findSelectSourceList();
},
+ insert(){
+ this.dialogFormVisible = true
+ insert(this.engine).then(res =>{
+ this.$message.success(res.msg || "添加成功")
+ })
+ this.engine = {}
+ },
findSelectSourceList(){
selectEngineList(this.engineReq).then(res=>{
this.arr=res.data.list;
@@ -347,6 +254,11 @@ export default {
this.$message.success(res.msg || "删除成功")
})
},
+ handUpdate(){
+ update(this.engine).then(res =>{
+ this.$message.success(res.msg || "修改成功")
+ })
+ },
findSelectSourceExport(){
this.download('engine/engine/export', {
...this.engineReq
diff --git a/src/views/etl/switch/index.vue b/src/views/etl/switch/index.vue
index 6d7ff59..a737215 100644
--- a/src/views/etl/switch/index.vue
+++ b/src/views/etl/switch/index.vue
@@ -136,16 +136,16 @@
其他信息
-
-
-
-
-
-
-
-
-
-
+
+
+ {{ dict.label }}
+
+
+
@@ -210,7 +210,10 @@
+ prop="status">
+
+
+
+
+
+ -
+
我要支付
+
+ -
+
支付金额
+
+ 充值100
+ 充值500
+ 充值1000
+ 充值2000
+ 充值5000
+ 自定义
+
+
+ -
+
支付方式
+
+ 支付宝
+ 微信
+
+
+ -
+
支付金额
+
+
+
+
+ 确认支付
+
+
+
+
+
+
+
diff --git a/src/views/task/task/index.vue b/src/views/task/task/index.vue
index 8806ad1..b8fcd94 100644
--- a/src/views/task/task/index.vue
+++ b/src/views/task/task/index.vue
@@ -187,30 +187,30 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -340,6 +340,7 @@ export default {
taskInputReq:{},
taskList:[],
taskInfoList:[],
+ taskInfo:{},
tableList:[],
structureList:[],
};
@@ -350,9 +351,15 @@ export default {
watch: {},
//方法集合",
methods: {
+ //选择数据表改变数据
+ changeTableName(row){
+ console.log(row);
+ this.taskInfo = row;
+ },
+
//查询字段
- findByInputId(row){
- findByInputId(row.id).then(res=>{
+ findByInputId(taskInfo){
+ findByInputId(taskInfo.id).then(res=>{
this.structureList = res.data;
})
@@ -370,9 +377,10 @@ export default {
this.taskInputList();
},
- addTaskInput(){
+
+ addTaskInput(taskInfo){
this.taskInputAdd = false;
- this.findByInputId();
+ this.findByInputId(taskInfo);
this.taskInputFieldAdd = true;
},