Эх сурвалжийг харах

添加奖励对象备注字段

lcl 6 сар өмнө
parent
commit
bc41949980

+ 6 - 0
src/views/pri/priPrizeObjectTable/components/add/index.vue

@@ -39,6 +39,7 @@ let UpdateForm = ref({
   tableEnName: "", //查询表
   prizeListIds: "", //指定奖励配置
   selectField: "", //取值字段
+  note: "", //备注
 
 
 });
@@ -79,6 +80,7 @@ const submit = async (formEl) => {
           tableEnName: "", //查询表
           prizeListIds: "", //指定奖励配置
           selectField: "", //取值字段
+          note: "", //备注
 
         };
         // 关闭新增弹窗;
@@ -138,6 +140,7 @@ const closeVisible = () => {
     tableEnName: "", //查询表
     prizeListIds: "", //指定奖励配置
     selectField: "", //取值字段
+    note: "", //备注
 
   };
   closeFn();
@@ -174,6 +177,9 @@ const isFullscreen = ref(false)
       el-form-item(label='取值字段' prop="selectField")
         el-input(v-model='UpdateForm.selectField' autocomplete='off'
           placeholder="请输入取值字段")
+      el-form-item(label='备注' prop="note")
+        el-input(v-model='UpdateForm.note' autocomplete='off'
+          placeholder="请输入备注")
 
     .flex.justify-end
       el-button(

+ 6 - 0
src/views/pri/priPrizeObjectTable/components/updatePriPrizeObjectTable/index.vue

@@ -36,6 +36,7 @@ const UpdateForm: any = ref({
   id: null, //ID
   prizeListIds: "", //指定奖励配置
   selectField: "", //取值字段
+  note: "", //备注
 
 });
 
@@ -71,6 +72,7 @@ const submit = async (formEl) => {
           id: null, //ID
           prizeListIds: "", //指定奖励配置
           selectField: "", //取值字段
+          note: "", //备注
 
         };
         // 关闭修改弹窗;
@@ -127,6 +129,7 @@ const closeUpdatePriPrizeObjectTableVisible = () => {
     id: null, //ID
     prizeListIds: "", //指定奖励配置
     selectField: "", //取值字段
+    note: "", //备注
 
   };
   closeFn();
@@ -159,6 +162,9 @@ const isFullscreen = ref(false)
       el-form-item(label='取值字段' prop="selectField")
         el-input(v-model='UpdateForm.selectField' autocomplete='off'
           placeholder="请输入取值字段")
+      el-form-item(label='备注' prop="note")
+        el-input(v-model='UpdateForm.note' autocomplete='off'
+          placeholder="请输入备注")
 
     .flex.justify-end
       el-button(

+ 17 - 22
src/views/pri/priPrizeObjectTable/hook.tsx

@@ -13,12 +13,12 @@ export function usePriPrizeObjectTable() {
 
     UrlList = await getGroupUrl(["prizeSet"]);
     onSearch(ruleFormRef.value);
-  projectIdQuery();
+    projectIdQuery();
 
   });
   let form = reactive({
-  projectId:null, //项目
-  tableEnName:"", //查询表
+    projectId: null, //项目
+    tableEnName: "", //查询表
 
 
   });
@@ -55,18 +55,13 @@ export function usePriPrizeObjectTable() {
       minWidth: 200
     },
     {
-      label: "指定奖励配置",
-      prop: "prizeListIds",
-      minWidth: 200
-    },
-    {
-      label: "查询表",
-      prop: "tableEnName",
+      label: "备注",
+      prop: "note",
       minWidth: 200
     },
     {
-      label: "ID",
-      prop: "id",
+      label: "指定奖励配置",
+      prop: "prizeListIds",
       minWidth: 200
     },
 
@@ -131,11 +126,11 @@ export function usePriPrizeObjectTable() {
       }
     })
   }
-    // 项目选项数据
-    const projectIdOptionList = ref([]);
+  // 项目选项数据
+  const projectIdOptionList = ref([]);
   //获取项目数据
   async function projectIdQuery() {
-    const { status, data }: any = await http.Request({ method: UrlList.prizeSet.prigetPriProjectDic.method, url: UrlList.prizeSet.prigetPriProjectDic.url, params: { } });
+    const { status, data }: any = await http.Request({ method: UrlList.prizeSet.prigetPriProjectDic.method, url: UrlList.prizeSet.prigetPriProjectDic.url, params: {} });
     if (status === 1) {
       projectIdOptionList.value = data.records;
     }
@@ -143,12 +138,12 @@ export function usePriPrizeObjectTable() {
 
 
 
-    //跳转到奖励发放对象字段
+  //跳转到奖励发放对象字段
   function linkToPriPrizeObjectField(row) {
     router.push({ path: '../../pri/priPrizeObjectField/index', query: { objectTableId: row.id } });
   }
 
-    // 删除
+  // 删除
   function handleDelete(row) {
     ElMessageBox.confirm(
       `是否删除该奖励发放对象表? `,
@@ -168,20 +163,20 @@ export function usePriPrizeObjectTable() {
         onSearch(ruleFormRef.value);
       } else {
         ElMessageBox.alert(msg, "提示", {
-        confirmButtonText: "关闭",
-        type: "warning"
-      });
+          confirmButtonText: "关闭",
+          type: "warning"
+        });
       };
     })
   }
 
-    // 新增
+  // 新增
   const addVisible = ref(false);
   function handleAdd() {
     addVisible.value = true;
   };
 
-    // 修改
+  // 修改
   const editUpdatePriPrizeObjectTableVisible = ref(false);
   const editUpdatePriPrizeObjectTableFormData = ref({});
   function handleUpdatePriPrizeObjectTable(row) {