safecheck-client 3.0.30-7 → 3.0.30-71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/components/Util.js +15 -0
  4. package/src/components/android/AddPlanItem.vue +5 -2
  5. package/src/components/android/AreaPlan.vue +2 -2
  6. package/src/components/android/CurrentCreate.vue +3 -2
  7. package/src/components/android/CurrentCreate_new.vue +563 -559
  8. package/src/components/android/PhoneotherInfo.vue +132 -132
  9. package/src/components/android/SafecheckOrderV.vue +2 -2
  10. package/src/components/android/UploadPage.vue +13 -123
  11. package/src/components/paper/PlanChooser.vue +8 -6
  12. package/src/components/pc/Edit.vue +126 -0
  13. package/src/components/pc/LodopFuncs.js +159 -0
  14. package/src/components/pc/NewCheckpaper.vue +9 -5
  15. package/src/components/pc/PaperEdit.vue +151 -0
  16. package/src/components/pc/PrintData.vue +243 -0
  17. package/src/components/pc/PrintTable.vue +241 -0
  18. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -278
  19. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  20. package/src/components/report/NoCheckplanSafecheck.vue +0 -2
  21. package/src/filiale/bayan/android/SafecheckDevices.vue +1303 -1303
  22. package/src/filiale/bayan/android/SafecheckOrderV.vue +2850 -2850
  23. package/src/filiale/bayan/android/SafecheckUserInfo.vue +806 -806
  24. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  25. package/src/filiale/fugou/android.js +10 -0
  26. package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -1477
  27. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -1294
  28. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  29. package/src/filiale/hanzhong/android.js +16 -16
  30. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  31. package/src/filiale/hanzhong/pc.js +4 -1
  32. package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
  33. package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
  34. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  35. package/src/filiale/jingyang/pc/PaperList.vue +1 -2
  36. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  37. package/src/filiale/kelai/android.js +1 -0
  38. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  39. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  40. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  41. package/src/filiale/tianke/pc/checkScreen.vue +781 -781
  42. package/src/filiale/tianke/pc/cq.jpg +0 -0
  43. package/src/filiale/tianke/pc/qy.jpg +0 -0
  44. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  45. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1095 -1090
  46. package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
  47. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  48. package/src/filiale/wensu/android.js +1 -0
  49. package/src/filiale/wensu/pc/CheckSearchUser.vue +64 -0
  50. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  51. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  52. package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
  53. package/src/filiale/wensu/pc/checkUserList.vue +50 -0
  54. package/src/filiale/wensu/pc.js +2 -1
  55. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  56. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2069 -2041
  57. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  58. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
  59. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  60. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  61. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  62. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  63. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  64. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  65. package/src/filiale/yongzhou/pc/communityDetail.vue +35 -12
  66. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
  67. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
  68. package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
  69. package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
  70. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +88 -29
  71. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +63 -27
  72. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
  73. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  74. package/src/filiale/yongzhou/pc.js +17 -12
  75. package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
  76. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  77. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  78. package/src/safecheck-android.js +290 -290
  79. package/src/safecheck.js +12 -0
@@ -0,0 +1,126 @@
1
+ <template>
2
+ <div>
3
+ <button @click="handleClick">渲染</button>
4
+ <button @click="savePaper">保存</button>
5
+ <iframe v-if="showSketchPage" :src="sketchPageSrc" id="aaaa2" style="width: 100%; height: 600px;"></iframe>
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
11
+ import * as util from "../Util"
12
+
13
+ export default {
14
+ title: 'App',
15
+ data() {
16
+ return {
17
+ inputText: '',
18
+ showSketchPage: false,
19
+ sketchPageSrc: '/sketch',
20
+ sketchId: '',
21
+ title: '',
22
+ paperMessage: ''
23
+ };
24
+ },
25
+ props: {
26
+ row: {
27
+ type: Object
28
+ }
29
+ },
30
+ ready() {
31
+ if (this.row) {
32
+ try {
33
+ let hex = Buffer.from(this.row.blob, 'hex').toString('utf8');
34
+ if (!hex.includes('{')) {
35
+ this.inputText = Buffer.from(hex, 'hex').toString('utf8');
36
+ } else {
37
+ this.inputText = hex;
38
+ }
39
+ } catch (e) {
40
+ this.$showMessage('网络异常请联系管理员')
41
+ }
42
+ }
43
+ this.handleClick()
44
+ },
45
+ methods: {
46
+ handleClick() {
47
+ this.showSketchPage = true;
48
+ this.$nextTick(() => {
49
+ const sketchIframe = document.getElementById('aaaa2');
50
+
51
+ window.addEventListener('message', (event) => {
52
+ if (JSON.parse(event.data.param).gadgets.length > 0) {
53
+ this.paperMessage = event.data.param;
54
+ }
55
+ });
56
+
57
+ sketchIframe.contentWindow.postMessage(this.inputText, '*');
58
+ })
59
+ },
60
+ savePaper() {
61
+ if (!this.paperMessage) {
62
+ this.$showMessage('请先点击左上角保存图标')
63
+ return
64
+ }
65
+ let param = JSON.parse(this.paperMessage)
66
+ if (!param.title) {
67
+ this.$showMessage('请填写示意图标题')
68
+ return
69
+ }
70
+ param.sketchId = param.sketchId ? param.sketchId : util.generateUUID()
71
+ let gadgets = param.gadgets
72
+ if (gadgets.length > 0) {
73
+ var jsonString = JSON.stringify(param);
74
+ var reqdata = {
75
+ blob: Buffer.from(jsonString,'utf8').toString('hex'),
76
+ orgid: this.$login.f.orgid,
77
+ orgname: this.$login.f.orgs,
78
+ title: param.title,
79
+ sketchId: param.sketchId
80
+ }
81
+ new HttpResetClass().load('POST', 'rs/logic/savePaperEdit', {data: reqdata}).then(res => {
82
+ if (res.data.code === 200) {
83
+ this.$showMessage('保存成功')
84
+ } else {
85
+ this.$showMessage('保存失败')
86
+ }
87
+ })
88
+ }
89
+ },
90
+ hexToBytes(hex) {
91
+ for (var bytes = [], c = 0; c < hex.length; c += 2)
92
+ bytes.push(parseInt(hex.substring(c, 2), 16));
93
+ return new Uint8Array(bytes);
94
+ },
95
+ decodeHexStringToJSON(hexString) {
96
+ // 去除前缀 "0x"
97
+ var cleanHexString = hexString.slice(2);
98
+
99
+ // 将十六进制字符串转换为字节数组
100
+ var byteArray = this.hexToBytes(cleanHexString);
101
+
102
+ // 创建 Blob 对象
103
+ var blob = new Blob([byteArray], {type: 'application/json'});
104
+
105
+ // 读取 Blob 为文本
106
+ return new Promise(function(resolve, reject) {
107
+ var reader = new FileReader();
108
+ reader.onloadend = function() {
109
+ resolve(reader.result);
110
+ };
111
+ reader.onerror = function() {
112
+ reject(reader.error);
113
+ };
114
+ reader.readAsText(blob, 'UTF-8');
115
+ });
116
+ }
117
+ },
118
+ // beforeDestroy() {
119
+ // this.savePaper()
120
+ // }
121
+ }
122
+ </script>
123
+
124
+ <style>
125
+ /* 这里可以添加样式 */
126
+ </style>
@@ -0,0 +1,159 @@
1
+ var CreatedOKLodop7766 = null
2
+
3
+ // ====判断是否需要安装CLodop云打印服务器:====
4
+ function needCLodop () {
5
+ // return false;
6
+ try {
7
+ // 看是什么浏览器
8
+ var ua = navigator.userAgent
9
+ // windows,安装
10
+ if (ua.match(/Windows\sPhone/i) != null) return true
11
+ // iPhone, 安装
12
+ if (ua.match(/iPhone|iPod/i) != null) return true
13
+ // Android, 安装
14
+ if (ua.match(/Android/i) != null) return true
15
+ // Edge,安装
16
+ if (ua.match(/Edge\D?\d+/i) != null) return true
17
+ // QQ,不安装
18
+ if (ua.match(/QQBrowser/i) != null) return false
19
+
20
+ var verTrident = ua.match(/Trident\D?\d+/i)
21
+ var verIE = ua.match(/MSIE\D?\d+/i)
22
+ var verOPR = ua.match(/OPR\D?\d+/i)
23
+ var verFF = ua.match(/Firefox\D?\d+/i)
24
+ var x64 = ua.match(/x64/i)
25
+ if ((verTrident == null) && (verIE == null) && (x64 !== null)) {
26
+ return true
27
+ } else if (verFF !== null) {
28
+ verFF = verFF[0].match(/\d+/)
29
+ if (verFF[0] >= 42) return true
30
+ } else if (verOPR !== null) {
31
+ verOPR = verOPR[0].match(/\d+/)
32
+ if (verOPR[0] >= 32) return true
33
+ } else if ((verTrident == null) && (verIE == null)) {
34
+ var verChrome = ua.match(/Chrome\D?\d+/i)
35
+ if (verChrome !== null) {
36
+ verChrome = verChrome[0].match(/\d+/)
37
+ if (verChrome[0] >= 42) return true
38
+ }
39
+ }
40
+ return false
41
+ } catch (err) {
42
+ return true
43
+ }
44
+ }
45
+
46
+ // ====页面引用CLodop云打印必须的JS文件:====
47
+ if (needCLodop()) {
48
+ var head = document.head || document.getElementsByTagName('head')[0] || document.documentElement
49
+ var oscript = document.createElement('script')
50
+ // 让本机浏览器打印(更优先):
51
+ oscript.src = 'http://localhost:18000/CLodopfuncs.js?priority=1'
52
+ head.insertBefore(oscript, head.firstChild)
53
+ }
54
+
55
+ // ====获取LODOP对象的主过程:====
56
+ function getLodop (oOBJECT, oEMBED) {
57
+ // 显示提示用的内容
58
+ var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://113.10.155.131/install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"
59
+ var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://113.10.155.131/install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>"
60
+ var strHtm64_Install = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://113.10.155.131/install_lodop64.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"
61
+ var strHtm64_Update = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://113.10.155.131/install_lodop64.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>"
62
+ var strHtmFireFox = "<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>"
63
+ var strHtmChrome = "<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>"
64
+ var strCLodopInstall = "<br><font color='#FF00FF'>CLodop云打印服务(localhost本地)未安装启动!点击这里<a href='CLodopPrint_Setup_for_Win32NT.zip' target='_self'>执行安装</a>,安装后请刷新页面。</font>"
65
+ var strCLodopUpdate = "<br><font color='#FF00FF'>CLodop云打印服务需升级!点击这里<a href='CLodopPrint_Setup_for_Win32NT.zip' target='_self'>执行升级</a>,升级后请刷新页面。</font>"
66
+
67
+ var LODOP
68
+ try {
69
+ var isIE = (navigator.userAgent.indexOf('MSIE') >= 0) || (navigator.userAgent.indexOf('Trident') >= 0)
70
+ if (needCLodop()) {
71
+ try {
72
+ // 调用脚本中的获取打印对象
73
+ LODOP = getCLodop()
74
+ } catch (err) {
75
+ }
76
+ // 如果没找到打印控件
77
+ if (!LODOP && document.readyState !== 'complete') {
78
+ alert('C-Lodop没准备好,请稍后再试!')
79
+ return
80
+ }
81
+ if (!LODOP) {
82
+ if (isIE) {
83
+ // document.write(strCLodopInstall)
84
+ if(confirm('CLodop云打印服务(localhost本地)未安装启动!你确定要安装吗?\n(点击确定进行安装,安装后请刷新页面)')){
85
+ window.open('download/CLodop_Setup_for_Win32NT.exe')
86
+ }
87
+ }
88
+ else {
89
+ // document.documentElement.innerHTML = strCLodopInstall + document.documentElement.innerHTML
90
+ if(confirm('CLodop云打印服务(localhost本地)未安装启动!你确定要安装吗?\n(点击确定进行安装,安装后请刷新页面)')){
91
+ window.open('download/CLodop_Setup_for_Win32NT.exe')
92
+ }
93
+ }
94
+ return
95
+ } else { // 找到后的处理
96
+ if (CLODOP.CVERSION < '2.0.6.2') {
97
+ if (isIE) document.write(strCLodopUpdate)
98
+ else {
99
+ document.documentElement.innerHTML = strCLodopUpdate + document.documentElement.innerHTML
100
+ }
101
+ }
102
+ if (oEMBED && oEMBED.parentNode) oEMBED.parentNode.removeChild(oEMBED)
103
+ if (oOBJECT && oOBJECT.parentNode) oOBJECT.parentNode.removeChild(oOBJECT)
104
+ }
105
+ } else { // 非云服务
106
+ var is64IE = isIE && (navigator.userAgent.indexOf('x64') >= 0)
107
+ // =====如果页面有Lodop就直接使用,没有则新建:==========
108
+ if (oOBJECT !== undefined || oEMBED !== undefined) {
109
+ if (isIE) LODOP = oOBJECT
110
+ else LODOP = oEMBED
111
+ } else if (CreatedOKLodop7766 == null) {
112
+ LODOP = document.createElement('object')
113
+ LODOP.setAttribute('width', 0)
114
+ LODOP.setAttribute('height', 0)
115
+ LODOP.setAttribute('style', 'position:absolute;left:0px;top:-100px;width:0px;height:0px;')
116
+ if (isIE) LODOP.setAttribute('classid', 'clsid:2105C259-1E0C-4534-8141-A753534CB4CA')
117
+ else LODOP.setAttribute('type', 'application/x-print-lodop')
118
+ document.documentElement.appendChild(LODOP)
119
+ CreatedOKLodop7766 = LODOP
120
+ } else LODOP = CreatedOKLodop7766
121
+ // =====Lodop插件未安装时提示下载地址:==========
122
+ if ((LODOP == null) || (typeof (LODOP.VERSION) === 'undefined')) {
123
+ if (navigator.userAgent.indexOf('Chrome') >= 0) {
124
+ document.documentElement.innerHTML = strHtmChrome + document.documentElement.innerHTML
125
+ }
126
+ if (navigator.userAgent.indexOf('Firefox') >= 0) {
127
+ document.documentElement.innerHTML = strHtmFireFox + document.documentElement.innerHTML
128
+ }
129
+ if (is64IE) document.write(strHtm64_Install)
130
+ else if (isIE) document.write(strHtmInstall)
131
+ else {
132
+ document.documentElement.innerHTML = strHtmInstall + document.documentElement.innerHTML
133
+ }
134
+ return LODOP
135
+ }
136
+ }
137
+
138
+ // 检查版本
139
+ if (LODOP.VERSION < '6.2.0.3') {
140
+ if (needCLodop()) {
141
+ document.documentElement.innerHTML = strCLodopUpdate + document.documentElement.innerHTML
142
+ } else if (is64IE) {
143
+ document.write(strHtm64_Update)
144
+ } else if (isIE) {
145
+ document.write(strHtmUpdate)
146
+ } else {
147
+ document.documentElement.innerHTML = strHtmUpdate + document.documentElement.innerHTML
148
+ }
149
+ return LODOP
150
+ }
151
+ // ===如下空白位置适合调用统一功能(如注册语句、语言选择等):===
152
+ LODOP.SET_LICENSES('西安奥枫软件有限公司', '552C41D5AB0D146FCF77D05CD8AA15A1', '', '')
153
+ return LODOP
154
+ } catch (err) {
155
+ alert('getLodop出错:' + err)
156
+ }
157
+ }
158
+
159
+ export default getLodop
@@ -1330,13 +1330,17 @@ export default {
1330
1330
  }
1331
1331
  }
1332
1332
  //tag
1333
-
1334
1333
  //tag)
1335
- if (!this.item.f_safecheck_type) {
1334
+ if (!this.item.f_safecheck_type && Vue.config.safecheck.SafecheckType) {
1336
1335
  this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度普检'][this.item.f_check_type]])
1337
- } else {
1338
- if (Vue.config.safecheck.DevicesConfig != undefined)
1339
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
1336
+ } else if (Vue.config.safecheck.SafecheckType){
1337
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
1338
+ }else {
1339
+ if(this.item.f_check_type == '民用'){
1340
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1341
+ }else {
1342
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1343
+ }
1340
1344
  }
1341
1345
  //遍历安检项配置
1342
1346
  for (let i in this.config) {
@@ -0,0 +1,151 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
5
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-2">
9
+ <label class="font_normal_body">用户编号</label>
10
+ <input type="text" class="input_search" v-model="model.title"
11
+ condition="tui.f_userinfo_code like '%{}%'"
12
+ style="width: 60%" placeholder="示意图标题" >
13
+ </div>
14
+ <div class="form-group col-sm-2">
15
+ <label class="font_normal_body">示意图标题</label>
16
+ <input type="text" class="input_search" v-model="model.title"
17
+ condition="tcs.title like '%{}%'"
18
+ style="width: 60%" placeholder="示意图标题" >
19
+ </div>
20
+ <div class="form-group col-sm-2">
21
+ <label class="font_normal_body">示意图id</label>
22
+ <input type="text" class="input_search" v-model="model.blob_id"
23
+ condition="tcs.blob_id like '%{}%'"
24
+ style="width: 60%" placeholder="示意图id" >
25
+ </div>
26
+ <div class="form-group col-sm-2">
27
+ <label class="font_normal_body">单位名称</label>
28
+ <input type="text" class="input_search" v-model="model.gas_point_name"
29
+ condition="tcs.gas_point_name like '%{}%'"
30
+ style="width: 60%" placeholder="单位名称" >
31
+ </div>
32
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
33
+ <export-excel-safe :data="$parent.$parent.searchData"
34
+ :field="$parent.$parent.excelHeaders"
35
+ :choose-col="true"
36
+ sqlurl="rs/logic/SafeExportExcel" sql-name="queryPaperEdit"
37
+ template-name='图纸编辑'></export-excel-safe>
38
+ <button class="button_spacing button_search" @click="$parent.$parent.search()">查询</button>
39
+ <button class="button_spacing button_search" @click="$parent.$parent.change()">新建</button>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </criteria>
44
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
45
+ <template partial='head'>
46
+ <tr>
47
+ <th>
48
+ <nobr>序号</nobr>
49
+ </th>
50
+ <th>
51
+ <nobr>分公司</nobr>
52
+ </th>
53
+ <th>
54
+ <nobr>单位编号</nobr>
55
+ </th>
56
+ <th>
57
+ <nobr>单位名称</nobr>
58
+ </th>
59
+ <th>
60
+ <nobr>示意图标题</nobr>
61
+ </th>
62
+ <th>
63
+ <nobr>示意图id</nobr>
64
+ </th>
65
+
66
+ <th>
67
+ <nobr>操作</nobr>
68
+ </th>
69
+ </tr>
70
+ </template>
71
+ <template partial='body'>
72
+ <td style="text-align: center">{{ $index+1 }}</td>
73
+ <td style="text-align: center">{{ row.gas_point_name }}</td>
74
+ <td style="text-align: center">{{ row.gas_point_id }}</td>
75
+ <td style="text-align: center">{{ row.gas_point_name }}</td>
76
+ <td style="text-align: center">{{ row.title }}</td>
77
+ <td style="text-align: center">{{ row.blob_id }}</td>
78
+
79
+ <td style="text-align: center">
80
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
81
+ </td>
82
+ </template>
83
+ </data-grid>
84
+ </criteria-paged>
85
+ </div>
86
+ <modal :show.sync="showModal" v-ref:modal backdrop="false" :width="1200">
87
+ <div slot="modal-header" class="modal-header">
88
+ <h4 class="modal-title">
89
+ 打开图纸编辑
90
+ </h4>
91
+ </div>
92
+ <div slot="modal-body" class="modal-body">
93
+ <edit :row="rowData" v-if="showModal"></edit>
94
+ </div>
95
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
96
+ <button class="button_search" @click="cancel">取消</button>
97
+ </div>
98
+ </modal>
99
+ </div>
100
+ </template>
101
+
102
+ <script>
103
+ import {PagedList} from 'vue-client'
104
+ import Vue from 'vue'
105
+ import co from 'co'
106
+ import * as Util from '../Util'
107
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
108
+
109
+ export default {
110
+ title: '图纸编辑页面',
111
+ data() {
112
+ return {
113
+ searchData: {
114
+ condition: "1=1",
115
+ },
116
+ model: new PagedList('rs/sql/queryPaperEdit', 20, {}),
117
+ excelHeaders: {
118
+ 'id': '序号',
119
+ 'orgname': '分公司',
120
+ 'gas_point_id': '单位编号',
121
+ 'gas_point_name': '单位名称',
122
+ 'title': '示意图标题',
123
+ 'blob_id': '示意图id',
124
+ },
125
+ showModal: false,
126
+ rowData:''
127
+ }
128
+ },
129
+ methods: {
130
+ change(row) {
131
+ this.rowData = row
132
+ this.showModal = true
133
+ console.log(this)
134
+ },
135
+ search() {
136
+ this.$refs.paged.$refs.criteria.search()
137
+ },
138
+ cancel() {
139
+ this.showModal = false
140
+ },
141
+ selfSearch(args) {
142
+ this.searchData.condition = args.condition
143
+ this.model.search(args.condition, args.model, args.condValue)
144
+ }
145
+ },
146
+
147
+ ready() {
148
+
149
+ }
150
+ }
151
+ </script>