-
情报语义分析{{ title }}
+
情报语义分析{{ title }}
- 保存
+ 保存
关闭
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/src/views/backOfficeSystem/fourColorManage/tagManage/components/editAddForm.vue b/src/views/backOfficeSystem/fourColorManage/tagManage/components/editAddForm.vue
index 4a38cdf..3b927ac 100644
--- a/src/views/backOfficeSystem/fourColorManage/tagManage/components/editAddForm.vue
+++ b/src/views/backOfficeSystem/fourColorManage/tagManage/components/editAddForm.vue
@@ -23,15 +23,7 @@
import FormMessage from '@/components/aboutTable/FormMessage.vue'
import { qcckGet, qcckPost, qcckPut } from "@/api/qcckApi.js";
import * as rule from "@/utils/rules.js";
-import {
- ref,
- defineExpose,
- reactive,
- onMounted,
- defineEmits,
- getCurrentInstance,
- nextTick
-} from "vue";
+import { ref, defineExpose, reactive, onMounted, defineEmits, getCurrentInstance, nextTick } from "vue";
const emit = defineEmits(["updateDate"]);
const props = defineProps({
dic: Object
@@ -39,100 +31,18 @@ const props = defineProps({
const { proxy } = getCurrentInstance();
const dialogForm = ref(false); //弹窗
const formData = ref([
- {
- text: "组合标签名称",
- prop: "bqmc",
- type: "input",
- required: true
- },
- {
- text: "身份标签大类",
- prop: "sfbqdl",
- type: "select",
- optionList: [
- { label: "是", value: "1" },
- { label: "否", value: "0" }
- ]
- },
- {
- text: "身份标签细类",
- prop: "sfbqxl",
- type: "select",
- optionList: [
- { label: "是", value: "1" },
- { label: "否", value: "0" }
- ]
- },
- {
- text: "身份标签等级",
- prop: "sfbqdj",
- type: "select",
- optionList: [
- { label: "是", value: "1" },
- { label: "否", value: "0" }
- ]
- },
- {
- text: "身份标签颜色",
- prop: "sfbqys",
- type: "select",
- optionList: [
- { label: "是", value: "1" },
- { label: "否", value: "0" }
- ]
- },
- {
- text: "行为标签大类",
- prop: "xwbqdl",
- type: "select",
- optionList: [
- { label: "是", value: "1" },
- { label: "否", value: "0" }
- ]
- },
- {
- text: "行为标签细类",
- prop: "xwbqdl",
- type: "select",
- optionList: [
- { label: "是", value: "1" },
- { label: "否", value: "0" }
- ]
- },
- {
- text: "行为标签等级",
- prop: "sfbqdj",
- type: "select",
- value: "",
- optionList: [
- { label: "是", value: "1" },
- { label: "否", value: "0" }
- ]
- },
- {
- text: "行为标签颜色",
- prop: "xwbqys",
- type: "select",
- optionList: [
- { label: "是", value: "1" },
- { label: "否", value: "0" }
- ]
- },
- {
- text: "身份标签积分",
- prop: "sfbqjf",
- type: "input"
- },
- {
- text: "行为标签积分",
- prop: "xwbqjf",
- type: "input"
- },
- {
- text: "组合标签积分",
- prop: "zhbqjf",
- type: "input"
- }
+ { label: "组合标签名称", prop: "bqmc", type: "input", },
+ { label: "身份标签大类", prop: "sfbqdl", type: "select", options: [] },
+ { label: "身份标签细类", prop: "sfbqxl", type: "select", options: [] },
+ { label: "身份标签等级", prop: "sfbqdj", type: "select", options: [] },
+ { label: "身份标签颜色", prop: "sfbqys", type: "select", options: [] },
+ { label: "行为标签大类", prop: "xwbqdl", type: "select", options: [] },
+ { label: "行为标签细类", prop: "xwbqdl", type: "select", options: [] },
+ { label: "行为标签等级", prop: "sfbqdj", type: "select", options: [] },
+ { label: "行为标签颜色", prop: "xwbqys", type: "select", options: [] },
+ { label: "身份标签积分", prop: "sfbqjf", type: "input" },
+ { label: "行为标签积分", prop: "xwbqjf", type: "input" },
+ { label: "组合标签积分", prop: "zhbqjf", type: "input" }
]);
const listQuery = ref({
sfbqdj: []
@@ -146,40 +56,31 @@ const rules = reactive({
const editpeo = ref();
onMounted(() => {});
// 初始化数据
-const init = (type, row, lx) => {
+const init = (type, row,) => {
dialogForm.value = true;
- title.value = row ? "编辑" : "新增";
+ title.value = type == 'add' ? "新增" : "编辑";
if (row) getDataById(row.id);
};
// 根据id查询详情
const getDataById = (id) => {
- let url = "";
- qcckGet({ id }, url).then((res) => {
- listQuery.value = res;
- nextTick(() => {
- editpeo.value.getList();
- });
- });
-};
-const changeInput = (val) => {
- listQuery.value = {
- [Object.keys(val)]: val[Object.keys(val)],
- ...listQuery.value
- };
- console.log(listQuery.value, "formData.value");
+ // qcckGet({}, '/mosty-gsxt/tbGsxtBqgl/'+id).then((res) => {
+ // listQuery.value = res;
+ // });
};
+
// 提交
const submit = () => {
- elform.value.submit(handleInfoFn);
-};
-const handleInfoFn = (val) => {
- qcckPost(val, "url")
- .then((res) => {
- proxy.$message({ type: "success", message: title.value + "成功" });
- close();
- })
- .catch(() => {});
+ elform.value.submit((data)=>{
+ // let url = title.value == "新增" ? '/mosty-gsxt/tbGsxtBqgl/save':'/mosty-gsxt/tbGsxtBqgl/update';
+ // let params = { ...data }
+ // qcckPost(params, url).then((res) => {
+ // proxy.$message({ type: "success", message: title.value + "成功" });
+ // emit("updateDate");
+ // close();
+ // }).catch(() => {});
+ });
};
+
// 关闭
const close = () => {
listQuery.value = {};