index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. <template>
  2. <div class="app-container" style="width: 90%;">
  3. <div class="el-icon-info" style="font-size: 30px;float: right;color: #009C69;" @click="handleDescription" />
  4. <el-form ref="createTemp" :rules="rules" :model="createTemp" label-position="right" label-width="250px" style="margin-top: 40px;margin-bottom:30px;">
  5. <el-row>
  6. <el-col :span="12">
  7. <el-form-item
  8. :label="$t('defaultParameter.sfkqqytjh')" prop="isGetLastPlan">
  9. <el-select v-model="createTemp.isGetLastPlan" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.sfkqqytjh')"class="filter-item" style="width:100%">
  10. <el-option v-for="item in planBeforeDayList" :key="item.id" :label="item.name" :value="item.id" />
  11. </el-select>
  12. </el-form-item>
  13. </el-col>
  14. <el-col :span="12">
  15. <el-form-item
  16. :label="$t('defaultParameter.sfkqqytjh1')" prop="isGetNextPlan">
  17. <el-select v-model="createTemp.isGetNextPlan" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.sfkqqytjh1')"class="filter-item" style="width:100%">
  18. <el-option v-for="item in planNextDayList" :key="item.id" :label="item.name" :value="item.id" />
  19. </el-select>
  20. </el-form-item>
  21. </el-col>
  22. </el-row>
  23. <el-row>
  24. <el-col :span="12">
  25. <el-form-item
  26. :label="$t('defaultParameter.bcsl')" prop="times">
  27. <el-select v-model="createTemp.times" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.bcsl')" class="filter-item" style="width:100%">
  28. <el-option v-for="item in numberList" :key="item.id" :label="item.name" :value="item.name" />
  29. </el-select>
  30. </el-form-item>
  31. </el-col>
  32. <el-col :span="12">
  33. <el-form-item
  34. :label="$t('defaultParameter.zlxsdws')" prop="decimalPlaces">
  35. <el-select v-model="createTemp.decimalPlaces" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.zlxsdws')" class="filter-item" style="width:100%">
  36. <el-option v-for="item in weightDecimalPlacesList" :key="item.id" :label="item.name" :value="item.id" />
  37. </el-select>
  38. </el-form-item>
  39. </el-col>
  40. </el-row>
  41. <el-row>
  42. <el-col :span="12">
  43. <el-form-item
  44. :label="$t('defaultParameter.blxsdws')" prop="decimalRate">
  45. <el-select v-model="createTemp.decimalRate" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.blxsdws')" class="filter-item" style="width:100%">
  46. <el-option v-for="item in rateDecimalPlacesList" :key="item.id" :label="item.name" :value="item.id" />
  47. </el-select>
  48. </el-form-item>
  49. </el-col>
  50. <el-col :span="12">
  51. <el-form-item
  52. :label="$t('defaultParameter.sfqyslht')" prop="isEnableContract">
  53. <el-select v-model="createTemp.isEnableContract" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.sfqyslht')" class="filter-item" style="width:100%">
  54. <el-option v-for="item in feedontractList" :key="item.id" :label="item.name" :value="item.id" />
  55. </el-select>
  56. </el-form-item>
  57. </el-col>
  58. </el-row>
  59. <el-row>
  60. <el-col :span="12">
  61. <el-form-item
  62. :label="$t('defaultParameter.qyslsdnts')" prop="isLockCount">
  63. <el-select v-model="createTemp.isLockCount" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.qyslsdnts')" class="filter-item" style="width:100%">
  64. <el-option v-for="item in isLockBullsList" :key="item.id" :label="item.name" :value="item.id" />
  65. </el-select>
  66. </el-form-item>
  67. </el-col>
  68. <el-col :span="12">
  69. <el-form-item
  70. :label="$t('defaultParameter.clzzcszltxbl')" prop="remainOptRate">
  71. <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" :placeholder="$t('defaultParameter.clzzcszltxbl')" type="text" />
  72. </el-form-item>
  73. </el-col>
  74. </el-row>
  75. <el-row>
  76. <el-col :span="12">
  77. <el-form-item
  78. :label="$t('defaultParameter.clzdzczlzzbl')" prop="remainOptRate">
  79. <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" :placeholder="$t('defaultParameter.clzdzczlzzbl')" type="text" />
  80. </el-form-item>
  81. </el-col>
  82. <el-col :span="12">
  83. <el-form-item
  84. :label="$t('defaultParameter.sfqybl')" prop="isEnableSupplyFeed">
  85. <el-select v-model="createTemp.isEnableSupplyFeed" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.sfqybl')" class="filter-item" style="width:100%">
  86. <el-option v-for="item in isSupplementList" :key="item.id" :label="item.name" :value="item.id" />
  87. </el-select>
  88. </el-form-item>
  89. </el-col>
  90. </el-row>
  91. <el-row>
  92. <el-col :span="12">
  93. <el-form-item
  94. :label="$t('defaultParameter.sfqysl')" prop="isEnableRemainFeed">
  95. <el-select v-model="createTemp.isEnableRemainFeed" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.sfqysl')" class="filter-item" style="width:100%">
  96. <el-option v-for="item in isLeftoverMaterialList" :key="item.id" :label="item.name" :value="item.id" />
  97. </el-select>
  98. </el-form-item>
  99. </el-col>
  100. <el-col :span="12">
  101. <el-form-item
  102. :label="$t('defaultParameter.slclxx')" prop="remainOpt">
  103. <el-select v-model="createTemp.remainOpt" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.slclxx')" class="filter-item" style="width:100%">
  104. <el-option v-for="item in disposalList" :key="item.id" :label="item.fname" :value="item.id" />
  105. </el-select>
  106. </el-form-item>
  107. </el-col>
  108. </el-row>
  109. <el-row>
  110. <el-col :span="12">
  111. <el-form-item
  112. :label="$t('defaultParameter.slfbfs')" prop="remainOptDis">
  113. <el-select v-model="createTemp.remainOptDis" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.slfbfs')" class="filter-item" style="width:100%">
  114. <el-option v-for="item in leftoverMaterialList" :key="item.id" :label="item.name" :value="item.name" />
  115. </el-select>
  116. </el-form-item>
  117. </el-col>
  118. <el-col :span="12">
  119. <el-form-item
  120. :label="$t('defaultParameter.slfbzbyl')" prop="remainOptRate">
  121. <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" :placeholder="$t('defaultParameter.slfbzbyl')" type="text" />
  122. </el-form-item>
  123. </el-col>
  124. </el-row>
  125. <el-row>
  126. <el-col :span="12">
  127. <el-form-item
  128. :label="$t('defaultParameter.xlsfcz')" prop="isSmallMaterial">
  129. <el-select v-model="createTemp.isSmallMaterial" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.xlsfcz')" class="filter-item" style="width:100%">
  130. <el-option v-for="item in smallMaterialList" :key="item.id" :label="item.name" :value="item.id" />
  131. </el-select>
  132. </el-form-item>
  133. </el-col>
  134. <el-col :span="12">
  135. <el-form-item
  136. :label="$t('defaultParameter.sfqysjtb')" prop="isDataSync">
  137. <el-select v-model="createTemp.isDataSync" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.sfqysjtb')" class="filter-item" style="width:100%">
  138. <el-option v-for="item in dataSynchronizationList" :key="item.id" :label="item.name" :value="item.id" />
  139. </el-select>
  140. </el-form-item>
  141. </el-col>
  142. </el-row>
  143. <el-row>
  144. <!-- <el-col :span="12">
  145. <el-form-item label="设备运转标准时间(分钟):" prop="remainOptRate">
  146. <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item"
  147. :placeholder="$t('defaultParameter.slfpzb')" type="text" />
  148. </el-form-item>
  149. </el-col> -->
  150. <el-col :span="12">
  151. <el-form-item
  152. :label="$t('defaultParameter.rycsl')" prop="anyCar">
  153. <el-input ref="anyCar" v-model="createTemp.anyCar" :disabled="isRoleEdit==false" class="filter-item" :placeholder="$t('defaultParameter.rycsl')" />
  154. </el-form-item>
  155. </el-col>
  156. <el-col :span="12">
  157. <el-form-item
  158. :label="$t('defaultParameter.hlzql')" prop="accuracy">
  159. <el-select v-model="createTemp.accuracy" :disabled="isRoleEdit==false" filterable :placeholder="$t('processAnalysis.hlzq')" class="filter-item" style="width:100%">
  160. <el-option v-for="item in accuracyList" :key="item.id" :label="item.name" :value="item.id" />
  161. </el-select>
  162. </el-form-item>
  163. </el-col>
  164. </el-row>
  165. <el-row>
  166. <!-- <el-col :span="12">
  167. <el-form-item label="设备运转标准时间(分钟):" prop="remainOptRate">
  168. <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item"
  169. :placeholder="$t('defaultParameter.slfpzb')" type="text" />
  170. </el-form-item>
  171. </el-col> -->
  172. <el-col :span="12">
  173. <el-form-item
  174. :label="$t('defaultParameter.yxslsjwc')" prop="sprinkleFeedTimeAllow">
  175. <el-input ref="sprinkleFeedTimeAllow" v-model="createTemp.sprinkleFeedTimeAllow" :disabled="isRoleEdit==false" class="filter-item" :placeholder="$t('defaultParameter.yxslsjwc')" type="text" />
  176. </el-form-item>
  177. </el-col>
  178. <el-col :span="12">
  179. <el-form-item
  180. :label="$t('defaultParameter.jtymip')" prop="domain">
  181. <el-input ref="domain" v-model="createTemp.domain" :disabled="isRoleEdit==false" class="filter-item" :placeholder="$t('defaultParameter.jtymip')" type="text" />
  182. </el-form-item>
  183. </el-col>
  184. <el-col :span="12">
  185. <el-form-item
  186. :label="$t('defaultParameter.tmrrl')" prop="tmrUpper">
  187. <el-input ref="tmrUpper" v-model="createTemp.tmrUpper" :disabled="isRoleEdit==false" class="filter-item" :placeholder="$t('defaultParameter.tmrrl')" type="number" />
  188. </el-form-item>
  189. </el-col>
  190. <el-col :span="12">
  191. <el-form-item
  192. :label="$t('defaultParameter.tmrrl1')" prop="tmrUnder">
  193. <el-input ref="tmrUnder" v-model="createTemp.tmrUnder" :disabled="isRoleEdit==false" class="filter-item" :placeholder="$t('defaultParameter.tmrrl1')" type="number" />
  194. </el-form-item>
  195. </el-col>
  196. <el-col :span="12">
  197. <el-form-item
  198. :label="$t('defaultParameter.yhlyxwc')" prop="yhfeedtemplet">
  199. <el-input ref="yhfeedtemplet" v-model="createTemp.yhfeedtemplet" :disabled="isRoleEdit==false" class="filter-item" placeholder="kg" type="number" />
  200. </el-form-item>
  201. </el-col>
  202. <el-col :span="12">
  203. <el-form-item
  204. :label="$t('defaultParameter.yhtzys')" prop="yhautosecond">
  205. <el-select v-model="createTemp.yhautosecond" :disabled="isRoleEdit==false" filterable :placeholder="$t('defaultParameter.yhtzys')" class="filter-item" style="width:100%">
  206. <el-option v-for="item in yhautosecondList" :key="item.id" :label="item.name" :value="item.id" />
  207. </el-select>
  208. </el-form-item>
  209. </el-col>
  210. </el-row>
  211. </el-form>
  212. <div slot="footer" class="dialog-footer" style="bottom: 10px;">
  213. <el-button v-if="isRoleEdit" class="save" :disabled="isokDisable" @click="handleSave">{{$t('formulationEvaluation.save')}}</el-button>
  214. <el-button v-if="isRoleEdit" class="warning" :disabled="isokDisable" @click="handleRecovery">{{$t('defaultParameter.hfmr')}}</el-button>
  215. </div>
  216. <el-dialog :title="textMap[description.dialogStatus]" :destroy-on-close="true" :visible.sync="description.dialogFormVisible" :close-on-click-modal="false" width="70%">
  217. <div class="app-description dialogMinHeight">
  218. <div class="content">
  219. {{$t('defaultParameter.msg1')}}
  220. <br>
  221. {{$t('defaultParameter.msg2')}}
  222. <br>
  223. {{$t('defaultParameter.msg3')}}
  224. <br>
  225. {{$t('defaultParameter.msg4')}}
  226. <br>
  227. {{$t('defaultParameter.msg5')}}
  228. <br>
  229. {{$t('defaultParameter.msg6')}}
  230. <br>
  231. {{$t('defaultParameter.msg7')}}
  232. <br>
  233. {{$t('defaultParameter.msg8')}}
  234. <br>
  235. {{$t('defaultParameter.msg9')}}
  236. <br>
  237. {{$t('defaultParameter.msg10')}}
  238. <br>
  239. {{$t('defaultParameter.msg11')}}
  240. <br>
  241. {{$t('defaultParameter.msg12')}}
  242. <br>
  243. {{$t('defaultParameter.msg121')}}
  244. <br>
  245. {{$t('defaultParameter.msg13')}}
  246. <br>
  247. {{$t('defaultParameter.msg14')}}
  248. <br>
  249. {{$t('defaultParameter.msg15')}}
  250. </div>
  251. </div>
  252. <div slot="footer" class="dialog-footer">
  253. <el-button class="cancelClose" @click="description.dialogFormVisible = false; ">{{$t('common.closed')}}</el-button>
  254. </div>
  255. </el-dialog>
  256. </div>
  257. </template>
  258. <script>
  259. import { GetDataByName, GetDataByNames, failproccess, checkButtons, ExecDataByConfig } from '@/api/common'
  260. import Cookies from 'js-cookie'
  261. import { MessageBox } from 'element-ui'
  262. export default {
  263. name: 'DefaultParameter',
  264. data() {
  265. return {
  266. isRoleEdit: [],
  267. planBeforeDayList: [{ id: '1',
  268. name:this.$t('supplier.yes')}, { id: '0',
  269. name:this.$t('supplier.no') }], // 是否可取前一天计划
  270. planNextDayList: [{ id: '1',
  271. name:this.$t('supplier.yes')}, { id: '0',
  272. name:this.$t('supplier.no') }], // 是否可取后一天计划
  273. isSupplementList: [{ id: '1',
  274. name:this.$t('supplier.yes')}, { id: '0',
  275. name:this.$t('supplier.no') }], // 是否启用补料
  276. isLeftoverMaterialList: [{ id: '1',
  277. name:this.$t('supplier.yes')}, { id: '0',
  278. name:this.$t('supplier.no') }], // 是否启用剩料
  279. decimalPlacesList: [{ id: '0',
  280. name:this.$t('supplier.zs') }, { id: '1',
  281. name:this.$t('supplier.xs1') }, { id: '2',
  282. name:this.$t('supplier.xs2') }, { id: '3',
  283. name:this.$t('supplier.xs3') }], // 日计划报表小数点位数
  284. isLockBullsList: [{ id: '1',
  285. name:this.$t('supplier.yes')}, { id: '0',
  286. name:this.$t('supplier.no') }], // 启用饲料锁定牛头数
  287. disposalList: [], // 剩料处理选项
  288. numberList: [{ id: '0', name: '1' }, { id: '1', name: '2' }, { id: '2', name: '3' }, { id: '3', name: '4' },{ id: '4', name: '5' },{ id: '5', name: '6' }], // 班次数量
  289. feedontractList: [{ id: '1',
  290. name:this.$t('supplier.yes')}, { id: '0',
  291. name:this.$t('supplier.no') }], // 是否启用饲料合同
  292. leftoverMaterialList: [{ id: '0',
  293. name:this.$t('supplier.defb') }, { id: '1',
  294. name:this.$t('supplier.slfb') }],
  295. weightDecimalPlacesList: [{ id: '0',
  296. name:this.$t('supplier.zs') }, { id: '1',
  297. name:this.$t('supplier.xs1') }, { id: '2',
  298. name:this.$t('supplier.xs2') }, { id: '3',
  299. name:this.$t('supplier.xs3') }, { id: '4',
  300. name:this.$t('supplier.xs4') }], // 重量小数点位数
  301. rateDecimalPlacesList: [{ id: '0',
  302. name:this.$t('supplier.zs') }, { id: '1',
  303. name:this.$t('supplier.xs1') }, { id: '2',
  304. name:this.$t('supplier.xs2') }],//比例小数点位数
  305. smallMaterialList: [{ id: '1',
  306. name:this.$t('supplier.yes')}, { id: '0',
  307. name:this.$t('supplier.no') }], // 小料是否称量
  308. dataSynchronizationList: [{ id: '1',
  309. name:this.$t('supplier.yes')}, { id: '0',
  310. name:this.$t('supplier.no') }], // 是否启用数据同步
  311. accuracyList: [{ id: '1',
  312. name:this.$t('supplier.pfyxwczql') }, { id: '0',
  313. name:this.$t('supplier.pfyxwczql1') }], //混料准确率
  314. yhautosecondList:[{ id: '1',
  315. name:this.$t('supplier.jy') }, { id: '2', name: '3秒' }, { id: '3', name: '6秒' }, { id: '4', name: '9秒' }], //预混跳转延时
  316. requestParams: [
  317. { name: 'getRemainFeedList', offset: 0, pagecount: 0, parammaps: { pastureid: Cookies.get('pastureid') }}
  318. ],
  319. getdataListParm: {
  320. name: 'getysoptList',
  321. page: 1,
  322. offset: 1,
  323. pagecount: 10,
  324. returntype: 'Map',
  325. parammaps: {
  326. pastureid: Cookies.get('pastureid')
  327. }
  328. },
  329. tableKey: 0,
  330. listLoading: true,
  331. createTemp: {},
  332. rules: {},
  333. description: {
  334. dialogFormVisible: false,
  335. dialogStatus: ''
  336. },
  337. textMap: {
  338. description:this.$t('supplier.cssm')
  339. },
  340. isokDisable: false,
  341. requestParam: {}
  342. }
  343. },
  344. created() {
  345. this.getList()
  346. this.getButtons()
  347. this.getDownList()
  348. },
  349. methods: {
  350. getButtons() {
  351. const Edit = 'DefaultParameter'
  352. const isRoleEdit = checkButtons(JSON.parse(sessionStorage.getItem('buttons')), Edit)
  353. this.isRoleEdit = isRoleEdit
  354. },
  355. getDownList() {
  356. GetDataByNames(this.requestParams).then(response => {
  357. this.disposalList = response.data.getRemainFeedList.list
  358. })
  359. },
  360. getList() {
  361. this.listLoading = true
  362. GetDataByName(this.getdataListParm).then(response => {
  363. console.log('table1数据', response.data.list)
  364. if (response.data.list !== null) {
  365. this.createTemp = response.data.list[0]
  366. } else {
  367. this.list = []
  368. }
  369. setTimeout(() => {
  370. this.listLoading = false
  371. }, 100)
  372. })
  373. },
  374. handleSave() {
  375. console.log('点击了保存')
  376. this.isokDisable = true
  377. setTimeout(() => {
  378. this.isokDisable = false
  379. }, 1000)
  380. if(this.createTemp.anyCar == '' || this.createTemp.anyCar == 0){
  381. this.$message({ type: 'error', message: '任意车数量不能为空或为0', duration: 2000 })
  382. }
  383. this.requestParam.common = { 'returnmap': '0' }
  384. this.requestParam.data = []
  385. this.requestParam.data[0] = { 'name': 'updatesysopt', 'type': 'e', 'parammaps': {
  386. pastureid: this.createTemp.pastureid,
  387. isGetLastPlan: this.createTemp.isGetLastPlan,
  388. isGetNextPlan: this.createTemp.isGetNextPlan,
  389. isEnableSupplyFeed: this.createTemp.isEnableSupplyFeed,
  390. isEnableRemainFeed: this.createTemp.isEnableRemainFeed,
  391. reportDigit: this.createTemp.reportDigit,
  392. isLockCount: this.createTemp.isLockCount,
  393. remainOpt: this.createTemp.remainOpt,
  394. waterOpt: this.createTemp.waterOpt,
  395. overweightWarnRate: this.createTemp.overweightWarnRate,
  396. overweightBanRate: this.createTemp.overweightBanRate,
  397. repertoryWarn: this.createTemp.repertoryWarn,
  398. isfeedstorage: this.createTemp.isfeedstorage,
  399. times: this.createTemp.times,
  400. decimalPlaces: this.createTemp.decimalPlaces,
  401. decimalRate: this.createTemp.decimalRate,
  402. isEnableContract: this.createTemp.isEnableContract,
  403. remainOptDis: this.createTemp.remainOptDis,
  404. remainOptRate: this.createTemp.remainOptRate,
  405. isSmallMaterial: this.createTemp.isSmallMaterial,
  406. isDataSync: this.createTemp.isDataSync,
  407. anyCar:this.createTemp.anyCar,
  408. accuracy:this.createTemp.accuracy,
  409. sprinkleFeedTimeAllow:this.createTemp.sprinkleFeedTimeAllow,
  410. domain:this.createTemp.domain,
  411. tmrUpper:this.createTemp.tmrUpper,
  412. tmrUnder:this.createTemp.tmrUnder,
  413. yhfeedtemplet:this.createTemp.yhfeedtemplet,
  414. yhautosecond:this.createTemp.yhautosecond,
  415. }}
  416. this.requestParam.data[1] = { 'name': 'updateFPbyFTChangeALL', 'type': 'e', 'parammaps': {
  417. pastureid: this.createTemp.pastureid
  418. }}
  419. ExecDataByConfig(this.requestParam).then(response => {
  420. console.log('保存发送参数', this.requestParam)
  421. if (response.msg !== 'fail') {
  422. this.$notify({ title: this.$t('common.succes'), message: this.$t('driver.saveSuccess'), type: 'success', duration: 2000 })
  423. this.getList()
  424. } else {
  425. this.$notify({ title: this.$t('driver.saveFail'), message: response.data, type: 'warning', duration: 2000 })
  426. }
  427. })
  428. },
  429. handleRecovery() {
  430. console.log('点击了恢复默认')
  431. this.isokDisable = true
  432. setTimeout(() => {
  433. this.isokDisable = false
  434. }, 1000)
  435. MessageBox.confirm('是否确认恢复默认设置?', {
  436. confirmButtonText: this.$t('common.confirm'), confirmButtonText: this.$t('common.cancel'), type: 'warning'
  437. }).then(() => {
  438. this.requestParam.common = { 'returnmap': '0' }
  439. this.requestParam.data = []
  440. this.requestParam.data[0] = { 'name': 'updatesysoptinit', 'type': 'e', 'parammaps': {
  441. pastureid: this.createTemp.pastureid
  442. }}
  443. this.requestParam.data[1] = { 'name': 'updateFPbyFTChangeALL', 'type': 'e', 'parammaps': {
  444. pastureid: this.createTemp.pastureid
  445. }}
  446. ExecDataByConfig(this.requestParam).then(response => {
  447. console.log('保存发送参数', this.requestParam)
  448. if (response.msg !== 'fail') {
  449. this.$notify({ title: this.$t('common.succes'), message: this.$t('driver.saveSuccess'), type: 'success', duration: 2000 })
  450. this.getList()
  451. } else {
  452. this.$notify({ title: this.$t('driver.saveFail'), message: response.data, type: 'warning', duration: 2000 })
  453. }
  454. })
  455. })
  456. },
  457. handleDescription() {
  458. this.description.dialogStatus = 'description'
  459. this.description.dialogFormVisible = true
  460. }
  461. }
  462. }
  463. </script>
  464. <style lang="scss" scoped>
  465. .app-description{
  466. display:flex; justify-content: center; align-items: center;font-size: 14px;line-height: 28px;
  467. .content{
  468. display:flex;
  469. }
  470. }
  471. </style>