|
@@ -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) {
|