"lines-num lines-num-new"> 107
    return $default.post('/sp/resourceTool/createResourceTool', data).catch((err) => { return err })
73
  },
108
  },
74
  editDeviceData (data) {
109
  editDeviceData (data) {
75
    return $http.put('/system/editDeviceData', data).catch((err) => { return err })
110
    // return $http.put('/system/editDeviceData', data).catch((err) => { return err })
111
    data = keysMapping(data, mappingDeviceResponse)
112
    return $default.post('/sp/resourceTool/modifyResourceTool', data).catch((err) => { return err })
76
  }
113
  }
77
}
114
}
78
115

+ 27 - 14
security-protection-platform/src/modules/system/devicemana/components/modal/addDeviceModal.vue

10
      </i>
10
      </i>
11
    </template>
11
    </template>
12
    <t-form ref="addDeviceModalForm" :model="addDeviceModalForm" :rules="addDeviceModalFormRules" :label-span="2" label-position="right">
12
    <t-form ref="addDeviceModalForm" :model="addDeviceModalForm" :rules="addDeviceModalFormRules" :label-span="2" label-position="right">
13
      <t-form-item label="设备编号:" prop="deviceId">
14
        <t-input v-model="addDeviceModalForm.deviceId" placeholder="请输入设备编号"></t-input>
15
      </t-form-item>
13
      <t-form-item label="设备名称:" prop="deviceName">
16
      <t-form-item label="设备名称:" prop="deviceName">
14
        <t-input v-model="addDeviceModalForm.deviceName" :maxlength="100" :rows="3" count placeholder="请输入设备名称"></t-input>
17
        <t-input v-model="addDeviceModalForm.deviceName" placeholder="请输入设备名称"></t-input>
15
      </t-form-item>
18
      </t-form-item>
16
      <t-form-item label="设备类型:" prop="deviceTypeId">
19
      <t-form-item label="设备类型:" prop="deviceTypeId">
17
        <t-select v-model="addDeviceModalForm.deviceTypeId" placeholder="请选择设备类型">
20
        <t-select v-model="addDeviceModalForm.deviceTypeId" placeholder="请选择设备类型">
20
      </t-form-item>
23
      </t-form-item>
21
      <t-form-item label="图片上传:">
24
      <t-form-item label="图片上传:">
22
        <div style="display:flex;flex-direction:row">
25
        <div style="display:flex;flex-direction:row">
23
          <t-upload ref="uploader" :format="['jpg','jpeg','png']" :show-uploaded="false" :before-upload="$_onUploadBeforeUpload" :action="action" multiple type="drag" style="width:180px;height:180px" @success="$_onUploadSuccess" @remove-file="$_onUploadRemoveFile" @error="$_onUploadError" @file-ext-error="$_onUploadFormatError" @file-exceeded-size="$_onUploadExceededSize">
26
          <t-upload ref="uploader" :format="['jpg','jpeg','png']" :show-uploaded="false" :before-upload="$_onUploadBeforeUpload" :action="action" :data="{pictureUrl:addDeviceModalForm.pictureUrl}" name="picture" multiple type="drag" style="width:180px;height:180px" @success="$_onUploadSuccess" @remove-file="$_onUploadRemoveFile" @error="$_onUploadError" @file-ext-error="$_onUploadFormatError" @file-exceeded-size="$_onUploadExceededSize">
24
            <div style="width: 180px;height:180px;line-height: 180px">
27
            <div style="width: 180px;height:180px;line-height: 180px">
25
              <t-icon icon="plus-outline" size="40"></t-icon>
28
              <t-icon icon="plus-outline" size="40"></t-icon>
26
            </div>
29
            </div>
27
          </t-upload>
30
          </t-upload>
28
          <img v-show="addDeviceModalForm.imgUrl?true:false" :src="addDeviceModalForm.imgUrl" style="margin-left:20px;width: 180px;height:180px;">
31
          <img v-show="imgUrl?true:false" :src="imgUrl" style="margin-left:20px;width: 180px;height:180px;">
29
        </div>
32
        </div>
30
      </t-form-item>
33
      </t-form-item>
31
    </t-form>
34
    </t-form>
39
42
40
<script>
43
<script>
41
import sysapi from '@/api/system'
44
import sysapi from '@/api/system'
45
const defaultAddDeviceModalForm = {
46
  deviceId: '', // 设备id
47
  deviceName: '', // 设备名称
48
  deviceTypeId: '', // 设备类型id
49
  pictureUrl: '' // 图片标识
50
}
42
export default {
51
export default {
43
  props: {
52
  props: {
44
    // 显示 / 隐藏新增设备对话框
53
    // 显示 / 隐藏新增设备对话框
60
  data () {
69
  data () {
61
    return {
70
    return {
62
      // 新增设备对话框表单
71
      // 新增设备对话框表单
63
      addDeviceModalForm: {
64
        deviceName: '', // 设备名称
65
        deviceTypeId: '', // 设备类型id
66
        imgUrl: ''
67
      },
72
      addDeviceModalForm: JSON.parse(JSON.stringify(defaultAddDeviceModalForm)),
73
      imgUrl: '',
68
      // 请假对话框表单验证规则
74
      // 请假对话框表单验证规则
69
      addDeviceModalFormRules: {
75
      addDeviceModalFormRules: {
76
        deviceId: [
77
          { required: true, message: '设备编号不能为空', trigger: 'blur' }
78
        ],
70
        deviceName: [
79
        deviceName: [
71
          { required: true, message: '设备名称不能为空', trigger: 'blur' }
80
          { required: true, message: '设备名称不能为空', trigger: 'blur' }
72
        ],
81
        ],
76
      },
85
      },
77
      // 提交表单是否显示loading
86
      // 提交表单是否显示loading
78
      loadingSubmit: false,
87
      loadingSubmit: false,
79
      action: '',
88
      action: 'http://10.19.90.34:8018/sp/resourceTool/uploadResourceToolPicture',
80
      uploadList: () => []
89
      uploadList: () => []
81
    }
90
    }
82
  },
91
  },
93
    // 是否为编辑状态
102
    // 是否为编辑状态
94
    isEdit: {
103
    isEdit: {
95
      get () {
104
      get () {
96
        return this.addDeviceModalForm.deviceId != null
105
        return this.addDeviceModalForm.resourceToolId != null
97
      }
106
      }
98
    }
107
    }
99
  },
108
  },
101
    // 当前编辑设备
110
    // 当前编辑设备
102
    currentEditDevice (val) {
111
    currentEditDevice (val) {
103
      this.addDeviceModalForm = val
112
      this.addDeviceModalForm = val
113
      this.imgUrl = val.toolPictureUrl
104
    }
114
    }
105
  },
115
  },
106
  mounted () {
116
  mounted () {
109
  methods: {
119
  methods: {
110
    // 重置表单数据
120
    // 重置表单数据
111
    resetModalData () {
121
    resetModalData () {
112
      this.$refs.addDeviceModalForm.resetFields()
113
      this.addDeviceModalForm.deviceId = null
114
      this.addDeviceModalForm.imgUrl = ''
122
      this.addDeviceModalForm = JSON.parse(JSON.stringify(defaultAddDeviceModalForm))
123
      this.imgUrl = ''
115
      this.visibled = false
124
      this.visibled = false
116
    },
125
    },
117
    // 提交表单数据
126
    // 提交表单数据
124
          } else {
133
          } else {
125
            this.addDeviceData()
134
            this.addDeviceData()
126
          }
135
          }
127
          this.$emit('refresh-data')
128
        } else {
136
        } else {
129
          console.log('error--------->请输入完整的表单信息!')
137
          console.log('error--------->请输入完整的表单信息!')
130
          this.loadingSubmit = false
138
          this.loadingSubmit = false
140
        if (res.data.fail) {
148
        if (res.data.fail) {
141
          this.$Message.warning(res.data.fail)
149
          this.$Message.warning(res.data.fail)
142
        } else {
150
        } else {
151
          this.$emit('refresh-data')
143
          this.$Message.success('提交成功!')
152
          this.$Message.success('提交成功!')
144
        }
153
        }
145
      } else {
154
      } else {
156
        if (res.data.fail) {
165
        if (res.data.fail) {
157
          this.$Message.warning(res.data.fail)
166
          this.$Message.warning(res.data.fail)
158
        } else {
167
        } else {
168
          this.$emit('refresh-data')
159
          this.$Message.success('修改成功!')
169
          this.$Message.success('修改成功!')
160
        }
170
        }
161
      } else {
171
      } else {
177
      console.log(file)
187
      console.log(file)
178
    },
188
    },
179
    $_onUploadSuccess (res, file) {
189
    $_onUploadSuccess (res, file) {
190
      this.imgUrl = res.data.data.toolPictureUrl
191
      this.addDeviceModalForm.pictureUrl = res.data.data.pictureUrl
180
      // 因为演示用的上传服务器返回数据格式的原因,这里模拟添加 url
192
      // 因为演示用的上传服务器返回数据格式的原因,这里模拟添加 url
181
      console.log(file)
193
      console.log(file)
182
      this.uploadList.push(file)
194
      this.uploadList.push(file)
184
    $_onUploadRemoveFile () { },
196
    $_onUploadRemoveFile () { },
185
    $_onUploadExceededSize () { },
197
    $_onUploadExceededSize () { },
186
    $_onUploadError (errMsg, response, file) {
198
    $_onUploadError (errMsg, response, file) {
199
      console.log(file)
187
      console.log(errMsg.message)
200
      console.log(errMsg.message)
188
      this.$Notice.warning({
201
      this.$Notice.warning({
189
        title: `文件${file.name}上传失败`,
202
        title: `文件${file.name}上传失败`,

+ 11 - 11
security-protection-platform/src/modules/system/devicemana/index.vue

32
          <t-table-column prop="deviceType" label="设备类型" width="280"></t-table-column>
32
          <t-table-column prop="deviceType" label="设备类型" width="280"></t-table-column>
33
          <t-table-column label="操作">
33
          <t-table-column label="操作">
34
            <template v-slot="{row}">
34
            <template v-slot="{row}">
35
              <a href="javascript:;" style="color:#0089D4;" @click="getDeviceInfo(row.deviceId)">详情</a>
36
              <a href="javascript:;" style="color:#0089D4;" @click="editDeviceData(row.deviceId)">编辑</a>
35
              <a href="javascript:;" style="color:#0089D4;" @click="getDeviceInfo(row.resourceToolId)">详情</a>
36
              <a href="javascript:;" style="color:#0089D4;" @click="editDeviceData(row.resourceToolId)">编辑</a>
37
              <a href="javascript:;" style="color:#0089D4;" @click="deleteDeviceData(row)">删除</a>
37
              <a href="javascript:;" style="color:#0089D4;" @click="deleteDeviceData(row)">删除</a>
38
            </template>
38
            </template>
39
          </t-table-column>
39
          </t-table-column>
92
      // 数据总数
92
      // 数据总数
93
      total: 100,
93
      total: 100,
94
      // 批量删除的设备id
94
      // 批量删除的设备id
95
      deleteDeviceId: [],
95
      deleteResourceToolId: [],
96
      // 当前设备数据
96
      // 当前设备数据
97
      currentDeviceData: {},
97
      currentDeviceData: {},
98
      // 显示/隐藏新增设备对话框
98
      // 显示/隐藏新增设备对话框
110
      const res = await sysapi.getDeviceData({ params: { page: this.page, limit: this.limit, deviceTypeId: this.deviceTypeId, deviceName: this.deviceName, deviceId: this.deviceId } }
110
      const res = await sysapi.getDeviceData({ params: { page: this.page, limit: this.limit, deviceTypeId: this.deviceTypeId, deviceName: this.deviceName, deviceId: this.deviceId } }
111
      )
111
      )
112
      if (res.status === 200) {
112
      if (res.status === 200) {
113
        this.deviceDataList = res.data.data.data
113
        this.deviceDataList = res.data.data
114
        this.total = res.data.total
114
        this.total = res.data.total
115
      } else {
115
      } else {
116
        this.$Message.danger('设备数据列表获取失败!')
116
        this.$Message.danger('设备数据列表获取失败!')
154
        title: '正在准备删除...',
154
        title: '正在准备删除...',
155
        content: '<p>确定要删除?</p><p>删除后将无法还原!</p>',
155
        content: '<p>确定要删除?</p><p>删除后将无法还原!</p>',
156
        ok: async () => {
156
        ok: async () => {
157
          const res = await sysapi.deleteDeviceData({ deviceId: row.deviceId })
157
          const res = await sysapi.deleteDeviceData({ resourceToolId: row.resourceToolId })
158
          if (res.status === 200) {
158
          if (res.status === 200) {
159
            this.getDeviceData()
159
            this.getDeviceData()
160
            this.$Message.success('删除成功!')
160
            this.$Message.success('删除成功!')
170
    // 当复选框发生改变时 触发事件
170
    // 当复选框发生改变时 触发事件
171
    selectChange (data) {
171
    selectChange (data) {
172
      const arr = []
172
      const arr = []
173
      data.forEach(item => arr.push(item.deviceId))
174
      this.deleteDeviceId = arr
173
      data.forEach(item => arr.push(item.resourceToolId))
174
      this.deleteResourceToolId = arr
175
    },
175
    },
176
    // 批量删除数据
176
    // 批量删除数据
177
    multDeleteDeviceData () {
177
    multDeleteDeviceData () {
178
      if (this.deleteDeviceId.length === 0) {
178
      if (this.deleteResourceToolId.length === 0) {
179
        return this.$Message.warning('请选择要删除的数据!')
179
        return this.$Message.warning('请选择要删除的数据!')
180
      }
180
      }
181
      this.$Confirm.confirm({
181
      this.$Confirm.confirm({
182
        title: '正在准备删除...',
182
        title: '正在准备删除...',
183
        content: '<p>确定要删除?</p><p>删除后将无法还原!</p>',
183
        content: '<p>确定要删除?</p><p>删除后将无法还原!</p>',
184
        ok: async () => {
184
        ok: async () => {
185
          const res = await sysapi.deleteDeviceData({ deviceId: this.deleteDeviceId })
185
          const res = await sysapi.deleteDeviceData({ resourceToolId: this.deleteResourceToolId })
186
          if (res.status === 200) {
186
          if (res.status === 200) {
187
            this.getDeviceData()
187
            this.getDeviceData()
188
            this.$Message.success('删除成功!')
188
            this.$Message.success('删除成功!')
199
    async getDeviceInfo (id) {
199
    async getDeviceInfo (id) {
200
      const res = await sysapi.getDeviceInfo(id)
200
      const res = await sysapi.getDeviceInfo(id)
201
      if (res.status === 200) {
201
      if (res.status === 200) {
202
        this.currentDeviceData = res.data.data
202
        this.currentDeviceData = res.data
203
      } else {
203
      } else {
204
        this.$Message.danger('设备详情数据获取失败!')
204
        this.$Message.danger('设备详情数据获取失败!')
205
      }
205
      }
211
    async editDeviceData (id) {
211
    async editDeviceData (id) {
212
      const res = await sysapi.getDeviceInfo(id)
212
      const res = await sysapi.getDeviceInfo(id)
213
      if (res.status === 200) {
213
      if (res.status === 200) {
214
        this.currentEditDevice = res.data.data
214
        this.currentEditDevice = res.data
215
      } else {
215
      } else {
216
        this.$Message.danger('设备数据获取失败!')
216
        this.$Message.danger('设备数据获取失败!')
217
      }
217
      }

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/approvalmodal.vue

98
      this.$refs['approvalModalForm'].validate((valid) => {
98
      this.$refs['approvalModalForm'].validate((valid) => {
99
        if (valid) {
99
        if (valid) {
100
          this.addApprovalData()
100
          this.addApprovalData()
101
          this.$emit('refresh-all-data')
102
        } else {
101
        } else {
103
          this.loadingSubmit = false
102
          this.loadingSubmit = false
104
          console.log('error--------->请输入完整的表单信息!')
103
          console.log('error--------->请输入完整的表单信息!')
111
      const res = await workOrderApi.addApprovalData(this.approvalModalForm)
110
      const res = await workOrderApi.addApprovalData(this.approvalModalForm)
112
      if (res.status === 200) {
111
      if (res.status === 200) {
113
        this.resetModalData()
112
        this.resetModalData()
113
        this.$emit('refresh-all-data')
114
        this.$Message.success('操作成功!')
114
        this.$Message.success('操作成功!')
115
      } else {
115
      } else {
116
        this.$Message.danger('操作失败!')
116
        this.$Message.danger('操作失败!')

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/cardreplacementmodal.vue

92
      this.$refs['cardReplacementModalForm'].validate((valid) => {
92
      this.$refs['cardReplacementModalForm'].validate((valid) => {
93
        if (valid) {
93
        if (valid) {
94
          this.addCardReplacementData()
94
          this.addCardReplacementData()
95
          this.$emit('refresh-data')
96
        } else {
95
        } else {
97
          console.log('error--------->请输入完整的表单信息!')
96
          console.log('error--------->请输入完整的表单信息!')
98
          this.loadingSubmit = false
97
          this.loadingSubmit = false
112
        if (res.data.fail) {
111
        if (res.data.fail) {
113
          this.$Message.warning(res.data.fail)
112
          this.$Message.warning(res.data.fail)
114
        } else {
113
        } else {
114
          this.$emit('refresh-data')
115
          this.$Message.success('提交成功!')
115
          this.$Message.success('提交成功!')
116
        }
116
        }
117
      } else {
117
      } else {

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/fieldservicemodal.vue

115
      this.$refs['fieldServiceModalForm'].validate((valid) => {
115
      this.$refs['fieldServiceModalForm'].validate((valid) => {
116
        if (valid) {
116
        if (valid) {
117
          this.addFieldServiceData()
117
          this.addFieldServiceData()
118
          this.$emit('refresh-data')
119
        } else {
118
        } else {
120
          console.log('error--------->请输入完整的表单信息!')
119
          console.log('error--------->请输入完整的表单信息!')
121
          this.loadingSubmit = false
120
          this.loadingSubmit = false
143
        if (res.data.fail) {
142
        if (res.data.fail) {
144
          this.$Message.warning(res.data.fail)
143
          this.$Message.warning(res.data.fail)
145
        } else {
144
        } else {
145
          this.$emit('refresh-data')
146
          this.$Message.success('提交成功!')
146
          this.$Message.success('提交成功!')
147
        }
147
        }
148
      } else {
148
      } else {

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/leavemodal.vue

113
      this.$refs['leaveModalForm'].validate((valid) => {
113
      this.$refs['leaveModalForm'].validate((valid) => {
114
        if (valid) {
114
        if (valid) {
115
          this.addLeaveData()
115
          this.addLeaveData()
116
          this.$emit('refresh-data')
117
        } else {
116
        } else {
118
          console.log('error--------->请输入完整的表单信息!')
117
          console.log('error--------->请输入完整的表单信息!')
119
          this.loadingSubmit = false
118
          this.loadingSubmit = false
141
        if (res.data.fail) {
140
        if (res.data.fail) {
142
          this.$Message.warning(res.data.fail)
141
          this.$Message.warning(res.data.fail)
143
        } else {
142
        } else {
143
          this.$emit('refresh-data')
144
          this.$Message.success('提交成功!')
144
          this.$Message.success('提交成功!')
145
        }
145
        }
146
      } else {
146
      } else {

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/overtimemodal.vue

102
      this.$refs['overtimeModalForm'].validate((valid) => {
102
      this.$refs['overtimeModalForm'].validate((valid) => {
103
        if (valid) {
103
        if (valid) {
104
          this.addWorkOverTimeData()
104
          this.addWorkOverTimeData()
105
          this.$emit('refresh-data')
106
        } else {
105
        } else {
107
          console.log('error--------->请输入完整的表单信息!')
106
          console.log('error--------->请输入完整的表单信息!')
108
          this.loadingSubmit = false
107
          this.loadingSubmit = false
130
        if (res.data.fail) {
129
        if (res.data.fail) {
131
          this.$Message.warning(res.data.fail)
130
          this.$Message.warning(res.data.fail)
132
        } else {
131
        } else {
132
          this.$emit('refresh-data')
133
          this.$Message.success('提交成功!')
133
          this.$Message.success('提交成功!')
134
        }
134
        }
135
      } else {
135
      } else {

writename · 96dc51dfdf - Nuosi Git Service
wangyj18 лет назад: 8
Родитель
Сommit
96dc51dfdf

+ 15 - 0
display-server/src/main/webapp/biz/js/more/opensource/WriteName.js

@ -0,0 +1,15 @@
1
require(["mobile","wadeMobile","jquery","common"],function(Mobile,WadeMobile,jQuery,Common){
2
	
3
	$("#get-image").click(function(){
4
    	var dataUrl= jQuery('.literally').canvasForExport().toDataURL();
5
    	//var arr = dataUrl.split(",");
6
    	//var data = new Wade.DataMap();
7
    	//data.put("actionName","WriteName");
8
    	//data.put("nameBase",arr[1]);
9
    	//Common.openTemplate("WriteNameResult",data);
10
    	
11
    	$("#mainContent").hide();
12
    	$("#resultContent").show();
13
    	$("#writeNameImg").attr("src", dataUrl);
14
	});
15
});

+ 2 - 58
display-server/src/main/webapp/template/webapp/more/opensource/OpenSourceComponent.html

@ -36,7 +36,7 @@
36 36
					</div>
37 37
				</div>
38 38
			</li>
39
			<li action="Cache">
39
			<li action="">
40 40
				<div class="content">
41 41
					<div class="main">
42 42
						<div class="title">手势密码</div>
@ -44,63 +44,7 @@
44 44
					</div>
45 45
				</div>
46 46
			</li>
47
			<li action="SceneBean_setScreenLock">
48
				<div class="content">
49
					<div class="main">
50
						<div class="title">解锁屏</div>
51
						<div class="info">设置手势锁~</div>
52
					</div>
53
				</div>
54
			</li>
55
			<li action="SceneBean_openKeyboard">
56
				<div class="content">
57
					<div class="main">
58
						<div class="title">键盘</div>
59
						<div class="info">原生UI键盘</div>
60
					</div>
61
				</div>
62
			</li>
63
			<li action="SceneBean_dataRequest">
64
				<div class="content">
65
					<div class="main">
66
						<div class="title">数据请求</div>
67
						<div class="info">客户端访问时则是原生实现的访问请求,可以通过配置实现加密方式的传输安全,
68
						开发阶段,使用浏览器网页形式访问时是基于ajax的访问请求。</div>
69
					</div>
70
				</div>
71
			</li>
72
			<li action="SceneBean_templateRedirect">
73
				<div class="content">
74
					<div class="main">
75
						<div class="title">页面跳转(直接数据渲染)</div>
76
						<div class="info">没有数据请求,传入的参数直接用于页面渲染。</div>
77
					</div>
78
				</div>
79
			</li>
80
			<li action="SceneBean_PageRedirect">
81
				<div class="content">
82
					<div class="main">
83
						<div class="title">页面跳转(调用数据接口)</div>
84
						<div class="info">调用数据请求,传入的参数先用于请求数据接口,得到的结果集用于页面渲染。</div>
85
					</div>
86
				</div>
87
			</li>
88
			<li action="TemplateRefresh">
89
				<div class="content">
90
					<div class="main">
91
						<div class="title">局部刷新(直接数据渲染)</div>
92
						<div class="info">没有数据请求,传入的参数直接用于解析模板得到html。</div>
93
					</div>
94
				</div>
95
			</li>
96
			<li action="PageRefresh">
97
				<div class="content">
98
					<div class="main">
99
						<div class="title">局部刷新(调用数据接口)</div>
100
						<div class="info">调用数据请求,传入的参数先用于请求数据接口,得到的结果集用于解析模板得到html。</div>
101
					</div>
102
				</div>
103
			</li>
47
			
104 48
		</ul>
105 49
	</div>
106 50
	<div class="e_space"></div>

+ 1 - 16
display-server/src/main/webapp/template/webapp/more/opensource/WriteName.html

@ -5,6 +5,7 @@
5 5
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
6 6
	<title>签名</title>
7 7
	{%>template/common/Head.html%}
8
	<script src="biz/js/more/opensource/WriteName.js"></script>
8 9
    <style type="text/css">
9 10
   	.m_content {
10 11
   		background: url('biz/img/opensource/lvse.jpg');
@ -66,21 +67,5 @@ $(document).ready(function() {
66 67
	
67 68
	$('.literally').literallycanvas();
68 69
});
69

70
require(["mobile","wadeMobile","jquery","common"],function(Mobile,WadeMobile,jQuery,Common){
71
	
72
	$("#get-image").click(function(){
73
    	var dataUrl= jQuery('.literally').canvasForExport().toDataURL();
74
    	//var arr = dataUrl.split(",");
75
    	//var data = new Wade.DataMap();
76
    	//data.put("actionName","WriteName");
77
    	//data.put("nameBase",arr[1]);
78
    	//Common.openTemplate("WriteNameResult",data);
79
    	
80
    	$("#mainContent").hide();
81
    	$("#resultContent").show();
82
    	$("#writeNameImg").attr("src", dataUrl);
83
	});
84
});
85 70
</script>
86 71
</html>