|
@@ -838,7 +838,7 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "操作",
|
|
|
- width: 140,
|
|
|
+ width: 180,
|
|
|
align: "center",
|
|
|
fixed: "right",
|
|
|
},
|
|
@@ -857,6 +857,17 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "修改",
|
|
|
+ type: "primary",
|
|
|
+ text: true,
|
|
|
+ },
|
|
|
+ el: "button",
|
|
|
+ click() {
|
|
|
+ update(row);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "认领客户",
|
|
|
type: "primary",
|
|
|
text: true,
|
|
@@ -946,6 +957,7 @@ const formConfig = computed(() => {
|
|
|
itemWidth: 100,
|
|
|
data: userList.value,
|
|
|
clearable: true,
|
|
|
+ disabled: modalType.value == "edit",
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
@@ -1575,6 +1587,25 @@ const changeSearchTag = (val) => {
|
|
|
addSearchTag.value = "";
|
|
|
};
|
|
|
|
|
|
+const update = (row) => {
|
|
|
+ modalType.value = "edit";
|
|
|
+ loadingOperation.value = true;
|
|
|
+ proxy.post("/customer/detail", { id: row.id }).then((res) => {
|
|
|
+ if (res.tag) {
|
|
|
+ res.tags = res.tag.split(",");
|
|
|
+ } else {
|
|
|
+ res.tags = [];
|
|
|
+ }
|
|
|
+ formData.data = res;
|
|
|
+ getCityData(formData.data.countryId, "20");
|
|
|
+ if (formData.data.provinceId) {
|
|
|
+ getCityData(formData.data.provinceId, "30");
|
|
|
+ }
|
|
|
+ loadingOperation.value = false;
|
|
|
+ dialogVisible.value = true;
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
const table = ref(null);
|
|
|
onMounted(() => {
|
|
|
watch(
|