LimitPurchaseRule.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  1. <template>
  2. <div class="limit-purchase-rule-container">
  3. <!-- 规则列表区域 -->
  4. <el-card class="rule-list-card">
  5. <template #header>
  6. <div class="card-header">
  7. <span>限购规则列表</span>
  8. <el-button type="primary" size="small" @click="handleCreateRule">
  9. 新建规则
  10. </el-button>
  11. </div>
  12. </template>
  13. <el-table
  14. v-loading="loading.list"
  15. :data="ruleList"
  16. border
  17. style="width: 100%"
  18. >
  19. <el-table-column prop="id" label="ID" width="80" />
  20. <el-table-column prop="name" label="规则名称" min-width="160" />
  21. <el-table-column label="限购地区" min-width="260">
  22. <template #default="scope">
  23. <div v-if="scope.row.regions && scope.row.regions.length">
  24. <el-tag
  25. v-for="(region, index) in scope.row.regions"
  26. :key="index"
  27. type="danger"
  28. size="small"
  29. class="region-tag"
  30. >
  31. {{ formatRegionLabel(region) }}
  32. </el-tag>
  33. </div>
  34. <span v-else class="text-muted">未设置</span>
  35. </template>
  36. </el-table-column>
  37. <el-table-column prop="is_default" label="默认规则" width="100">
  38. <template #default="scope">
  39. <el-tag :type="scope.row.is_default ? 'success' : 'info'" size="small">
  40. {{ scope.row.is_default ? '是' : '否' }}
  41. </el-tag>
  42. </template>
  43. </el-table-column>
  44. <el-table-column prop="status" label="状态" width="100">
  45. <template #default="scope">
  46. <el-tag :type="scope.row.status ? 'success' : 'info'" size="small">
  47. {{ scope.row.status ? '启用' : '停用' }}
  48. </el-tag>
  49. </template>
  50. </el-table-column>
  51. <el-table-column label="操作" width="200" fixed="right">
  52. <template #default="scope">
  53. <el-button type="primary" link size="small" @click="handleEditRule(scope.row)">
  54. 编辑
  55. </el-button>
  56. <el-button type="danger" link size="small" @click="handleDeleteRule(scope.row)">
  57. 删除
  58. </el-button>
  59. </template>
  60. </el-table-column>
  61. </el-table>
  62. <!-- 分页组件 -->
  63. <el-pagination
  64. v-if="pagination.total > 0"
  65. layout="prev, pager, next"
  66. :current-page="pagination.page"
  67. :page-size="pagination.pageSize"
  68. :total="pagination.total"
  69. @current-change="handlePageChange"
  70. style="margin-top: 20px; text-align: right;"
  71. />
  72. </el-card>
  73. <!-- 规则表单弹窗:新建 / 编辑规则基本信息 -->
  74. <el-dialog
  75. :title="ruleForm.id ? '编辑限购规则' : '新建限购规则'"
  76. v-model="ruleDialog.visible"
  77. width="720px"
  78. :close-on-click-modal="false"
  79. >
  80. <el-form
  81. ref="ruleFormRef"
  82. :model="ruleForm"
  83. :rules="ruleRules"
  84. label-width="90px"
  85. >
  86. <el-form-item label="规则名称" prop="name">
  87. <el-input v-model="ruleForm.name" maxlength="64" show-word-limit />
  88. </el-form-item>
  89. <el-form-item label="是否默认" prop="is_default">
  90. <el-switch
  91. v-model="ruleForm.is_default"
  92. :active-value="true"
  93. :inactive-value="false"
  94. />
  95. <div class="form-tip">设置默认后未设置限购规则的商品都使用该规则</div>
  96. </el-form-item>
  97. <el-form-item label="状态" prop="status">
  98. <el-switch
  99. v-model="ruleForm.status"
  100. :active-value="true"
  101. :inactive-value="false"
  102. active-text="启用"
  103. inactive-text="停用"
  104. />
  105. </el-form-item>
  106. <!-- 在新建 / 编辑规则里直接设置限购地区(本地省市区 JSON 级联) -->
  107. <el-form-item label="限购地区">
  108. <div class="region-selector-wrapper">
  109. <el-form label-width="60px" class="region-form">
  110. <el-row :gutter="20" align="middle">
  111. <el-col :span="8">
  112. <el-form-item label="省份">
  113. <el-select
  114. v-model="selectedProvince"
  115. placeholder="请选择省份"
  116. filterable
  117. clearable
  118. @change="onProvinceChange"
  119. >
  120. <el-option
  121. v-for="p in provinces"
  122. :key="p.code"
  123. :label="p.name"
  124. :value="p.name"
  125. />
  126. </el-select>
  127. </el-form-item>
  128. </el-col>
  129. <el-col :span="8">
  130. <el-form-item label="城市" v-show="!isMunicipalitySelected()">
  131. <el-select
  132. v-model="selectedCity"
  133. placeholder="请选择城市"
  134. :disabled="!selectedProvince || isMunicipalitySelected()"
  135. filterable
  136. clearable
  137. @change="onCityChange"
  138. >
  139. <el-option
  140. v-for="c in cities"
  141. :key="c.code"
  142. :label="c.name"
  143. :value="c.name"
  144. />
  145. </el-select>
  146. </el-form-item>
  147. </el-col>
  148. <el-col :span="8">
  149. <el-form-item label="区县">
  150. <el-select
  151. v-model="selectedArea"
  152. placeholder="请选择区县"
  153. :disabled="!selectedProvince || (!selectedCity && !isMunicipalitySelected())"
  154. filterable
  155. clearable
  156. >
  157. <el-option
  158. v-for="a in areas"
  159. :key="a.code"
  160. :label="a.name"
  161. :value="a.name"
  162. />
  163. </el-select>
  164. </el-form-item>
  165. </el-col>
  166. </el-row>
  167. <el-row :gutter="20">
  168. <el-col :span="24" class="text-right" style="margin-top: 10px;">
  169. <el-button type="primary" @click="addRegion">
  170. 添加限购地区
  171. </el-button>
  172. </el-col>
  173. </el-row>
  174. </el-form>
  175. <div class="region-tip">注:可只选择到省或市层级</div>
  176. <div class="limited-region-list">
  177. <div class="list-title">已设置的限购地区</div>
  178. <div v-if="currentRuleRegions.length === 0" class="empty-tip">
  179. 暂未添加限购地区
  180. </div>
  181. <div
  182. v-for="(area, index) in currentRuleRegions"
  183. :key="index"
  184. class="limited-area-item"
  185. >
  186. <span>{{ formatRegionLabel(area) }}</span>
  187. <el-button
  188. type="danger"
  189. link
  190. @click="removeRegion(index)"
  191. >
  192. 删除
  193. </el-button>
  194. </div>
  195. </div>
  196. </div>
  197. </el-form-item>
  198. </el-form>
  199. <template #footer>
  200. <span class="dialog-footer">
  201. <el-button @click="ruleDialog.visible = false">取 消</el-button>
  202. <el-button type="primary" :loading="loading.saveRule" @click="submitRuleForm">
  203. 确 认
  204. </el-button>
  205. </span>
  206. </template>
  207. </el-dialog>
  208. </div>
  209. </template>
  210. <script>
  211. // 省级数据
  212. const PROVINCES = [
  213. {
  214. "code": "110000",
  215. "name": "北京市",
  216. "province": "11"
  217. },
  218. {
  219. "code": "120000",
  220. "name": "天津市",
  221. "province": "12"
  222. },
  223. {
  224. "code": "130000",
  225. "name": "河北省",
  226. "province": "13"
  227. },
  228. {
  229. "code": "140000",
  230. "name": "山西省",
  231. "province": "14"
  232. },
  233. {
  234. "code": "150000",
  235. "name": "内蒙古自治区",
  236. "province": "15"
  237. },
  238. {
  239. "code": "210000",
  240. "name": "辽宁省",
  241. "province": "21"
  242. },
  243. {
  244. "code": "220000",
  245. "name": "吉林省",
  246. "province": "22"
  247. },
  248. {
  249. "code": "230000",
  250. "name": "黑龙江省",
  251. "province": "23"
  252. },
  253. {
  254. "code": "310000",
  255. "name": "上海市",
  256. "province": "31"
  257. },
  258. {
  259. "code": "320000",
  260. "name": "江苏省",
  261. "province": "32"
  262. },
  263. {
  264. "code": "330000",
  265. "name": "浙江省",
  266. "province": "33"
  267. },
  268. {
  269. "code": "340000",
  270. "name": "安徽省",
  271. "province": "34"
  272. },
  273. {
  274. "code": "350000",
  275. "name": "福建省",
  276. "province": "35"
  277. },
  278. {
  279. "code": "360000",
  280. "name": "江西省",
  281. "province": "36"
  282. },
  283. {
  284. "code": "370000",
  285. "name": "山东省",
  286. "province": "37"
  287. },
  288. {
  289. "code": "410000",
  290. "name": "河南省",
  291. "province": "41"
  292. },
  293. {
  294. "code": "420000",
  295. "name": "湖北省",
  296. "province": "42"
  297. },
  298. {
  299. "code": "430000",
  300. "name": "湖南省",
  301. "province": "43"
  302. },
  303. {
  304. "code": "440000",
  305. "name": "广东省",
  306. "province": "44"
  307. },
  308. {
  309. "code": "450000",
  310. "name": "广西壮族自治区",
  311. "province": "45"
  312. },
  313. {
  314. "code": "460000",
  315. "name": "海南省",
  316. "province": "46"
  317. },
  318. {
  319. "code": "500000",
  320. "name": "重庆市",
  321. "province": "50"
  322. },
  323. {
  324. "code": "510000",
  325. "name": "四川省",
  326. "province": "51"
  327. },
  328. {
  329. "code": "520000",
  330. "name": "贵州省",
  331. "province": "52"
  332. },
  333. {
  334. "code": "530000",
  335. "name": "云南省",
  336. "province": "53"
  337. },
  338. {
  339. "code": "540000",
  340. "name": "西藏自治区",
  341. "province": "54"
  342. },
  343. {
  344. "code": "610000",
  345. "name": "陕西省",
  346. "province": "61"
  347. },
  348. {
  349. "code": "620000",
  350. "name": "甘肃省",
  351. "province": "62"
  352. },
  353. {
  354. "code": "630000",
  355. "name": "青海省",
  356. "province": "63"
  357. },
  358. {
  359. "code": "640000",
  360. "name": "宁夏回族自治区",
  361. "province": "64"
  362. },
  363. {
  364. "code": "650000",
  365. "name": "新疆维吾尔自治区",
  366. "province": "65"
  367. },
  368. {
  369. "code": "710000",
  370. "name": "台湾省",
  371. "province": "71"
  372. },
  373. {
  374. "code": "810000",
  375. "name": "香港特别行政区",
  376. "province": "81"
  377. },
  378. {
  379. "code": "820000",
  380. "name": "澳门特别行政区",
  381. "province": "82"
  382. }
  383. ];
  384. export default {
  385. name: 'LimitPurchaseRule',
  386. props: {
  387. axiosInstance: {
  388. type: Object,
  389. default: null
  390. }
  391. },
  392. data() {
  393. return {
  394. // 列表数据
  395. ruleList: [],
  396. loading: {
  397. list: false,
  398. saveRule: false
  399. },
  400. // 分页数据
  401. pagination: {
  402. page: 1,
  403. pageSize: 15,
  404. total: 0,
  405. hasMore: false
  406. },
  407. // 规则表单
  408. ruleDialog: {
  409. visible: false
  410. },
  411. ruleForm: {
  412. id: null,
  413. name: '',
  414. is_default: 0,
  415. status: 1
  416. },
  417. ruleRules: {
  418. name: [
  419. { required: true, message: '请输入规则名称', trigger: 'blur' }
  420. ]
  421. },
  422. // 使用本地省市区 JSON 级联
  423. provinces: PROVINCES,
  424. cities: [],
  425. areas: [],
  426. selectedProvince: '',
  427. selectedCity: '',
  428. selectedArea: '',
  429. currentRuleRegions: [], // 当前规则下的地区数组
  430. // 直辖市编码列表
  431. municipalityCodes: ['11', '12', '31', '50'] // 北京、天津、上海、重庆
  432. }
  433. },
  434. created() {
  435. this.fetchRuleList()
  436. },
  437. methods: {
  438. http() {
  439. // 默认用全局 axios,如果父组件传入则优先用父组件的
  440. return this.axiosInstance || this.$axios || this.$http
  441. },
  442. // 判断是否为直辖市
  443. isMunicipality(provinceCode) {
  444. if (!provinceCode) return false;
  445. // 提取前两位作为省份编码进行判断
  446. const provincePrefix = provinceCode.substring(0, 2);
  447. return this.municipalityCodes.includes(provincePrefix);
  448. },
  449. // 判断当前选中的省份是否为直辖市
  450. isMunicipalitySelected() {
  451. if (!this.selectedProvince) return false;
  452. const province = PROVINCES.find(p => p.name === this.selectedProvince);
  453. return province ? this.isMunicipality(province.code) : false;
  454. },
  455. // ========== 列表相关 ==========
  456. async fetchRuleList() {
  457. if (!this.http()) return
  458. this.loading.list = true
  459. try {
  460. const { page } = await this.http().get('/limit_purchase/rule', {
  461. params: {
  462. page: this.pagination.page,
  463. limit: this.pagination.pageSize
  464. }
  465. })
  466. // 根据分页数据结构处理
  467. if (page) {
  468. this.ruleList = Array.isArray(page.data) ? page.data : []
  469. this.pagination.total = page.total || 0
  470. this.pagination.hasMore = page.has_more || false
  471. } else {
  472. // 兼容旧的数据结构
  473. this.ruleList = []
  474. this.pagination.total = 0
  475. this.pagination.hasMore = false
  476. }
  477. } catch (e) {
  478. console.error(e)
  479. this.$message.error('加载规则列表失败')
  480. } finally {
  481. this.loading.list = false
  482. }
  483. },
  484. handlePageChange(page) {
  485. this.pagination.page = page
  486. this.fetchRuleList()
  487. },
  488. handleCreateRule() {
  489. this.ruleForm = {
  490. id: null,
  491. name: '',
  492. is_default: false,
  493. status: true
  494. }
  495. // 新建规则时清空当前规则地区
  496. this.currentRuleRegions = []
  497. this.selectedProvince = ''
  498. this.selectedCity = ''
  499. this.selectedArea = ''
  500. this.cities = []
  501. this.areas = []
  502. this.ruleDialog.visible = true
  503. this.$nextTick(() => {
  504. if (this.$refs.ruleFormRef && typeof this.$refs.ruleFormRef.clearValidate === 'function') {
  505. this.$refs.ruleFormRef.clearValidate()
  506. }
  507. })
  508. },
  509. handleEditRule(row) {
  510. this.ruleForm = {
  511. id: row.id,
  512. name: row.name,
  513. is_default: row.is_default || false,
  514. status: row.status
  515. }
  516. // 编辑规则时加载该规则已有的地区
  517. this.currentRuleRegions = Array.isArray(row.regions) ? [...row.regions] : []
  518. this.selectedProvince = ''
  519. this.selectedCity = ''
  520. this.selectedArea = ''
  521. this.cities = []
  522. this.areas = []
  523. this.ruleDialog.visible = true
  524. this.$nextTick(() => {
  525. if (this.$refs.ruleFormRef && typeof this.$refs.ruleFormRef.clearValidate === 'function') {
  526. this.$refs.ruleFormRef.clearValidate()
  527. }
  528. })
  529. },
  530. submitRuleForm() {
  531. this.$refs.ruleFormRef.validate(async (valid) => {
  532. if (!valid || !this.http()) return
  533. this.loading.saveRule = true
  534. try {
  535. if (this.ruleForm.id) {
  536. // 更新:名称 + 是否默认 + 状态 + 限购地区
  537. await this.http().put(`/limit_purchase/rule/${this.ruleForm.id}`, {
  538. name: this.ruleForm.name,
  539. is_default: this.ruleForm.is_default,
  540. status: this.ruleForm.status,
  541. regions: this.currentRuleRegions
  542. })
  543. this.$message.success('更新成功')
  544. } else {
  545. // 创建:名称 + 是否默认 + 状态 + 限购地区
  546. await this.http().post('/limit_purchase/rule', {
  547. name: this.ruleForm.name,
  548. is_default: this.ruleForm.is_default,
  549. status: this.ruleForm.status,
  550. regions: this.currentRuleRegions
  551. })
  552. this.$message.success('创建成功')
  553. }
  554. this.ruleDialog.visible = false
  555. this.fetchRuleList()
  556. } catch (e) {
  557. console.error(e)
  558. this.$message.error('保存失败')
  559. } finally {
  560. this.loading.saveRule = false
  561. }
  562. })
  563. },
  564. handleDeleteRule(row) {
  565. if (!this.http()) return
  566. this.$confirm(`确认删除规则「${row.name}」吗?`, '提示', {
  567. type: 'warning'
  568. })
  569. .then(async () => {
  570. try {
  571. const {code,msg} = await this.http().delete(`/limit_purchase/rule/${row.id}`)
  572. if (code === 0 || code === 200) {
  573. this.$message.success('删除成功')
  574. this.fetchRuleList()
  575. } else {
  576. this.$message.error(msg || '删除失败')
  577. }
  578. } catch (e) {
  579. console.error(e)
  580. this.$message.error('删除失败')
  581. }
  582. })
  583. .catch(() => {})
  584. },
  585. // 从网络接口获取城市数据
  586. async onProvinceChange() {
  587. this.selectedCity = ''
  588. this.selectedArea = ''
  589. this.areas = []
  590. this.cities = []
  591. if (!this.selectedProvince) return
  592. try {
  593. const province = PROVINCES.find(p => p.name === this.selectedProvince)
  594. if (province) {
  595. // 判断是否为直辖市
  596. if (this.isMunicipality(province.code)) {
  597. // 直辖市直接获取区县数据,参数需要特殊处理
  598. // 将110000转换为110100格式
  599. const municipalityCode = province.code.substring(0, 2) + '0100';
  600. const response = await this.http().get(`/limit_purchase/region/area/${municipalityCode}`)
  601. this.areas = response.data || []
  602. } else {
  603. // 非直辖市获取城市数据
  604. const response = await this.http().get(`/limit_purchase/region/city/${province.code}`)
  605. this.cities = response.data || []
  606. }
  607. }
  608. } catch (e) {
  609. console.error('获取城市数据失败:', e)
  610. this.$message.error('获取城市数据失败')
  611. }
  612. },
  613. // 从网络接口获取区县数据
  614. async onCityChange() {
  615. this.selectedArea = ''
  616. this.areas = []
  617. if (!this.selectedCity || !this.selectedProvince) return
  618. try {
  619. const province = PROVINCES.find(p => p.name === this.selectedProvince)
  620. if (province) {
  621. const city = this.cities.find(c => c.name === this.selectedCity)
  622. if (city) {
  623. const response = await this.http().get(`/limit_purchase/region/area/${city.code}`)
  624. this.areas = response.data || []
  625. }
  626. }
  627. } catch (e) {
  628. console.error('获取区县数据失败:', e)
  629. this.$message.error('获取区县数据失败')
  630. }
  631. },
  632. addRegion() {
  633. if (!this.selectedProvince) {
  634. this.$message.warning('请至少选择省份')
  635. return
  636. }
  637. // 查找选中的省市区对象
  638. const provinceObj = PROVINCES.find(p => p.name === this.selectedProvince)
  639. const cityObj = this.cities.find(c => c.name === this.selectedCity) || null
  640. const areaObj = this.areas.find(a => a.name === this.selectedArea) || null
  641. let region = {
  642. province_id: provinceObj ? provinceObj.code : null,
  643. province_name: this.selectedProvince,
  644. city_id: cityObj ? cityObj.code : null,
  645. city_name: this.selectedCity || null,
  646. area_id: areaObj ? areaObj.code : null,
  647. area_name: this.selectedArea || null
  648. };
  649. // 去重:检查是否已经存在相同或更广范围的地区
  650. const exists = this.currentRuleRegions.some(item => {
  651. // 完全匹配检查
  652. if (item.province_name !== region.province_name) return false;
  653. // 如果当前添加的是省级规则
  654. if (!region.city_name) {
  655. return !item.city_name; // 匹配已有省级规则
  656. }
  657. // 如果当前添加的是市级规则
  658. if (region.city_name && !region.area_name) {
  659. return item.city_name === region.city_name && !item.area_name;
  660. }
  661. // 如果当前添加的是区级规则
  662. if (region.city_name && region.area_name) {
  663. return item.city_name === region.city_name && item.area_name === region.area_name;
  664. }
  665. return false;
  666. });
  667. if (exists) {
  668. this.$message.warning('该地区已在列表中')
  669. return
  670. }
  671. this.currentRuleRegions.push(region)
  672. // 清空已选项
  673. this.selectedProvince = ''
  674. this.selectedCity = ''
  675. this.selectedArea = ''
  676. this.cities = []
  677. this.areas = []
  678. },
  679. removeRegion(index) {
  680. this.currentRuleRegions.splice(index, 1)
  681. },
  682. // ========== 工具方法 ==========
  683. formatRegionLabel(region) {
  684. const parts = []
  685. if (region.province_name) parts.push(region.province_name)
  686. if (region.city_name) parts.push(region.city_name)
  687. if (region.area_name) parts.push(region.area_name)
  688. return parts.join(' - ') || '未知地区'
  689. }
  690. }
  691. }
  692. </script>
  693. <style scoped>
  694. .limit-purchase-rule-container {
  695. padding: 0;
  696. }
  697. .rule-list-card {
  698. margin-bottom: 0;
  699. }
  700. .card-header {
  701. display: flex;
  702. justify-content: space-between;
  703. align-items: center;
  704. }
  705. .region-tag {
  706. margin-right: 4px;
  707. margin-bottom: 4px;
  708. }
  709. .text-muted {
  710. color: #999;
  711. }
  712. .region-selector-wrapper {
  713. padding: 10px 0 0;
  714. }
  715. .region-selector-title {
  716. display: flex;
  717. align-items: center;
  718. margin-bottom: 16px;
  719. font-size: 14px;
  720. }
  721. .region-selector-title .text-danger {
  722. color: #f56c6c;
  723. }
  724. .region-form {
  725. margin-bottom: 16px;
  726. }
  727. .limited-region-list {
  728. background: #fff7f7;
  729. border-radius: 4px;
  730. padding: 12px 16px;
  731. }
  732. .inner-region-form {
  733. margin-bottom: 8px;
  734. }
  735. .limited-region-list .list-title {
  736. font-size: 14px;
  737. margin-bottom: 8px;
  738. }
  739. .limited-region-list .empty-tip {
  740. font-size: 13px;
  741. color: #999;
  742. }
  743. .limited-area-item {
  744. display: flex;
  745. justify-content: space-between;
  746. align-items: center;
  747. padding: 8px 0;
  748. border-bottom: 1px solid #f5d1d1;
  749. }
  750. .limited-area-item:last-child {
  751. border-bottom: none;
  752. }
  753. .dialog-footer {
  754. text-align: right;
  755. }
  756. .text-right {
  757. text-align: right;
  758. }
  759. .form-tip {
  760. margin-left: 10px;
  761. font-size: 12px;
  762. color: #999;
  763. }
  764. .region-tip {
  765. font-size: 12px;
  766. color: #999;
  767. margin-top: 5px;
  768. margin-bottom: 15px;
  769. }
  770. </style>