goods.blade.php 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. @extends('layouts.base')
  2. @section('title', "商品列表")
  3. @section('content')
  4. <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/vue-goods.css')}}"/>
  5. <style>
  6. .el-table .cell{
  7. white-space:pre-line;
  8. }
  9. </style>
  10. <div id="qrcode" ref="qrcode" style="display:none;"></div>
  11. <div class="rightlist">
  12. <div id="app" v-cloak v-loading="all_loading">
  13. <template>
  14. <div class="second-list">
  15. <div class="third-list">
  16. <div class="form-list">
  17. <el-form :inline="true" :model="search_form" ref="search_form" style="margin-left:10px;">
  18. <el-row>
  19. {{--<el-form-item>--}}
  20. {{--<el-select v-model="search_form.cate_v1" placeholder="请选择一级分类" clearable @change="changeV1()">--}}
  21. {{--<el-option v-for="item in category_list" :key="item.id" :label="item.label" :value="item.id"></el-option>--}}
  22. {{--</el-select>--}}
  23. {{--</el-form-item>--}}
  24. {{--<el-form-item>--}}
  25. {{--<el-select v-model="search_form.cate_v2" placeholder="请选择二级分类" clearable @change="changeV2()">--}}
  26. {{--<el-option v-for="item in category_list_v2" :key="item.id" :label="item.label" :value="item.id"></el-option>--}}
  27. {{--</el-select>--}}
  28. {{--</el-form-item>--}}
  29. {{--<el-form-item>--}}
  30. {{--<el-select v-model="search_form.cate_v3" placeholder="请选择三级分类" clearable>--}}
  31. {{--<el-option v-for="item in category_list_v3" :key="item.id" :label="item.label" :value="item.id"></el-option>--}}
  32. {{--</el-select>--}}
  33. {{--</el-form-item>--}}
  34. <el-form-item>
  35. <el-select v-model="search_form.status" placeholder="请选择上下架" clearable>
  36. <el-option v-for="item in status_list" :key="item.id" :label="item.label" :value="item.id"></el-option>
  37. </el-select>
  38. </el-form-item>
  39. <el-form-item label="" prop="third_goods_id">
  40. <el-input v-model="search_form.third_goods_id" placeholder="请输入商品第三方ID"></el-input>
  41. </el-form-item>
  42. <el-form-item label="" prop="goods_name">
  43. <el-input v-model="search_form.goods_name" placeholder="请输入商品名称"></el-input>
  44. </el-form-item>
  45. <el-form-item label="价格区间" prop="">
  46. <el-input v-model="search_form.min_price" placeholder="最低价" style="width:150px;"></el-input>
  47. <el-input v-model="search_form.max_price" placeholder="最高价" style="width:150px;"></el-input>
  48. </el-form-item>
  49. <el-form-item label="" prop="">
  50. <el-select v-model="search_form.page_size" placeholder="每页条数" clearable>
  51. <el-option v-for="item in page_size" :key="item.id" :label="item.name" :value="item.id"></el-option>
  52. </el-select>
  53. </el-form-item>
  54. <a href="#">
  55. <el-button type="primary" icon="el-icon-search" @click="getData(1)">搜索</el-button>
  56. </a>
  57. </el-col>
  58. </el-row>
  59. </el-form>
  60. </div>
  61. <div class="table-list">
  62. <div style="margin-left:10px;">
  63. <el-checkbox v-model.number="is_all_choose" :true-label="1" :false-label="0" @change="allChoose">[[is_all_choose==1?'全不选':'全选']]</el-checkbox>
  64. <el-button size="small" @click="batchStatusOn()">批量上架</el-button>
  65. <el-button size="small" @click="batchStatusOff()">批量下架</el-button>
  66. <el-button size="small" @click="batchDestroy">批量删除</el-button>
  67. <el-button size="small" @click="batchUpdate">批量更新</el-button>
  68. <el-button size="small" @click="batchUpdateStock">一键更新库存</el-button>
  69. </div>
  70. <div>
  71. @section('search')
  72. <template>
  73. <!-- 表格start -->
  74. <el-table :data="goods_list" style="width: 100%" :class="table_loading==true?'loading-height':''" v-loading="table_loading">
  75. <el-table-column prop="id" label="选择" width="60" align="center">
  76. <template slot-scope="scope">
  77. <el-checkbox v-model.number="scope.row.is_choose" :true-label="1" :false-label="0" @change="oneChange(scope.row)"></el-checkbox>
  78. </template>
  79. </el-table-column>
  80. <el-table-column prop="cloud.goods_id" label="本地ID" width="90" align="center">
  81. <template slot-scope="scope">
  82. [[scope.row.cloud.goods_id?scope.row.cloud.goods_id:0]]
  83. </template>
  84. </el-table-column>
  85. <el-table-column prop="goodsId" label="第三方ID" width="90" align="center">
  86. <template slot-scope="scope">
  87. [[scope.row.goodsId]]
  88. </template>
  89. </el-table-column>
  90. </el-table-column>
  91. <el-table-column prop="total" label="商品" width="60" align="center">
  92. <template slot-scope="scope">
  93. <img :src="scope.row.default_image" style="width:50px;height:50px;">
  94. </template>
  95. </el-table-column>
  96. <el-table-column prop="down_time" label="" min-width="180" align="left" class="edit-cell">
  97. <template slot-scope="scope">
  98. <a :href="'{{ yzWebFullUrl('plugin.jd-supply.admin.shop-goods.edit', array('id' => '')) }}'+[[scope.row.cloud.goods_id]]">
  99. [[scope.row.goods_name]]
  100. </a>
  101. </template>
  102. </el-table-column>
  103. <el-table-column prop="member_num" v-bind:label="'云仓市场价\n本地市场价'" width="100" align="center">
  104. <template slot-scope="scope">
  105. ¥[[scope.row.scPrice]]<br>
  106. ¥[[scope.row.goods.market_price?scope.row.goods.market_price:0.00]]
  107. </template>
  108. </el-table-column>
  109. <el-table-column prop="member_num" v-bind:label="'云仓指导价\n本地现价'" max-width="80" align="center">
  110. <template slot-scope="scope">
  111. ¥[[scope.row.price]]<br>
  112. ¥[[scope.row.goods.price?scope.row.goods.price:0.00]]
  113. </template>
  114. </el-table-column>
  115. <el-table-column prop="member_num" v-bind:label="'云仓结算价\n本地成本价'" width="100" align="center">
  116. <template slot-scope="scope">
  117. ¥[[scope.row.jsPrice]]<br>
  118. ¥[[scope.row.goods.cost_price?scope.row.goods.cost_price:0.00]]
  119. </template>
  120. </el-table-column>
  121. {{--<el-table-column prop="member_num" label="物流费" width="80" align="center">--}}
  122. {{--<template slot-scope="scope">--}}
  123. {{--¥[[scope.row.wlPrice]]--}}
  124. {{--</template>--}}
  125. {{--</el-table-column>--}}
  126. {{--<el-table-column prop="member_num" label="偏远物流费" width="80" align="center">--}}
  127. {{--<template slot-scope="scope">--}}
  128. {{--¥[[scope.row.pywlPrice]]--}}
  129. {{--</template>--}}
  130. {{--</el-table-column>--}}
  131. {{--<el-table-column prop="member_num" label="运费模板ID" width="80" align="center">--}}
  132. {{--<template slot-scope="scope">--}}
  133. {{--¥[[scope.row.freightId]]--}}
  134. {{--</template>--}}
  135. {{--</el-table-column>--}}
  136. <el-table-column label="库存" align="center" max-width="80">
  137. <template slot-scope="scope">
  138. [[scope.row.stock]]
  139. </template>
  140. </el-table-column>
  141. {{--<el-table-column prop="real_sales" label="销量" width="70" align="center">--}}
  142. {{--<template slot-scope="scope">--}}
  143. {{--[[scope.row.realSale]]--}}
  144. {{--</template>--}}
  145. {{--</el-table-column>--}}
  146. <el-table-column v-bind:label="'云仓状态\n本地状态'" prop="status_message" align="center">
  147. <template slot-scope="scope">
  148. [[scope.row.is_onsale?'上架':'下架']]<br>
  149. <p v-if="scope.row.goods.status==0">下架</p>
  150. <p v-if="scope.row.goods.status=='1'">上架</p>
  151. <p v-if="scope.row.goods.status==null">失效</p>
  152. </template>
  153. </el-table-column>
  154. <el-table-column label="操作" width="300" align="center">
  155. <template slot-scope="scope">
  156. <div class="table-option">
  157. <a @click="statusOn(scope.row.goodsId)">
  158. 上架
  159. </a>
  160. <a @click="statusOff(scope.row.goodsId)">
  161. 下架
  162. </a>
  163. <a @click="update(scope.row)">
  164. 更新商品
  165. </a>
  166. <a @click="delOne(scope.row.goodsId)">
  167. 删除
  168. </a>
  169. <div>
  170. <input v-model="scope.row.link" :ref="'list'+scope.row.id" style="position:absolute;opacity:0;height:1px;" />
  171. </div>
  172. </div>
  173. </template>
  174. </el-table-column>
  175. </el-table>
  176. <!-- 表格end -->
  177. </template>
  178. @show
  179. </div>
  180. </div>
  181. </div>
  182. <!-- 分页 -->
  183. <div class="vue-page" v-show="total>1">
  184. <el-row>
  185. <el-col align="right">
  186. <el-pagination layout="prev, pager, next,jumper" @current-change="getData" :total="total" :page-size="per_size" :current-page="current_page" background v-loading="loading"></el-pagination>
  187. </el-col>
  188. </el-row>
  189. </div>
  190. </div>
  191. </template>
  192. </div>
  193. </div>
  194. <script src="{{resource_get('static/js/qrcode.min.js')}}"></script>
  195. <script>
  196. var app = new Vue({
  197. el:"#app",
  198. delimiters: ['[[', ']]'],
  199. data() {
  200. return{
  201. id:"",
  202. img:"",//二维码
  203. catlevel:0,//是否显示三级分类
  204. is_all_choose:0,//是否全选
  205. goods_list:[],//商品列表
  206. change_title:"",//修改标题弹框赋值
  207. change_price:"",//修改价格弹框赋值
  208. change_stock:"",//修改库存弹框赋值
  209. change_sort:"",//修改排序弹框赋值
  210. all_loading:false,
  211. page_size:[
  212. {id:'',name:''},
  213. {id:20,name:'20条'},
  214. {id:50,name:'50条'},
  215. ],
  216. sell_stock_list:[
  217. {id:'',name:'全部'},
  218. {id:0,name:'售罄'},
  219. {id:1,name:'出售中'},
  220. ],
  221. status_list:[
  222. {id:0,label:'下架'},
  223. {id:1,label:'上架'},
  224. ],
  225. category_list:[],
  226. category_list_v2:[],
  227. category_list_v3:[],
  228. search_form:{
  229. cate_v1:'',
  230. cate_v2:'',
  231. cate_v3:'',
  232. status:0,
  233. },
  234. form:{},
  235. level_list:[],
  236. loading:false,
  237. table_loading:false,
  238. rules:{},
  239. //分页
  240. total:0,
  241. per_size:0,
  242. current_page:0,
  243. rules:{},
  244. }
  245. },
  246. created() {
  247. this.getData(1);
  248. // this.getCategory();
  249. },
  250. methods: {
  251. // 获取分类
  252. getCategory() {
  253. this.$http.post('{!!yzWebFullUrl('plugin.jd-supply.admin.cloud-manage.get-third-category')!!}').then(res => {
  254. if (res.data.result == '1') {
  255. this.category_list = res.data.data.third_category;
  256. } else {
  257. this.$message({
  258. type: 'error',
  259. message: res.data.msg
  260. })
  261. }
  262. })
  263. },
  264. getData(page) {
  265. var that = this;
  266. let json = {
  267. page:page,
  268. search:{
  269. third_goods_id:that.search_form.third_goods_id,
  270. goods_name:that.search_form.goods_name,
  271. min_price:that.search_form.min_price,
  272. max_price:that.search_form.max_price,
  273. page_size:that.search_form.page_size,
  274. cate_v1:that.search_form.cate_v1,
  275. cate_v2:that.search_form.cate_v2,
  276. cate_v3:that.search_form.cate_v3,
  277. status:that.search_form.status,
  278. },
  279. };
  280. that.table_loading = true;
  281. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.goods-list') !!}",json).then(response => {
  282. console.log(response.data.data);
  283. if(response.data.result==1){
  284. that.goods_list = response.data.data.list.data;
  285. let arr =[];
  286. that.goods_list.forEach((item,index) => {
  287. item.title = that.escapeHTML(item.title)
  288. item.goods_id = item.cloud.goods_id
  289. arr.push(Object.assign({},item,{is_choose:0}))//是否选中
  290. });
  291. that.goods_list=arr;
  292. that.total = response.data.data.list.total;
  293. that.per_size = response.data.data.page_size;
  294. that.current_page = response.data.data.page;
  295. console.log(that.goods_list);
  296. }
  297. else{
  298. that.$message.error(response.data.msg);
  299. }
  300. that.table_loading = false;
  301. }),function(res){
  302. console.log(res);
  303. that.table_loading = false;
  304. };
  305. },
  306. // 一级分类改变
  307. changeV1(){
  308. this.search_form.cate_v2 = "";
  309. this.search_form.cate_v3 = "";
  310. this.category_list_v2 = [];
  311. this.category_list_v3 = [];
  312. this.category_list.find(item => {
  313. if(item.id == this.search_form.cate_v1) {
  314. this.category_list_v2 = item.children;
  315. }
  316. });
  317. },
  318. // 二级分类改变
  319. changeV2(){
  320. this.search_form.cate_v3 = "";
  321. this.category_list_v3 = [];
  322. this.category_list_v2.find(item => {
  323. if(item.id == this.search_form.cate_v2) {
  324. this.category_list_v3 = item.children;
  325. }
  326. })
  327. },
  328. // 单个选择
  329. oneChange(item) {
  330. let that = this;
  331. let is_all = 0;
  332. that.goods_list.some((item,index) => {
  333. if(item.is_choose == 1) {
  334. is_all = 1;
  335. }
  336. else {
  337. is_all = 0;
  338. return true;
  339. }
  340. })
  341. that.is_all_choose = is_all;
  342. },
  343. // 全选
  344. allChoose() {
  345. let that = this;
  346. let status = 0;
  347. if(that.is_all_choose == 1){
  348. status = 1;
  349. }
  350. else{
  351. status = 0;
  352. }
  353. that.goods_list.forEach((item,index) => {
  354. item.is_choose = status;
  355. })
  356. },
  357. // 批量上架
  358. batchStatusOn() {
  359. var that = this;
  360. that.$confirm('确定上架吗', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
  361. that.table_loading = true;
  362. let ids = [];
  363. that.goods_list.forEach((item,index) => {
  364. if(item.is_choose == 1){
  365. ids.push(item.goodsId);
  366. }
  367. })
  368. let json = {ids:ids}
  369. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.batch-on-shelf') !!}",json).then(response => {
  370. console.log(response);
  371. if(response.data.result==1){
  372. that.$message.success(response.data.msg);
  373. that.is_all_choose = 0;
  374. that.getData(1);
  375. }
  376. else{
  377. that.$message.error(response.data.msg);
  378. }
  379. that.table_loading = false;
  380. }),function(res){
  381. console.log(res);
  382. that.table_loading = false;
  383. };
  384. }).catch(() => {
  385. this.$message({type: 'info',message: '已取消'});
  386. });
  387. },
  388. // 批量下架
  389. batchStatusOff() {
  390. var that = this;
  391. that.$confirm('确定下架吗', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
  392. that.table_loading = true;
  393. let ids = [];
  394. that.goods_list.forEach((item,index) => {
  395. if(item.is_choose == 1){
  396. ids.push(item.goodsId);
  397. }
  398. })
  399. let json = {ids:ids}
  400. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.batch-off-shelf') !!}",json).then(response => {
  401. console.log(response);
  402. if(response.data.result==1){
  403. that.$message.success(response.data.msg);
  404. that.is_all_choose = 0;
  405. that.getData(that.current_page);
  406. }
  407. else{
  408. that.$message.error(response.data.msg);
  409. }
  410. that.table_loading = false;
  411. }),function(res){
  412. console.log(res);
  413. that.table_loading = false;
  414. };
  415. }).catch(() => {
  416. this.$message({type: 'info',message: '已取消'});
  417. });
  418. },
  419. //上架
  420. statusOn(id) {
  421. var that = this;
  422. that.$confirm('确定上架吗', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
  423. that.table_loading = true;
  424. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.on-shelf') !!}",{id:id}).then(response => {
  425. console.log(response);
  426. if(response.data.result==1){
  427. that.$message.success("上架提交成功!");
  428. that.getData(that.current_page);
  429. }
  430. else{
  431. that.$message.error(response.data.msg);
  432. }
  433. that.table_loading = false;
  434. }),function(res){
  435. console.log(res);
  436. that.table_loading = false;
  437. };
  438. }).catch(() => {
  439. this.$message({type: 'info',message: '已取消'});
  440. });
  441. },
  442. //下架
  443. statusOff(id) {
  444. var that = this;
  445. that.$confirm('确定下架吗', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
  446. that.table_loading = true;
  447. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.off-shelf') !!}",{id:id}).then(response => {
  448. console.log(response);
  449. if(response.data.result==1){
  450. that.$message.success("下架成功!");
  451. that.getData(that.current_page);
  452. }
  453. else{
  454. that.$message.error(response.data.msg);
  455. }
  456. that.table_loading = false;
  457. }),function(res){
  458. console.log(res);
  459. that.table_loading = false;
  460. };
  461. }).catch(() => {
  462. this.$message({type: 'info',message: '已取消'});
  463. });
  464. },
  465. //上架
  466. update(goods) {
  467. var that = this;
  468. let json = {
  469. goodsId:goods.goodsId,
  470. }
  471. console.log(goods,json);
  472. that.$confirm('确定更新吗', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
  473. that.table_loading = true;
  474. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.update') !!}",{goods:json}).then(response => {
  475. if(response.data.result==1){
  476. that.$message.success("更新成功!");
  477. that.getData(that.current_page);
  478. }
  479. else{
  480. that.$message.error(response.data.msg);
  481. }
  482. that.table_loading = false;
  483. }),function(res){
  484. console.log(res);
  485. that.table_loading = false;
  486. };
  487. }).catch(() => {
  488. this.$message({type: 'info',message: '已取消'});
  489. });
  490. },
  491. // 单个删除
  492. delOne(id) {
  493. var that = this;
  494. that.$confirm('确定删除吗', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
  495. that.table_loading = true;
  496. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.delete') !!}",{id:id}).then(response => {
  497. console.log(response);
  498. if(response.data.result==1){
  499. that.$message.success("删除成功!");
  500. that.getData(that.current_page);
  501. }
  502. else{
  503. that.$message.error(response.data.msg);
  504. }
  505. that.table_loading = false;
  506. }),function(res){
  507. console.log(res);
  508. that.table_loading = false;
  509. };
  510. }).catch(() => {
  511. this.$message({type: 'info',message: '已取消'});
  512. });
  513. },
  514. // 批量删除
  515. batchDestroy() {
  516. var that = this;
  517. that.$confirm('确定删除吗', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
  518. that.table_loading = true;
  519. let ids = [];
  520. that.goods_list.forEach((item,index) => {
  521. if(item.is_choose == 1){
  522. ids.push(item.goodsId);
  523. }
  524. })
  525. let json = {ids:ids}
  526. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.batch-delete') !!}",json).then(response => {
  527. console.log(response);
  528. if(response.data.result==1){
  529. that.$message.success('操作成功!');
  530. that.is_all_choose = 0;
  531. that.getData(that.current_page);
  532. }
  533. else{
  534. that.$message.error(response.data.msg);
  535. }
  536. that.table_loading = false;
  537. }),function(res){
  538. console.log(res);
  539. that.table_loading = false;
  540. };
  541. }).catch(() => {
  542. this.$message({type: 'info',message: '已取消修改'});
  543. });
  544. },
  545. // 批量更新
  546. batchUpdate() {
  547. var that = this;
  548. that.$confirm('确定更新吗', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
  549. that.table_loading = true;
  550. let search = [];
  551. that.goods_list.forEach((item,index) => {
  552. if(item.is_choose == 1){
  553. let json = {
  554. goodsId:item.goodsId,
  555. }
  556. search.push(json);
  557. }
  558. })
  559. console.log(search);
  560. let json = {ids:search}
  561. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.batch-update') !!}",json).then(response => {
  562. console.log(response);
  563. if(response.data.result==1){
  564. that.$message.success(response.data.msg);
  565. that.is_all_choose = 0;
  566. that.getData(that.current_page);
  567. }
  568. else{
  569. that.$message.error(response.data.msg);
  570. }
  571. that.table_loading = false;
  572. }),function(res){
  573. console.log(res);
  574. that.table_loading = false;
  575. };
  576. }).catch(() => {
  577. this.$message({type: 'info',message: '已取消修改'});
  578. });
  579. },
  580. batchUpdateStock() {
  581. var that = this;
  582. that.$confirm('确定更新吗', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
  583. that.table_loading = true;
  584. that.$http.post("{!! yzWebFullUrl('plugin.jd-supply.admin.cloud-goods.update-stock') !!}").then(response => {
  585. console.log(response);
  586. if(response.data.result==1){
  587. that.$message.success(response.data.msg);
  588. that.getData(that.current_page);
  589. }
  590. else{
  591. that.$message.error(response.data.msg);
  592. }
  593. that.table_loading = false;
  594. }),function(res){
  595. console.log(res);
  596. that.table_loading = false;
  597. };
  598. }).catch(() => {
  599. this.$message({type: 'info',message: '已取消修改'});
  600. });
  601. },
  602. // 字符转义
  603. escapeHTML(a) {
  604. a = "" + a;
  605. return a.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&apos;/g, "'");;
  606. },
  607. },
  608. })
  609. </script>
  610. @endsection