refactor: define setup in script label
This commit is contained in:
@@ -170,7 +170,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { ref, reactive, onMounted, createVNode } from 'vue';
|
import { ref, reactive, onMounted, createVNode } from 'vue';
|
||||||
import { SearchOutlined, ExclamationCircleOutlined, ExportOutlined } from '@ant-design/icons-vue';
|
import { SearchOutlined, ExclamationCircleOutlined, ExportOutlined } from '@ant-design/icons-vue';
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
@@ -179,13 +179,6 @@ import { queryProductList } from "../api/product";
|
|||||||
import { queryCustomerOption } from "../api/customer";
|
import { queryCustomerOption } from "../api/customer";
|
||||||
import { message, Modal } from 'ant-design-vue';
|
import { message, Modal } from 'ant-design-vue';
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
SearchOutlined,
|
|
||||||
ExportOutlined
|
|
||||||
},
|
|
||||||
setup() {
|
|
||||||
|
|
||||||
// 合同表格字段
|
// 合同表格字段
|
||||||
const columns = [{
|
const columns = [{
|
||||||
title: '合同编号',
|
title: '合同编号',
|
||||||
@@ -642,45 +635,6 @@ export default {
|
|||||||
pagination.current = 1,
|
pagination.current = 1,
|
||||||
pagination.total = undefined
|
pagination.total = undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
|
||||||
columns,
|
|
||||||
productColumns,
|
|
||||||
productListColumns,
|
|
||||||
rules,
|
|
||||||
data,
|
|
||||||
onSelectedConteactIds,
|
|
||||||
onSelectedProductIds,
|
|
||||||
onSearch,
|
|
||||||
contract,
|
|
||||||
title,
|
|
||||||
visible,
|
|
||||||
disabled,
|
|
||||||
productListVisible,
|
|
||||||
operation,
|
|
||||||
onCreate,
|
|
||||||
onEdit,
|
|
||||||
contractFormRef,
|
|
||||||
onSave,
|
|
||||||
onCancel,
|
|
||||||
onDelete,
|
|
||||||
onCancelProductList,
|
|
||||||
getContractList,
|
|
||||||
keyWord,
|
|
||||||
onConfirm,
|
|
||||||
onAddProduct,
|
|
||||||
getCustomerOption,
|
|
||||||
changeCustomerOption,
|
|
||||||
calculatedAmount,
|
|
||||||
delProduct,
|
|
||||||
pagination,
|
|
||||||
onPagination,
|
|
||||||
onExport,
|
|
||||||
onContracts,
|
|
||||||
onPaginationProduct,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -160,7 +160,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { ref, reactive, onMounted, createVNode } from 'vue';
|
import { ref, reactive, onMounted, createVNode } from 'vue';
|
||||||
import { SearchOutlined, ExclamationCircleOutlined, ExportOutlined, MailTwoTone } from '@ant-design/icons-vue';
|
import { SearchOutlined, ExclamationCircleOutlined, ExportOutlined, MailTwoTone } from '@ant-design/icons-vue';
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
@@ -168,13 +168,7 @@ import { createCustomer, updateCustomer, sendMailToCustomer, queryCustomerList,
|
|||||||
import { message, Modal } from 'ant-design-vue';
|
import { message, Modal } from 'ant-design-vue';
|
||||||
import regionData from '../assets/region';
|
import regionData from '../assets/region';
|
||||||
|
|
||||||
export default {
|
// 表格字段
|
||||||
components: {
|
|
||||||
SearchOutlined,
|
|
||||||
ExportOutlined,
|
|
||||||
MailTwoTone
|
|
||||||
},
|
|
||||||
setup() {
|
|
||||||
const columns = [{
|
const columns = [{
|
||||||
title: '客户名称',
|
title: '客户名称',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
@@ -479,41 +473,6 @@ export default {
|
|||||||
const selectedOptions = (value) => {
|
const selectedOptions = (value) => {
|
||||||
customer.region = value
|
customer.region = value
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
|
||||||
data,
|
|
||||||
columns,
|
|
||||||
rules,
|
|
||||||
onSearch,
|
|
||||||
visible,
|
|
||||||
disabled,
|
|
||||||
onSelectChange,
|
|
||||||
onSearch,
|
|
||||||
customer,
|
|
||||||
title,
|
|
||||||
visible,
|
|
||||||
operation,
|
|
||||||
onCustomers,
|
|
||||||
onCreate,
|
|
||||||
onEdit,
|
|
||||||
customerFormRef,
|
|
||||||
onSave,
|
|
||||||
onCancel,
|
|
||||||
onDelete,
|
|
||||||
getCustomerList,
|
|
||||||
onExport,
|
|
||||||
keyWord,
|
|
||||||
options,
|
|
||||||
onPagination,
|
|
||||||
pagination,
|
|
||||||
selectedOptions,
|
|
||||||
mail,
|
|
||||||
visibleMail,
|
|
||||||
onMail,
|
|
||||||
onSend
|
|
||||||
};
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -102,7 +102,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { QuestionCircleTwoTone } from '@ant-design/icons-vue'
|
import { QuestionCircleTwoTone } from '@ant-design/icons-vue'
|
||||||
import * as echarts from "echarts";
|
import * as echarts from "echarts";
|
||||||
import { reactive, ref, onBeforeMount } from 'vue';
|
import { reactive, ref, onBeforeMount } from 'vue';
|
||||||
@@ -110,12 +110,6 @@ import { getSummary } from "../api/dashboard";
|
|||||||
import { getSubscribeInfo } from '../api/subscribe';
|
import { getSubscribeInfo } from '../api/subscribe';
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
QuestionCircleTwoTone
|
|
||||||
},
|
|
||||||
setup() {
|
|
||||||
|
|
||||||
const daysRange = ref(7);
|
const daysRange = ref(7);
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@@ -222,15 +216,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
|
||||||
data,
|
|
||||||
daysRange,
|
|
||||||
initChart,
|
|
||||||
subscribeInfo,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -8,19 +8,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import router from '../router/index';
|
import router from '../router/index';
|
||||||
|
|
||||||
export default {
|
|
||||||
setup() {
|
|
||||||
const refresh = () => {
|
const refresh = () => {
|
||||||
router.push('/')
|
router.push('/')
|
||||||
}
|
}
|
||||||
return {
|
|
||||||
refresh
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
+23
-61
@@ -2,8 +2,8 @@
|
|||||||
<a-layout has-sider>
|
<a-layout has-sider>
|
||||||
<a-layout-sider class="layout-sider" width="150">
|
<a-layout-sider class="layout-sider" width="150">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<div><img src="../assets/logo.svg" style="width: 32px;height: 32px;filter: drop-shadow(2px 2px 6px #79bbff);" />
|
<div><img src="../assets/logo.svg"
|
||||||
</div>
|
style="width: 32px;height: 32px;filter: drop-shadow(2px 2px 6px #79bbff);" /></div>
|
||||||
<div v-if="collapsed == false" class="title"><b>Z</b>O<b style="color: #1283FF;">C</b>RM</div>
|
<div v-if="collapsed == false" class="title"><b>Z</b>O<b style="color: #1283FF;">C</b>RM</div>
|
||||||
</div>
|
</div>
|
||||||
<a-menu style="border-right: none;width: 149px;" v-model:selectedKeys="selectedKeys" mode="inline">
|
<a-menu style="border-right: none;width: 149px;" v-model:selectedKeys="selectedKeys" mode="inline">
|
||||||
@@ -32,16 +32,20 @@
|
|||||||
<BellFilled style="font-size: 18px;" />
|
<BellFilled style="font-size: 18px;" />
|
||||||
</template>
|
</template>
|
||||||
</a-avatar>
|
</a-avatar>
|
||||||
<a-avatar shape="square" style="color: #476FFF; background-color: #ccd6fa" :size="20" v-else>
|
<a-avatar shape="square"
|
||||||
|
style="color: #476FFF; background-color: #ccd6fa" :size="20" v-else>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<BellFilled style="font-size: 18px;" />
|
<BellFilled style="font-size: 18px;" />
|
||||||
</template>
|
</template>
|
||||||
</a-avatar>
|
</a-avatar>
|
||||||
<div v-if="item.status == 1" style="color: #717171;"> {{ item.content }}</div>
|
<div v-if="item.status == 1" style="color: #717171;">
|
||||||
|
{{ item.content }}</div>
|
||||||
<div v-else> {{ item.content }}</div>
|
<div v-else> {{ item.content }}</div>
|
||||||
</div>
|
</div>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<span v-if="item.status == 2" style="color: black;">{{ formatDate(item.created) }}</span>
|
<span v-if="item.status == 2" style="color: black;">{{
|
||||||
|
formatDate(item.created)
|
||||||
|
}}</span>
|
||||||
<span v-else>{{ formatDate(item.created) }}</span>
|
<span v-else>{{ formatDate(item.created) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
@@ -49,8 +53,8 @@
|
|||||||
</a-list>
|
</a-list>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 10px;display: flex;align-items: center;justify-content: center;">
|
<div style="margin-top: 10px;display: flex;align-items: center;justify-content: center;">
|
||||||
<a-button v-if="data.noticeList.length != 0" @click="onDeleteNotice" type="primary" style="width: 92%;"
|
<a-button v-if="data.noticeList.length != 0" @click="onDeleteNotice" type="primary"
|
||||||
shape="round">清空全部 {{ data.noticeList.length }} 条通知</a-button>
|
style="width: 92%;" shape="round">清空全部 {{ data.noticeList.length }} 条通知</a-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<a-badge :count="data.noticeCount">
|
<a-badge :count="data.noticeCount">
|
||||||
@@ -72,8 +76,8 @@
|
|||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<!-- 注销账号弹出框 -->
|
<!-- 注销账号弹出框 -->
|
||||||
<a-modal v-model:visible="visible" title="注销账号" @ok="onConfirm" @cancel="onCancel" cancelText="取消" okText="注销"
|
<a-modal v-model:visible="visible" title="注销账号" @ok="onConfirm" @cancel="onCancel" cancelText="取消"
|
||||||
width="400px" :centered="true">
|
okText="注销" width="400px" :centered="true">
|
||||||
<a-alert message="账号注销后,会清空账号相关的所有数据。" type="warning" show-icon /><br />
|
<a-alert message="账号注销后,会清空账号相关的所有数据。" type="warning" show-icon /><br />
|
||||||
<a-form :model="user" layout="vertical" @finish="onSubmit" :rules="rules">
|
<a-form :model="user" layout="vertical" @finish="onSubmit" :rules="rules">
|
||||||
<a-form-item name="email">
|
<a-form-item name="email">
|
||||||
@@ -81,14 +85,14 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item name="code">
|
<a-form-item name="code">
|
||||||
<a-input v-model:value="user.code" style="width: 55%;" placeholder="验证码" />
|
<a-input v-model:value="user.code" style="width: 55%;" placeholder="验证码" />
|
||||||
<a-button @click="onGetCode" style="width: 40%;float: right;" :loading="loading" :disabled="disabled">
|
<a-button @click="onGetCode" style="width: 40%;float: right;" :loading="loading"
|
||||||
|
:disabled="disabled">
|
||||||
{{ buttonText }}</a-button>
|
{{ buttonText }}</a-button>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</a-layout-header>
|
</a-layout-header>
|
||||||
<a-layout-content
|
<a-layout-content :style="{ margin: '10px', background: '#fff', overflow: 'initial', borderRadius: '5px' }">
|
||||||
:style="{ margin: '10px', background: '#fff', overflow: 'initial', borderRadius: '5px' }">
|
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<router-view v-slot="{ Component }">
|
<router-view v-slot="{ Component }">
|
||||||
<component :is="Component" />
|
<component :is="Component" />
|
||||||
@@ -99,7 +103,7 @@
|
|||||||
</a-layout>
|
</a-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { reactive, ref, onBeforeMount } from 'vue';
|
import { reactive, ref, onBeforeMount } from 'vue';
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { useStore } from '../store/index';
|
import { useStore } from '../store/index';
|
||||||
@@ -110,50 +114,36 @@ import { DashboardOutlined, SmileOutlined, MehOutlined, ShoppingOutlined, Profil
|
|||||||
import { QuestionCircleFilled, BellFilled, ExclamationCircleOutlined, LogoutOutlined } from '@ant-design/icons-vue';
|
import { QuestionCircleFilled, BellFilled, ExclamationCircleOutlined, LogoutOutlined } from '@ant-design/icons-vue';
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
DashboardOutlined,
|
|
||||||
SmileOutlined,
|
|
||||||
MehOutlined,
|
|
||||||
ShoppingOutlined,
|
|
||||||
ProfileOutlined,
|
|
||||||
CrownOutlined,
|
|
||||||
QuestionCircleFilled,
|
|
||||||
BellFilled,
|
|
||||||
ExclamationCircleOutlined,
|
|
||||||
LogoutOutlined
|
|
||||||
},
|
|
||||||
setup() {
|
|
||||||
// 菜单选项
|
// 菜单选项
|
||||||
const menuItem = reactive([{
|
const menuItem = reactive([{
|
||||||
key: "dashboard",
|
key: "dashboard",
|
||||||
to: "/dashboard",
|
to: "/dashboard",
|
||||||
icon: "dashboard-outlined",
|
icon: DashboardOutlined,
|
||||||
name: "仪表盘"
|
name: "仪表盘"
|
||||||
}, {
|
}, {
|
||||||
key: "customer",
|
key: "customer",
|
||||||
to: "/customer",
|
to: "/customer",
|
||||||
icon: "smile-outlined",
|
icon: SmileOutlined,
|
||||||
name: "客户"
|
name: "客户"
|
||||||
}, {
|
}, {
|
||||||
key: "contract",
|
key: "contract",
|
||||||
to: "/contract",
|
to: "/contract",
|
||||||
icon: "meh-outlined",
|
icon: MehOutlined,
|
||||||
name: "合同"
|
name: "合同"
|
||||||
}, {
|
}, {
|
||||||
key: "product",
|
key: "product",
|
||||||
to: "/product",
|
to: "/product",
|
||||||
icon: "shopping-outlined",
|
icon: ShoppingOutlined,
|
||||||
name: "产品"
|
name: "产品"
|
||||||
}, {
|
}, {
|
||||||
key: "config",
|
key: "config",
|
||||||
to: "/config",
|
to: "/config",
|
||||||
icon: "profile-outlined",
|
icon: ProfileOutlined,
|
||||||
name: "配置"
|
name: "配置"
|
||||||
}, {
|
}, {
|
||||||
key: "subscribe",
|
key: "subscribe",
|
||||||
to: "/subscribe",
|
to: "/subscribe",
|
||||||
icon: "crown-outlined",
|
icon: CrownOutlined,
|
||||||
name: "订阅"
|
name: "订阅"
|
||||||
}])
|
}])
|
||||||
|
|
||||||
@@ -327,34 +317,6 @@ export default {
|
|||||||
disabled.value = false
|
disabled.value = false
|
||||||
modalFormRef.value.resetFields()
|
modalFormRef.value.resetFields()
|
||||||
visible.value = false
|
visible.value = false
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
|
||||||
menuItem,
|
|
||||||
rules,
|
|
||||||
selectedKeys,
|
|
||||||
collapsed,
|
|
||||||
user,
|
|
||||||
visible,
|
|
||||||
visibleLogo,
|
|
||||||
loading,
|
|
||||||
disabled,
|
|
||||||
buttonText,
|
|
||||||
onUserAvatar,
|
|
||||||
onLogout,
|
|
||||||
onGetCode,
|
|
||||||
onConfirm,
|
|
||||||
onNotice,
|
|
||||||
onReadNotice,
|
|
||||||
noticeCount,
|
|
||||||
onDeleteNotice,
|
|
||||||
onCancel,
|
|
||||||
store,
|
|
||||||
formatDate,
|
|
||||||
data,
|
|
||||||
toDocs
|
|
||||||
};
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -24,10 +24,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
export default {
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
+1
-18
@@ -31,7 +31,7 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { UserOutlined, LockOutlined } from '@ant-design/icons-vue';
|
import { UserOutlined, LockOutlined } from '@ant-design/icons-vue';
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
@@ -39,12 +39,6 @@ import { userLogin } from '../api/user';
|
|||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
import { initData } from '../api/common';
|
import { initData } from '../api/common';
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
UserOutlined,
|
|
||||||
LockOutlined,
|
|
||||||
},
|
|
||||||
setup() {
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
// 用户登录
|
// 用户登录
|
||||||
@@ -101,17 +95,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
|
||||||
formData,
|
|
||||||
onLogin,
|
|
||||||
onLoginFailed,
|
|
||||||
forgotPass,
|
|
||||||
toRegister,
|
|
||||||
initSysData,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
+1
-17
@@ -22,14 +22,12 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { ref, reactive } from 'vue';
|
import { ref, reactive } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { userForgotPass, getVerifyCode } from '../api/user'
|
import { userForgotPass, getVerifyCode } from '../api/user'
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
|
|
||||||
export default {
|
|
||||||
setup() {
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
// 重置密码
|
// 重置密码
|
||||||
@@ -106,20 +104,6 @@ export default {
|
|||||||
const onLogin = () => {
|
const onLogin = () => {
|
||||||
router.push("/login")
|
router.push("/login")
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
|
||||||
formData,
|
|
||||||
rules,
|
|
||||||
passFormRef,
|
|
||||||
loading,
|
|
||||||
disabled,
|
|
||||||
buttonText,
|
|
||||||
onSubmit,
|
|
||||||
onGetCode,
|
|
||||||
onLogin,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -107,19 +107,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { ref, reactive, onMounted, createVNode } from 'vue';
|
import { ref, reactive, onMounted, createVNode } from 'vue';
|
||||||
import { SearchOutlined, ExclamationCircleOutlined, ExportOutlined } from '@ant-design/icons-vue';
|
import { SearchOutlined, ExclamationCircleOutlined, ExportOutlined } from '@ant-design/icons-vue';
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import { createProduct, updateProduct, queryProductList, deleteProduct, queryProductInfo, productExport } from '../api/product';
|
import { createProduct, updateProduct, queryProductList, deleteProduct, queryProductInfo, productExport } from '../api/product';
|
||||||
import { message, Modal } from 'ant-design-vue';
|
import { message, Modal } from 'ant-design-vue';
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
SearchOutlined,
|
|
||||||
ExportOutlined
|
|
||||||
},
|
|
||||||
setup() {
|
|
||||||
// 表格字段
|
// 表格字段
|
||||||
const columns = [{
|
const columns = [{
|
||||||
title: '产品名称',
|
title: '产品名称',
|
||||||
@@ -349,33 +343,6 @@ export default {
|
|||||||
const onCancel = () => {
|
const onCancel = () => {
|
||||||
productFormRef.value.resetFields()
|
productFormRef.value.resetFields()
|
||||||
visible.value = false
|
visible.value = false
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
|
||||||
columns,
|
|
||||||
rules,
|
|
||||||
data,
|
|
||||||
onSelectChange,
|
|
||||||
onSearch,
|
|
||||||
product,
|
|
||||||
title,
|
|
||||||
visible,
|
|
||||||
disabled,
|
|
||||||
operation,
|
|
||||||
onProducts,
|
|
||||||
onCreate,
|
|
||||||
onEdit,
|
|
||||||
productFormRef,
|
|
||||||
onSave,
|
|
||||||
onCancel,
|
|
||||||
onDelete,
|
|
||||||
getProductList,
|
|
||||||
onExport,
|
|
||||||
keyWord,
|
|
||||||
pagination,
|
|
||||||
onPagination,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -22,14 +22,12 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { ref, reactive } from 'vue';
|
import { ref, reactive } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { userRegister, getVerifyCode } from '../api/user';
|
import { userRegister, getVerifyCode } from '../api/user';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
|
|
||||||
export default {
|
|
||||||
setup() {
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
// 用户注册
|
// 用户注册
|
||||||
@@ -114,20 +112,6 @@ export default {
|
|||||||
const onLogin = () => {
|
const onLogin = () => {
|
||||||
router.push("/login")
|
router.push("/login")
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
|
||||||
formData,
|
|
||||||
rules,
|
|
||||||
registerFormRef,
|
|
||||||
loading,
|
|
||||||
disabled,
|
|
||||||
buttonText,
|
|
||||||
onRegister,
|
|
||||||
onLogin,
|
|
||||||
onGetCode,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -8,13 +8,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { useStore } from '../store/index';
|
import { useStore } from '../store/index';
|
||||||
|
|
||||||
export default {
|
|
||||||
setup() {
|
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
|
|
||||||
@@ -22,11 +19,6 @@ export default {
|
|||||||
store.selectedKeys = 'subscribe'
|
store.selectedKeys = 'subscribe'
|
||||||
router.push('/subscribe')
|
router.push('/subscribe')
|
||||||
}
|
}
|
||||||
return {
|
|
||||||
onBuy
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@@ -25,7 +25,8 @@
|
|||||||
<div class="content">能力不设限,新功能优先体验</div><br />
|
<div class="content">能力不设限,新功能优先体验</div><br />
|
||||||
<a-button v-if="version == 1 || version == 3" type="primary" size="large" class="btn-buy"
|
<a-button v-if="version == 1 || version == 3" type="primary" size="large" class="btn-buy"
|
||||||
@click="onPay(2)" shape="round" :disabled="disabled">立即购买</a-button>
|
@click="onPay(2)" shape="round" :disabled="disabled">立即购买</a-button>
|
||||||
<a-button v-if="version == 2" type="primary" size="large" class="btn-buy" shape="round">{{ expired
|
<a-button v-if="version == 2" type="primary" size="large" class="btn-buy" shape="round">{{
|
||||||
|
expired
|
||||||
}} 到期</a-button>
|
}} 到期</a-button>
|
||||||
<br />
|
<br />
|
||||||
<div class="subscribe-list" v-for="item in ['客户管理', '合同管理', '产品管理', '仪表盘可体验30天']">
|
<div class="subscribe-list" v-for="item in ['客户管理', '合同管理', '产品管理', '仪表盘可体验30天']">
|
||||||
@@ -41,7 +42,8 @@
|
|||||||
<div class="content">能力不设限,新功能优先体验</div><br />
|
<div class="content">能力不设限,新功能优先体验</div><br />
|
||||||
<a-button v-if="version == 1 || version == 2" type="primary" size="large" class="btn-buy"
|
<a-button v-if="version == 1 || version == 2" type="primary" size="large" class="btn-buy"
|
||||||
@click="onPay(3)" shape="round" :disabled="disabled">立即购买</a-button>
|
@click="onPay(3)" shape="round" :disabled="disabled">立即购买</a-button>
|
||||||
<a-button v-if="version == 3" type="primary" size="large" class="btn-buy" shape="round">{{ expired
|
<a-button v-if="version == 3" type="primary" size="large" class="btn-buy" shape="round">{{
|
||||||
|
expired
|
||||||
}} 到期</a-button>
|
}} 到期</a-button>
|
||||||
<br />
|
<br />
|
||||||
<div class="subscribe-list" v-for="item in ['客户管理', '合同管理', '产品管理', '仪表盘可体验365天']">
|
<div class="subscribe-list" v-for="item in ['客户管理', '合同管理', '产品管理', '仪表盘可体验365天']">
|
||||||
@@ -54,19 +56,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { ref, reactive, onBeforeMount } from 'vue';
|
import { ref, reactive, onBeforeMount } from 'vue';
|
||||||
import { CheckCircleFilled } from '@ant-design/icons-vue';
|
import { CheckCircleFilled } from '@ant-design/icons-vue';
|
||||||
import { subscribePay, getSubscribeInfo } from '../api/subscribe';
|
import { subscribePay, getSubscribeInfo } from '../api/subscribe';
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
CheckCircleFilled
|
|
||||||
},
|
|
||||||
setup() {
|
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
const version = ref(0)
|
const version = ref(0)
|
||||||
@@ -119,23 +115,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
|
||||||
version,
|
|
||||||
expired,
|
|
||||||
onPay,
|
|
||||||
payUrl,
|
|
||||||
visible,
|
|
||||||
disabled,
|
|
||||||
payResult,
|
|
||||||
title,
|
|
||||||
activedClass,
|
|
||||||
buttonText,
|
|
||||||
isClick,
|
|
||||||
subscribeInfo,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user